function switchDisplay(obj,id){
	obj.className = 'cash_h_selected';
	a = document.getElementById('div' + id).style.display;
	document.getElementById('div' + id).style.display = (a == 'block') ? 'none' : 'block';
	b = document.getElementById('col' + id).className;
	document.getElementById('col' + id).className = (b == 'expl_off') ? 'expl' : 'expl_off';
}


//INDEX JACKPOTS
var jgames=new Array();
jgames[0]='car';
jgames[1]='grel';
jgames[2]='fmn1';
jgames[3]='wsffr';
jgames[4]='cifr';
jgames[5]='gs2';
jgames[6]='ms3';
jgames[7]='mj1';
jgames[8]='sc3';
jgames[9]='bls';
jgames[10]='jb10p';
jgames[11]='qop2';
jgames[12]='pbj';
jgames[13]='ghlj4';
jgames[14]='drts4';
jgames[15]='bl';
jgames[16]='ls';
var idx_gswf_sel=9;
function idx_game_swf(dir){
	if(idx_gswf_sel+dir>jgames.length-1)
		idx_gswf_sel=0;
	else if(idx_gswf_sel+dir<0)
		idx_gswf_sel=jgames.length-1;
	else
		idx_gswf_sel=idx_gswf_sel+dir;
	document.getElementById('jackpot_holder').className="jackpot jackpot"+idx_gswf_sel;
	document.getElementById('jackpot_holder').innerHTML=run_flash1("http://playtech.fileburst.com/jackpots/new_jackpot?info=1&casino=playunited&font_face=arial&font_size=12&game="+jgames[idx_gswf_sel]+"&currency=usd&sign_align=left&font_color=d0c68a&bold=true&bg_color=000000", "130", "18", "jackpotswf");
}

//INDEX GAME SWFS
function thisMovie(movieName){
	if(navigator.appName.indexOf("Microsoft")!=-1){
		return window[movieName];
	}
	else{
		if(document[movieName].length!=undefined){
			return document[movieName][1];
		}
		return document[movieName];
	}
}

var idxgto=false;
var idxgint=false;
var movieName='';
var idxmoviei=0;
var idxmovieinti=0;
function idxg(i){
	if(idxmoviei!=i){
		try{ clearInterval(idxgint)} catch(e){}
		movieName='idxgame'+i+'swf';
		idxmoviei=i;
		thisMovie(movieName).TPlay('b');
	}
	else
		try{ clearTimeout(idxgto); } catch(e){}
}
function idxgo(i){
	if(idxmoviei==i){
		idxgto=setTimeout('idxgend()', 500);
	}
	else
		thisMovie('idxgame'+i+'swf').TPlay('b');
}
function idxgend(){
	thisMovie(movieName).TPlay('b');
	idxg_int();
}

function idxg_int(){
	//idxmovieinti=0;
	try{ clearInterval(idxgint)} catch(e){}
	idxgint=setInterval('idxg_int_play()', 3000);
}

function idxg_int_play(){
	if(idxmovieinti==5)
		idxmovieinti=1;
	else
		idxmovieinti+=1;
	thisMovie('idxgame'+idxmovieinti+'swf').TPlay('b');
}

function on_load(){
	setTimeout('openalertpop();',5000);
	idxg_int();
	//setTimeout('changetexts()',1000);
}