var currMenu;
try {
document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}
preloadImage = new Image();
preloadImage = "../images/FENICS/menu/GFI_FENICS_MENU_BACKGROUND.png";
function openMenu(newMenu)
{
if(currMenu)
currMenu.className='navMenu_h';
if(newMenu.id == 'menu-gfigroupsites')
newMenu.className='topMenu_s'
else
newMenu.className='navMenu_s'
currMenu = newMenu;
}
function closeMenu()
{
	if(currMenu)
	currMenu.className='navMenu_h';
}
var secs;
var timerID = null;
var timerRunning = false;
var delay = 1000;
var timeout_check;
function InitializeTimer(){
	timeout_check = 1;
	secs = 1
	StopTheClock()
	StartTheTimer()
}
function StopTheClock(){
	if(timerRunning)
	clearTimeout(timerID)
	timerRunning = false
}
function StartTheTimer(){
	if (timeout_check == 0){
	StopTheClock();
	}
	else if (secs==0)
	{
	StopTheClock();
	closeMenu();
	}
	else
	{
	self.status = secs
	secs = secs - 1
	timerRunning = true
	timerID = self.setTimeout("StartTheTimer()", delay)
	}
}
function RunFlashButton(title, width, height){
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="' + width + '" HEIGHT="' + height + '" id="' + title + '" ALIGN="middle">');
	document.write('<PARAM NAME=movie VALUE="' + title + '">');
	document.write('<PARAM NAME=quality VALUE=high>');
	document.write('<PARAM name="wmode" value=transparent>');
	document.write('<PARAM NAME=bgcolor VALUE=#FFFFFF>');
	document.write('<EMBED src="' + title + '" quality=high bgcolor=#FFFFFF FlashVars=""  WIDTH="' + width + '" HEIGHT="' + height + '" NAME="../../' + title + '" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" wmode=transparent>');
	document.write('</EMBED>');
	document.write('</OBJECT>');
}
