var ebBS=unescape(ebO.bs);var ebConduitVer="54";var ebDLInvetationVer="";var ebBigS=unescape(ebO.bgs);var ebResourcePath=unescape(ebO.rp);var ebPluID=ebO.pi;if(ebPluID==0){fUseCompression=((typeof(ebO.ucm)=="undefined")||(ebO.ucm==1));fCacheResources=((typeof(ebO.uc)=="undefined")||(ebO.uc==1));if(!fCacheResources)ebResourcePath=ebResourcePath.replace(/BurstingRes/ig,"NCBurstingRes");else if(!fUseCompression)ebResourcePath=ebResourcePath.replace(/BurstingRes/ig,"NCMBurstingRes");}var index=ebResourcePath.indexOf(":");var ebStrProtocol=ebResourcePath.substr(0,index+3);function ebCStdBanner(nID){this.nAdID=-1;this.strRand="";this.fClicked=false;this.strWmode="opaque";this.strRef="gEbStdBanners[" + nID + "]";this.nType=0;this.strInvitationUrl="";this.nInvitationWidth=0;this.nInvitationHeight=0;this.nSurveyID=-1;this.strJumpURL="";this.strJumpTarget="_blank";this.strWinAttr="";this.strClickAURL="";this.strClickNURL="";this.clickAImg=new Image(1,1);this.clickNImg=new Image(1,1);this.InterPipeImg=new Image(1,1);this.handleInteraction=handleInteraction;this.redirect=redirect;init(this);function handleInteraction(){if(this.strJumpURL=="")return;if(this.strJumpTarget!="_blank"){Report(this);if(!this.fClicked){reportRS(this.strClickNURL,this.clickNImg,this.strRand);reportRS(this.strClickAURL,this.clickAImg,this.strRand);this.fClicked=true;}window.setTimeout(this.strRef+".redirect();",1000);}else {this.redirect();if(!gEbStdGlobals.fPreview){Report(this);if(!this.fClicked){reportRS(this.strClickNURL,this.clickNImg,this.strRand);reportRS(this.strClickAURL,this.clickAImg,this.strRand);this.fClicked=true;}}}}function redirect(){window.open(this.strJumpURL,this.strJumpTarget,this.strWinAttr);}function init(objRef){copyServerData(objRef);var fPopupControl=((typeof(ebO.pb)!="undefined")&&(ebO.pb==1))&&(ebO.ci==1);if(fPopupControl)return;addBanner(objRef);}function copyServerData(objRef){objRef.nAdID=ebO.ai;objRef.strPage=ebO.p;objRef.strRand=ebO.rnd;if(typeof(ebO.wm)!="undefined")objRef.strWmode=ebO.wm;copyServerClickData(objRef);copyServerInvitationData(objRef)}function copyServerClickData(objRef){if(typeof(ebO.ju)=="undefined")return;objRef.strJumpURL=unescape(ebO.ju);if(gEbStdGlobals.fPreview)objRef.strJumpTarget="_blank";else {switch(ebO.jt){case 0:objRef.strJumpTarget="_self";break;case 1:objRef.strJumpTarget="_blank";break;case 2:objRef.strJumpTarget="_top";break;}}objRef.strWinAttr="titlebar=1,resizable=1,scrollbars=1,directories=0,toolbar=1,";objRef.strWinAttr+="location="+ebO.jwloc+",menubar="+ebO.jwmb+",left="+ebO.jwl+",top="+ebO.jwt;if(ebO.jww>0)objRef.strWinAttr+=",width="+ebO.jww;if(ebO.jwh>0)objRef.strWinAttr+=",height="+ebO.jwh;if(typeof(ebO.acu)!="undefined")objRef.strClickAURL=unescape(ebO.acu);if(typeof(ebO.ncu)!="undefined")objRef.strClickNURL=unescape(ebO.ncu);}function copyServerInvitationData(objRef){if(typeof(ebO.si)=="undefined")return;objRef.nSurveyID=ebO.si;if((typeof(ebO.fiu)!="undefined")&&(typeof(ebO.fiv)!="undefined")&&(gEbStdGlobals.flFlashVer>=ebO.fiv)){objRef.strInvitationUrl=unescape(ebO.fiu);objRef.nInvitationWidth=ebO.iw;objRef.nInvitationHeight=ebO.ih;}else {objRef.strInvitationUrl=unescape(ebO.iiu);objRef.nInvitationWidth=ebO.iw;objRef.nInvitationHeight=ebO.ih;}}function addBanner(objRef){if(typeof(ebO.op)!="undefined")eval(unescape(ebO.op));var fShowFlash=false;if((typeof(ebO.fv)!="undefined")&&(gEbStdGlobals.flFlashVer>=ebO.fv))fShowFlash=(gEbStdGlobals.fIsMac)?isMacFlashSupported(objRef):true;if(fShowFlash)addBannerFlash(objRef);else {addBannerImg(objRef);objRef.nType=1;}}function addBannerFlash(objRef){var strFlashID="ebStdBanner"+gEbStdBanners.length;var fControlInv=(ebO.ci==1);var strFlashParams=fControlInv?'clickTag=javascript:ebStdLoadSurvey(\'' + objRef.strRef + '\')':getFlashParams(objRef);var strFlashUrl=unescape(ebO.fu);var strBannerTags="";if(gEbStdGlobals.nBrowser==1){if(!fControlInv)strBannerTags+='<scr'+'ipt for="' + strFlashID + '" event="FSCommand(command,args)">try{command = command.replace(/FSCommand:/ig,"");if(command.toLowerCase()=="ebinteraction")'+ objRef.strRef +'.handleInteraction();}catch(e){}</scr'+'ipt>';strBannerTags+='<object id="'+ strFlashID +'" name ="'+strFlashID;strBannerTags+='" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase='+ebStrProtocol+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#';strBannerTags+='version=' + ebO.fv +',0,0,0 width=' + ebO.w + ' height='+ebO.h;strBannerTags+='><PARAM NAME="movie" VALUE="' + ebResourcePath + "/" + strFlashUrl + '?';strBannerTags+=strFlashParams+'"><PARAM NAME="play" VALUE=true>';strBannerTags+='<PARAM NAME="wmode" VALUE="' + objRef.strWmode +'"><PARAM NAME="menu" VALUE=false><PARAM NAME="allowScriptAccess" value="always"></object>';}else {if(!fControlInv)strBannerTags+='<scr'+'ipt>function ' + strFlashID + '_DoFSCommand(command,args){try{command = command.replace(/FSCommand:/ig,"");if(command.toLowerCase()=="ebinteraction")' + objRef.strRef + '.handleInteraction();}catch(e){}}</scr'+'ipt>';strBannerTags+='<EMBED src="' + ebResourcePath + "/" + strFlashUrl + '?'+ strFlashParams + '" play=true ';strBannerTags+='id="' + strFlashID + '"name="' + strFlashID + '" quality=high ';strBannerTags+='wmode="' + objRef.strWmode + '" menu=false TYPE="application/x-shockwave-flash" PLUGINSPAGE="'+ebStrProtocol+'www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" ';strBannerTags+='allowScriptAccess="always" width=' + ebO.w + ' height=' + ebO.h + '></EMBED>';}document.write(strBannerTags);}function addBannerImg(objRef){var fControlInv=(ebO.ci==1);var strImgUrl=unescape(ebO.iu);strBannerTags="";if(fControlInv)strBannerTags+='<img src="'+ ebResourcePath + "/" + strImgUrl + '" width=' + ebO.w +' height=' + ebO.h + ' onclick="ebStdLoadSurvey(\''+ objRef.strRef +'\')" style="cursor:pointer;cursor:hand;"></img>';else {var fNoFlashRes=(typeof(ebO.fv)=="undefined");var strImgSrc=((gEbStdGlobals.fPreview)||fNoFlashRes)?ebResourcePath+"/"+strImgUrl:ebStrProtocol+ebBS+'/BurstingPipe/adServer.bs?cn=cdi&ai=' + ebO.ai + '&p=' + objRef.strPage + '&pi=' + ebPluID + '&ru=' + ebResourcePath + "/" + strImgUrl + '&ord='+objRef.strRand;var strCursor=(objRef.strJumpURL!="") ? "cursor:pointer;cursor:hand;" : "cursor:auto;";strBannerTags+='<img src="' + strImgSrc + '" width=' + ebO.w +' height=' + ebO.h + ' onclick="' + objRef.strRef + '.handleInteraction()" style="'+strCursor+'"></img>';}document.write(strBannerTags);}function getFlashParams(objRef){var strDomain=gEbStdGlobals.getHostName();var conduitPath=ebBigS+"/res/ebV" + ebConduitVer + "_";var interactionTime=ebBigS+"/Res/ebInteractionTime.swf";var clickTagHandler=getClickTagURL(objRef);var strUrl="ebDomain="+strDomain+"&ebAdID="+objRef.nAdID+"&cp="+conduitPath+"&clickTag="+escape(clickTagHandler)+"&clickTAG="+escape(clickTagHandler)+"&ebIntTime="+interactionTime;return strUrl;}function Report(objRef){objRef.InterPipeImg.src=buildIntUrl(objRef);}function buildIntUrl(objRef){var reportURL=ebStrProtocol+ebBS+"/BurstingPipe/BurstingInteractionsPipe.asp";var dataSeperator="~";var interSeperator="^";var strPage=objRef.strPage;strPage=strPage.replace("~","_");strPage=strPage.replace("^","_");strPage=strPage.replace("|","_");var strIsClick=(objRef.fClicked)?"0":"1";var interParams="0"+dataSeperator+strIsClick+dataSeperator+strIsClick+dataSeperator+"1"+dataSeperator+"2"+dataSeperator+"0"+dataSeperator+"0";var reportParams=objRef.nAdID+dataSeperator+strPage+dataSeperator+ebPluID;var intName="_eyeblaster";if(objRef.nType)intName="ebDefaultClick";reportParams+=interSeperator+intName+dataSeperator+interParams;reportURL+="?interactionsStr=" + escape(reportParams) + "&ebRandom="+Math.random();return reportURL;}function reportRS(strURL,reportImg,strRand){if(strURL=="")return;strURL=strURL.replace(/\[ebRandom\]/ig,strRand);strURL=strURL.replace(/\[timestamp\]/ig,strRand);reportImg.src=strURL;}function getClickTagURL(objRef){var strURL="";if(!gEbStdGlobals.fPreview)strURL=buildIntUrl(objRef)+"&jumpUrl="+escape(objRef.strJumpURL);else strURL=objRef.strJumpURL;return strURL;}function isMacFlashSupported(objRef){var fSupported=true;var nMinAdIDNoNeedVer8=0;if(ebBS.indexOf("dev")!=-1)nMinAdIDNoNeedVer8=48440;else if(ebBS.indexOf("int")!=-1)nMinAdIDNoNeedVer8=180990;else if(ebBS.indexOf("pilot")!=-1)nMinAdIDNoNeedVer8=227853;else nMinAdIDNoNeedVer8=260500;if((objRef.nAdID<nMinAdIDNoNeedVer8)&&(gEbStdGlobals.flFlashVer<8)){fSupported=false;}return fSupported;}}function ebCStdGlobals(){this.nBrowser=0;this.fIsMac=false;this.flFlashVer=0;this.nDbgLvl=0;this.fPreview=false;this.debugWin=null;this.init=init;this.testFlash=testFlash;this.getHostName=getHostName;function init(){this.fPreview=((typeof(ebO.pr)!="undefined")&&ebO.pr);this.nDbgLvl=ebO.d;detection(this);flashDetection(this);}function testFlash(nVer){this.flFlashVer=nVer;var nNextVer=nVer-1;if(nVer==0)return;var strTest="try{new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + nVer + "');}catch(e){gEbStdGlobals.testFlash(" + nNextVer + ");}";eval(strTest);}function detection(objRef){var agt=navigator.userAgent.toLowerCase();objRef.nBrowser=0;if((agt.indexOf("msie") != -1) && (agt.indexOf("opera")==-1))objRef.nBrowser=1;else if((agt.indexOf("netscape6") != -1) || (agt.indexOf("netscape/")!=-1))objRef.nBrowser=2;else if(agt.indexOf('firefox/')!=-1)objRef.nBrowser=3;else if(agt.indexOf('safari/')!=-1)objRef.nBrowser=4;if(agt.indexOf("mac os x")!=-1)objRef.fIsMac=true;if(objRef.nBrowser==0){}}function flashDetection(objRef){if(objRef.nBrowser==1)objRef.testFlash(10.0);else detectNNFlash(objRef);}function detectNNFlash(objRef){var ver=0;var releaseVer=0;if(navigator.mimeTypes["application/x-shockwave-flash"]){var plugin=navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;if(plugin==null)return;ver=(plugin.description.substring(plugin.description.indexOf("Shockwave Flash")+15));releaseVer=parseInt(ver.substr(ver.indexOf("r")+1,ver.length));ver=parseInt(ver.substr(0,ver.indexOf("r")));}if(((ver==6)&&(releaseVer>=40))||(ver>6))objRef.flFlashVer=ver;}function getHostName(){var strPage="";if(document.location.toString().indexOf("javascript:")==0)eval('try{strPage = parent.document.location.hostname;}catch(e){strPage = "";}');else eval('try{strPage = document.location.hostname;}catch(e){strPage = "";}');return strPage;}}function ebLoadScript(strScriptID,strScriptSrc){document.write("<scr"+"ipt id="+ strScriptID + " src=" + strScriptSrc +"></scr"+"ipt>");}function ebLoadIframe(strIframeSrc){document.write("<iframe src="+ strIframeSrc +" width=0 height=0></iframe>");}function ebStdLoadSurvey(objName){var bannerObj=eval("try{"+objName+"}catch(e){}");if(bannerObj==null){return;}if(bannerObj.loadSurvey)bannerObj.loadSurvey();else gEbfLoadSurvey=true;}function ebDebug(msg,color){}if(typeof(ebO.osd)!="undefined")eval(unescape(ebO.osd));if(typeof(gEbStdGlobals)=="undefined"){gEbStdGlobals=new ebCStdGlobals();gEbStdGlobals.init();}if(typeof(gEbStdBanners)=="undefined")gEbStdBanners=new Array();gEbStdBanners[gEbStdBanners.length]=new ebCStdBanner(gEbStdBanners.length);ebO=null;
