//
// Calculate English & Spanish URLs
//
var myLanLink = ""
function CalcLangURL ()
{
	var cText = ''
	var myCurLocation = location.pathname + location.search
	if ( myCurLocation.indexOf("/admin/") >= 0  )
	{ cText = ''
	  myLanLink = ''
	}	
	else if ( myCurLocation.indexOf("/register/eng") >= 0  )
	{ myCurLocation = myCurLocation.replace ("/eng","/spn")
		cText = '<strong><a href="'+myCurLocation+'" class="white-link-underline">Español</a></strong>'
		myLanLink = '<strong><a href="'+myCurLocation+'">Español</a></strong>'
	}
	else if ( myCurLocation.indexOf("/register/spn") >= 0  )
	{ myCurLocation = myCurLocation.replace ("/spn","/eng")
		cText = '<strong><a href="'+myCurLocation+'" class="white-link-underline">English</a></strong>'	
		myLanLink = '<strong><a href="'+myCurLocation+'">English</a></strong>'
	}	
	else if ( myCurLocation.indexOf("/spn") < 0  )
	{	myCurLocation = "/spn" + myCurLocation;
		cText = '<strong><a href="'+myCurLocation+'" class="white-link-underline">Español</a></strong>'
		myLanLink = '<strong><a href="'+myCurLocation+'">Español</a></strong>'
	}
	else
	{	myCurLocation = myCurLocation.replace ("/spn","")
		cText = '<strong><a href="'+myCurLocation+'" class="white-link-underline">English</a></strong>'	
		myLanLink = '<strong><a href="'+myCurLocation+'">English</a></strong>'
	}

	document.write(cText) 
}
function CopyRight (curLocation,NoFlash)
{
	var cText = ''
	cText += '<table cellpadding="2" cellspacing="0" border="0" align="center" width="90%"><tr>'
	cText += '<td width="60%" class="grey-text-regular">Copyright © <strong>Just Say Soccer (JSS)-2009-2010</strong>. All Rights Reserved.</td>'
	cText += '<td width="10%"><a href="/html/home/term_of_use.asp">Term of Use</a></td>'
	cText += '<td width="10%"><a href="/html/home/privacy_policy.asp" >Privacy Policy</a></td>'
	//
	if (NoFlash != "Y")
	{ cText += '<td width="10%"><a href="/default.asp?NoFlash=Y" >NO FLASH</a></td>'
	}
	else
	{ cText += '<td width="10%"><a href="/default.asp?NoFlash=N" >FLASH</a></td>'
	}
	cText += '</tr></table>'
	document.write(cText) 
	
//	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
//	
//	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
//	try {
//		var pageTracker = _gat._getTracker("UA-11661879-4");
//		pageTracker._trackPageview();
//		alert ("This is a test");
//	} catch(err) {}
}
function DisplayLayer (item,status)
{
	var e = document.getElementById(item);
//	e.style.display = (e.style.display != 'none' ? 'none' : '' );
	e.style.display = status;
//	if (status == '')
//	{ e.FadeState = 0;
//		TimeToFade = 400;
//		fade (item);
//	}
//	else
//	{ 	TimeToFade = 300;
//		fade (item);
//	}
}

