$ = function(id){
		return document.getElementById(id);
	}

var so, rotator, flash;

window.onload = function(){
	BrowserDetect.init();
	isIE6 =  (BrowserDetect.browser=="Explorer" && BrowserDetect.version=="6");
	isSafari =  (BrowserDetect.browser=="Safari");

	initBlankContainers();
	initMenuEvents();

	flash = $("ew_Timer");

	initTabRotator();
	
	Timer.SetJSFunction("autoTabRotate");
	Timer.SetSeconds(seconds);
	Timer.StartTimer();
	
	getElementsByClassName("selected-tab-menu","div",$("tabs-menu"))[0].style.backgroundImage = "";

	/* Age Check on OnLoad function*/
	//CheckAgeValid('agegate.php','home.php','sorry.php','nocookie.php');

	return;
}

var Timer = {
	StartTimer : function(){
		flash.StartTimer();
	},	
	StopTimer : function(){
		flash.StopTimer();
	},
	SetSeconds : function(seconds){
		flash.SetTime(seconds);
	},
	SetJSFunction : function(str){
		flash.SetJsFunction(str);
	}
}




function callJS(str){
	alert(str);
}

