if(typeof dartCallbackObjects=="undefined")var dartCallbackObjects=new Array;if(typeof dartCreativeDisplayManagers=="undefined")var dartCreativeDisplayManagers=new Object;if(typeof dartMotifAds=="undefined")var dartMotifAds=new Array;if(!self.dartLoadedGlobalTemplates_55_08)self.dartLoadedGlobalTemplates_55_08={};if(self.dartLoadedGlobalTemplates_55_08["expanding"])self.dartLoadedGlobalTemplates_55_08["expanding"].isLoaded=true;
function RichMediaCreativeDisplayManager_55_08(a,b){this.creative=a;this.creativeIdentifier=a.creativeIdentifier;this.previewMode=a.previewMode;this.debugEventsMode=a.debugEventsMode;this.renderingId=a.renderingId;this.creativeType=a.type;this.mtfNoFlush=a.mtfNoFlush;this.dartPopupArray=new Object;this.isDisplayTimerRunning=false;this.fsCommandHandlers=new Object;this.rootElementArray=new Array;this.sourceIframe=typeof b!="undefined"?b:null;this.overlay=null;this.dartEventBin=null;this.previewHandler=
null;this.init(a);dartMotifAds[dartMotifAds.length]=this.creative}RichMediaCreativeDisplayManager_55_08.prototype=new RichMediaCore_55_08;
RichMediaCreativeDisplayManager_55_08.prototype.init=function(a){this.createEventBin(a);this.assets=new Object;for(var b in this.creative.assets)if(!this.isPartOfArrayPrototype(b)){var c=this.creative.assets[b];this.assets[c.variableName]=c}if(a.type==this.CREATIVE_TYPE_FLOATING_WITH_REMINDER||a.type==this.CREATIVE_TYPE_INPAGE_WITH_FLOATING||a.type==this.CREATIVE_TYPE_INPAGE_WITH_OVERLAY)this.dualAssetManager=new DualAssetManager_55_08(a,this);if(a.type==this.CREATIVE_TYPE_EXPANDING||a.type==this.CREATIVE_TYPE_FLOATING||
a.type==this.CREATIVE_TYPE_FLOATING_WITH_REMINDER||a.type==this.CREATIVE_TYPE_INPAGE_WITH_FLOATING)this.pageElementsManager=new PageElementsManager_55_08(a,this)};
RichMediaCreativeDisplayManager_55_08.prototype.createEventBin=function(a){if(!this.previewMode)this.dartEventBin=new RichMediaEventBin_55_08(this.creativeIdentifier,this.mtfNoFlush);else if(this.debugEventsMode){this.initDebugHandler(a);var b=this.getSourceIframe();if(typeof DebugEventBin_55_08!="undefined")this.dartDebugEventBin=new DebugEventBin_55_08(this.creativeIdentifier,this.previewHandler);else if(this.isServedInIframe()&&typeof b.contentWindow.DebugEventBin_55_08!="undefined")this.dartDebugEventBin=
new b.contentWindow.DebugEventBin_55_08(this.creativeIdentifier,this.previewHandler)}};RichMediaCreativeDisplayManager_55_08.prototype.initDebugHandler=function(a){try{if(typeof DARTDebugEventHandler!="undefined")this.previewHandler=new DARTDebugEventHandler;else if(typeof self.parent.DARTDebugEventHandler!="undefined"){self.parent.globalTemplatePreviewHandler=new self.parent.DARTDebugEventHandler;this.previewHandler=self.parent.globalTemplatePreviewHandler}}catch(b){}};
RichMediaCreativeDisplayManager_55_08.prototype.deleteCreative=function(a){this.deleteJSObjects();if(!a)this.deleteHTMLObjects()};RichMediaCreativeDisplayManager_55_08.prototype.deleteHTMLObjects=function(){for(var a=0;a<this.rootElementArray.length;a++)if(this.rootElementArray[a]!=null&&this.rootElementArray[a].parentNode!=null)this.removeChildNode(this.rootElementArray[a],this.rootElementArray[a].parentNode)};
RichMediaCreativeDisplayManager_55_08.prototype.deleteJSObjects=function(){if(this.creative.isInterstitial)DoNotDisplayIA=null;this.detachFSCommandHandler();this.setShouldFlush(this.renderingId,false);this.removeArrayElement(dartCallbackObjects,this.dartEventBin);this.dartEventBin=null};RichMediaCreativeDisplayManager_55_08.prototype.removeArrayElement=function(a,b){for(var c=0;c<a.length;c++)if(a[c]==b)a[c]=null};
RichMediaCreativeDisplayManager_55_08.prototype.fsHook=function(a){var b="";b+=a+"_DoFSCommand = function(command, args) { \n";b+='    if(dartCreativeDisplayManagers["'+this.creativeIdentifier+'"] != null) dartCreativeDisplayManagers["'+this.creativeIdentifier+'"].FSCommandHandler(command, args);\n';b+="}\n";window.eval(b);if(this.isInternetExplorer()){var c=this.toObject(a);var d=eval(a+"_DoFSCommand");this.fsCommandHandlers[a]=d;if(c.attachEvent("FSCommand",d))this.registerPageUnLoadHandler("detachFSCommandHandler()",
this)}};RichMediaCreativeDisplayManager_55_08.prototype.registerFSCommandHandler=function(a){if(this.isInternetExplorer()){var b=this.toObject("FLASH_"+a);var c=this.fsCommandHandlers["FLASH_"+a];if(b.attachEvent("FSCommand",c))this.registerPageUnLoadHandler("detachFSCommandHandler()",this)}};
RichMediaCreativeDisplayManager_55_08.prototype.detachFSCommandHandler=function(){for(var a in this.assets)if(!this.isPartOfArrayPrototype(a)){var b="FLASH_"+a;var c=this.toObject(b);var d=this.fsCommandHandlers[b];if(c!=null)if(this.isInternetExplorer())c.detachEvent("FSCommand",d)}};
RichMediaCreativeDisplayManager_55_08.prototype.FSCommandHandler=function(a,b){if(a=="mtfCommands"){var c=b.split("&");for(var d=0;d<c.length;d++){var e=this._parseCommandString(c[d]);var f=this.createFunctionCall(e.command,e.argArray);try{eval('dartCreativeDisplayManagers["'+this.creativeIdentifier+'"].'+f)}catch(g){f=e.command+"('"+e.argString+"')";try{eval(f)}catch(h){}}}}else{var i=this._splitArgs(b);f=this.createFunctionCall(a,i);try{return eval('dartCreativeDisplayManagers["'+this.creativeIdentifier+
'"].'+f)}catch(j){try{eval(f)}catch(k){}}}};RichMediaCreativeDisplayManager_55_08.prototype.setFocus=function(a){var b=this.toObject("FLASH_"+a);if(b!=null)if(this.isFirefox()&&this.isMac()){var c=this.getFireFoxVersion();if(c>=2&&c<3){b.blur();window.blur()}}};
RichMediaCreativeDisplayManager_55_08.prototype.reportCustomVariable=function(a,b){if(!this.previewMode){var c=this.creative.stringPostingUrl;var d=new Date;c+="&timestamp="+d.getTime()+";"+"str="+unescape(a)+";"+"strtype="+b;var e=document.createElement("img");e.src=c}else{var f=this.getEventBin();if(f!=null)f.logCustomVariable(unescape(a),b)}};
RichMediaCreativeDisplayManager_55_08.prototype.setDynamicServeId=function(a){var b=this.getEventBin();if(b){b.setDynamicServeId(a);var c=this.getStandardEventId(this.STANDARD_EVENT_DYNAMIC_CREATIVE_IMPRESSION);b.logMetEvent("Count",c,this.creative.renderingId,false,this.STANDARD_EVENT_DYNAMIC_CREATIVE_IMPRESSION)}};
RichMediaCreativeDisplayManager_55_08.prototype.getFireFoxVersion=function(){var a=navigator.userAgent.toUpperCase();if(a.indexOf("GECKO")!=-1)if(a.indexOf("FIREFOX")!=-1)return parseFloat(a.substr(a.lastIndexOf("/")+1));return null};RichMediaCreativeDisplayManager_55_08.prototype.conduitInitialized=function(a){RichMediaCore_55_08.prototype.trackCsiEvent("fe");var b=this.getAsset(a);b.conduitInitialized=true;if(this.shouldCsi(b,this.creative.type))RichMediaCore_55_08.prototype.reportCsi(this.creative)};
RichMediaCreativeDisplayManager_55_08.prototype.setTimerAdjustment=function(a,b,c){this.getEventBin().setTimerAdjustment(a,b,c)};RichMediaCreativeDisplayManager_55_08.prototype.getEventBin=function(){if(!this.previewMode)return this.dartEventBin;else if(this.debugEventsMode)return this.dartDebugEventBin;else return null};RichMediaCreativeDisplayManager_55_08.prototype.getStandardEventId=function(a){return this.creative.standardEvents[a].reportingId};
RichMediaCreativeDisplayManager_55_08.prototype.getEventId=function(a,b){var c;if(a=="Start"||a=="Stop")c=this.creative.timerEvents[b];else if(a=="Count")c=this.creative.counterEvents[b];else if(a=="Exit")c=this.creative.exitEvents[b];return c!=null?c.reportingId:-1};RichMediaCreativeDisplayManager_55_08.prototype.evaluateBoolean=function(a){var b=typeof a;return b=="string"&&a=="true"||b=="boolean"&&a};
RichMediaCreativeDisplayManager_55_08.prototype.logEvent=function(a,b,c,d,e){var f;b=unescape(b);e=this.evaluateBoolean(e);d=this.evaluateBoolean(d);if(e)f=this.getEventId(a,b);else f=this.getStandardEventId(b);if(a==="Exit")a="Count";if(b==this.STANDARD_EVENT_DISPLAY_TIMER)this.logDisplayTimerEvent(a,c);else{var g=this.getEventBin();if(g)g.logMetEvent(a,f,c,d,b)}};
RichMediaCreativeDisplayManager_55_08.prototype.getCustomVideoEventId=function(a,b,c){var d=this.getStandardEventId(c);var e;if(a=="Start"||a=="Stop")e=this.creative.timerEvents;else e=this.creative.counterEvents;var f="";for(var g in e){var h=e[g];if(h.sourceComponentName==b&&h.sourceStandardEventId==d){f=h.reportingId;break}}return f};
RichMediaCreativeDisplayManager_55_08.prototype.logVideoEvent=function(a,b,c){b=unescape(b);var d=this.creative.videoComponents[b];var e=this.getEventBin();var f=this.getStandardEventId(c);if(e)e.logMetEvent(a,f,this.creative.renderingId,false,c);if(d.trackCustomEvents){var g=this.getCustomVideoEventId(a,b,c);if(e)e.logMetEvent(a,g,this.creative.renderingId,false,c)}};
RichMediaCreativeDisplayManager_55_08.prototype.stopStandardTimers=function(a){this.logEvent("Stop",this.STANDARD_EVENT_DISPLAY_TIMER,a);this.logEvent("Stop",this.STANDARD_EVENT_INTERACTION_TIMER,a);this.logEvent("Stop",this.STANDARD_EVENT_VIDEO_VIEW_TIMER,a)};
RichMediaCreativeDisplayManager_55_08.prototype.logDisplayTimerEvent=function(a,b){var c=this.getEventBin();if(a=="Start"){if(!this.isDisplayTimerRunning){if(c)c.logMetEvent("Start","2",b);this.isDisplayTimerRunning=true}}else if(a=="Stop")if(this.isDisplayTimerRunning){if(c)c.logMetEvent("Stop","2",b);this.isDisplayTimerRunning=false}};RichMediaCreativeDisplayManager_55_08.prototype.flushCounters=function(a){var b=this.getEventBin();if(b)b.flushMetCounters(a)};
RichMediaCreativeDisplayManager_55_08.prototype.scheduleTurnOffEventBinFlushing=function(a,b){var c=this.getEventBin();if(c)this.registerTimeoutHandler(b*1000,"turnOffFlushing('"+a+"')",c)};RichMediaCreativeDisplayManager_55_08.prototype.setShouldFlush=function(a,b){var c=this.getEventBin();if(c)c.setMetShouldFlush(a,b)};RichMediaCreativeDisplayManager_55_08.prototype.getShouldFlush=function(a){var b=this.getEventBin();return b&&b.getShouldFlush(a)};
RichMediaCreativeDisplayManager_55_08.prototype.registerUrl=function(a,b){var c=this.getEventBin();if(c)c.registerEventBinUrl(a,b)};RichMediaCreativeDisplayManager_55_08.prototype.logExitEventFlushCounters=function(a,b,c,d){this.logEvent("Exit",a,b,c,d);this.flushCounters(b)};RichMediaCreativeDisplayManager_55_08.prototype.logEventFlushCounters=function(a,b,c,d,e){this.logExitEventFlushCounters(b,c,d,e)};
RichMediaCreativeDisplayManager_55_08.prototype._logEventFlushCountersOpenPopup=function(a,b,c,d,e,f,g){this.logEvent(a,b,c,true);this.flushCounters(c);this.openPopup(d,e,f,g)};RichMediaCreativeDisplayManager_55_08.prototype.getExitUrl=function(a,b){var c=b==undefined?this.creative.exitEvents[a].url:b;var d=this.creative.clickThroughUrl;var e=this.creative.clickN!=""?parseInt(this.creative.clickN):1;if(d.indexOf("?")>=0||d.indexOf("&")>=0)for(var f=0;f<e;f++)c=escape(c);return d+c};
RichMediaCreativeDisplayManager_55_08.prototype.logInteractiveImpression=function(){if(!this.interactiveImpressionLogged){this.logEvent("Count",this.STANDARD_EVENT_INTERACTIVE_IMPRESSION);this.interactiveImpressionLogged=true}};
RichMediaCreativeDisplayManager_55_08.prototype.logExitFlushEventsOpenPopup=function(a,b,c,d,e,f){var g=this.creative.exitEvents[b];var h=this.getExitUrl(b);e=e=="null"?null:e;f=(f="null")?null:f;if(e)h=this.getExitUrl(b,f);else if(f!=null&&f!=""){h=h.indexOf("?")!=-1&&f.charAt(0)!="&"&&h.charAt(h.length-1)!="?"?h+"&":h;h=h.indexOf("?")==-1&&f.indexOf("?")==-1?h+"?":h;h+=f}this.logInteractiveImpression();this.logExitEventFlushCounters(b,c,true,true);if(g.customizedWindow)this.openPopup(h,"motifWindow",
g.windowFeatures,false);else this.openPopup(h,"motifWindow",null,false)};RichMediaCreativeDisplayManager_55_08.prototype.setExpandingManager=function(a){this.expandingManager=a};RichMediaCreativeDisplayManager_55_08.prototype.hasExpandingManager=function(){return typeof this.expandingManager!="undefined"};RichMediaCreativeDisplayManager_55_08.prototype.setFloatingManager=function(a){this.floatingManager=a};
RichMediaCreativeDisplayManager_55_08.prototype.hasFloatingManager=function(){return typeof this.floatingManager!="undefined"};
RichMediaCreativeDisplayManager_55_08.prototype.expandAsset=function(a){var b=this.getAsset(a);var c=b.expandedWidth!=undefined?b.expandedWidth:b.width;var d=b.expandedHeight!=undefined?b.expandedHeight:b.height;var e=this.creative.type==this.CREATIVE_TYPE_EXPANDING;var f=this.toObject("FLASH_"+a);var g=this.hasExpandingManager()&&this.expandingManager.isMultiDirectionalExpanding(f);if(e&&!this.isInAdSenseIFrame()&&g)var h=this.expandingManager.getExpandingDirection(b);if(e)this._adjustWindowElements(a,
true);if(e&&b.pushContents)this.expandingManager.startAnimation(b,true);else this.unclipFlashObject(b,c,d);if(e&&g)if(this.isInAdSenseIFrame())this.expandingManager.creativeToolset.expandWindow();else this.multiDirectionExpand(f,h)};RichMediaCreativeDisplayManager_55_08.prototype.multiDirectionExpand=function(a,b){try{this.setFlashVariable(this.creative.asVersion,a,"mde_expandedDirection",b)}catch(c){}};
RichMediaCreativeDisplayManager_55_08.prototype.collapseAsset=function(a){var b=this.getAsset(a);var c=b.collapsedWidth!=undefined?b.collapsedWidth:b.width;var d=b.collapsedHeight!=undefined?b.collapsedHeight:b.height;var e=this.creative.type==this.CREATIVE_TYPE_EXPANDING;if(e&&b.pushContents)this.expandingManager.startAnimation(b,false);else this.clipFlashObject(b,c,d,b.offsetTop,b.offsetRight,b.offsetBottom,b.offsetLeft);if(e)this._adjustWindowElements(a,false);var f=this.toObject("FLASH_"+a);var g=
this.hasExpandingManager()&&this.expandingManager.isMultiDirectionalExpanding(f);if(e&&g)if(this.isInAdSenseIFrame())this.expandingManager.creativeToolset.collapseWindow();else this.multiDirectionCollapse(f)};RichMediaCreativeDisplayManager_55_08.prototype.multiDirectionCollapse=function(a){try{this.setFlashVariable(this.creative.asVersion,a,"mde_expandedState","collapsed")}catch(b){}};
RichMediaCreativeDisplayManager_55_08.prototype.onMouseOver=function(a){try{var b=this.toObject("FLASH_"+a);this.setFlashVariable(this.creative.asVersion,b,"isMouseOver","1")}catch(c){}};RichMediaCreativeDisplayManager_55_08.prototype.onMouseOut=function(a){try{var b=this.toObject("FLASH_"+a);this.setFlashVariable(this.creative.asVersion,b,"isMouseOver","0")}catch(c){}};
RichMediaCreativeDisplayManager_55_08.prototype.scheduleCallbackOnLoad=function(a){a='dartCreativeDisplayManagers["'+this.creativeIdentifier+'"].'+a;this.registerPageLoadHandler(a,null)};RichMediaCreativeDisplayManager_55_08.prototype.scheduleDisplay=function(a,b,c){b=this._convertDuration(b);if(c)this._adjustWindowElements(a,true);if(b=="AUTO")this.registerTimeoutHandler(1000,"_autoStopPlaying('"+a+"')",this);else if(b>0)this.registerTimeoutHandler(eval(b)*1000,"stopDisplay('"+a+"')",this)};
RichMediaCreativeDisplayManager_55_08.prototype.tellCompanionAssetStop=function(a,b){this.dualAssetManager.tellCompanionAssetStop(a,b)};RichMediaCreativeDisplayManager_55_08.prototype.tellCompanionAssetStart=function(a,b){this.dualAssetManager.tellCompanionAssetStart(a,b)};RichMediaCreativeDisplayManager_55_08.prototype.tellCompanionAssetHide=function(a,b){this.dualAssetManager.tellCompanionAssetHide(a,b)};
RichMediaCreativeDisplayManager_55_08.prototype.tellCompanionAssetShow=function(a,b){this.dualAssetManager.tellCompanionAssetShow(a,b)};RichMediaCreativeDisplayManager_55_08.prototype.getAsset=function(a){for(var b in this.creative.assets)if(this.creative.assets[b].variableName==a)return this.creative.assets[b];return null};RichMediaCreativeDisplayManager_55_08.prototype.tellAssetHide=function(a){var b=this.getAssetType(a);if(b==this.ASSET_TYPE_OVERLAY)this.closePopupAsset(a);else this.stopDisplay(a)};
RichMediaCreativeDisplayManager_55_08.prototype.tellAssetShow=function(a){this._startDisplay(a,false)};RichMediaCreativeDisplayManager_55_08.prototype.tellAssetStart=function(a){if(this.isFlashScriptingSupported())this.playFlash(a)};RichMediaCreativeDisplayManager_55_08.prototype.tellAssetStop=function(a){var b=this.toObject("FLASH_"+a);if(b&&this.isFlashScriptingSupported())b.StopPlay()};
RichMediaCreativeDisplayManager_55_08.prototype.tellAssetGotoFrame=function(a,b){var c=this.toObject("FLASH_"+a);if(c&&this.isFlashScriptingSupported())c.GotoFrame(b)};RichMediaCreativeDisplayManager_55_08.prototype.isAssetPlaying=function(a){var b=this.toObject("FLASH_"+a);if(b&&this.isFlashScriptingSupported())return b.IsPlaying();return false};
RichMediaCreativeDisplayManager_55_08.prototype.replayAsset=function(a){var b=this.toObject("DIV_"+a);if(b&&b.style.visibility!="visible"){b.style.visibility="visible";var c=this.getAsset(a);if(c!=null){var d=this.toObject("FLASH_"+a);d.Rewind();d.StopPlay();this.scheduleDisplay(a,c.duration,true);if(c.isMainAsset){var e=this.getRenderingId(a);this.logEvent("Start","DISPLAY_TIMER",e)}}}};
RichMediaCreativeDisplayManager_55_08.prototype.openPopup=function(a,b,c,d){if(c)var e=window.open(a,b,c);else e=window.open(a,b);this.dartPopupArray[b]=e;if(eval(d))window.focus();return e};
RichMediaCreativeDisplayManager_55_08.prototype.notifyPreviewHandler=function(a,b){if(this.creative.debugEventsMode&&this.previewHandler)try{if(b=="startDisplay"){var c=this.generateGlobalCallback("replayAsset('"+a.variableName+"')",this);this.previewHandler.onAssetDisplayed("DIV_"+a.variableName,a.assetType,c)}else if(b=="stopDisplay")this.previewHandler.onBeforeAssetRemoved("DIV_"+a.variableName,a.assetType)}catch(d){}};
RichMediaCreativeDisplayManager_55_08.prototype.stopDisplay=function(a){var b=this.toObject("DIV_"+a);if(b.style.visibility=="hidden")return;var c=this.getAsset(a);this.notifyPreviewHandler(c,"stopDisplay");var d=this.toObject("FLASH_"+a);var e=this.creative.renderingId;if(c.isMainAsset)this.stopStandardTimers(e);this.flushCounters(e);if(!this.isAnyCompanionVisible(a))this.scheduleTurnOffEventBinFlushing(e,2);b.removeChild(d);b.style.visibility="hidden";this._adjustWindowElements(a,false)};
RichMediaCreativeDisplayManager_55_08.prototype.isAnyCompanionVisible=function(a){for(var b in this.assets)if(!this.isPartOfArrayPrototype(b)&&b!=a){var c=this.toObject("DIV_"+b);if(c&&c.style.visibility=="visible")return true}return false};RichMediaCreativeDisplayManager_55_08.prototype.addEntityProperties=function(a,b,c,d,e,f,g){this.pageElementsManager.addEntityProperties(a,b,c,d,e,f,g)};
RichMediaCreativeDisplayManager_55_08.prototype.doNotAdjustIFrame=function(a,b){this.pageElementsManager.doNotAdjustIFrame(a,b)};RichMediaCreativeDisplayManager_55_08.prototype.doNotAdjustObject=function(a,b){this.pageElementsManager.doNotAdjustObject(a,b)};RichMediaCreativeDisplayManager_55_08.prototype.getRenderingId=function(a){var b=a.split("_");return b.length>1?b[0]:null};
RichMediaCreativeDisplayManager_55_08.prototype.createFunctionCall=function(a,b){var c=a+"(";var d=0;for(var e=0;e<b.length;e++){if(d>0)c+=", ";c+='"'+b[e]+'"';d++}c+=")";return c};RichMediaCreativeDisplayManager_55_08.prototype._splitArgs=function(a){var b=new Array;var c=unescape(a);var d=c.split("#mtf#");for(var e=0;e<d.length;e++)b[e]=d[e];return b};
RichMediaCreativeDisplayManager_55_08.prototype._parseCommandString=function(a){var b=new Object;b.command=unescape(a.split("=")[0]);b.argString=unescape(a.split("=")[1]);var c=b.argString.split("#mtf#");b.argArray=new Array;for(var d=0;d<c.length;d++)b.argArray[d]=c[d]=="null"?null:c[d];return b};
RichMediaCreativeDisplayManager_55_08.prototype._startDisplay=function(a,b){var c=this.toObject("DIV_"+a);var d=this.toObject("FLASH_"+a);if(b)this._adjustWindowElements(a,true);if(c)c.style.visibility="visible";if(d&&this.isFlashScriptingSupported())this.playFlash(a);var e=this.creative.renderingId;if(d&&this.debugEventsMode){if(!this.dartDebugEventBin.getShouldFlush(e)){this.setShouldFlush(e,true);this.dartDebugEventBin.flushMetCounters(e)}}else if(d&&!this.previewMode&&!this.dartEventBin.getShouldFlush(e))this.setShouldFlush(e,
true)};RichMediaCreativeDisplayManager_55_08.prototype.playFlash=function(a){var b=this.toObject("FLASH_"+a);var c=this.getAsset(a);var d=c.assetType;if(this.isInternetExplorer())b.Play();else if(d=="float"||d=="reminder"||d=="banner"||d=="expando")if(c.conduitInitialized){if(b.TCurrentFrame("/")<=0)b.Play()}else this.registerTimeoutHandler(100,"playFlash('"+a+"')",this)};
RichMediaCreativeDisplayManager_55_08.prototype._autoStopPlaying=function(a){var b=this.toObject("FLASH_"+a);if(b&&this.isFlashScriptingSupported())if(b.PercentLoaded()==100&&!b.IsPlaying())this.stopDisplay(a);else this.registerTimeoutHandler(300,"_autoStopPlaying('"+a+"')",this)};RichMediaCreativeDisplayManager_55_08.prototype._adjustWindowElements=function(a,b){this.pageElementsManager._adjustWindowElements(a,b)};RichMediaCreativeDisplayManager_55_08.prototype.triggerPoliteDownload=function(){for(var a in this.assets)if(!this.isPartOfArrayPrototype(a))this.finishPoliteDownload(a)};
RichMediaCreativeDisplayManager_55_08.prototype.finishPoliteDownload=function(a){var b=this.toObject("FLASH_"+a);if(b&&typeof b.PercentLoaded!="undefined"&&b.PercentLoaded()>0&&this.getAsset(a).conduitInitialized)this.setFlashVariable(this.creative.asVersion,b,"mtfContinue","1");else{var c="dartCreativeDisplayManagers['"+this.creativeIdentifier+"'].finishPoliteDownload('"+a+"');";window.setTimeout(c,100)}};RichMediaCreativeDisplayManager_55_08.prototype.triggerDispatchScriptLoaded=function(){for(var a in this.assets)if(!this.isPartOfArrayPrototype(a))this.finishDispatchScriptLoaded(a)};
RichMediaCreativeDisplayManager_55_08.prototype.finishDispatchScriptLoaded=function(a){var b=this.toObject("FLASH_"+a);try{if(b&&typeof b.PercentLoaded!="undefined"&&b.PercentLoaded()>0&&typeof b.TCurrentFrame!="undefined"&&b.TCurrentFrame("/")>=0)this.setFlashVariable(this.creative.asVersion,b,"globalTemplateScriptLoaded","1");else{var c="dartCreativeDisplayManagers['"+this.creativeIdentifier+"'].finishDispatchScriptLoaded('"+a+"');";window.setTimeout(c,100)}}catch(d){c="dartCreativeDisplayManagers['"+
this.creativeIdentifier+"'].finishDispatchScriptLoaded('"+a+"');";window.setTimeout(c,100)}};RichMediaCreativeDisplayManager_55_08.prototype.unloadPopup=function(){var a=this.renderingId;if(a){this.flushCounters(a);this.setShouldFlush(a,false);this.stopStandardTimers(a)}};RichMediaCreativeDisplayManager_55_08.prototype.forceAnimation=function(a){var b=this.toObject("FLASH_"+a);var c=this.toObject("DIV_"+a);if(c.style.visibility=="visible"){b.Zoom(50);b.Zoom(0)}};
RichMediaCreativeDisplayManager_55_08.prototype.isFlashScriptingSupported=function(){return this.isWindows()||this.isMac()&&(this.isFirefox()||this.isSafari())};RichMediaCreativeDisplayManager_55_08.prototype.registerCreativeElement=function(a){this.rootElementArray[this.rootElementArray.length]=a};
RichMediaCreativeDisplayManager_55_08.prototype.removeChildNode=function(a,b){if(a.hasChildNodes()){var c=a.childNodes;for(var d=0;d<c.length;d++)this.removeChildNode(c[d],b)}else{var e=a.parentNode;e.removeChild(a);if(b!=e)this.removeChildNode(e,b)}};RichMediaCreativeDisplayManager_55_08.prototype.openPopupAsset=function(){if(this.overlay)this.overlay._openPopup()};RichMediaCreativeDisplayManager_55_08.prototype.closePopupAsset=function(){if(this.overlay)this.overlay._closePopup()};
RichMediaCreativeDisplayManager_55_08.prototype.registerOverlay=function(a){this.overlay=a};RichMediaCreativeDisplayManager_55_08.prototype.getAssetType=function(a){for(var b in this.creative.assets)if(this.creative.assets[b].variableName==a)return b;return null};RichMediaCreativeDisplayManager_55_08.prototype.setServedInIframe=function(a){this.servedInIframe=a};RichMediaCreativeDisplayManager_55_08.prototype.isServedInIframe=function(){return this.sourceIframe!=null};
RichMediaCreativeDisplayManager_55_08.prototype.setSourceIframe=function(a){this.sourceIframe=a};RichMediaCreativeDisplayManager_55_08.prototype.getSourceIframe=function(){return this.sourceIframe};function RichMediaEventBin_55_08(a,b){this.dartIntervalArray=b?new Array:new Array(10,20,50,120,240);this.dartEventBinCollection=new Array;this.dartRegistrationTime=null;this.dartMaxTimeMilliseconds=20*60*1000;this.dartCreativeIdentifier=a;this.timerAdjustments=new Array;this.dynamicServeId=null}
RichMediaEventBin_55_08.prototype=new RichMediaCore_55_08;RichMediaEventBin_55_08.prototype.setTimerAdjustment=function(a,b,c){var d=new Object;d.eventId=a;d.startAdjustmentTime=parseInt(b);d.stopAdjustmentTime=parseInt(c);this.timerAdjustments[a]=d};
RichMediaEventBin_55_08.prototype.registerEventBinUrl=function(a,b){if(!this.dartEventBinCollection[a]){var c=new Array;c["counter"]=new Array;c["timer"]=new Array;c["duration"]=new Array;c["nonCumulativeCounters"]=new Array;c["flushUrl"]=b;c["shouldFlush"]=true;this.dartEventBinCollection[a]=c;this.dartRegistrationTime=new Date;this.setFlushInterval(a)}};RichMediaEventBin_55_08.prototype.setDynamicServeId=function(a){this.dynamicServeId=a};
RichMediaEventBin_55_08.prototype.logMetEvent=function(a,b,c,d){if(this.dartEventBinCollection[c]&&b&&!isNaN(b))switch(a){case "Count":{this.processCounter(b,c,d);break}case "Start":{this.processStart(b,c);break}case "Stop":{this.processStopTimer(b,c);break}default:break}};
RichMediaEventBin_55_08.prototype.processCounter=function(a,b,c){var d=this.getNonCumulativeCountersArray(b);var e=this.getCounterArray(b);c=c&&(c=="true"||c==true);if(!c){if(!d[a])e[a]=1;d[a]=true}else{if(!e[a])e[a]=0;e[a]=e[a]+1}};RichMediaEventBin_55_08.prototype.processStart=function(a,b){var c=this.getTimerArray(b);if(!c[a]){var d=new Date;var e=this.timerAdjustments[a];if(e){var f=d.getTime()+e.startAdjustmentTime;d.setTime(f)}c[a]=d;this.processCounter(a,b,false)}};
RichMediaEventBin_55_08.prototype.processStopTimer=function(a,b){var c=this.getTimerArray(b);var d=this.getDurationArray(b);if(c[a]){var e=c[a];var f=new Date;var g=f.getTime()-e.getTime();if(g<0||g>this.dartMaxTimeMilliseconds)g=0;d[a]=d[a]?d[a]+g:g;c[a]=false;return true}return false};
RichMediaEventBin_55_08.prototype.flushMetCounters=function(a){if(this.dartEventBinCollection[a]&&this.getShouldFlush(a)){var b="";var c=this.getCounterArray(a);var d=this.getDurationArray(a);var e=this.getTimerArray(a);var f=1;if(this.isInAllowedTimeframe()){for(var g in c)if(!this.isPartOfArrayPrototype(g)){var h=this.processStopTimer(g,a);var i=c[g];if(!d[g])d[g]=0;var j=this.roundNumber(d[g]?parseFloat(String(d[g]/1000)):0);if(i>0||j>0){b+="eid"+f+"="+g+";";b+="ecn"+f+"="+i+";";b+="etm"+f+"="+
j+";"}c[g]=c[g]-i;d[g]=d[g]-j*1000;if(h)e[g]=new Date;f++}this.postData(b,a)}}};RichMediaEventBin_55_08.prototype.turnOffFlushing=function(a){this.flushMetCounters(a);this.setMetShouldFlush(false)};RichMediaEventBin_55_08.prototype.postData=function(a,b){if(a.length){var c=new Date;var d=this.splitActivity(a);for(var e=0;e<d.length;e++){var f=document.createElement("img");var g=d[e];f.src=this.getFlushUrl(b)+this.getDynamicServeKeyvalue()+"&timestamp="+c.getTime()+";"+g}}};
RichMediaEventBin_55_08.prototype.getDynamicServeKeyvalue=function(){return this.dynamicServeId?"rm_mid="+escape(this.dynamicServeId)+";":""};RichMediaEventBin_55_08.prototype.splitActivity=function splitActivity(b){var c=new Array;var d="etm";var e=950;for(var f=0;b.length>0;b=b.substr(f)){var g=b;var h=g.substr(0,e);f=h.lastIndexOf(d)+d.length;h=g.substr(0,f);g=g.substr(f);f+=g.indexOf(";")+1;c[c.length]=b.substr(0,f)}return c};
RichMediaEventBin_55_08.prototype.getCounterArray=function(a){var b=this.dartEventBinCollection[a];return b["counter"]};RichMediaEventBin_55_08.prototype.getTimerArray=function(a){var b=this.dartEventBinCollection[a];return b["timer"]};RichMediaEventBin_55_08.prototype.getDurationArray=function(a){var b=this.dartEventBinCollection[a];return b["duration"]};RichMediaEventBin_55_08.prototype.getNonCumulativeCountersArray=function(a){var b=this.dartEventBinCollection[a];return b["nonCumulativeCounters"]};
RichMediaEventBin_55_08.prototype.getFlushUrl=function(a){var b=this.dartEventBinCollection[a];return b["flushUrl"]};RichMediaEventBin_55_08.prototype.getShouldFlush=function(a){var b=this.dartEventBinCollection[a];return b["shouldFlush"]};RichMediaEventBin_55_08.prototype.setMetShouldFlush=function(a,b){var c=this.dartEventBinCollection[a];if(c)c["shouldFlush"]=b};
RichMediaEventBin_55_08.prototype.isInAllowedTimeframe=function(){var a=new Date;return!(a.getTime()-this.dartRegistrationTime.getTime()>this.dartMaxTimeMilliseconds)};RichMediaEventBin_55_08.prototype.roundNumber=function(a,b){b=b?b:0;return Math.round(a*Math.pow(10,b))/Math.pow(10,b)};RichMediaEventBin_55_08.prototype.setFlushInterval=function(a){for(var b=0;b<this.dartIntervalArray.length;b++){var c=this.dartIntervalArray[b]*1000;this.registerTimeoutHandler(c,"flushMetCounters('"+a+"')",this)}};
function PageElementsManager_55_08(a,b){this.creative=a;this.displayManager=b;this.dartEntityPropertiesArray=new Object;this.noAdjustElements=new _doNotAdjustElement;this.iframePlaceHolderDivIndex=0;this.hiddenIframes=new Array}PageElementsManager_55_08.prototype=new RichMediaCore_55_08;PageElementsManager_55_08.prototype.addEntityProperties=function(a,b,c,d,e,f,g){this.dartEntityPropertiesArray[a]=new _entityProperties(b,c,d,e,f,g)};
PageElementsManager_55_08.prototype.doNotAdjustIFrame=function(a,b){this.noAdjustElements.iFrames[this.noAdjustElements.iFrames.length]=b};PageElementsManager_55_08.prototype.doNotAdjustObject=function(a,b){this.noAdjustElements.objects[this.noAdjustElements.objects.length]=b};
PageElementsManager_55_08.prototype._adjustWindowElements=function(a,b){var c=this.dartEntityPropertiesArray[a];if(c){if(c.hideDropDowns)this._adjustElements(b,"select");if(c.hideScrollBars&&(this.isInternetExplorer()||this.isSafari()))this.adjustScrollbars(b);if(c.hideIFrames)this._adjustElements(b,"iframe");if(c.hideObjects){this._adjustElements(b,"object");this._adjustElements(b,"embed")}if(c.hideApplets)this._adjustElements(b,"applet");if(c.adjustZIndex)this._adjustZIndex(a,b)}};
PageElementsManager_55_08.prototype._adjustZIndex=function(a,b){try{this._adjustParentZIndex(a,b)}catch(c){}};
PageElementsManager_55_08.prototype._adjustParentZIndex=function(a,b){var c=this.toObject("DIV_"+a);var d=null;var e=this.displayManager.getAsset(a);if(c&&typeof e.assetType!="undefined"&&e.assetType==this.ASSET_TYPE_EXPANDING)d=c.parentNode.parentNode;else return;for(;d&&d.tagName!="BODY";){if(b){var f=this.getStyle(d);if(c.style.zIndex>f.zIndex&&(f.position=="relative"||f.position=="absolute")){d.style.originalZIndex=this.getStyle(d).zIndex;d.style.zIndex=c.style.zIndex}}else if(typeof d.style.originalZIndex!=
"undefined")d.style.zIndex=d.style.originalZIndex;d=d.parentNode}};PageElementsManager_55_08.prototype._adjustElements=function(a,b){var c=self.document.getElementsByTagName(b);b=b.toLowerCase();for(var d=0;d<c.length;d++){var e=true;if(b=="iframe"){if(typeof c[d].MotifIFrameIDArray!="undefined")e=this._shouldAdjustIFrame(c[d].MotifIFrameIDArray)}else if(b=="object"||b=="embed")e=!this.isMotifObject(c[d].id);if(e)a?this.hideElement(c[d]):this.showElement(c[d])}};
PageElementsManager_55_08.prototype.hideElement=function(a){var b=a.getAttribute("hideCount");if(b==null||b==""){a.setAttribute("initialVisibility",a.style.visibility);a.setAttribute("hideCount",0)}var c=parseInt(a.getAttribute("hideCount"));if(c==0)if(a.tagName.toLowerCase()=="iframe"&&this.isFirefox())this.hideFirefoxIFrame(a);else a.style.visibility="hidden";c++;a.setAttribute("hideCount",c)};
PageElementsManager_55_08.prototype.showElement=function(a){if(a.getAttribute("hideCount")!=null){var b=parseInt(a.getAttribute("hideCount"));if(b!=0)b--;a.setAttribute("hideCount",b);if(b==0)if(a.tagName.toLowerCase()=="iframe"&&this.isFirefox())this.displayFirefoxIFrame(a);else a.style.visibility=a.getAttribute("initialVisibility")}};
PageElementsManager_55_08.prototype._shouldAdjustIFrame=function(a){var b=this.noAdjustElements.iFrames;for(var c=0;c<b.length;c++)for(var d=0;d<a.length;d++)if(b[c]==a[d])return false;return true};PageElementsManager_55_08.prototype.isMotifObject=function(a){for(var b=0;b<dartMotifAds.length;b++){var c=dartMotifAds[b];for(var d in c.assets)if(a=="FLASH_"+c.assets[d].variableName)return true}return false};
function _entityProperties(a,b,c,d,e,f){this.hideDropDowns=a;this.hideIFrames=b;this.hideScrollBars=c;this.hideObjects=d;this.hideApplets=e;this.adjustZIndex=f}function _doNotAdjustElement(){this.iFrames=new Array;this.objects=new Array}
PageElementsManager_55_08.prototype.hideFirefoxIFrame=function(a){var b=null;var c=null;if(!a.hasAttribute("Motif_IFramePlaceHolderDivIndex")){b=document.createElement("DIV");b.id="MOTIF_IFRAMEPLACEHOLDER_"+this.iframePlaceHolderDivIndex;b.style.width="0px";b.style.height="0px";b.style.visibility="hidden";b.style.padding="0px";b.style.margin="0px";b.style.display="inline";a.parentNode.insertBefore(b,a);b.innerHTML='<img src="" width="0px" height="0px" padding="0px" margin="0px"></img>';a.setAttribute("Motif_IFramePlaceHolderDivIndex",
this.iframePlaceHolderDivIndex);c=new Object;this.hiddenIframes[this.iframePlaceHolderDivIndex]=c;this.iframePlaceHolderDivIndex++}else{var d=a.getAttribute("Motif_IFramePlaceHolderDivIndex");var e="MOTIF_IFRAMEPLACEHOLDER_"+d;b=document.getElementById(e);c=this.hiddenIframes[parseInt(d)]}c.width=a.width;c.height=a.height;b.style.width=c.width;b.style.height=c.height;b.firstChild.width=c.width;b.firstChild.height=c.height;a.style.visibility="hidden";a.width=0;a.height=0};
PageElementsManager_55_08.prototype.displayFirefoxIFrame=function(a){var b=a.getAttribute("Motif_IFramePlaceHolderDivIndex");var c="MOTIF_IFRAMEPLACEHOLDER_"+b;var d=document.getElementById(c);var e=this.hiddenIframes[parseInt(b)];if(d!=null){a.width=e.width;a.height=e.height;d.style.width="0px";d.style.height="0px";d.firstChild.width=0;d.firstChild.height=0}a.style.visibility=a.getAttribute("initialVisibility")};
PageElementsManager_55_08.prototype.adjustScrollbars=function(a){var b=self.document.documentElement;var c=document.compatMode&&document.compatMode=="CSS1Compat";c|=this.isSafari();if(a)if(c){b.style.originalOverflow=typeof b.currentStyle=="object"?b.currentStyle.overflow:b.style.overflow;b.style.overflow="hidden"}else self.document.body.scroll="no";else if(c){if(typeof b.style.originalOverflow!="undefined")b.style.overflow=b.style.originalOverflow}else self.document.body.scroll="yes"};
function ExpandingManager_55_08(a,b){this.creative=a;this.displayManager=b}ExpandingManager_55_08.prototype=new RichMediaCore_55_08;
ExpandingManager_55_08.prototype.init=function(){if(this.isInAdSenseIFrame()){this.creativeToolset=new CreativeToolset;var a=this.creative.assets[this.ASSET_TYPE_EXPANDING];var b="dartCallbackObjects["+this.getCallbackObjectIndex(this)+"].adSenseExpand(expandedWidth, expandedHeight, direction)";var c=new Function("expandedWidth","expandedHeight","direction",b);var d="dartCallbackObjects["+this.getCallbackObjectIndex(this)+"].adSenseCollapse(collapsedWidth, collapsedHeight)";var e=new Function("collapsedWidth",
"collapsedHeight",d);var f=parseInt(a.offsetLeft)+parseInt(a.width);var g=parseInt(a.expandedWidth)-parseInt(a.offsetLeft);var h=parseInt(a.offsetTop)+parseInt(a.height);var i=parseInt(a.expandedHeight)-parseInt(a.offsetTop);var j={width:Math.max(f,g),height:Math.max(h,i),expansionCallback:c,collapseCallback:e};this.creativeToolset.enableExpansion(j)}};
ExpandingManager_55_08.prototype.adSenseExpand=function(a,b,c){try{var d=["tl","tr","br","bl"];var e=this.toObject("FLASH_"+this.creative.assets[this.ASSET_TYPE_EXPANDING].variableName);this.setFlashVariable(this.creative.asVersion,e,"mde_expandedDirection",d[c])}catch(f){}};
ExpandingManager_55_08.prototype.adSenseCollapse=function(a,b){try{var c=this.toObject("FLASH_"+this.creative.assets[this.ASSET_TYPE_EXPANDING].variableName);this.setFlashVariable(this.creative.asVersion,c,"mde_expandedState","collapsed")}catch(d){}};ExpandingManager_55_08.prototype.getPosition=function(a,b){return"position:absolute;"+"top:"+(0-a)+"px;"+"left:"+(0-b)+"px;"};
ExpandingManager_55_08.prototype.startAnimation=function(a,b){if(a.animationState==null){var c=new Object;c.isRunning=false;c.animateCallback=this.generateGlobalCallback('updateExpandingViewPort("'+a.variableName+'")',this);c.expandMode=true;var d=parseInt(a.height);c.currentHeight=d;var e=parseInt(a.expandedHeight);var f=e-d;var g=a.animationTime*1000;c.updateInterval=50;var h=Math.ceil(g/c.updateInterval);c.stepLength=Math.ceil(f/(h+1));a.animationState=c}a.animationState.expandMode=b;if(!a.animationState.isRunning){a.animationState.isRunning=
true;this.updateExpandingViewPort(a.variableName)}};
ExpandingManager_55_08.prototype.updateExpandingViewPort=function(a){var b=this.displayManager.getAsset(a);var c=b.animationState;var d=false;var e="auto";var f="auto";var g="auto";if(c.expandMode){var h=parseInt(b.expandedHeight);c.currentHeight+=c.stepLength;if(c.currentHeight>=h){c.currentHeight=h;d=true}}else{var i=parseInt(b.height);e=b.offsetTop;f=b.offsetRight;g=b.offsetLeft;c.currentHeight-=c.stepLength;if(c.currentHeight<=i){c.currentHeight=i;d=true}}var j=this.toObject("EXPANDO_PLACEHOLDER_"+
a);j.style.height=c.currentHeight+"px";var k=e=="auto"?b.expandedWidth:b.width;this.displayManager.clipFlashObject(b,k,c.currentHeight,e,f,c.currentHeight,g);if(d)c.isRunning=false;else window.setTimeout(c.animateCallback,c.updateInterval)};
ExpandingManager_55_08.prototype.getExpandingDirection=function(a){var b=this.getElementPosition("OUTER_DIV_"+a.variableName);var c=this.getWindowDimension();var d=this.getAvailableVeticalDirection(c.height,b.top,a.height);var e=this.getAvailableHorizontalDirection(c.width,b.left,a.width);return d+e};ExpandingManager_55_08.prototype.getAvailableVeticalDirection=function(a,b,c){var d=a-(b+parseInt(c));return b>=d?"t":"b"};
ExpandingManager_55_08.prototype.getAvailableHorizontalDirection=function(a,b,c){var d=a-(b+parseInt(c));return b>=d?"l":"r"};ExpandingManager_55_08.prototype.isMultiDirectionalExpanding=function(a){try{return this.getFlashVariable(this.creative.asVersion,a,"isMultiDirectional")=="true"}catch(b){return false}};function ScriptExpandingRenderer_55_08(a){this.flashUtil=new FlashUtil_55_08(a)}ScriptExpandingRenderer_55_08.prototype=new RichMediaCore_55_08;
ScriptExpandingRenderer_55_08.prototype.renderExpanding=function(a,b){var c=a.assets[this.ASSET_TYPE_EXPANDING];var d=b.getPosition(c.offsetTop,c.offsetLeft);var e="dartCreativeDisplayManagers['"+a.creativeIdentifier+"'].onMouseOut('"+c.variableName+"');";var f="dartCreativeDisplayManagers['"+a.creativeIdentifier+"'].onMouseOver('"+c.variableName+"');";var g=c.expandingDivStyleSheet!=""?c.expandingDivStyleSheet+";":"";document.write('<div id="DIV_'+c.variableName+'" style="'+d+"visibility:visible;z-index:"+
c.zIndex+";text-align:left;"+g+'">');var h=c.queryString;h+="&td="+escape(self.location.hostname)+"&wmode="+c.wmode;h+=b.usesSalignForExpanding(c.salign,c.wmode)?"&scaleMode=noScale":"";h+="&ispushdown="+c.pushContents;var i=this.flashUtil.getObjectHtml("id","FLASH_"+c.variableName,"name","FLASH_"+c.variableName,"WIDTH",c.expandedWidth,"HEIGHT",c.expandedHeight,"movie",c.url,"quality","high","wmode",c.wmode,"salign",c.salign,"queryString",h,"onmouseover",f,"onmouseout",e);RichMediaCore_55_08.prototype.trackCsiEvent("fb");
document.write(i);document.write("</div>")};
ScriptExpandingRenderer_55_08.prototype.displayExpanding=function(a,b,c){this.logThirdPartyImpression(a);var d=a.assets[this.ASSET_TYPE_EXPANDING];var e=d.expandingDivStyleSheet!=""?";"+d.expandingDivStyleSheet:"";var f="";var g=d.pushContents&&this.isInternetExplorer()&&this.getIEVersion()>=8;if(d.displayInline&&!g)f=this.isSafari()||this.isChrome()?"display:inline-table;":"display:inline;";var h=d.displayInline?e:";"+d.cssProperty;document.write('<table style="'+f+"width:"+d.width+"px;height:"+
d.height+"px"+h+'" border="0" cellpadding="0" cellspacing="0"> ');document.write('<tr style="padding:0px;margin:0px;border-style:none;border-width:0px">');document.write('<td style="padding:0px;margin:0px;border-style:none;border-width:0px">');document.write('<div id="OUTER_DIV_'+d.variableName+'" style="position:relative;z-index:'+d.zIndex+e+'">');document.write('<IMG id="'+"EXPANDO_PLACEHOLDER_"+d.variableName+'" SRC="'+a.mediaServer+'/dot.gif" style="visibility:hidden" width="'+d.width+'" height="'+
d.height+'" BORDER="0" alt="">');this.renderExpanding(a,c);this.logThirdPartyFlashDisplayImpression(a,false);document.write("</div>");document.write("</td> </tr> </table>");this.startDisplay(a,b)};
ScriptExpandingRenderer_55_08.prototype.startDisplay=function(a,b){var c=a.assets[this.ASSET_TYPE_EXPANDING];b.doNotAdjustObject(c.variableName,"FLASH_"+c.variableName);b.fsHook("FLASH_"+c.variableName);b.registerUrl(a.renderingId,a.adserverUrl);b.addEntityProperties(c.variableName,c.hideDropdowns,c.hideIframes,c.hideScrollbars,c.hideObjects,c.hideApplets,true);b.collapseAsset(c.variableName)};function FlashUtil_55_08(a){this.creative=a}FlashUtil_55_08.prototype=new RichMediaCore_55_08;
FlashUtil_55_08.prototype.getObjectHtml=function(){var a=this.getArgs(arguments);return this.generateObj(a.objAttrs,a.params,a.embedAttrs)};
FlashUtil_55_08.prototype.getArgs=function(a){var b=new Object;b.embedAttrs=new Object;b.params=new Object;b.objAttrs=new Object;var c="";var d=false;for(var e=0;e<a.length;e=e+2){var f=a[e].toLowerCase();switch(f){case "codebase":case "pluginspage":case "type":case "classid":case "minversion":break;case "src":case "movie":b.params["movie"]=b.embedAttrs["src"]=a[e+1];break;case "querystring":c=a[e+1]=a[e+1]+"&br="+escape(this.getBrowser())+"&os="+escape(this.getOS());break;case "width":case "height":case "align":case "vspace":case "hspace":case "class":case "title":case "accesskey":case "name":case "id":case "tabindex":case "alt":case "onmouseover":case "onmouseout":b.embedAttrs[a[e]]=
b.objAttrs[a[e]]=a[e+1];break;case "swliveconnect":b.embedAttrs[a[e]]=a[e+1];break;case "wmode":d=this.isFlashFullScreenSupported(a[e+1]);b.embedAttrs[a[e]]=b.params[a[e]]=a[e+1];break;default:b.embedAttrs[a[e]]=b.params[a[e]]=a[e+1]}}c+="&isFlashFullScreenEnabled="+d;b.params["FlashVars"]=b.embedAttrs["FlashVars"]=c;b.objAttrs["classid"]="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";b.embedAttrs["type"]="application/x-shockwave-flash";b.params["allowScriptAccess"]="always";b.embedAttrs["allowScriptAccess"]=
"always";if(d){b.params["allowFullScreen"]="true";b.embedAttrs["allowFullScreen"]="true"}return b};
FlashUtil_55_08.prototype.generateObj=function(a,b,c){var d="";if(this.isInternetExplorer()){d+="<object ";for(var e in a)if(!this.isPartOfArrayPrototype(e))d+=e+'="'+a[e]+'" ';d+=">";for(e in b)if(!this.isPartOfArrayPrototype(e))d+='<param name="'+e+'" value="'+b[e]+'" /> '}d+="<embed ";for(e in c)if(!this.isPartOfArrayPrototype(e))d+=e+'="'+c[e]+'" ';d+=" ></embed>";if(this.isInternetExplorer())d+="</object>";return d};
FlashUtil_55_08.prototype.getBrowser=function(){if(this.isInternetExplorer())return"ie";else if(this.isFirefox())return"ff";else if(this.isSafari())return"sf";else if(this.isChrome())return"cr";else return"NOT_SUPPORTED"};FlashUtil_55_08.prototype.getOS=function(){if(this.isWindows())return"win";if(this.isMac())return"mac";else return"NOT_SUPPORTED"};
FlashUtil_55_08.prototype.isFlashFullScreenSupported=function(a){var b=this.getPluginInfo();var c=this.creative.requiredPlayerVersion;if(c>5&&this.creative.fullScreenEnabled)if(b>=9.115||b>=9.28&&a=="window")return true;return false};function ScriptCreativeRenderer_55_08(){}ScriptCreativeRenderer_55_08.prototype=new RichMediaCore_55_08;
ScriptCreativeRenderer_55_08.prototype.showCreative=function(a){var b=a.type;var c=new RichMediaCreativeDisplayManager_55_08(a);dartCreativeDisplayManagers[a.creativeIdentifier]=c;if(b==this.CREATIVE_TYPE_INPAGE){var d=new InpageRenderer_55_08(a);d.displayInpage(a,c)}else if(b==this.CREATIVE_TYPE_EXPANDING){d=new ScriptExpandingRenderer_55_08(a);var e=new ExpandingManager_55_08(a,c);e.init();c.setExpandingManager(e);d.displayExpanding(a,c,e)}else if(b==this.CREATIVE_TYPE_FLOATING){var f=a.assets[this.ASSET_TYPE_FLOATING];
var g=new FloatingManager_55_08(a,c);if(this._isValidStartTime(f.startTime))c.registerTimeoutHandler(eval(f.startTime)*1000,"displayFloatingFlash()",g)}else if(b==this.CREATIVE_TYPE_INPAGE_WITH_OVERLAY){var h=new InpageRenderer_55_08(a);h.displayInpage(a,c);var i=new RichMediaOverlay_55_08(a,c);c.registerOverlay(i);i.scheduleOverlay()}else if(b==this.CREATIVE_TYPE_INPAGE_WITH_FLOATING){h=new InpageRenderer_55_08(a);h.displayInpage(a,c);f=a.assets[this.ASSET_TYPE_FLOATING];g=new FloatingManager_55_08(a,
c);c.setFloatingManager(g);if(this._isValidStartTime(f.startTime))c.registerTimeoutHandler(eval(f.startTime)*1000,"displayFloatingFlash()",g)}if(c.isFlashScriptingSupported()){c.scheduleCallbackOnLoad("triggerPoliteDownload()");c.triggerDispatchScriptLoaded()}};ScriptCreativeRenderer_55_08.prototype.showOnPageLoad=function(a){var b=dartRichmediaCreatives[a];this.showCreative(b)};
ScriptCreativeRenderer_55_08.prototype.show=function(){for(var a=0;a<dartRichmediaCreatives.length;a++){var b=dartRichmediaCreatives[a];if(typeof b.isProcessed=="undefined"||!b.isProcessed){if(b.type==this.CREATIVE_TYPE_FLOATING)this.registerPageLoadHandler("showOnPageLoad("+a+")",this);else this.showCreative(b);b.isProcessed=true}}};if(dartRichmediaCreatives!=undefined)(new ScriptCreativeRenderer_55_08).show();RichMediaCore_55_08.prototype.trackCsiEvent("ge");
