﻿
function showLevel2(elem)
{
	$('.Level2').hide();
	$('.highlight').removeClass('highlight');
	$(elem).addClass('highlight');
	$(elem).next('.Level2').show();
	$(elem).next('.Level2').css('visibility', 'visible');
}

function fadeRedirect(elem, url, speed) {
	$(elem + ' *').fadeOut(200);
	setTimeout('location.href = "' + url + '";', 200);
	
}

function slideTo(url) {
	$('.ClientPager .PagerLabel').slideUp(200);
	$('.ClientPager').slideUp(200);

	if (jQuery.browser.msie && jQuery.browser.version.substr(0, 1) == "6") 
	{
		$('.ClientPager').parent('li').css('height', '14px');
	}
	
	setTimeout('location.href = "' + url + '";', 200);
}

function homeFlashCompleted() {
	$('.HomeSplash').hide();
	fadeRedirect('.HomeSplash', 'Home.aspx', 200);
}

function detectFlash() {
	return true;
	/*if (FlashDetect && !FlashDetect.installed) {
		alert('Flash is not installed');
		fadeRedirect('.HomeSplash', 'Home.aspx', 200);
	}*/
}