var scripts=document.getElementsByTagName('script');var currentScript=scripts[scripts.length-1];currentScript.id=((currentScript.id.length===0)?"mgsProgressiveTickerArrayScript":currentScript.id);var lowerQueryString=currentScript.src.replace(/^[^\?]+\??/,'').replace('fontfamily','font-family').replace('fontsize','font-size').replace('fontcolor','font-color').toLowerCase();function parseQueryString(queryString){var queryStringParams={};if(!queryString){return"{}";} var queryStringPairs=queryString.split(/[;&]/);for(var i=0;i< queryStringPairs.length;i++){var KeyVal=queryStringPairs[i].split('=');if(!KeyVal||KeyVal.length!==2){continue;} var key=unescape(KeyVal[0]);var val=unescape(KeyVal[1]);val=val.replace(/\+/g,' ');queryStringParams[key]=val;} return queryStringParams;} var params=parseQueryString(lowerQueryString);function getParam(id,defaultValue){return((params[id])?params[id]:defaultValue);} var newScript=document.createElement('script');newScript.id="mgsProgressiveTickerArray";newScript.setAttribute("type","text/javascript");newScript.src=((window.location.protocol=='https:')?"https://":"http://")+"www.tickerassist.co.uk/ProgressiveTickers/WebServiceProgressiveTickerScript.asmx/renderScript?form=json&strCurrId="+getParam('currency',null);document.getElementById(currentScript.id).parentNode.insertBefore(newScript,document.getElementById(currentScript.id).nextSibling);var mgsProgressiveTickerSharedFunctions=document.getElementById('mgsProgressiveTickerSharedFunctions');if(mgsProgressiveTickerSharedFunctions===null){var INSERTmgsProgressiveTickerSharedFunctions=document.getElementsByTagName('head')[0].appendChild(document.createElement('script'));INSERTmgsProgressiveTickerSharedFunctions.id="mgsProgressiveTickerSharedFunctions";INSERTmgsProgressiveTickerSharedFunctions.setAttribute("type","text/javascript");INSERTmgsProgressiveTickerSharedFunctions.src=((window.location.protocol=='https:')?"https://":"http://")+"www.tickerassist.co.uk/modules/common/sharedfunctions.php";}