function MM_CheckFlashVersion(reqVerStr,msg)
{
	with(navigator)
	{
		var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
		var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
		if (!isIE || !isWin)
		{  
			var flashVer = -1;
			if (plugins && plugins.length > 0)
			{
				var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
				desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
				if (desc == "") flashVer = -1;
				else
				{
					var descArr = desc.split(" ");
					var tempArrMajor = descArr[2].split(".");
					var verMajor = tempArrMajor[0];
					var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
					var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
					flashVer =  parseFloat(verMajor + "." + verMinor);
				}
			}
			// WebTV has Flash Player 4 or lower -- too low for video
			else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

			var verArr = reqVerStr.split(",");
			var reqVer = parseFloat(verArr[0] + "." + verArr[2]);

			if (flashVer < reqVer)
			{
				if (confirm(msg))
				window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
			}
		}
	} 
}

function formHandler(form)
{
	var URL = document.form.site.options[document.form.site.selectedIndex].value;
	window.location.href = URL;
}

function initScrollBars()
{
	CSBfleXcroll('CustomScroll');						
}
						
function go()
{
	box = document.forms[0].navi;
	destination = box.options[box.selectedIndex].value;
	if (destination) location.href = destination;
}

function sfHover()
{
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++)
	{
		sfEls[i].onmouseover=function()
		{
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function()
		{
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}

function LoadMeUp()
{
	if (window.attachEvent) window.attachEvent("onload", sfHover);
	
	if (document.getElementById && document.getElementsByTagName)
	{
		if (window.addEventListener) window.addEventListener('load', initScrollBars, false);
		else if (window.attachEvent) window.attachEvent('onload', initScrollBars);
	}					

	MM_CheckFlashVersion('8,0,0,0','Content on this page requires a newer version of Adobe Flash Player. Do you want to download it now?');	
}
				
function makeOption(text, url)
{
	this.text=text;
	this.url=url;
}
function relate(form)
{
	var supported = (window.Option) ? 1 : 0;
	
	if (!supported)
	{
		load(form, "Country");
		return;	
	}		
	var options = form.State.options;
	for (var i = options.length - 1; i > 0; i--)
	{
			options[i] = null;
	}   		
	var curAr = ar[form.Country.selectedIndex];
	for (var j = 0; j < curAr.length; j++)
	{
			options[j] = new Option(curAr[j].url, curAr[j].text);
	}
	options[0].selected = true;
}

/* Tool Tip */

function toggle(thing)
{
	if(document.getElementById(thing).style.display=='none' )
	{
   		document.getElementById(thing).style.display = '';
	}
	else
	{
   		document.getElementById(thing).style.display = 'none';
 	}
}

/* End tool tip */
