if(typeof(gEbFlyLocal)=="undefined")gEbFlyLocal=false;ebBS=unescape(ebO.bs);ebIntTimeVer=gEbFlyLocal?"" : "V62_12";ebConduitVer=gEbFlyLocal?"" : "54";ebBigS=unescape(ebO.bgs);ebResourcePath=unescape(ebO.rp);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.title="";this.strFlashObjID="";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(gEbFlyLocal)window.parent.ebHandleFsCommandsPrev("ebClickthrough", "", "Banner");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(){if((this.strFlashObjID=="")||!useFlashRedirect(this.strFlashObjID,this.strJumpURL,this.strJumpTarget))window.open(this.strJumpURL,this.strJumpTarget,this.strWinAttr);}function init(objRef){copyServerData(objRef);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;if(typeof(ebO.title)!="undefined")objRef.title=ebO.title;copyServerClickData(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 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){objRef.strFlashObjID="ebStdBanner"+gEbStdBanners.length;var strFlashParams=getFlashParams(objRef);var strFlashUrl=unescape(ebO.fu);if(!gEbFlyLocal)strFlashUrl=ebResourcePath+"/"+strFlashUrl;var handler=objRef.strFlashObjID+'_DoFSCommand(command,args)';var strBannerTags='<scr'+'ipt>function ' + handler + '{try{command = command.replace(/FSCommand:/ig,"");if((command.toLowerCase()=="ebinteraction") || (command.toLowerCase()=="ebclickthrough"))' + objRef.strRef + '.handleInteraction();}catch(e){}}</scr'+'ipt>';if(gEbStdGlobals.nBrowser==1){strBannerTags+='<scr'+'ipt for="' + objRef.strFlashObjID + '" event="FSCommand(command,args)">try{'+handler+';}catch(e){}</scr'+'ipt>';strBannerTags+='<object id="'+ objRef.strFlashObjID +'" name ="'+objRef.strFlashObjID;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 + ' title="' + objRef.title + '"';strBannerTags+='><PARAM NAME="movie" VALUE="'+strFlashUrl;if(ebO.fv>=6){strBannerTags+='">'+'<PARAM NAME="FlashVars" VALUE="'+strFlashParams+'">';}else {strBannerTags+='?' + strFlashParams + '">';}strBannerTags+='<PARAM NAME="play" VALUE=true>';strBannerTags+='<PARAM NAME="wmode" VALUE="' + objRef.strWmode +'"><PARAM NAME="menu" VALUE=false><PARAM NAME="allowScriptAccess" value="always"></object>';}else {strBannerTags+='<EMBED src="'+strFlashUrl;if(ebO.fv>=6){strBannerTags+='" FlashVars="' + strFlashParams + '" ';}else {strBannerTags+='?'+ strFlashParams+'"';}strBannerTags+=' play=true '+'id="' + objRef.strFlashObjID + '"name="' + objRef.strFlashObjID + '" 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 + ' title="' + objRef.title + '"' + '></EMBED>';}document.write(strBannerTags);}function addBannerImg(objRef){var strImgUrl=unescape(ebO.iu);if(!gEbFlyLocal)strImgUrl=ebResourcePath+"/"+strImgUrl;strBannerTags="";var fNoFlashRes=(typeof(ebO.fv)=="undefined");var strImgSrc=((gEbStdGlobals.fPreview)||fNoFlashRes)?strImgUrl:ebStrProtocol+ebBS+'/BurstingPipe/adServer.bs?cn=cdi&ai=' + ebO.ai + '&p=' + objRef.strPage + '&pi=' + ebPluID + '&ru=' + strImgUrl + '&ord='+objRef.strRand;var strCursor=(objRef.strJumpURL!="") ? "cursor:pointer;cursor:hand;" : "cursor:auto;";strBannerTags+='<img src="' + strImgSrc + '" width=' + ebO.w +' height=' + ebO.h + ' title="' + objRef.title + '"' + ' 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" + ebIntTimeVer + ".swf";var clickTagHandler=getClickTagURL(objRef);var strFSCmdHandler="";if(gEbStdGlobals.nBrowser!=1)strFSCmdHandler=objRef.strFlashObjID+"_DoFSCommand";var strUrl="ebDomain="+strDomain+"&ebAdID="+objRef.nAdID+"&cp="+conduitPath+"&clickTag="+escape(clickTagHandler)+"&clickTAG="+escape(clickTagHandler)+"&ebIntTime="+interactionTime+"&ebFSCmdHandler="+strFSCmdHandler;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=gEbFlyLocal?"ReportPage_" + HTMLPageVer + ".html":objRef.strJumpURL;}else{var strReportUrl=ebStrProtocol+ebBS+'/BurstingPipe/BannerRedirect.asp?Page=' + objRef.strPage + '&PluID=' + ebPluID + '&Pos=[ebRandom]&EyeblasterID=' + objRef.nAdID + '&di=0';var strAReportUrl=objRef.strClickAURL;var strNReportUrl=objRef.strClickNURL;strURL=ebBigS+"/ReportPage" + ebReportPageVer + ".html"+"?ebReportURL="+escape(strReportUrl)+"$$ebNReportURL="+escape(strNReportUrl)+"$$ebAReportURL="+escape(strAReportUrl)+"$$ebImpressionID="+objRef.strRand;}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 useFlashRedirect(flashObjID,strJumpURL,strJumpTarget){var flashObj=document.getElementById(flashObjID);if(!flashObj)return false;var redirectFunc="ebOpenJumpURL";var fIsAS3=(typeof(flashObj[redirectFunc])!="undefined");var fUseFlash=false;if((gEbStdGlobals.nBrowser==4)&&fIsAS3){try{fUseFlash=flashObj[redirectFunc](strJumpURL,strJumpTarget);}catch(e){fUseFlash=false;}}return fUseFlash;}}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("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 detectMozillaFlash(objRef);}function detectMozillaFlash(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 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;