	var provider = "pulse";
	var page_keywords = "";
	var page_params = "interactive page params";
	var ad_size = "300x235";
	var providerArr = new Array(); 

isMinNS4=(document.layers)?1:0;isMinIE4=(document.all)?1:0;isMinIE5=(document.getElementById&&document.all)?1:0;isNS6=(document.getElementById&&!document.all)?1:0;isMac=(navigator.platform.match(/^Mac/))?1:0;isWin=(navigator.platform.match(/^Win/))?1:0;isLinux=(navigator.platform.match(/^Linux/))?1:0;

var popup;var dateNow=new Date();var haton=0;

function initialize_ad_array(adS)
{
  adS['uk.weather.com'] = new Array('uk.weather.com','http://www.weather.com/RealMedia/a'+'ds/');
  adS['br.weather.com'] = new Array('br.weather.com','http://www.weather.com/RealMedia/a'+'ds/');
  adS['fr.weather.com'] = new Array('fr.weather.com','http://www.weather.com/RealMedia/a'+'ds/');
  adS['de.weather.com'] = new Array('de.weather.com','http://www.weather.com/RealMedia/a'+'ds/');
  adS['espanol.weather.com'] = new Array('espanol.weather.com','http://www.weather.com/RealMedia/a'+'ds/');
  adS['desktop3.weather.com'] = new Array('desktop3.weather.com','http://www.weather.com/RealMedia/a'+'ds/');
  adS['desktop.weather.com'] = new Array('desktop.weather.com','http://www.weather.com/RealMedia/a'+'ds/');
  adS['adstest.weather.com'] = new Array('adstest.weather.com','http://adstest.weather.com/RealMedia/a'+'ds/');
  adS['photo.weather.com'] = new Array('www.weather.com','http://www.weather.com/RealMedia/a'+'ds/');
  adS['registration.weather.com'] = new Array('registration.weather.com','https://registration.weather.com/RealMedia/a'+'ds/');
  adS['desktopfw.weather.com'] = new Array('desktopfw.weather.com','http://www.weather.com/RealMedia/a'+'ds/');
  adS['adstest.forgetaway.weather.com'] = new Array('adstest.weather.com','http://adstest.weather.com/RealMedia/a'+'ds/');
  adS['adstest.climate.weather.com'] = new Array('adstest.weather.com','http://adstest.weather.com/RealMedia/a'+'ds/');
  adS['adstest.epic.weather.com'] = new Array('adstest.weather.com','http://adstest.weather.com/RealMedia/a'+'ds/');
}

var adTest=GetCookie("oas_host_cookie");

function regenerate2(){return;}

function initialize_dom_severe_scroll(){return;}

function onPageStart(){regenerate2();if(isMinNS4&&document.images["holdspace"]){thisX=document.images["holdspace"].x;thisY=document.images["holdspace"].y;thisElement=makeObjectNS4();}
if(document.getElementById)initialize_dom_severe_scroll();}

window.onload = onPageStart;

var adS=new Array();
initialize_ad_array(adS);

OAS_url ='http://www.weather.com/RealMedia/a'+'ds/';
OAS_host = window.location.hostname;

if (adS[OAS_host]){OAS_url=adS[OAS_host][1];OAS_host = adS[OAS_host][0];
}else{OAS_host='www.weather.com';}

// special ads test code
if (adTest)
{
    if ((remoteAddr.indexOf("10.") == 0)||
        (remoteAddr.indexOf("169.254.") == 0)||
        (remoteAddr.indexOf("192.168.") == 0)||
        (remoteAddr.indexOf("216.133.140.1") == 0)||
		(remoteAddr.indexOf("216.133.140.2") == 0))
       {
	 OAS_host=adTest;
       }
  }

