	GLOBAL_CLOSE_TEXT = "Close";
	
// START - frame buster
	function frame_bust_out(){
		if (parent.frames.length > 0) {
			top.location.replace(document.location);
		}
	}
	frame_bust_out();
// END - frame buster
// START - layers browser detection
	// PHP Layers Menu 3.2.0-rc (C) 2001-2004 Marco Pratesi - http://www.marcopratesi.it/
	
	DOM = (document.getElementById) ? 1 : 0;
	NS4 = (document.layers) ? 1 : 0;
	
	Konqueror = (navigator.userAgent.indexOf('Konqueror') > -1) ? 1 : 0;
	
	Konqueror22 = (navigator.userAgent.indexOf('Konqueror 2.2') > -1 || navigator.userAgent.indexOf('Konqueror/2.2') > -1) ? 1 : 0;
	Konqueror30 =
		(
			navigator.userAgent.indexOf('Konqueror 3.0') > -1
			|| navigator.userAgent.indexOf('Konqueror/3.0') > -1
			|| navigator.userAgent.indexOf('Konqueror 3;') > -1
			|| navigator.userAgent.indexOf('Konqueror/3;') > -1
			|| navigator.userAgent.indexOf('Konqueror 3)') > -1
			|| navigator.userAgent.indexOf('Konqueror/3)') > -1
		)
		? 1 : 0;
	Konqueror31 = (navigator.userAgent.indexOf('Konqueror 3.1') > -1 || navigator.userAgent.indexOf('Konqueror/3.1') > -1) ? 1 : 0;
	
	Konqueror32 = (navigator.userAgent.indexOf('Konqueror 3.2') > -1 || navigator.userAgent.indexOf('Konqueror/3.2') > -1) ? 1 : 0;
	Konqueror33 = (navigator.userAgent.indexOf('Konqueror 3.3') > -1 || navigator.userAgent.indexOf('Konqueror/3.3') > -1) ? 1 : 0;
	Opera = (navigator.userAgent.indexOf('Opera') > -1) ? 1 : 0;
	Opera5 = (navigator.userAgent.indexOf('Opera 5') > -1 || navigator.userAgent.indexOf('Opera/5') > -1) ? 1 : 0;
	Opera6 = (navigator.userAgent.indexOf('Opera 6') > -1 || navigator.userAgent.indexOf('Opera/6') > -1) ? 1 : 0;
	Opera56 = Opera5 || Opera6;
	IE = (navigator.userAgent.indexOf('MSIE') > -1) ? 1 : 0;
	IE = IE && !Opera;
	IE5 = IE && DOM;
	IE4 = (document.all) ? 1 : 0;
	IE4 = IE4 && IE && !DOM;
	
// END - layers browser detection

	function $import(src){
		var scriptElem = document.createElement('script');
		scriptElem.setAttribute('src',src);
		scriptElem.setAttribute('type','text/javascript');
		document.getElementsByTagName('head')[0].appendChild(scriptElem);
	}
	
// START - Time Script variables
	var years = 2009;
	var months = 5 - 1;
	var days = 6;
	
	var hours = 16;
	var minutes = 05;
	var seconds = 36;
	
	var clock_12hours = false;
	var clock_hideseconds = true;
	var clock_updates = 30000;
	var clock_timer = null;
	var clock_currenttime = new Date(years, months, days, hours, minutes, seconds);
// END - Time Script variables

	// start clock
	addEvent(window, 'load', setClockInterval);
	

// START - moveable notice window
	function init_domdrag(){
		if (document.getElementById("overDiv") != undefined && Drag != undefined) {
			Drag.init(document.getElementById("overDiv"));
		}
	}
	addEvent(window,'load', init_domdrag);
// END - moveable notice window
	
	
// START - welcome and exit popup
	function mouseDown() {
	}


	function openDownloadDialog () {
		closeMessage();
		document.location="https://account.bet3g.com/downloadFile.php?do=auto";
	}

	function openInfoDialog() {
		overlib(makeMessage("Bienvenue!", "Cliquez sur OK pour télécharger gratuitement la salle de poker tout en navigant sur le site.", "OK", 'javascript:openDownloadDialog();', 'welcome'),FULLHTML,HAUTO,VAUTO,STICKY,WIDTH,300);
	}
	
	addEvent(window, 'load', openInfoDialog);


// END - welcome and exit popup

	function removeDefault(element){
		if(!element.removed){
			element.removed = 1;
			element.value='';
		}	
	}
	
	function loadJavacript() {
		//$import('/javascript/prototype.js');
		$import('js/rico.js');
		$import('js/AC_RunActiveContent.js');
	}
	
	//addEvent(window, 'load', loadJavacript);
	loadJavacript();
	

