gEbfOfflineDemo=false;var strScriptPrefix="";if(typeof(gfEbUseCompression)=="undefined")gfEbUseCompression=true;if(typeof(gfEbCacheResources)=="undefined")gfEbCacheResources=true;if(typeof(gnEbLowBWLimit)=="undefined")gnEbLowBWLimit=120;if(!gfEbUseCompression)strScriptPrefix="NCM";var strResPrefix="";if(!gfEbCacheResources)strResPrefix="NC";else if(!gfEbUseCompression)strResPrefix="NCM";
var ebResHost = "ds.serving-sys.com";
var ebScriptsHost = "ds.serving-sys.com";
var ebBSmallS="http://" + ebScriptsHost + "/BurstingScript/ebBannerServing.js";
var ebBigS="http://" + ebScriptsHost + "/" + strScriptPrefix + "BurstingCachedScripts/";
var ebResourcePath="http://" + ebResHost + "/" + strResPrefix + "BurstingRes/";
var ebBMainScriptVer="_58_6";
var ebBTemplateVer="_58_5";
var ebDLInvetationVer="_55_0";
var ebBS = "bs.serving-sys.com";
var ebDataCapture = "datacapture.serving-sys.com";
var ebConduitVer="ebV54_";
var ebIntTimeVer="V55";
var ebFLVStreamingPrefix = "http://sitestream.serving-sys.com/flashgen.cgi?sname=";
var ebFLVStreamingSuffix="&aname=eyeblaster_vitalstream_com/_definst_";
var ebPluID="0";
var nEbCSVersion = "5.6";
var gEbnMaxTimerTime=15*1000*60;
function ebCBanner(){this.objWindow=null;this.reportNImg=null;this.reportAImg=null;this.fNUrlUpdated=false;this.fAUrlUpdated=false;this.fIsIE=false;this.nPlatform=0;this.nBrowser=0;this.flFlashVer=0;this.flAudioVer=0;this.init=init;this.debug=debug;this.setBlankImage=setBlankImage;this.showControlBanner=showControlBanner;this.setPlayRemoteServers=setPlayRemoteServers;this.showBanner=showBanner;this.testFlash=testFlash;function init(){var strRand=new String(Math.random());gEbBAd.strRand=strRand.substr(strRand.indexOf(".")+1)+new Date().getTime();var strNUrl="";var strAUrl="";if(gEbBAd.playRS){if(gEbBAd.playRS.strAUrl)strAUrl=gEbBAd.playRS.strAUrl;if(gEbBAd.playRS.strNUrl)strNUrl=gEbBAd.playRS.strNUrl;this.setPlayRemoteServers(strAUrl,strNUrl);}var fSupported=detection(this);if(!fSupported&&!ebIsPreview())addScript(gEbBAd.strNonSupported);else {flashDetection(this);buildRequest(this);}}function debug(strMsg){if((this.objWindow==null)||this.objWindow.closed){var name="BannerDebug_"+document.domain;name=name.replace(/\./g,"_");name=name.replace(/\-/g,"_");this.objWindow=window.open("",name);if(this.objWindow==null)return;eval('try{var dummy=this.objWindow.document.title;}catch(e){}');if(typeof(dummy)=="undefined")return;if(this.objWindow.document.title==""){this.objWindow.document.open("text/html","aaa");eval('try{this.objWindow.document.write("<HTML><HEAD><TITLE>" + this.objWindow.name + "</TITLE></HEAD><BODY><FONT face=\'Times New Roman (Hebrew)\' size=2>");}catch(e){}');}else eval('try{this.objWindow.document.writeln("******************<BR>New Banner<BR>******************<BR>");}catch(e){}');}strMsg=strMsg.replace(/ /g,"&nbsp;");var line="<FONT color=blue style='BACKGROUND-COLOR:#ffffff'>";line=line+strMsg+"</FONT><BR>";eval('try{this.objWindow.document.writeln(line);}catch(e){}');}function setBlankImage(strUrl){var strTag="<img src='" + strUrl + "' width=" + gEbBAd.nWidth + " height=" + gEbBAd.nHeight + "></img>";document.write(strTag);}function showControlBanner(strControlUrl,nAdID,nSurveyID,strPopUpUrl,nPopUpWidth,nPopUpHeight){var fFlashRes=(strControlUrl.indexOf(".swf")!=-1);var surveyURL="http://" + ebBS + "/BurstingPipe/DLPipe.asp?SurveyID=" + nSurveyID + "&AdID="+nAdID;var src=ebResourcePath+strControlUrl;var strTag="";var w=gEbBAd.nWidth;var h=gEbBAd.nHeight;if(fFlashRes){var surveyClickURL="ebOpenPopUpInvitation('" + escape(surveyURL) + "','scrollbars=1,resizable=1,width=775,height=700')";src+="?clickTag=javascript:"+surveyClickURL;if(this.fIsIE){strTag+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '+'codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0 width=' + w + ' height=' + h + '>'+'<PARAM NAME="movie" VALUE="' + src + '">'+'<PARAM NAME="play" VALUE=true>'+'<PARAM NAME="wmode" VALUE="opaque">'+'<PARAM NAME="menu" VALUE=false>'+'</object>';}else {strTag+='<EMBED src="'+src+'" play=true'+'" quality=high wmode=opaque menu=false'+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"'+' width=' + w + ' height='+h+'></EMBED>';}}else {var surveyClickURL="ebOpenPopUpInvitation('" + surveyURL + "','scrollbars=1,resizable=1,width=775,height=700')";strTag="<img src='" + src + "' onclick=" + surveyClickURL + " width=" + w + " height=" + h + " style='cursor:pointer;cursor:hand'></img>";}document.write(strTag);ebPrepareInvitationData(nAdID,nSurveyID,strPopUpUrl,nPopUpWidth,nPopUpHeight);if(this.fIsIE){window.attachEvent("onbeforeunload",ebShowBannerInvitation);window.attachEvent("onunload",ebShowBannerInvitation);}else {window.addEventListener("beforeunload",ebShowBannerInvitation,false);window.addEventListener("unload",ebShowBannerInvitation,false);}}function setPlayRemoteServers(strAUrl,strNUrl){if(ebIsPreview())return;if((strNUrl!="")&&(!this.fNUrlUpdated)){this.fNUrlUpdated=true;this.reportNImg=new Image(1,1);updateRS(strNUrl,gEbBAd.strRand,this.reportNImg);}if((strAUrl!="")&&(!this.fAUrlUpdated)){this.fAUrlUpdated=true;this.reportAImg=new Image(1,1);updateRS(strAUrl,gEbBAd.strRand,this.reportAImg);}}function showBanner(nDbgLvl,strTemplate,strAdUrl,strBannerData){gEbAdUrl=strAdUrl;gEbTemplateName=strTemplate;gEbDbgLvl=nDbgLvl;gEbServerData=strBannerData;if(shouldAddInnerIframe())addInnerIframe(strBannerData);else addClientScripts(strTemplate,strAdUrl);}function updateRS(url,strRand,reportImg){url=url.replace(/\[ebRandom\]/ig,strRand);url=url.replace(/\[timestamp\]/ig,strRand);reportImg.src=url;}function detection(myObj){var agt=navigator.userAgent.toLowerCase();if((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1))myObj.nPlatform=1;if((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1))myObj.nPlatform=2;if(agt.indexOf("windows nt")!=-1)myObj.nPlatform=4;if(agt.indexOf("windows nt 5.1")!=-1)myObj.nPlatform=8;if(agt.indexOf("win 9x 4.90")!=-1)myObj.nPlatform=16;if(agt.indexOf("winnt")!=-1)myObj.nPlatform=32;var fIsIE=((agt.indexOf("msie") != -1) && (agt.indexOf("opera")==-1));if(fIsIE){myObj.fIsIE=true;myObj.flAudioVer=1;var nEbMsieIndex=agt.indexOf("msie ");var strEbIeVer=agt.substring(nEbMsieIndex+5,agt.indexOf(";",nEbMsieIndex));var flIEVer=parseFloat(strEbIeVer);if(flIEVer>=5.0){if(flIEVer<5.5)myObj.nBrowser=1;else if(flIEVer<6.0)myObj.nBrowser=2;else myObj.nBrowser=4;if(agt.indexOf("aol")!=-1)myObj.nBrowser*=64;}}else {var flNNVer=0;var N6index=agt.indexOf('netscape6');if(N6index!=-1)flNNVer=parseFloat(agt.substr(N6index+10,3));else {N6index=agt.indexOf('netscape/');if(N6index!=-1)flNNVer=parseFloat(agt.substr(N6index+9,3));}if(flNNVer>=6.2){if(flNNVer==6.2)myObj.nBrowser=16;else myObj.nBrowser=32;}}return(((myObj.nPlatform)&&(myObj.nBrowser))!=0);}function flashDetection(myObj){if(myObj.fIsIE)myObj.testFlash(7.0);else detectNNFlash(myObj);gEbFlashVer=myObj.flFlashVer;}function testFlash(nVer){this.flFlashVer=nVer;var nNextVer=nVer-1;if(nVer==0)return;var strTest="try{new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + nVer + "');}catch(e){gEbCurBanner.testFlash(" + nNextVer + ");}";eval(strTest);}function detectNNFlash(myObj){var ver=0;var releaseVer=0;if(navigator.mimeTypes["application/x-shockwave-flash"]){var plugin=navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;if(plugin){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))myObj.flFlashVer=ver;}function buildRequest(myObj){var req="<Type:Command;Code:14;objRef:gEbCurBanner";if(gEbBAd.nFlightID)req+=";FlightID:"+gEbBAd.nFlightID;if(gEbBAd.fTest)req+=";AdMode:Test";if(gEbBAd.nAdID)req+=";EyeblasterID:"+gEbBAd.nAdID;if(ebIsPreview())req+=";ForceDisplay:1";req+=";PluID:"+ebPluID;if(gEbBAd.strPage){gEbBAd.fWebPageSource=1;}else {eval('try{gEbBAd.strPage = document.location.hostname;}catch(e){gEbBAd.strPage = "";}');gEbBAd.fWebPageSource=0;}req+=";Page:" + gEbBAd.strPage + ";WebPageSource:"+gEbBAd.fWebPageSource;var cookieData=ebReadCookie("ebInvitationTime");if(cookieData!=""){var dtCurrTime=new Date().getTime();var flTime=(parseFloat(dtCurrTime)-parseFloat(cookieData))/1000;req+=";TimeSinceInvitation:"+flTime;}req+=";>";var plugins="<Type:Plugin;AudioVersion:"+myObj.flAudioVer+";FlashVersion:"+myObj.flFlashVer+";Platform:"+myObj.nPlatform+";Browser:"+myObj.nBrowser;var res=0;switch(window.screen.width){case 640:res=1;break;case 800:res=2;break;case 1024:res=4;break;case 1152:res=8;break;case 1280:res=16;break;case 1600:res=32;break;}req+=plugins+";Resolution:" + res + ";>";var src='http://' + ebBS + '/BurstingPipe/AdServerPipe.asp?param='+escape(req)+"&ord="+gEbBAd.strRand+"&CSVersion="+nEbCSVersion;var bwData=ebReadCookie("ebNewBandWidth");var nBWVal=0;var nBWTime=0;if(bwData.indexOf(":")!=-1){var cookieParts=bwData.split(":");nBWVal=cookieParts[0];nBWTime=cookieParts[1];}var dtNow=new Date().getTime();var nDelta=dtNow-nBWTime;if(nBWVal!=-1)src=src+"&BWVal=" + nBWVal + "&BWDTime="+nDelta;addScript(src);}function addScript(src){document.write("<scr" + "ipt src='" + src + "'></scr" + "ipt>");}function addClientScripts(strTemplate,strAdUrl){var fAddDbgScripts=((gEbDbgLvl>0)&&!gEbfOfflineDemo);var name="ebBannerMain";if(fAddDbgScripts)name+="Debug";var src=ebBigS+name+ebBMainScriptVer+".js";addScript(src);name="BTemplates";if(fAddDbgScripts)name+="Debug";src=ebBigS+name+ebBTemplateVer+"/" + strTemplate + ".js";addScript(src);src=ebResourcePath+strAdUrl;addScript(src);}function shouldAddInnerIframe(){var fResult=((typeof(gfEbInIframe)!="undefined")&&gfEbInIframe&&(gEbTemplateName=="ExpBanner"));if(fResult&&(typeof(gfEbAOLIframe)!="undefined")&&gfEbAOLIframe){eval("try{var dummy = parent.document.location; fResult = false;}catch(e){}");if(!fResult)gstrEbDisplayPos="window";}return fResult;}function addInnerIframe(strData){var src=ebGetAddineyeLocation();if(src=="")return;if(!gEbBAd.nDownloadMode)gEbBAd.nDownloadMode=1;if(!gEbBAd.strWmode)gEbBAd.strWmode="";gEbBannerData=gEbBAd.strRand+"::"+gEbBAd.nDownloadMode+"::"+gEbBAd.nWidth+"::"+gEbBAd.nHeight+"::"+gEbBAd.strWmode+"::"+gEbBAd.strPage+"::"+gEbBAd.fWebPageSource;var strAdData="gEbServerData='"+gEbServerData+"';gEbBannerData='"+gEbBannerData+"';gEbInteractions='";if(typeof(gEbInteractions)!="undefined")strAdData+=gEbInteractions;strAdData+="';" + "ebBSmallS='"+escape(ebBSmallS)+"';gEbDbgLvl="+gEbDbgLvl+";gEbFlashVer="+gEbFlashVer+";gEbTemplateName='"+gEbTemplateName+"';gEbAdUrl='" + gEbAdUrl + "';";strAdData+="gfEbUseCompression="+gfEbUseCompression+";gfEbCacheResources="+gfEbCacheResources+";gnEbLowBWLimit=" + gnEbLowBWLimit + ";";if(typeof(gfEbChangeRelativeElements)!="undefined")strAdData+="gfEbChangeRelativeElements=" + gfEbChangeRelativeElements + ";";if(typeof(gfEbInlineBanner)!="undefined")strAdData+="gfEbInlineBanner=" + gfEbInlineBanner + ";";if(typeof(gEbEyeDivRefElement)!="undefined")strAdData+="gEbEyeDivRefElement = '" + gEbEyeDivRefElement + "';";if(typeof(gstrEbDisplayPos)!="undefined")strAdData+="gstrEbDisplayPos = '" + gstrEbDisplayPos + "';";src=src+"?strBanner="+escape(strAdData);document.write("<iframe src=" + src + "></iframe>");}}function ebIsPreview(){if((typeof(gfEbPreview)!="undefined")&&gfEbPreview)return(true);return(false);}function ebReadCookie(name){var strDomain=".";if(typeof(gstrEbDomain)!="undefined" && (gstrEbDomain != ""))strDomain+=gstrEbDomain;else {eval('try{strDomain = "." + document.location.hostname;}catch(e){strDomain = "";}');}var cookie=document.cookie;name+='_'+strDomain;var start=cookie.indexOf(name+"=");if(start==-1)return("");start+=name.length+1;var end=cookie.indexOf(';',start);if(end==-1)end=cookie.length;var cookieVal=cookie.substring(start,end);return(unescape(cookieVal));}function ebGetAddineyeLocation(){var src="eyeblaster/addineyeV2.html";if((typeof(gstrEbIframeLocation)!="undefined") && (gstrEbIframeLocation != ""))src=gstrEbIframeLocation;if(src.substr(0,4)!="http"){var siteHost=ebGetHostName(document.referrer);if(siteHost=="")return "";src="http://" + siteHost + "/"+src;}return (src);}function ebGetHostName(url){var i;var host="";url=url.toLowerCase();if((url.length>=7)&&(url.substr(0,7)=="http://"))host=url.substr(7);else if((url.length>=8)&&(url.substr(0,8)=="https://"))host=url.substr(8);else host=url;i=host.indexOf("/");if(i>0)host=host.substr(0,i);return(host);}function ebPrepareInvitationData(nAdID,nSurveyID,strPopUpUrl,nPopUpWidth,nPopUpHeight){var surveyURL="http://" + ebBS + "/BurstingPipe/DLPipe.asp?SurveyID=" + nSurveyID + "&AdID="+nAdID;gEbInvitationURL=ebBigS+"/DLInvitation" + ebDLInvetationVer + ".html?"+"InvitationUrl="+escape(ebResourcePath+strPopUpUrl)+"&AdID="+nAdID+"&SurveyID="+nSurveyID+"&SurveyUrl="+escape(surveyURL);gEbInvitationProp="scrollbars=0,resizable=0"+",width="+nPopUpWidth+",height="+nPopUpHeight;}function ebOpenPopUpInvitation(url,prop){gEbfInvitaionWasOpened=true;window.open(url,"_blank","toolbar=0,location=0,directories=0,status=0,menubar=0,"+prop);}function ebShowBannerInvitation(){if((typeof(gEbfInvitaionWasOpened)!="undefined")&&gEbfInvitaionWasOpened)return;ebOpenPopUpInvitation(gEbInvitationURL,gEbInvitationProp);}var gEbCurBanner=new ebCBanner();if((typeof(gfEbOnInternalIframe)!="undefined")&&gfEbOnInternalIframe)gEbCurBanner.showBanner(gEbDbgLvl,gEbTemplateName,gEbAdUrl,gEbServerData);else if(typeof(gEbBAd)!="undefined")gEbCurBanner.init();