OAS_target="_top";OAS_version=10;OAS_rn='001234567890';OAS_rns='1234567890';
OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring(2,11);
function OAS_NORMAL(pos) {
if (OAS_MJX_on){
  document.write('<A HREF="' + OAS_url + 'click_nx.a'+'ds/nx.weather.com/noads/1' + OAS_rns + '@' + pos + '?keywords=no" TARGET=' + OAS_target + '>');
  document.write('<IMG SRC="' + OAS_url + 'adstream_nx.a'+'ds/nx.weather.com/noads/1' + OAS_rns + '@' + pos + '?keywords=no" BORDER=0><\/A>'); }
}
function OAS_RICH(pos) {OAS_NORMAL(pos);}

var queryString=new Object;function parseParameter(){var temp_query=new RegExp('^[^\\?]+\\?(.*)$');if(!temp_query.test(location))return false;var array=temp_query.exec(location);queryString.QUERY_STRING=array[1];var params=queryString.QUERY_STRING.split(/&/);for(var i=0;i<params.length;i++){var keys=params[i].split(/=/);queryString[keys[0]]=unescape(keys[1]);}}

function paramValue(key){if(key==null){alert("param() function has been used incorrectly.\nUSAGE: param(key)");return false;}
return queryString[key];}
	parseParameter();

if(typeof(OAS_query)=='undefined'){}else{var partnerCookie=GetCookie("partner");if(partnerCookie == 'google') {if(GetCookie("pCounter")!= 1) {SetCookie ("pCounter", "1", "", "/", ".weather.com");}}var idType=searchTermType();var fromParam=paramValue('from');var dwcobrand=paramValue('dwcobrand');var byear=getUserPreferences("13");var age=0;var gender=getUserPreferences("14");if(byear.length>0&&gender.length>0){var oq=OAS_query;var now=new Date();var thisYear=now.getFullYear();age=thisYear-Number(byear);if(oq==""){oq="age="+age+"&gender="+gender.toLowerCase();}else{oq=oq+"&age="+age+"&gender="+gender.toLowerCase();}if(partnerCookie!=''){oq=oq+"&cobrand="+partnerCookie;}if(partnerCookie==''&&dwcobrand!='undefined'){oq=oq+"&cobrand="+dwcobrand;}if(idType!=''){oq=oq+"&idtype="+idType;}if(fromParam == 'homedepot'){oq=oq+"&vanity=homedepot";}if(gnSiteMode=='severe'){/*oq=oq+"&mode=severe"*/}else if(gnSiteMode=='alert'){/*oq=oq+"&mode=alert"*/}else{/*oq=oq+"&mode=normal"*/}var gotFV=GetCookie("fv");if(gotFV.length > 0){currentCount = parseInt(gotFV);if(currentCount==-1){}else{viewNumber = currentCount + 1;if(viewNumber > 3)viewNumber = -1;SetCookie ("fv", viewNumber,"", "/", ".weather.com");}}else{SetCookie ("fv", 1,"", "/", ".weather.com");}var gotFV = GetCookie("fv");
if(gotFV.length>0){oq=oq+"&vw="+gotFV;}OAS_query=oq;}}

function updAdsTwoOASQuery() {if(typeof(OAS_query)=='undefined'){}else{var partnerCookie=GetCookie("partner");if(partnerCookie == 'google') {if(GetCookie("pCounter")!= 1) {SetCookie ("pCounter", "1", "", "/", ".weather.com");}}var idType=searchTermType();var fromParam=paramValue('from');var dwcobrand=paramValue('dwcobrand');var byear=getUserPreferences("13");var age=0;var gender=getUserPreferences("14");if(byear.length>0&&gender.length>0){var oq=OAS_query;var now=new Date();var thisYear=now.getFullYear();age=thisYear-Number(byear);if(oq==""){oq="age="+age+"&gender="+gender.toLowerCase();}else{oq=oq+"&age="+age+"&gender="+gender.toLowerCase();}if(partnerCookie!=''){oq=oq+"&cobrand="+partnerCookie;}if(partnerCookie==''&&dwcobrand!='undefined'){oq=oq+"&cobrand="+dwcobrand;}
if(idType!=''){oq=oq+"&idtype="+idType;}if(fromParam == 'homedepot'){oq=oq+"&vanity=homedepot";}if(gnSiteMode=='severe'){/*oq=oq+"&mode=severe"*/}else if(gnSiteMode=='alert'){/*oq=oq+"&mode=alert"*/}else{/*oq=oq+"&mode=normal"*/}var gotFV=GetCookie("fv");if(gotFV.length > 0){currentCount = parseInt(gotFV);if(currentCount==-1){}else{viewNumber = currentCount + 1;if(viewNumber > 3)viewNumber = -1;SetCookie ("fv", viewNumber,"", "/", ".weather.com");}}else{SetCookie ("fv", 1,"", "/", ".weather.com");}
var gotFV = GetCookie("fv");if(gotFV.length>0){var findFv= oq.indexOf("vw=");if (findFv ==-1){oq=oq+"&vw="+gotFV;}else{oq=oq.substring(0,findFv) + "vw=" + gotFV;}}OAS_query=oq;}}}
	
