function games_rules(){ openGameInfoWin("rules","hr", gameID); } function games_help(){ openGameInfoWin("help","hr",gameID); } function resizeGame(width, height) { var NS = (navigator.appName=="Netscape" || navigator.appName=="Microsoft Internet Explorer")?true:false; iWidth = (NS)?window.innerWidth:document.body.clientWidth; iHeight = (NS)?window.innerHeight:document.body.clientHeight; iWidth = width - iWidth; iHeight = height - iHeight; window.resizeBy(iWidth, iHeight); } function openGameInfoWin(type,win, winName) { //url = "http://games.ladbrokes.com/gameinfo.php?gameID="+gameID; url = "http://games.ladbrokes.com/gameinfo.php?gameID="+gameID; url = url+"&wintype="+type; newWin = window.open(url, win, "width=600,height=500,resizable=1,scrollbars=1"); } function openWin(url, width, height,name) { options = "resizable=1,scrollbars=0,menubar=0,status=1,width="+width+",height="+height; new2Win = window.open(url, name ,options); } function openGame(game, state) { url = "http://games.ladbrokes.com/gamelaunch/gamewin?gameCode="+game+"&state="+state+"&ret_url="+ret_url; window.location.href =url; //launchgame(game, state); } function account (start,mid,stat) { w_id = window.name; var url = 'https://www.ladbrokes.com/lbr_portal_hist?action=go_acct_main&casino_aff=default&ext_acct=GAMES&w_id='+w_id+'&system_source=GAM&system_source_id=GAM_WEB'; if (start != null) { url = url + "&start=" + start; } if (mid != null) { url += "&mid=" + mid; } if (stat != null) { url += "&static=" + stat; } acct_win = openWin(url,750,650,'acctwindow'); } function games_bank(type) { account("accounthelp_deposit.html","accounthelp",1); } function openGameLogin() { document.location.href = "http://games.ladbrokes.com/gamelaunch/gamelogin?gameCode="+gameID+"&ret_url=%2Fgamelaunch%2Fgamewin%gameID%3D"+gameID+"%26state%3Dtrue%26ret_url%3D"+ret_url_encoded; } function refreshPage() { } function openBank () { games_bank(); } function openHistory () { url = "http://gamesext.ladbrokes.com/fog/swf/swf_extn/balls/stats/gamehistory.php"; width = "600"; height = "500"; openWin(url, width, height, "hr"); } function openPrevDraws () { url = "http://gamesext.ladbrokes.com/fog/swf/swf_extn/balls/stats/prevdraws.php"; width = "600"; height = "500"; openWin(url, width, height, "hr"); } function openStats (sort) { url = "http://gamesext.ladbrokes.com/fog/swf/swf_extn/balls/stats/stats.php"; width = "600"; height = "500"; openWin(url, width, height, "hr"); } function openInfo() { games_help(); } function openInstructions () { games_help(); } function openRules() { games_rules(); }