sfHover = function() { var sfEls = document.getElementById("sitenav") if (sfEls != null) { sfEls = sfEls.getElementsByTagName("li"); for (var i=0; i'; } return paramTags; } com.deconcept.FlashObject.prototype.getVariablePairs = function(){ var variablePairs = new Array(); var key; var variables = this.getVariables(); for(key in variables){ variablePairs.push(key +"="+ variables[key]); } return variablePairs; } com.deconcept.FlashObject.prototype.getHTML = function() { var flashHTML = ""; if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "PlugIn"); } flashHTML += ' 0){ flashHTML += ' flashvars="'+ pairs +'"'; } flashHTML += '>'; } else { // PC IE if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "ActiveX"); } flashHTML += ''; flashHTML += ''; var tags = this.getParamTags(); if(tags.length > 0){ flashHTML += tags; } var pairs = this.getVariablePairs().join("&"); if(pairs.length > 0){ flashHTML += ''; } flashHTML += ''; } return flashHTML; } com.deconcept.FlashObject.prototype.write = function(elementId){ if(this.skipDetect || this.getAttribute('doExpressInstall') || com.deconcept.FlashObjectUtil.getPlayerVersion().versionIsValid(this.getAttribute('version'))){ if(document.getElementById){ if (this.getAttribute('doExpressInstall')) { this.addVariable("MMredirectURL", escape(window.location)); document.title = document.title.slice(0, 47) + " - Flash Player Installation"; this.addVariable("MMdoctitle", document.title); } document.getElementById(elementId).innerHTML = this.getHTML(); } }else{ if(this.getAttribute('redirectUrl') != "") { document.location.replace(this.getAttribute('redirectUrl')); } } } com.deconcept.FlashObjectUtil.getPlayerVersion = function(){ var PlayerVersion = new com.deconcept.PlayerVersion(0,0,0); if(navigator.plugins && navigator.mimeTypes.length){ var x = navigator.plugins["Shockwave Flash"]; if(x && x.description) { PlayerVersion = new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split(".")); } }else if (window.ActiveXObject){ try { var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); PlayerVersion = new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(",")); } catch (e) {} } return PlayerVersion; } com.deconcept.PlayerVersion = function(arrVersion){ this.major = parseInt(arrVersion[0]) || 0; this.minor = parseInt(arrVersion[1]) || 0; this.rev = parseInt(arrVersion[2]) || 0; } com.deconcept.PlayerVersion.prototype.versionIsValid = function(fv){ if(this.major < fv.major) return false; if(this.major > fv.major) return true; if(this.minor < fv.minor) return false; if(this.minor > fv.minor) return true; if(this.rev < fv.rev) return false; return true; } com.deconcept.util.getRequestParameter = function(param){ var q = document.location.search || document.location.href.hash; if(q){ var startIndex = q.indexOf(param +"="); var endIndex = (q.indexOf("&", startIndex) > -1) ? q.indexOf("&", startIndex) : q.length; if (q.length > 1 && startIndex > -1) { return q.substring(q.indexOf("=", startIndex)+1, endIndex); } } return ""; } if (Array.prototype.push == null) { Array.prototype.push = function(item) { this[this.length] = item; return this.length; }} var getQueryParamValue = com.deconcept.util.getRequestParameter; var FlashObject = com.deconcept.FlashObject; function addTracking() { var trackingDiv = document.getElementById('tracking'); var num = Math.floor(Math.random()*9999999); trackingDiv.innerHTML = ''; for(i=0; i<5000; i++) setTimeout('', 2000); } function popup(url, features) { var defaultFeatures = '\,location=0,statusbar=0,menubar=0,resizable=1'; features += defaultFeatures; var target = '_blank'; var theWindow = window.open(url, target, features); theWindow.focus(); return theWindow; } function PopupPic(sPicURL, sPicDESC) { window.open("/image.html?"+sPicURL+"&"+sPicDESC, "", "resizable=1,left=10,top=10"); } function downloadPrompt(){ var answer = confirm ("Click OK to Download the PaddyPowerPoker Client and Continue Browsing"); if (answer){ window.location='/downloads/download-now.php?dl_yes=true'; }else{ window.location='/index.php?dl_cancel=true'; } } // // Function for getting cookies // function getCookie(name) { var prefix = name + "="; var begin = document.cookie.indexOf(prefix); if (begin == -1) return null; var end = document.cookie.indexOf(";", begin); if (end == -1) end = document.cookie.length; return (unescape(document.cookie.substring(begin + prefix.length, end))); } function set_cookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; }