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,status=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;strUrl+=setSmartVersioningFlashVars(objRef);return strUrl;}function setSmartVersioningFlashVars(objRef){var xmlPath="";var smartFlashVars="";var tempAd;eval('try{tempAd=new ebAd_' +objRef.nAdID+ '()}catch(e){tempAd=null;ebDebug("setXMLPathFlashVars: No AdJS was Loaded","blue");}');if(tempAd!=null){xmlPath=tempAd.strXML;if(xmlPath!=""){if((typeof(ebAdXmlPath)!="undefined") && (ebAdXmlPath != ""))xmlPath=ebAdXmlPath;else if(!gEbFlyLocal)xmlPath=ebResourcePath+xmlPath;smartFlashVars="&ebAdXML=" + xmlPath + "&"+buildAdditionalResStr(tempAd);}}return smartFlashVars;}function buildAdditionalResStr(objRef){var strAdditionalRes="";var assets=objRef.additionalAssets;for(var strName in assets){try{if(!(assets[strName] instanceof Array))continue;var asset=assets[strName];strAdditionalRes=getNameAsset(strName,strAdditionalRes);var info=getAssetProperties(objRef,strName);strAdditionalRes+=getUrlAsset(info.strURL);}catch(e){}}for(var name in objRef.nonVideoAssets){try{strAdditionalRes=getNameAsset(name,strAdditionalRes);strAdditionalRes+=getUrlAsset(objRef.nonVideoAssets[name].url);}catch(e){}}return strAdditionalRes;}function getAssetProperties(objRef,strMovieName){try{var asset=objRef.additionalAssets[strMovieName];var info;if(asset[0].length)info=asset[0][0];else if(asset[1].length)info=asset[1][0];else if(asset[2].length)info=asset[2][0];else if(asset[3].length)info=asset[3][0];else if(asset[4].length)info=asset[4][0];return info;}catch(e){}}function getNameAsset(name,additionalRes){if(additionalRes!="")additionalRes+="&";additionalRes+=name+"=";return additionalRes;}function getUrlAsset(urlAdditionalAsset){var additionalRes="";additionalRes+=(gEbFlyLocal)?urlAdditionalAsset:ebResourcePath+urlAdditionalAsset;return additionalRes;}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.getHostName=getHostName;function init(){this.fPreview=((typeof(ebO.pr)!="undefined")&&ebO.pr);this.nDbgLvl=ebO.d;detection(this);flashDetection(this);}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){var flFlashVer;try{var flashDetector=new ebCFlashDetector();flFlashVer=(objRef.nBrowser==1)?flashDetector.getIEFlash():flashDetector.getMozillaFlash();gEbStdGlobals.flFlashVer=flFlashVer;}catch(e){gEbStdGlobals.flFlashVer=0;}}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;function ebCFlashDetector(){this.getIEFlash=getIEFlash;this.getMozillaFlash=getMozillaFlash;function getIEFlash(){var strFlashVersion=getMajorMinorFlashVersion(7);var activeX;if(!strFlashVersion){try{activeX=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");strFlashVersion="WIN 6,0,21,0";activeX.AllowScriptAccess="always";strFlashVersion=activeX.GetVariable("$version");}catch(e){if(!activeX)strFlashVersion=getMajorMinorFlashVersion(3);}}strFlashVersion=splitFlashMajorMinorVersions(strFlashVersion);var nFlashVer=Number(strFlashVersion);return isNaN(nFlashVer)?0:nFlashVer;}function getMajorMinorFlashVersion(nVersion){try{var activeX=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+nVersion);return activeX.GetVariable("$version");}catch(e){return "";}}function splitFlashMajorMinorVersions(strFlashVersion){if(strFlashVersion){var tempArray=strFlashVersion.split(" ");var tempString=tempArray[1];var versionArray=tempString.split(",");var versionMajor=versionArray[0];var versionMinor=versionArray[1];var versionRevision=versionArray[2];return versionMajor+"."+versionMinor+versionRevision;}return 0;}function getMozillaFlash(){var ver=0;var releaseVer=0;var versionMajor=0;var versionMinor=0;var versionRevision=0;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash"]){var flashDescription=navigator.plugins["Shockwave Flash"].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");versionMajor=tempArrayMajor[0];versionMinor=tempArrayMajor[1];versionRevision=descArray[3];if(versionRevision=="")versionRevision=descArray[4];if(isNaN(versionRevision[0]))versionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0)versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"));}}var nFlashVer=Number(versionMajor+"."+versionMinor+versionRevision);if(isNaN(nFlashVer))return 0;if(((versionMajor==6)&&(versionRevision>=40))||(versionMajor>6))return nFlashVer;else return 0;}}