var vsearch=paramValue('search');
var upcookie=GetCookie("UserPreferences");if(upcookie>0&&vsearch!="search"){updateCookieExpDate("UserPreferences");updateCookieExpDate("RMID");}

var customization_pathname = (window.location.pathname.indexOf("http://weather.com/weather/my")>=0)?1:0;
if(customization_pathname==0){var myPrefsCookie=GetCookie("MyPrefs");if(myPrefsCookie.length>1){updateCookieUnescape("MyPrefs");}}

if(typeof(OAS_query)=='undefined'){
} else {
	if(OAS_query.indexOf("mode=") != -1) {
	} else {
		if(gnSiteMode=="severe") {
			OAS_query = OAS_query + "&mode=severe";
		} else if(gnSiteMode=="alert") {
			OAS_query = OAS_query + "&mode=alert";
		} else {
			OAS_query = OAS_query + "&mode=normal";
		}
	}
}
if(typeof(gnSiteMode)=='undefined'){
} else {
	if(gnSiteMode=="severe" || gnSiteMode=="alert") {
	  if(typeof(OAS_listpos) != "undefined") {
	  	if(OAS_listpos.indexOf("DVFeature") != -1) {
		} else {
			OAS_listpos = OAS_listpos.replace("Hidden1,","");
			OAS_listpos = OAS_listpos.replace("WindowShade,","");
			OAS_listpos = OAS_listpos.replace("HeaderSpon,","");
		}
	  }
	}
}

function getDeclaration(state){switch(state)
{case"AchesAndPains":return"hlth_pain";break;case"Allergies":return"htlh_algy";break;case"AirQuality":return"hlth_brth";break;case"ColdAndFlu":return"htlh_flu";break;case"SunSafety":return"hlth_skin";break;case"Fitness":return"hlth_fit";break;case"Health":return"hlth_genhlth";break;case"BusinessTravel":return"trvl_btrav";break;case"VacationPlanner":return"trvl_vac";break;case"Driving":return"drv_intst";break;case"SportingEvents":return"evt_sport";break;case"Weddings":return"evt_wed";break;case"Golf":return"recr_golf";break;case"Ski":return"recr_ski";break;case"BoatAndBeach":return"recr_boat";break;case"Outdoors":return"recr_outd";break;case"HomePlanner":return"hng_home";break;case"Lawn":return"hng_gard";break;case"Pets":return"hng_pets";break;case"Schoolday":return"hng_schdy";break;default:return"undcl";}}
var trans_dec=getDeclaration(getUserPreferences("16"));var rsi_segs=GetCookie("rsi_segs");var rsi_array=new Array();var rsi_clean_array=new Array();var ad_itemsArray=new Array();rsi_array=rsi_segs.split("|");for(var i=0;i<rsi_array.length;i++){rsi_clean_array.push(rsi_array[i].slice(7));}
rsi=rsi_clean_array.join('&rsi=');function filterNum(str){var temp=str;temp=temp.replace(/[^a-zA-Z 0-9]+/g,'_');temp=temp.replace(/\s/g,'_');temp=temp.toLowerCase();return temp;}
if(trans_dec!=""){ad_itemsArray.push("dec="+trans_dec);}
if(getUserPreferences("28")!=""){ad_itemsArray.push("cc="+filterNum(getUserPreferences("28")));}
if(getUserPreferences("29")!=""){ad_itemsArray.push("st="+filterNum(getUserPreferences("29")));}
if(getUserPreferences("30")!=""){ad_itemsArray.push("dma="+getUserPreferences("30"));}
if(getUserPreferences("31")!=""){ad_itemsArray.push("ct="+filterNum(getUserPreferences("31")));}
if(getUserPreferences("32")!=""){ad_itemsArray.push("zip="+getUserPreferences("32"));}
if(getUserPreferences("33")!=""){ad_itemsArray.push("cid="+getUserPreferences("33"));}
if(rsi!=""&&rsi!=" "){ad_itemsArray.push("rsi="+rsi);}
if(typeof(OAS_query)!='undefined'){OAS_query=OAS_query+"&"+ad_itemsArray.join('&');}

