// (c) 2007 Linkstorm (all rights reserved)
if(typeof ls$onDOMComplete=="undefined"){function ls$onDOMComplete(G,C){var D=G.document,A=false;B();if((/WebKit|KHTML|MSIE/i).test(navigator.userAgent)){E()}function H(J){if(!A){A=true;F();C(J)}}function I(J){return typeof D[J]!="undefined"}function E(){if(D.body!==null&&D.getElementsByTagName){if(I("fileSize")){try{D.documentElement.doScroll("left");H("documentready")}catch(J){}}if(I("readyState")&&(/loaded|complete/).test(D.readyState)){H("readyState")}}if(!A){setTimeout(E,10)}}function F(){if(typeof D.removeEventListener=="function"){D.removeEventListener("DOMContentLoaded",H,false)}}function B(){if(typeof D.addEventListener=="function"){D.addEventListener("DOMContentLoaded",H,false)}var J=G.onload;G.onload=function(K){if(typeof J=="function"){J()}H(K||this.event)}}}function ls$isInIframe(){return(self!=top);return false}function ls$getQuery(D){var C="";for(var B=0,A=D.length;B<A;++B){C+=(B>0?"&":"")+D[B][0]+"="+D[B][1]}return C}function ls$isValidPrefix(A){var B=/^(http(s)?:\/\/)?(\w+:?\w*@)?([\w\-\.]+(:[0-9]{1,5})?)?(\/[\w#!\.,\*;:\?\+=&%@\(\)\-\/]*)?$/;return B.test(A)}function ls$isValidSuffix(A){var B=/^(([\w%\-\+\.]+)(=([\w%\-\+\.]*))?){1}(&(([\w%\-\+]+)(=([\w%\-\+\.]*))?)?)*$/;return B.test(A)}function ls$isValidSd(A){return true}function ls$isScriptLoaded(E){var B=document.getElementsByTagName("script");var C=1,A=B.length;if(A==0){return false}var D=null;do{D=B[A-C].src}while(D.indexOf(E)==-1&&++C<=A);return(C<=A)}var ls$version="004",ls$checkedInsertions=false}function ls$startInitializing(){if(!ls$checkedInsertions){var G=1,C,L=new Array(),B=new Array();C=document.getElementsByTagName("script");for(var D=0;D<C.length;++D){if(C[D].src.indexOf("http://uat.linkstorms.com/004/")!=-1){L.push(C[D]);B.push(C[D].src)}}for(var D=0;D<B.length;++D){G=B[D].indexOf("/004/")+5;var K=B[D].substring(G,G+=14),I=L[D].getAttribute("clickPrefix"),A=L[D].getAttribute("clickSuffix"),H=L[D].getAttribute("sd"),F="004",J="uat";C=new Array();C.push(new Array("iid",K));if(I&&ls$isValidPrefix(I)){C.push(new Array("clickPrefix",encodeURIComponent(I)))}if(A&&ls$isValidSuffix(A)){C.push(new Array("clickSuffix",encodeURIComponent(A)))}if(H&&ls$isValidSd(H)){C.push(new Array("sd",encodeURIComponent(H)))}C.push(new Array("ver",F));C.push(new Array("host",J));if(!E){var E=new Array()}E.push(C)}for(var D=0;D<E.length;++D){ls$startInserting(E[D],L[D])}ls$checkedInsertions=true}}function ls$startInserting(D,B){if(ls$isInIframe()){var C=document.createElement("iframe");C.src="http://uat.linkstorms.com/stormbird/ife.html?"+ls$getQuery(D);C.width=0;C.height=0;C.border=0;C.style.width=0;C.style.height=0;C.style.border=0;B.parentNode.appendChild(C)}else{var A=document.getElementsByTagName("head")[0];if(!ls$isScriptLoaded("stormbird-libs-CSv004.js")){var C=document.createElement("script");C.type="text/javascript";C.src="http://uat.linkstorms.com/stormbird/stormbird-libs-CSv004.js";A.appendChild(C)}C=document.createElement("script");C.type="text/javascript";C.src="http://uat.linkstorms.com/stormbird/stormbird-CSv004.js?"+ls$getQuery(D);B.parentNode.appendChild(C)}}if(typeof (ls$firstScript)=="undefined"){ls$onDOMComplete(this,ls$startInitializing);ls$firstScript=true}