var adagioIsIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var adagioIsWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var adagioIsOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;var adagioObj=document;try{adagioObj=window.parent}catch(e){try{adagioObj=window}catch(e){adagioObj=document}}function adagioWriteBanner(A){}function adagioGetURL(K,E,O,F,U,Q,N,G,S,M){var A="";var I=parseInt((Math.random()*(Date.parse(new Date()))));var R=0;try{var B=false;var D=false;if(adagioReadCookie("ovl")!=null){D=true}var H=F.split(",");var J="";for(j=0;j<H.length;j++){if(B&&H[j]=="1p_u"){continue}if(D&&H[j]=="1o_u"){continue}J+=H[j]+","}if(J!=""){J=J.substring(0,J.length-1)}F=J}catch(P){}try{adagioObj=window.parent}catch(P){try{adagioObj=window}catch(P){adagioObj=document}}if(E&&E!=""){A="http://adlev.neodatagroup.com/ad/mediamond.jsp?loc="+K+"&fmt="+E+"&fmtpos="+F}else{A="http://adlev.neodatagroup.com/ad/mediamond.jsp?loc="+K+""}if(S){S=S.replace(/[^A-Z0-9a-z-]+/g,"_")}else{S=""}var C="";var T="";try{var L=document.location.href;if(/^http:\/\/.*\/(.*)/i.test(L)){C=RegExp.$1;C=C.replace(/\.[^\.]*$/,"");C=C.replace(/[^A-Z0-9a-z-]+/g,"_");if(C!=""){C+=","}T=L.replace("http://","");T=T.replace(/[^A-Z0-9a-z-]+/g,"_");if(S){S=S+","}else{S=""}}if(S!=""||C!=""||T!=""){A+="&keyw="+S+C+T}}catch(P){}try{if(!adagioObj.adagioBT){adagioObj.adagioBT="n"}if(!adagioObj.adagioWT){adagioObj.adagioWT="n"}if(!adagioObj.adagioWC){adagioObj.adagioWC=""}else{A+="&wc="+adagioObj.adagioWC}if(!adagioObj.adagioWADV){adagioObj.adagioWADV=""}else{A+="&wadv="+adagioObj.adagioWADV}if(!adagioObj.adagioBADV){adagioObj.adagioBADV=""}else{A+="&badv="+adagioObj.adagioBADV}if(!adagioObj.adagioBT){adagioObj.adagioBT=""}else{A+="&bt="+adagioObj.adagioBT}if(!adagioObj.adagioBL){adagioObj.adagioBL=""}else{A+="&bl="+adagioObj.adagioBL}if(!adagioObj.adagioWT){adagioObj.adagioWT=""}else{A+="&wt="+adagioObj.adagioWT}if(!adagioObj.adagioWL){adagioObj.adagioWL=""}else{A+="&wl="+adagioObj.adagioWL}}catch(P){}if(U==1){if(G&&G!=""){A+="&jsfuncnoint="+escape(G)}if(Q&&Q!=""){A+="&jsfuncstart="+escape(Q)}if(N&&N!=""){A+="&jsfuncint="+escape("document.write(adagioBCode);")+escape(N)}else{A+="&jsfuncint="+escape("document.write(adagioBCode);")}}else{if(U==0){if(N&&N!=""){A+="&jsfuncint="+escape(N)}if(G&&G!=""){A+="&jsfuncnoint="+escape(G)}if(Q&&Q!=""){A+="&jsfuncstart="+escape("var adagioRedirNoJQ=true;")+escape(Q)}else{A+="&jsfuncstart="+escape("var adagioRedirNoJQ=true;")}}else{if(N&&N!=""){A+="&jsfuncint="+escape(N)}if(G&&G!=""){A+="&jsfuncnoint="+escape(G)}if(Q&&Q!=""){A+="&jsfuncstart="+escape(Q)}}}if(M!=""){A+="&"+M}return A+"&rnd="+I}function adagioWriteTag(A,F,C,E,J,D,I,H,B,G){var K=adagioGetURL(A,F,C,E,J,D,I,H,B,G);document.write('<script src="'+K+'" ><\/script>')}function adagioControlVersion(){var A;var B;var C;try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");A=B.GetVariable("$version")}catch(C){}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");A="WIN 6,0,21,0";B.AllowScriptAccess="always";A=B.GetVariable("$version")}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");A=B.GetVariable("$version")}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");A="WIN 3,0,18,0"}catch(C){}}if(!A){try{B=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");A="WIN 2,0,0,11"}catch(C){A=-1}}return A}function adagioGetSwfVer(){var G=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var F=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var A=navigator.plugins["Shockwave Flash"+F].description;var E=A.split(" ");var C=E[2].split(".");var H=C[0];var B=C[1];var D=E[3];if(D==""){D=E[4]}if(D[0]=="d"){D=D.substring(1)}else{if(D[0]=="r"){D=D.substring(1);if(D.indexOf("d")>0){D=D.substring(0,D.indexOf("d"))}}}var G=H+"."+B+"."+D}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){G=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){G=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){G=2}else{if(adagioIsIE&&adagioIsWin&&!adagioIsOpera){G=adagioControlVersion()}}}}}return G}function adagioDetectFlashVer(F,D,C){versionStr=adagioGetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(adagioIsIE&&adagioIsWin&&!adagioIsOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var E=versionArray[0];var A=versionArray[1];var B=versionArray[2];if(E>parseFloat(F)){return true}else{if(E==parseFloat(F)){if(A>parseFloat(D)){return true}else{if(A==parseFloat(D)){if(B>=parseFloat(C)){return true}}}}}return false}}}function adagioHideDiv(A){try{document.getElementById(A).style.display="none";document.getElementById(A).style.visibility="hidden"}catch(B){}}function adagioReadCookie(A){A=A+"=";return adagioGetCookieValue(document.cookie,A,";")}function adagioGetCookieValue(F,D,B){var C;var E;var A;if(F==null){return null}if(F.length>0){E=F.indexOf(D);if(E!=-1){E+=D.length;A=F.indexOf(B,E);if(A==-1){A=F.length}return unescape(F.substring(E,A))}}return null}function trackEvents(D){try{var B=document.createElement("img");var A=parseInt((Math.random()*(Date.parse(new Date()))));B.src="http://adlev.neodatagroup.com/ad/event77.jsp?x="+D.acampId+"."+D.locationId+"."+D.creativeId+".0."+A+".&type="+D.eventType+"&value="+D.eventValue;B.width="1";B.height="1";B.border="0";if(D.objId&&document.getElementById(D.objId)){document.getElementById(D.objId).appendChild(B)}else{document.body.appendChild(B)}}catch(C){}}function adagioWriteCookie(A,C,D){var E="/";var B=A+"="+escape(C);myPath=E;B+=";path="+myPath;if(D){if(D!=""&&D!=null){B+=";expires="+D}}document.cookie=B}function adagioSkinSetWidthHeight2(){var A=0;if(adagioGetWidth()>1020){A=(adagioGetWidth()-1020)/2}var D=adagioGetHeight();var B=document.getElementById("skinadvdx");var C=document.getElementById("skinadvsx");B.style.width=A+"px";B.style.height=D+"px";C.style.width=A+"px";C.style.height=D+"px";B=document.getElementById("skinadvdx");C=document.getElementById("skinadvsx");B.style.width=A+"px";B.style.height=D+"px";C.style.width=(A-5)+"px";C.style.height=D+"px"}function adagioSkinSetWidthHeight(){var A=0;if(adagioGetWidth()>1020){A=(adagioGetWidth()-1020)/2}var D=adagioGetHeight();var B=document.getElementById("skinadvdxa");var C=document.getElementById("skinadvsxa");B.style.width=A+"px";B.style.height=D+"px";C.style.width=A+"px";C.style.height=D+"px";B=document.getElementById("skinadvdx");C=document.getElementById("skinadvsx");B.style.width=A+"px";B.style.height=D+"px";C.style.width=A+"px";C.style.height=D+"px"}function adagioGetWidth(){var A=0;if(self.innerHeight){A=self.innerWidth}else{if(document.documentElement&&document.documentElement.clientHeight){A=document.documentElement.clientWidth}else{if(document.body){A=document.body.clientWidth}}}return A}function adagioGetHeight(){var A=0;if(self.innerHeight){A=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){A=document.documentElement.clientHeight}else{if(document.body){A=document.body.clientHeight}}}return A}var adagioEventUtil={addHandler:function(A,C,B){if(A.addEventListener){A.addEventListener(C,B,false)}else{if(A.attachEvent){A.attachEvent("on"+C,B)}else{A["on"+C]=B}}},removeHandler:function(A,C,B){if(A.removeEventListener){A.removeEventListener(C,B,false)}else{if(A.detachEvent){A.detachEvent("on"+C,B)}else{A["on"+C]=null}}},getEvent:function(A){return A?A:window.event},getTarget:function(A){return A.target||A.srcElement},preventDefault:function(A){if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}},stopPropagation:function(A){if(A.stopPropagation){A.stopPropagation()}else{A.cancelBubble=true}}};