// JavaScript Document
		
		function ShowHide(id, visibility) 
		{	 
    	obj = document.getElementsByTagName("div"); 
    	obj[id].style.visibility = visibility; 
		}		

		function navon(img)
			{ 
			if(img.longdesc != "on")
				{img.src = img.src.replace(/\.gif/, "_over.gif");}
			}
		
		function navoff(img)
			{ 
			if(img.longdesc != "on")
				{img.src = img.src.replace(/\_over.gif/, ".gif"); }
			}

		function navActive(img)
			{ 
			var tag	= document.getElementById('navrow').getElementsByTagName('img');
			for (var i=0; i	< tag.length; i++) {
				tag[i].src = tag[i].src.replace(/\_over.gif/, ".gif"); 
				tag[i].longdesc = "off";
			}
			img.src = img.src.replace(/\.gif/, "_over.gif"); 
			img.longdesc = "on";
			}



function alerterr(msg)
	{
	
		$('errorLyr').hide();
	
		html  = '<table bgcolor="#e9e9e9" cellpadding="0" cellspacing="0" border="0" width="320" height="320">\n';
		html += '<tr>\n';
		html += '<td width="15" height="25"></td>\n';
		html += '<td width="290" height="25" valign="bottom"><img src="images/pleasenote.gif" width="100" height="18" alt=""></td>\n';
		html += '<td width="15" height="25"></td>\n';
		html += '</tr>\n';
		html += '<tr>\n';
		html += '<td width="320" height="10" colspan="3"></td>\n';
		html += '</tr>\n';
		html += '<tr>\n';
		html += '<td width="15" height="100"></td>\n';
		html += '<td width="290" height="110" valign="top" style="color:#4f4f4f;font-family:Arial;font-size:11px;">'+msg+'</td>\n';
		html += '<td width="15" height="100"></td>\n';
		html += '</tr>\n';
		html += '<tr>\n';
		html += '<td width="15" height="30"></td>\n';
		html += '<td width="290" height="30" align="right" valign="top"><a href="javascript://" onclick="$(\'errorLyr\').hide();$(\'loader\').hide();do_show_drp();"><img src="images/error_close.gif" width="50" height="18" alt="" border="0"></a></td>\n';
		html += '<td width="15" height="30"></td>\n';
		html += '</tr>\n';
		html += '</table>\n';		
	
		$('errorLyr').update(html);
		$('errorLyr').show();
		/*
		if ($('vcType').value == 'youtube')
		{
			$('vids').hide();
		}
	*/
	}

function Validemail(val) 
	{
		var RE1 = /^[A-Za-z0-9_-]+[.A-Za-z0-9_-]*@{1,1}[A-Za-z0-9_-]+[.]{1,1}\w{2,4}/;
		return RE1.test(val);
	}	
	
function TestNumerics(val) 
	{
		var RE1 = /[\d]+/;
		return RE1.test(val);
	}
	
function TestAlphaNumerics(val)
	{
		var RE1 = /[A-Za-z ]/;
		return RE1.test(val);
	}
	
function Testfield(val)
	{
		var RE1 = /@/;
		return RE1.test(val);
	}
	
	
	function goFullscreen(page) {
		var URLen=page;
		var windowNamen="mainflashwindow";
		var browserName=navigator.appName;
		var operatingSystem=navigator.platform;
		var version = parseFloat(navigator.appVersion);

		// Netscape check version 4.0+ on Win
		if (browserName.indexOf("Netscape")!=-1 && version>=4.0 && operatingSystem.indexOf("Mac")!=-1)
		 {
		 window.open(URLen,windowNamen,'titlebar=no,top=0,left=0,width=' + window.screen.availWidth+',height='+window.screen.availWidth+',screenX=0,screenY=0,top=0,left=0')
		 }

		// MSIE Mac check
		else if (browserName.indexOf("Microsoft Internet Explorer")!=-1 && operatingSystem.indexOf("Mac")!=-1)
		 {
		 window.open(URLen,windowNamen,'titlebar=no,top=0,left=0,width=' + window.screen.availWidth+',height='+window.screen.availWidth+',screenX=0,screenY=0,top=0,left=0')
		 }

		// Netscape Mac check
		else if (browserName.indexOf("Netscape")!=-1 && operatingSystem.indexOf("Mac")!=-1)
		 {
		 window.open(URLen,windowNamen,'width='+screen.width+',height='+screen.height+',top=0,left=0');
		 }

		// MSIE Windows
		else if (browserName.indexOf("Microsoft Internet Explorer")!=-1 && operatingSystem.indexOf("Win")!=-1)
		 {
		 //window.open(URLen,windowNamen,'fullscreen=yes')
		var win = window.open(URLen,windowNamen,'titlebar=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top=0,left=0,width=' + window.screen.availWidth+',height='+window.screen.availHeight+',screenX=0,screenY=0,top=0,left=0')
			win.resizeTo(screen.width, screen.height);
			 //win.moveTo(1, 1);
			 //win.moveTo(0, 0);
			 //win.resizeTo(screen.width, screen.height);
		 }

		// Netscape Windows
		else if (browserName.indexOf("Netscape")!=-1 && operatingSystem.indexOf("Win")!=-1)
		 {
		 window.open(URLen,windowNamen,'width='+screen.width+',height='+screen.height+',top=0,left=0');
		 }

		else
		 {
		 window.open(URLen,windowNamen);
		 }

	}
