
function getFlash(movieName) {
    if (
		navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName];
    } else {
        return document[movieName];
    }
}
function onLinkClick(e)
{
	if(this.href.indexOf("mailto:") != -1)
	{
		newHREF = this.href;
		setTimeout('window.location.href=newHREF;', 100);
		return false;
	}
	else
	{
		setTimeout('onSlideOut();',100);
		newHREF = this.href;
		setTimeout('window.location.href=newHREF;', 1000);
		return false;
	}
}
function onFlashClick(url)
{
		newHREF = url;
		if(newHREF == "contact.html")
		{
			element = $('#contact');
			newHREF = element.attr('href');
		}
		else if(newHREF == "calendar.html")
		{
			element = $('#calendar');
			newHREF = element.attr('href');
		}
		else if(newHREF == "faq.html")
		{
			element = $('#faq');
			newHREF = element.attr('href');
		}
		else if(newHREF == "privacy.html")
		{
			element = $('#privacy');
			newHREF = element.attr('href');
		}
		window.location.href=newHREF;
		return false;	
}
function getCurrent()
{
return -1;
/*
	if(window.location.href.indexOf(".html") < 0)
	{
		return 0;
	}
	else
	{
		return window.location.href.indexOf("index.html");	
	}
	*/
}
function onSlideOut()
{	
/*
	var headerObj = getFlash('headerflash');
	var footerObj = getFlash('footerflash');
	headerObj.Play();
	footerObj.Play();
	*/
}
function onSlideIn()
{	
	var headerObj = getFlash('headerflash');
	var footerObj = getFlash('footerflash');
	if (navigator.appName.indexOf("Microsoft") != -1) {
		//headerObj.Play();
		//footerObj.Play();	
		return;
	}else{
		//headerObj.Play();
		//footerObj.Play();	
	}
}

