/*
function parseXml(theXml) {
	try {
		xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
	}
	catch(e)
		{
		try {
			xmlDoc=document.implementation.createDocument("","",null);
		}
		catch(e)
		{
			alert(e.message);
			return;
		}
	}
	xmlDoc.async=false;
	xmlDoc.load(theXml);
	return xmlDoc
}
*/
//============================================================
//                >> jsImagePlayer 1.0 <<
//            for Netscape3.0+, September 1996
//============================================================
//                  by (c)BASTaRT 1996
//             Praha, Czech Republic, Europe
//
// feel free to copy and use as long as the credits are given
//          by having this header in the code
//
//          contact: xholecko@sgi.felk.cvut.cz
//          http://sgi.felk.cvut.cz/~xholecko
//
//============================================================
// Thanx to Karel & Martin for beta testing and suggestions!
//============================================================
//  New GUI Design by Brian Hughes, NOAA/NESDIS/SAB 12/17/99
//  Assorted hacks added by T. Spindler NHC/TPC 7/25/00
//============================================================

//======================================================================
//Code modified by Anton Vasilescu, April 2009 to work for my needs
//If you need the original version check the links above.
//======================================================================
 
function load_temperature(theXml)
{
   parseXml(theXml)
  
   theImages = new Array();      //holds the images
   imgName = xmlDoc.getElementsByTagName("imageName");
   imageText = xmlDoc.getElementsByTagName("imageText");
	//===> Preload the first image (while page is downloading)
   theImages[0] = new Image();
   theImages[0].src = "http://socalscubainfo.com/wprs/maindir/images/forecast/" + imgName[0].childNodes[0].nodeValue;
   
   document.getElementById("charts-img").src = theImages[0].src;
   document.getElementById("text_animation").innerHTML = imageText[0].childNodes[0].nodeValue;
}
