<!-- #config src="/templates/global.js" id="javascript"# --><!-- #end config# -->

new Image().src = "../images/nav/home_on.jpg";
new Image().src = "../images/nav/home_off.jpg";
new Image().src = "../images/nav/about_on.jpg";
new Image().src = "../images/nav/about_off.jpg";
new Image().src = "../images/nav/credentials_on.jpg";
new Image().src = "../images/nav/credentials_off.jpg";
new Image().src = "../images/nav/donate_on.jpg";
new Image().src = "../images/nav/donate_off.jpg";
new Image().src = "../images/nav/contact_on.jpg";
new Image().src = "../images/nav/contact_off.jpg";

new Image().src = "../images/topnav_right.jpg";
new Image().src = "../images/top_main.jpg";

function tabIt(from,to)
{
	if (from.getAttribute&&from.value.length==from.getAttribute("maxlength"))
	to.focus()
}

function HideHomeDiv(id, testlink)
{
	var displayed = document.getElementById(id).style;
	if (displayed.display == 'block') displayed.display = 'none';
	else displayed.display = 'block';
	
	var temp = document.getElementById("Hide" + testlink).style;
	temp.display = 'none';
	
	temp = document.getElementById("Show" + testlink).style;
	temp.display = 'block';
}

function ShowHomeDiv(id, testlink)
{
	var displayed = document.getElementById(id).style;
	if (displayed.display == 'block') displayed.display = 'none';
	else displayed.display = 'block';
	
	var temp = document.getElementById("Show" + testlink).style;
	temp.display = 'none';
	
	temp = document.getElementById("Hide" + testlink).style;
	temp.display = 'block';
}

function ShowDiv(id)
{	
	var displayed = document.getElementById(id).style;
	if (displayed.display == '') displayed.display = 'none';
	else if (displayed.display == 'block') displayed.display = 'none';
	else displayed.display = 'block';
}

// Pop up a new window
function popup(url,width,height,scrollbars) 
{
	var popwidth = width;
	var popheight = height;
	var leftoffset = (screen.width - popwidth - 10)/2;
	var topoffset = (screen.height - popheight - 40)/2;
	window.open(url,'_blank','titlebar=no,resizable=no,scrollbars=' + scrollbars + ',width=' + popwidth + ',height=' + popheight + ',left=' + leftoffset + ',top=' + topoffset);
}


// Flash detection
var MM_contentVersion = 6;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin) 
{
	var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	for (var i = 0; i < words.length; ++i)
	{
  if (isNaN(parseInt(words[i]))) continue;
  var MM_PluginVersion = words[i]; 
	}
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) 
{
	document.write('<scr' + 'ipt language=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</scr' + 'ipt\> \n');
}
function showPlayer(urlVideo,widthV,heightV){
	document.writeln('<object id=\'mediaPlayer\' width="'+widthV+'" height="'+heightV+'" classid=\'CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\' codebase=\'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\' 	standby=\'Loading Microsoft Windows Media Player components...\' type=\'application/x-oleobject\' >');
	document.write('	<param name=\'fileName\' value="'+urlVideo+'">');
	document.write('	<param name=\'animationatStart\' value=\'true\'>');
	document.write('	<param name=\'transparentatStart\' value=\'true\'>');
	document.write('	<param name=\'autoStart\' value="true">');
	document.write('	<param name=\'showControls\' value="true">');
	document.write('	<param name=\'wmode\' value="transparent">');
	document.write('	<param name=\'loop\' value="false">');
	document.write('	<embed type=\'application/x-mplayer2\' wmode=\'transparent\' pluginspage=\'http://microsoft.com/windows/mediaplayer/en/download/\' id=\'mediaPlayer\' 	 name=\'mediaPlayer\' displaysize=\'4\' autosize=\'-1\' 	 bgcolor=\'darkblue\' showcontrols="true" showtracker=\'-1\'	  showdisplay=\'0\' showstatusbar=\'-1\'	   videoborder3d=\'-1\' width="'+widthV+'" height="'+heightV+'" src="'+urlVideo+'" autostart="true" designtimesp=\'5311\' loop="false"> ');
	document.write('	</embed>');
	document.write('</object>');
}