<!--
if(typeof(provider)!='undefined'){
    OAS_query = "provider=" + provider + "&" + OAS_query;
} 
OAS_version = 11;
if (!isMinIE4 && !isMinIE5 && !isNS6 && !isMinNS4) OAS_version = 10;
if (OAS_MJX_on){
if (OAS_version >= 11) { 
document.write('<SCR' + 'IPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.a'+'ds/' + OAS_host + OAS_spoof + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"><\/script>');
}
}

function OAS_AD(pos) {(OAS_version >= 11) ? OAS_RICH(pos) : OAS_NORMAL(pos);}

var query = new Object;
function parse(){var pat_query=new RegExp('^[^\\?]+\\?(.*)$');if(!pat_query.test(location))return false;var array=pat_query.exec(location);query.QUERY_STRING=array[1];var params=query.QUERY_STRING.split(/&/);for(var i=0;i<params.length;i++){var keys=params[i].split(/=/);query[keys[0]]=unescape(keys[1]);}}
function param(key){if(key==null){alert("param() function has been used incorrectly.\nUSAGE: param(key)");return false;}
return query[key];}
parse();


var pageName = new String(window.location.pathname);


var mx_hash=new Object();
mx_hash["cobrand"]=partnerCookie;if(typeof(ts_pagename)!='undefined'){mx_hash["pagename"]=ts_pagename;}else{mx_hash["pagename"]="";}if(typeof(ts_level1)!='undefined'){mx_hash["level1"]=ts_level1;}else{mx_hash["level1"]="UNCATEGORIZED";}if(typeof(ts_level2)!='undefined'){mx_hash["level2"]=ts_level2;}else{mx_hash["level2"]="";}if(typeof(ts_level3)!='undefined'){mx_hash["level3"]=ts_level3;}else{mx_hash["level3"]="";}if(typeof(ts_level4)!='undefined'){mx_hash["level4"]=ts_level4;}else{mx_hash["level4"]="";}if(typeof(ts_level5)!='undefined'){mx_hash["level5"]=ts_level5;}else{mx_hash["level5"]="";}if(typeof(ts_level6)!='undefined'){mx_hash["level6"]=ts_level6;}else{mx_hash["level6"]="";}if(typeof(ts_detail)!='undefined'){mx_hash["detail"]=ts_detail;}else{mx_hash["detail"]="";}if(typeof(ts_adCategory)!='undefined'){mx_hash["ad_category"]=ts_adCategory;}else{mx_hash["adCategory"]="";}if(typeof(ts_contentType)!='undefined'){mx_hash["content_type"]=ts_contentType;}else{mx_hash["content_type"]="";}if(typeof(ts_adFamily)!='undefined'){mx_hash["ad_family"]=ts_adFamily;}else{mx_hash["ad_family"]="";}if(typeof(ts_adChannel)!='undefined'){mx_hash["ad_channel"]=ts_adChannel;}else{mx_hash["ad_channel"]="";}mx_hash["declaration_state"]=getUserPreferences("16");mx_hash["urg"]=getUserPreferences("14");mx_hash["ura"]=getUserPreferences("13");mx_hash["urz"]=getUserPreferences("23");if(typeof(OAS_query)!='undefined'){var matchCondition=new RegExp(/cond=\w*/gi);condition=OAS_query.match(matchCondition);if(condition!=null){mx_hash["wxcond"]=condition[0].replace(/cond=/,"");}}if(typeof(OAS_query)!='undefined'){var matchContext=new RegExp(/context=\w*/gi);context=OAS_query.match(matchContext);if(context!=null){mx_hash["oas_context"]=context[0].replace(/context=/,"");}}if(typeof(OAS_query)!='undefined'){var matchSevere=new RegExp(/severe=\w*/gi);severeCondition=OAS_query.match(matchSevere);if(severeCondition!=null){mx_hash["severe"]=severeCondition[0].replace(/severe=/,"");}}if(typeof(omn_locid)!='undefined'){mx_hash["locid"]=omn_locid;}else{mx_hash["locid"]="";}if(typeof(omn_locytpe)!='undefined'){mx_hash["loctype"]=omn_locytpe;}else{mx_hash["loctype"]="";}if(typeof(omn_locname)!='undefined'){mx_hash["locname"]=omn_locname;}else{mx_hash["locname"]="";}if(typeof(omn_cityName)!='undefined'){mx_hash["city"]=omn_cityName;}else{mx_hash["city"]="";}if(typeof(omn_locstate)!='undefined'){mx_hash["state"]=omn_locstate;}else{mx_hash["state"]="";}if(typeof(omn_zipcode)!='undefined'){mx_hash["zipcode"]=omn_zipcode;}else{mx_hash["zipcode"]="";}if(typeof(omn_loccountry)!='undefined'){mx_hash["country"]=omn_loccountry;}else{mx_hash["country"]="";}if(typeof(omn_dmaCode)!='undefined'){mx_hash["dma"]=omn_dmaCode;}else{mx_hash["dma"]="";}var categoryID="";if(typeof(ts_level1)!=""){categoryID=mx_hash["level1"];}if(typeof(ts_level2)!=""){categoryID=categoryID+"-"+mx_hash["level2"];}if(typeof(ts_level3)!=""){categoryID=categoryID+"-"+mx_hash["level3"];}if(typeof(ts_level4)!=""){categoryID=categoryID+"-"+mx_hash["level4"];}mx_hash["category_id"]=categoryID;mx_hash["refurl"]=document.referrer;mx_hash["desturl"]=document.URL;mx_hash["rm_id"]=GetCookie("RMID");mx_hash["urs_id"]=getUserPreferences("2");if(typeof(gnSiteMode)!=""){mx_hash["sitemode"]=gnSiteMode;}else{mx_hash["sitemode"]="";}if(typeof(OAS_spoof)!='undefined'){mx_hash["oas_spoof"]=OAS_spoof;}else{mx_hash["oas_spoof"]="";}mx_hash["qstring_hash"]=queryString;if(GetCookie("partner")=="beta2"){mx_hash["beta_flag"]="beta";}else{mx_hash["beta_flag"]="prod";}if(typeof(fromParam)!='undefined'){mx_hash["from"]=fromParam;}else{mx_hash["from"]="";}mx_hash["pagination"]="";if(typeof(page_keywords)!='undefined'){mx_hash["page_kw"]=page_keywords;}else{mx_hash["page_kw"]="";}if(typeof(page_params)!='undefined'){mx_hash["page_prms"]=page_params;}else{mx_hash["page_prms"]="";}if(typeof(ad_size)!='undefined'){mx_hash["page_adsize"]=ad_size;}else{mx_hash["page_adsize"]="";}

mx_hash["current_rsi"] = GetCookie("rsi_segs");mx_hash["current_cc"] = getUserPreferences("28");mx_hash["current_st"] = getUserPreferences("29");mx_hash["current_dma"] = getUserPreferences("30");mx_hash["current_ct"] = getUserPreferences("31");mx_hash["current_zip"] = getUserPreferences("32");mx_hash["current_cid"] = getUserPreferences("33");mx_hash["current_dec"] = trans_dec;


if (!window.wxtools) wxtools = {};

// constant values

wxtools.DynamicOAS_CallFrameURL = '/common/a2/OASCallFrame.html';
wxtools.DynamicOAS_AdFrameURL = '/common/a2/OASAdFrame.html';

// A handler class for the individual ad positions
//   this class takes care of all rendering and reloading of
//   individual ad position frames
wxtools.DynamicOAS_position = function(name, type) {
	with ({
		// private properties and methods
		
		_name:name,			// ad position name
		_static:true,		// render this ad on the initial page load
		_dynamic:true,		// render this ad on subsequent refreshes
		_frame:null,		// cached reference to the iframe object
		_node:null,			// cached reference to the iframe DOM element
		
		// creates the iframe
		_write:function() {
			document.write([
				'<iframe ',
					'id="',this._name,'_frame" ',
					'name="',this._name,'_frame" ',
					'frameBorder="0" ',
					'scrolling="no" ',
					'allowtransparency="true" ',
					'background-color="transparent" ',
					'class="OASAdFrame" ',
					'></iframe>'].join(''));
		}
	}) {
		// BEGIN constructor
		switch (type) {
			case 'dynamic': _static = false; break;
			case 'static': 
			//_dynamic = false; //this must always be dynamic for it to load ads first time
			break;
		}
		
		_write();
		
		_frame = top.frames[_name + '_frame'];
		_node = document.getElementById(_name + '_frame');
		
		_frame.location.replace([wxtools.DynamicOAS_AdFrameURL,'?position=',_name,'&cb=',Math.random()].join(''));
		
		EventBroadcaster.initialize(this);
		// END constructor
		
		// public methods and properties
		
		// getter for the position name
		this.getName = function() { return _name; };
		
		// reloads the position
		this.reload = function() {
			if (_dynamic ) {				_frame.location.replace([wxtools.DynamicOAS_AdFrameURL,'?position=',_name,'&cb=',Math.random()].join(''));
				
			}
		};
		
		// broadcasts the new dimensions
		this.resize = function(width, height) {
			_node.style.height = height + 'px';
			_node.style.width = width + 'px';
			this.broadcastMessage('onResize', width, height);
		};
	}
}

// The Ads2 implementation class
//   This is a singleton class that abstracts all dynamic ad implementation details
//   It can be used with a standard OAS page implementation - just turn off the 
//    OAS ad call and include this JS.
wxtools.DynamicOAS = new function() {
	with ({
		// private properties and methods
		
		_url:null,				// current OAS request URL
		_frame:null,			// cached reference to the request iframe object
		_ready:false,			// flag to track when an ad call is in-progress
		_dynamicCall:false,		// flag to indicate whether the currect call is dynamic
		_names:[],				// the static position names
		_dynamicNames:[],		// the dynamic position names
		_positions:{},			// hash of the DynamicOAS_position objects
		
		// constructs and returns the current OAS request URL
		_getURL:function(names) {
			return [OAS_url,'adstream_mjx.ads/',OAS_host,OAS_spoof,'/1',(new String(Math.random())).substring(2,11),'@',names.join(','),'?',OAS_query].join('');
		},
		
		// iterates across the appropriate (static/dynamic) position list triggering
		//  content refreshes
		_reload:function() {
			var list = (this._dynamicCall?this._dynamicNames:this._names);
			for (var i = 0; i < list.length; i++) {
				if (this._positions[list[i]] != null) {
					try {
					this._positions[list[i]].reload();
	
					} catch (e) {
						// the position is probably in a display:none container
					}
				}
			}
		}
	}) {
		// BEGIN constructor
		_names = OAS_listpos.split(',');
		_dynamicNames = OAS_listpos.split(',');
		
		_url = _getURL(_names);
		
		// creates the ad call frame
		document.write('<style>.OASAdFrame{margin:0px;padding:0px;top:0px;left:0px;width:100%;height:100%;border:none;overflow:hidden;}</style>');
		document.write(['<iframe id="OAS_frame" name="OAS_frame" src="',wxtools.DynamicOAS_CallFrameURL,'?cb=',Math.random(),'"class="OASAdFrame" style="position:absolute; width:0px; height:0px;"></iframe>'].join(''));
		// END constructor
		
		// public properties and methods
		

		// getter for current OAS request URL
		this.getTarget = function() { return _url; };
		
		// triggers an ad refresh
		this.reload = function() {
                        //added for 15493
                        updAdsTwoOASQuery(); //to update fv Cookie
			_ready = false;
			_dynamicCall = true;
                        var dynNames=_dynamicNames.join(",");
                        if (dynNames.indexOf("Ads_Rfrsh_Cntr")!=-1){
                        }else{
                        _dynamicNames.push("Ads_Rfrsh_Cntr");
                        }
			_url = _getURL(_dynamicNames);	
	               
_frame.location.replace([wxtools.DynamicOAS_CallFrameURL,'?cb=',Math.random()].join(''));
		};
		
		// creates and returns a new ad position object
		this.addPosition = function(name, type) {
			if (type == 'static') {
				for (var i = 0; i < _dynamicNames.length; i++) {
					if (_dynamicNames[i] == name) {
						_dynamicNames.splice(i, 1);
						break;
					}
				}
			}
			
			_positions[name] = new wxtools.DynamicOAS_position(name, type);
			return _positions[name];
		};
		
		// The following methods are public but should NEVER be called.  They are used
		//  by the associated iframes to talk to DynamicOAS.  I've tried to explain briefly
		//  how each is used...
		
		// triggers a refresh of the ad positions
		//   this method is called by the ad call frame once its load is complete
		//   this method is also responsible for getting the cached reference
		//     to the iframe the first time it is called
		this.callFinished = function() {
			if (!_frame) _frame = top.frames.OAS_frame;
			_ready = true;
			_reload();
		};
		
		// tells an ad position that it has resized
		//   the various ad frames call this method because they don't have a reference
		//   to their associated ad position object
		this.resizeAd = function(name, width, height) { if(_ready) _positions[name].resize(width, height); };
		
		// executes the OAS_RICH method in an ad position frame
		//   this method is called by an ad frame to tell DynamicOAS that it
		//   is ready to have the ad rendered inside itself
		this.drawAd = function(position, doc) { 
			if (_ready) {
				_frame.drawAd(position, doc); 
				
			}
			
		};
	}
};

// global vanity alias
var DynamicOAS = wxtools.DynamicOAS;
OAS_MJX_on = false; // this must be set to false 
// override the OAS_RICH function - simplifies integration with existing pages
function OAS_RICH(position, type) {
	if (position == "PageCounter"){
		return wxtools.DynamicOAS.addPosition(position, 'static'); // as a rule of thumb PageCounter must be loaded only once
	}else{
		return wxtools.DynamicOAS.addPosition(position, type);
	}
}


/***********************************************/
/* Begin Breadcrumb interactmapnav_vacation       */
/***********************************************/
var gotLocIDCookie = GetCookie("LocID");
//set the cookie with the newLocPres locid object.
var expdate = new Date ();
FixCookieDate(expdate);
expdate.setTime(expdate.getTime() + (24*60*60*1000*365));
var typeInfo = 4;
var newLocID = '18052';
if(typeInfo == 1 || typeInfo == 4) {SetCookie ("LocID",newLocID, expdate, "/", ".weather.com");}
else {SetCookie ("LocID",newLocID+":"+typeInfo, expdate, "/", ".weather.com");}



// -->

