var minJavaVer="1.5";var minJavaVersion=minJavaVer+"+";function jadeInstallJava(){if(deployJava.installLatestJRE()){alert("Ok great, Java is updated. Press enter to join the fun")}else{alert("Java update was canceled. No problem, it will install automatically later when you enter the rooms, make sure you click accept when prompted")}}function giveUp(){window.onbeforeunload=null;var a=unescape("givenUp.jsp");window.location.replace(a)}function refreshPage(){window.onbeforeunload=null;var a=unescape(window.location.pathname);window.location.href=a}function refreshPage(){window.onbeforeunload=null;var a=unescape(window.location.pathname);window.location.replace(a)}function refreshPage(){window.onbeforeunload=null;window.location.reload(true)}function refresh(){window.scroll(0,0)}function openGame(a){myOpenWindow(a)}function goToGamemoviePage(c,a){var b=unescape(window.location.pathname);b+="?quick=true&gamename="+c+"&moviename="+a;window.location.replace(b)}function openLobbyHelp(){tUrl="help.jsp";myOpenWindow(tUrl)}function openGameHelp(a){myOpenWindow(tUrl)}function openGetPoints(){tUrl="../../games/user/u?page=deposit";myOpenWindow(tUrl)}function openUserProfile(a){tUrl="../../games/user/u?page=xxx";myOpenWindow(tUrl)}function openUsersGameStats(b,a){tUrl="../../games/user/u?page=xxx";myOpenWindow(tUrl)}function openMyResources(){openInMainWindow("/games/user/myresources")}function openMyAccountPage(){openInMainWindow("/games/user/u?page=myaccount")}function openInvitePage(){openInMainWindow("/games/user/u?page=refer")}function goToSubscribePage(){openInMainWindow("/games/user/subscribe_page")}function openInMainWindow(b){var a=window.parent.opener;a.location.href=b;a.focus();if(isFirefox){a.alert("Press OK to continue")}}function openMyProfile(){openMyAccountPage()}function myOpenWindow(b){var a="width=840,height=700,left=25,top=20,toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0";openURLAndDisplayDivIfBlocked(b,"",a)}var browserName;var isFirefox=false;version=navigator.appVersion;browserName=navigator.appName;if(navigator.userAgent.indexOf("Firefox")!=-1){browserName="Firefox";isFirefox=true}else{if(navigator.userAgent.indexOf("MSIE")!=-1){browserName="Explorer"}}function writeBrowser(){document.write("
Browser: "+browserName)}function isFirefoxBrowser(){browserName=navigator.appName;if(navigator.userAgent.indexOf("Firefox")!=-1){return true}return false}function checkVersion(b){var a="application/x-java-applet;version=";for(var c=0;c-1){if(pluginType.indexOf(a+""+b)>-1){return true}}}return false}function openURL(c,e,b){try{var a=window.open(c,e,b);if(a==null){return false}if(window.opera){if(!a.opera){return false}}}catch(d){return false}return true}var urlBackup;function openURLAndDisplayDivIfBlocked(b,c,a){if(openURL(b,c,a)==false){urlBackup=b;document.getElementById("popupBlockedDiv").style.display="block";document.getElementById("appletComponent").style.width="1px";document.getElementById("appletComponent").style.height="1px"}}function hidePopupBlockedDiv(){document.getElementById("popupBlockedDiv").style.display="none";document.getElementById("appletComponent").style.width="100%";document.getElementById("appletComponent").style.height="100%"}function arePopupsAllowed(a){return(getUrlParameter("continue")!="")||openURL(a+"/popupCheck.jsp","_blank","width=50,height=50,left=25,top=20,toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0")}function openPopup(a){return openPopup(a,"popup")}function openPopup(a,b){return openURL(a,b,"width=900,height=680,resizable=yes,scrollbars=no,toolbar=no,menubar=no,location=no,status=no,directories=no")}function justOpenPopup(a){openPopup(a)}function justOpenPopup(a,b){openPopup(a,b)}function getUrlParameter(b){b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var a="[\\?&]"+b+"=([^&#]*)";var d=new RegExp(a);var c=d.exec(window.location.href);if(c==null){return""}else{return c[1]}}function copyToClipboard(a){if(window.clipboardData&&clipboardData.setData){clipboardData.setData("Text",a)}}function goToSignUpPage(){window.onbeforeunload=null;window.parent.location.href="/signup_page"}function openfortunecity(c){var d=800,f=800;if(parseInt(navigator.appVersion)>3){d=screen.width;f=screen.height}else{if(navigator.appName=="Netscape"&&parseInt(navigator.appVersion)==3&&navigator.javaEnabled()){var e=java.awt.Toolkit.getDefaultToolkit();var b=e.getScreenSize();d=b.width;f=b.height}}var a="width="+(d-40)+",height="+(f-70)+",left=10,top=10,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1";window.location.href=c}function writeAppletForSafari(a,c){var b=getObjectTag(a,c);document.write(b)}function getObjectTag(a,e){var b=''}b+="";return b}function getAsEmbedTag(a,d){var b="=700)){b+="/styles/medium/oneplay.css"}else{b+="/styles/small/oneplay.css"}$("link[rel=stylesheet].mainSizeStyle").attr("href",b)}$(document).ready(function(){setMainCSS();$(window).bind("resize",function a(b){setMainCSS()})});