var scripts=document.getElementsByTagName('script');var currentScript=scripts[scripts.length-1];currentScript.id=((currentScript.id.length===0)?"mgsProgressiveTickerControlScript":currentScript.id);function cleanQueryString(querystring){querystring=querystring.replace(/^[^\?]+\??/,'');querystring=querystring.replace('fontfamily','font-family').replace('fontsize','font-size').replace('fontcolor','font-color');querystring=querystring.replace('showlogo=yes','showlogo=true').replace('showlogo=no','showlogo=false');querystring=querystring.replace('showcasino=yes','showcasino=true').replace('showcasino=no','showcasino=false');querystring=querystring.replace('showonlycasino=yes','showonlycasino=true').replace('showonlycasino=no','showonlycasino=false');return querystring.toLowerCase();} var lowerQueryString=cleanQueryString(currentScript.src);function parseQueryString(queryString){var queryStringParams={};if(!queryString){return"{}";} var queryStringPairs=queryString.split(/[;&]/);for(var i=0;i0){txt+=" ";} txt+=data[i];} var strReplaceAll=txt;var intIndexOfMatch=strReplaceAll.indexOf(""");while(intIndexOfMatch!=-1){strReplaceAll=strReplaceAll.replace(""","'");intIndexOfMatch=strReplaceAll.indexOf(""");} var is_applewebkit=navigator.userAgent.toLowerCase().indexOf('applewebkit')>-1;if(is_applewebkit){if(strReplaceAll.indexOf('//0) {var extractScript=strReplaceAll.substring(strReplaceAll.indexOf('//";strReplaceAll=strReplaceAll.substring(0,strReplaceAll.indexOf('//");var newScript=document.getElementsByTagName('head')[0].appendChild(document.createElement('script'));newScript.id="mgsProgressiveTickerAsmxScript";newScript.setAttribute("type","text/javascript");newScript.src=((window.location.protocol=='https:')?"https://":"http://")+"www.tickerassist.co.uk/ProgressiveTickers/WebServiceProgressiveTicker.asmx/renderTicker?form=json&strProgId="+getParam('progid','jackpot')+"&booShowLogo="+getParam('showlogo',true)+"&booShowCasino="+getParam('showcasino',false)+"&booShowOnlyCasino="+getParam('showonlycasino',false)+"&strFontFamily="+getParam('font-family',null)+"&intFontSize="+getParam('font-size',0)+"&strFontColor="+getParam('font-color',null)+"&strCurrId="+getParam('currency',null);this.parseResult=function(data,strProgId){document.getElementById("progressiveTicker"+strProgId).innerHTML=cleanHTML(data);var scriptNodes=document.getElementById("progressiveTicker"+strProgId).getElementsByTagName('script');var scripts=[];while(scriptNodes.length){scripts.push(scriptNodes[0].text);scriptNodes[0].parentNode.removeChild(scriptNodes[0]);} while(scripts.length){var scriptNode=document.createElement('script');scriptNode.type='text/javascript';scriptNode.text=scripts.shift();document.getElementById("progressiveTicker"+strProgId).appendChild(scriptNode);}};};};document.getElementById(currentScript.id).parentNode.removeChild(document.getElementById(currentScript.id));var mgsProgressiveTickerSharedFunctions=document.getElementById('mgsProgressiveTickerSharedFunctions');if(mgsProgressiveTickerSharedFunctions===null){var INSERTmgsProgressiveTickerSharedFunctions=document.getElementsByTagName('head')[0].appendChild(document.createElement('script'));INSERTmgsProgressiveTickerSharedFunctions.id="mgsProgressiveTickerSharedFunctions";INSERTmgsProgressiveTickerSharedFunctions.src=((window.location.protocol=='https:')?"https://":"http://")+"www.tickerassist.co.uk/modules/common/sharedfunctions.php";} renderTicker.init(lowerQueryString);