if(!window.__AtlasRichMedia__) window.__AtlasRichMedia__ = { modules: {}, addModule: function(module) { if(!this.modules[module.moduleId]) this.modules[module.moduleId] = module; return this.modules[module.moduleId]; }, getModule: function(moduleId) { return this.modules[moduleId]; } }; __AtlasRichMedia__.addModule( { moduleId : "richMediaAd_a1", Ad : function(adEnv) { this._adEnv = adEnv; var path = adEnv.image_path; var i = path.lastIndexOf("/"); this._advertiserId = path.substr(i + 1); this._dsDirPath = path.substr(0, i); this._adGuid = adEnv.placement_ad_id.substr(32); this.getPaid = function() { return this._adEnv.placement_ad_id; } this.getAdvertiserId = function() { return this._advertiserId; } this.getAdGuid = function() { return this._adGuid; } this.getEnvironment = function() { return this._adEnv; } this.getProperties = function() { return this._adProp; } this.setProperties = function(props) { this._adProp = props; } this.getDsDirPath = function() { return this._dsDirPath; } } }); __AtlasRichMedia__.addModule( { moduleId: 'richMediaAdMgr_a1', _ads: {}, add: function(ad) { this._ads[ad.getPaid()] = ad; }, getByPaid: function(paid) { var ad = this._ads[paid]; if (!ad) ad = null; return ad; }, createAd : function(adEnv) { var adMod = __AtlasRichMedia__.getModule("richMediaAd_a1"); var adConstructor = adMod.Ad; var ad = new adConstructor(adEnv); return ad; }, addAdProperties : function(props) { var paid = props.paid; var ad = this._ads[paid]; if ( ad && ad.setProperties ) ad.setProperties(props); } }); __AtlasRichMedia__.addModule( { moduleId : "adPropertiesTransformation_a1", adPropertiesTransform : function(adProps) { if ( this._propIsntSubstituted(adProps.flash_version) ) { adProps.flash_version = adProps.blContent[0][8]; } if ( this._propIsntSubstituted( adProps.movie_name) ) { adProps.movie_name = adProps.blContent[0][0]; } if ( this._propIsntSubstituted( adProps.alt_movie_name) ) { adProps.alt_movie_name = adProps.blContent[0][13]; } if ( this._propIsntSubstituted( adProps.is_alternate_contents_external) ) { adProps.is_alternate_contents_external = adProps.blContent[0][17]; } if ( this._propIsntSubstituted( adProps.is_alt_from_default_dir) ) { adProps.is_alt_from_default_dir = adProps.blContent[0][14]; } if ( this._propIsntSubstituted( adProps.alternate_movie_url) ) { adProps.alternate_movie_url = adProps.blContent[0][18]; } }, _propIsntSubstituted : function (propertyValue) { return propertyValue.match(/!~!.*!~!/); } }); if(!window.ARMRedirLib) ARMRedirLib = {}; if(!ARMRedirLib.AdParms) { ARMRedirLib.AdParms = function(parms) { for(var name in parms) { var value = parms[name]; switch(name) { case 'blContent': case 'a4euserclicks': if(typeof(value) == "string" && !value.match(/!~!/)) { this[name] = []; eval(value); } else { this[name] = value; } break; case 'childmovies': if(typeof(value) == "string" && !value.match(/!~!/)) { this.childmovies = [{}]; eval(value); } else { this.childmovies = value; } break; case 'idTag': this.paid = value; break; case 'locationdatafirefox': if(typeof(value) == "string" && !value.match(/!~!/)) { this.locationdata = []; eval(value); } else { this.locationdata = value; } break; case 'safeServe': this.safeServe = (value === "true" ? true : undefined); break; default: this[name] = value; break; } } } } if(!window.__atlas_ad_info) __atlas_ad_info = {}; if(!window.ARM_rtc) ARM_rtc = {}; if(!ARM_rtc.RmAdParms) ARM_rtc.RmAdParms = []; if(!ARM_rtc.AddRmAdParms) { ARM_rtc.AddRmAdParms = function(adParms) { adParms.mods = []; var modules = adParms.modules.split(","); for (var j = 0; j < modules.length; j++) { adParms.mods[adParms.mods.length] = {moduleId:modules[j], moduleObject:null, moduleInitialized:false}; } ARM_rtc.RmAdParms[ARM_rtc.RmAdParms.length] = adParms; } } if(!ARM_rtc.getByPaid) { ARM_rtc.getByPaid = function(paid) { for (var i = 0; i < ARM_rtc.RmAdParms.length; i++) { if (ARM_rtc.RmAdParms[i].paid == paid) return ARM_rtc.RmAdParms[i]; } return null; } } (function() { if(!window.ARM_TestMode) { var adProps = { a4euserclicks:"this.a4euserclicks[0]= new Array();", blContent:"this.blContent[0]= new Array('I2IWCHITAHIT/Ripple_20080814/MEJ80014_Ripple_Hit_160x600.swf',true,'21f473a4d2-4b27-4708-945d-cc980543e307',0,0,0,0,0,7,1,0,0,0,'I2IWCHITAHIT/Ripple_20080814/MEJ80014_Ripple_Hit_160x600.jpg',false,'21cef45e20-667a-49c8-b9f5-fdb6b0f6ec96',-1,false,'',1,0);", cap:"100000", childmovies:" this.childmovies[0]['movie1'] = 'Ripple_20080814/Ripple_160x600_video1.flv'; this.childmovies[0]['movie2'] = 'Ripple_20080814/Ripple_160x600_video2.flv'; this.childmovies[0]['movie3'] = 'Ripple_20080814/Ripple_160x600_video3.flv';", endDate:"-1", freq:"-1", idCampaign:"e256da1848e642229e3dd20cba88b951", idCat2Camp:"7b06ab01a1334990a67926c3ef5adc6f", idMpgMovie:"", idTag:"4bba89869f9946c5aef56b0348a80c16e256da1848e642229e3dd20cba88b951", idWeb:"001aa24f0412475590ad0e904ee3ede2", idWebCat:"a75b0e035cb0462d8667cb984ebab56e", impoliteDownload:"true", locationdata:"this.locationdata[0] = new Array(0,0,600,160,1,2,'Alternate',0,0,600,160,1,2,'Alternate',0,0,600,160,1,2,'Alternate');", locationdatafirefox:"this.locationdata[0] = new Array(0,0,600,160,1,2,1,'Alternate',0,0,600,160,1,2,1,'Alternate',0,0,600,160,1,2,0,'Alternate');", minBrowserVersion5:"false", modules:"ARMRedirLib_c1,ARMPreLib_c1,ARMRedirLib_ff_c1", paramadserver:"false", paramdynamic:"false", paramdynamiclogicmain1:"", paramdynamiclogicmain2:"", paramdynamiclogicmain3:"", paramdynamiclogicmain4:"", paramdynamiclogicreminder1:"", paramdynamiclogicreminder2:"", paramdynamiclogicreminder3:"", paramdynamiclogicreminder4:"", paramdynamiclogicteaser1:"", paramdynamiclogicteaser2:"", paramdynamiclogicteaser3:"", paramdynamiclogicteaser4:"", paramhideselectmain:"true", paramhideselectreminder:"false", paramhideselectteaser:"false", parammain:"false", paramnoframesmain:"true", paramnoframesreminder:"false", paramnoframesteaser:"false", paramonload:"false", paramonscroll:"true", paramreminder:"false", paramres_1024x768:"false", paramres_1152x864:"false", paramres_1280x1024:"false", paramres_1600x1200:"false", paramres_640x480:"false", paramres_800x600:"false", showAnyResolution:"true", startDate:"8260071447623795712", TopLayerVersion:"v2w", ifbVersion:"7", useAkamai:"false", version:"14", embed_wmode:"transparent", safeServe : "!~!safeServe!~!", flash_version:"!~!flash_version!~!", movie_name:"!~!movie_name!~!", alt_movie_name:"!~!alt_movie_name!~!", is_alternate_contents_external:"!~!is_alternate_contents_external!~!", is_alt_from_default_dir:"!~!is_alt_from_default_dir!~!", alternate_movie_url : "!~!alternate_movie_url!~!" }; var adParms = new ARMRedirLib.AdParms(adProps); var adPropsTransformationMod = __AtlasRichMedia__.getModule("adPropertiesTransformation_a1"); adPropsTransformationMod.adPropertiesTransform(adParms); var adMgrMod = __AtlasRichMedia__.getModule("richMediaAdMgr_a1"); adMgrMod.addAdProperties(adParms); ARM_rtc.AddRmAdParms(adParms); } })(); __AtlasRichMedia__.addModule( { moduleId: 'client_a1', isGenerallySupported: function() { if(this.userAgent.isInternetExplorer() && this.platform.isOSX()) return false; return (this.userAgent.isSupported() && this.platform.isSupported()); }, setPlatformString: function(str) { this.platform.setString(str); }, setUserAgentString: function(str) { this.userAgent.setString(str); }, userAgent: { name: null, version: { major: null, minor: null }, getVersion: function() { return this.version; }, isFirefox: function() { return this.name == "Firefox"; }, isInternetExplorer: function() { return this.name == "Internet Explorer"; }, isOpera: function() { return this.name == "Opera"; }, isSafari: function() { return this.name == "Safari"; }, isAvant: function() { return this.name == "Avant Browser"; }, isSupported: function() { if(this.isFirefox()) { var version = this.getVersion(); if((version.major == 1 && version.minor >= 5) || version.major > 1) return true; return false; } if(this.isInternetExplorer()) { var version = this.getVersion(); if((version.major >= 5 && version.minor >= 5) || version.major > 5) return true; return false; } if(this.isSafari()) { var version = this.getVersion(); if( version.major >= 3 ) return true; return false; } return false; }, setString: function(str) { this.name = null; this.version = {major: null, minor: null}; var matches = { "Avant Browser":/.*(Advanced\sBrowser|Avant\sBrowser).*/i, "Netscape":/.*(Netscape)[^\/]*\/([0-9]+)\.([0-9]+)/i, "Opera":/.*(Opera)\s*\/*\s*([0-9]+)\.([0-9]+)/i, "Safari":/.*Version\/([0-9]+)\.([0-9]+)\.?[0-9]*\s(Safari)/i, "Firefox":/.*(Firefox|BonEcho|Minefield)[\s|\/]*([0-9]+)\.([0-9]+)[\.]*([^\s]*)/i, "Internet Explorer":/.*(MSIE|Microsoft\sInternet\sExplorer)[\s\/]([0-9]+)\.([0-9]+)/i }; for(var browserName in matches) { var match = str.match(matches[browserName]); if (match) { if (browserName == "Safari") { match[3] = match[2]; match[2] = match[1]; match[1] = browserName; } this.name = browserName; if (match[2]) this.version.major = parseInt(match[2]); if (match[3]) this.version.minor = parseInt(match[3]); return; } } } }, platform: { os: null, isSupported: function() { return (this.isWindows() || this.isOSX()); }, isOSX: function() { return this.os == "OSX"; }, isWindows: function() { return this.os == "Windows"; }, setString: function(str) { this.os = null; if(str.match(/^win/i)) this.os = "Windows"; if(str.match(/^mac/i)) this.os = "OSX"; } }, supportsRichMediaAd: function(rmAdAlt) { if(rmAdAlt.playWindow.isMsnHotmail() && (!this.os.isWindows() || !this.platform.isInternetExplorer() )) return false; if(!ARMRedirLib.FlashPlayer.IsVersionSupported(rmAdAlt.flash_version)) return false; return this.isGenerallySupported(); } } ); ; (function(){ var DocumentAdapter = function(doc) { for(var i = 0; i < DocumentAdapter.instances.length; i++) { if(DocumentAdapter.instances[i].doc == doc) return DocumentAdapter.instances[i]; } this.doc = doc; this.adCount = 0; DocumentAdapter.instances.push(this); } DocumentAdapter.moduleId = 'Document_a1'; DocumentAdapter.instances = []; DocumentAdapter.getWindow = function() { return window; } DocumentAdapter.prototype = { constructor: DocumentAdapter, adCreated: function() { this.adCount++; if(this.adCount == 1) this.prepare(); }, adDeleted: function() { if(this.adCount > 0) { if(this.adCount == 1) this.unprepare(); this.adCount--; } }, getAdCount: function() { return this.adCount; }, prepare: function() { var win = DocumentAdapter.getWindow(); if(win.getComputedStyle && this.doc.body) { var bodyStyle = win.getComputedStyle(this.doc.body,null); var htmlStyle = win.getComputedStyle(this.doc.documentElement,null); if(bodyStyle && bodyStyle.overflowY == 'hidden' && htmlStyle && htmlStyle.overflowY == 'hidden') { this.previousOverflowY = htmlStyle.overflowY; this.doc.documentElement.style.overflowY = 'visible'; } } }, unprepare: function() { if(this.previousOverflowY) this.doc.documentElement.style.overflowY = this.previousOverflowY; } }; __AtlasRichMedia__.addModule(DocumentAdapter); })(); __AtlasRichMedia__.addModule( { moduleId: 'rmAdAltSetup_a1', init: function() { var RmAdAlt = function(adParms,tplParams) { this.adParms = adParms; adParms.adObjectAlt = this; this.tplParms = this.tplParams = tplParams; this.handleAdParamsDefaultValues(this.tplParams); this.bFirefoxEnabled = adParms.firefoxEnabled == "true" ? true : false; this.idCampaign = adParms.idCampaign; this.paid = adParms.paid; this.idWebCat = adParms.idWebCat; this.blContent = adParms.blContent; this.flash_version = adParms.flash_version; this.Version = adParms.version; this.blTreeLocation = 0; this.uniqueImp = true; this.alternateExists = true; this.bustingOut = false; this.atlasObject = null; this.OrigVersion = adParms.version; this.TopLayerAdURL = ""; this.dynamicIframe = false; this.oIframeTag = typeof(a4eIframe) != 'undefined'; var WindowWrap = __AtlasRichMedia__.getModule('WindowWrap_a1'); if(WindowWrap) { var thisWindow = new WindowWrap(window); if(this.isBustedOut()) { this.loadWindow = null; this.playWindow = thisWindow; } else { this.loadWindow = thisWindow; if(this.loadWindow.inFriendlyIframe()) { this.playWindow = new WindowWrap(this.loadWindow.findPlayWindow()); } else { this.playWindow = thisWindow; } } } this.running = false; } RmAdAlt.prototype.isBustedOut = function() { var result = ((this.tplParams != undefined && this.tplParams != null) && (this.tplParams.paid != undefined && this.tplParams.paid != null)); return result; } RmAdAlt.prototype.handleAdParamsDefaultValues = function(tplParams) { if(tplParams != null) { if (tplParams.pub_click_url != null && (tplParams.pub_click_url).indexOf('pub_click_url') != -1) tplParams.pub_click_url = ''; if (tplParams.pub_view_url != null && (tplParams.pub_view_url).indexOf ('pub_view_url') != -1) tplParams.pub_view_url = ''; if (tplParams.buster_url != null && (tplParams.buster_url).indexOf ('buster_url') != -1) tplParams.buster_url = ''; } } RmAdAlt.prototype.runAlternateAd = function(isCompatibleClient) { if (!this.alternateExists || this.running) return; this.running = true; var alternateTextToWrite = ''; var tempAlternateMovieName = ARMRedirLib.urlBuilder.getAlt(this); var matches = tempAlternateMovieName.match(/\.(gif|jpg|jpeg)/i); if(matches && matches[matches.length-1]) { alternateTextToWrite = this.getAlternateAdHtml(tempAlternateMovieName, isCompatibleClient); var pub_view_url = ( this.impressionTrackURL1 ? this.impressionTrackURL1 : ( this.tplParams.pub_view_url ? this.tplParams.pub_view_url : '' ) ); if (pub_view_url != '') { alternateTextToWrite = alternateTextToWrite + "
"; } if (window.testAtlasVt2EventFired) testAtlasVt2EventFired(this.tplParams.atlas_view_url); document.write( alternateTextToWrite + ( (document.domain.indexOf("ultimateavmag.com") > 0 && document.domain.indexOf("ultimateavmag.com") < 10) || (document.domain.indexOf("weather.com") > 0 && document.domain.indexOf("weather.com") < 10) ? "