var weather = "weather";var weatherDesc;var tempF;var tempC;var descriptionText;var xmlArray = [];function importXML( oURL, oFunct, oNoRand, oDelay ) {	//note: in XML importing event handlers, 'this' refers to window	if( !oNoRand ) { oURL += ( ( oURL.indexOf('?') + 1 ) ? '&' : '?' ) + ( new Date() ).getTime(); } //prevent cache	if( window.XMLHttpRequest ) {		//alternate XMLHTTP request - Gecko, Safari 1.2+ and Opera 7.6+		xmlArray[xmlArray.length] = new XMLHttpRequest();		xmlArray[xmlArray.length-1].onreadystatechange = new Function( 'if( xmlArray['+(xmlArray.length-1)+'].readyState == 4 && xmlArray['+(xmlArray.length-1)+'].status < 300 ) { '+oFunct+'(xmlArray['+(xmlArray.length-1)+'].responseXML); }' );		xmlArray[xmlArray.length-1].open("GET", oURL, true);		xmlArray[xmlArray.length-1].send(null);		return true;	}	if( !navigator.__ice_version && window.ActiveXObject ) {		//the Microsoft way - IE 5+/Win (ICE produces errors and fails to use try-catch correctly)		var activexlist = ['Microsoft.XMLHTTP','Microsoft.XMLDOM'], tho; //add extra progids if you need specifics		for( var i = 0; !tho && i < activexlist.length; i++ ) {			try { tho = new ActiveXObject( activexlist[i] ); } catch(e) {}		}		if( tho ) {			xmlArray[xmlArray.length] = tho;			xmlArray[xmlArray.length-1].onreadystatechange = new Function( 'if( xmlArray['+(xmlArray.length-1)+'].readyState == 4 ) { '+oFunct+'(xmlArray['+(xmlArray.length-1)+'].load?xmlArray['+(xmlArray.length-1)+']:xmlArray['+(xmlArray.length-1)+'].responseXML); }' );			if( xmlArray[xmlArray.length-1].load ) {				xmlArray[xmlArray.length-1].load(oURL);			} else {				xmlArray[xmlArray.length-1].open('GET', oURL, true);				xmlArray[xmlArray.length-1].send(null);			}			return true;		}	}	if( document.createElement && document.childNodes ) {		//load the XML in an iframe		var ifr = document.createElement('DIV');		ifr.style.visibility = 'hidden'; ifr.style.position = 'absolute'; ifr.style.top = '0px'; ifr.style.left = '0px';		//onload only fires in Opera so I use a timer for all		if( !window.MWJ_XML_timer ) { window.MWJ_XML_timer = window.setInterval('MWJ_checkXMLLoad();',100); }		ifr.innerHTML = '<iframe src="'+oURL+'" name="MWJ_XML_loader_'+xmlArray.length+'" height="0" width="0"><\/iframe>';		xmlArray[xmlArray.length] = oFunct+'MWJ_SPLIT'+(oDelay?oDelay:1)+'';		document.body.appendChild(ifr);		return true;	}	return false;}function MWJ_checkXMLLoad() {	//check if each imported file is available (huge files may not have loaded completely - nothing I can do - use the delay to help)	for( var x = 0; x < xmlArray.length; x++ ) { if( xmlArray[x] && window.frames['MWJ_XML_loader_'+x] ) {		setTimeout( xmlArray[x].split('MWJ_SPLIT')[0] + '(window.frames.MWJ_XML_loader_'+x+'.window.document);', parseInt(xmlArray[x].split('MWJ_SPLIT')[1]) );		xmlArray[x] = false;	} }}function parseXML( xmlDoc ) {	descriptionText = xmlDoc.getElementsByTagName("descriptionText")[0].childNodes[0].nodeValue;	regexp = /Current\sConditions:\s.*?F\s\sForecast/;	regexp1 = /Current\sConditions:\s/;	regexp2 = /\sF\s\sForecast/;	weatherString = descriptionText.match(regexp);	newstr = weatherString[0].replace(regexp1, "");	newstr = newstr.replace(regexp2, "");	newarray = newstr.split(", ");	weatherDesc = newarray[0];	tempF = newarray[1];	tempC = Math.round((5/9)*(tempF - 32));	//weather = weatherDesc + " " + tempF + "&deg;F (" + tempC + "&deg;C)";	weather = "weather" + "<!-- " + weatherDesc + " " + tempF + "&deg;F (" + tempC + "&deg;C)" + " -->";	return;}importXML("../../pc/imageList/1292?XSL=NONE",parseXML);