/*** 
*************************************
JavaScript functions for: temp11
Created by Lars Henrik Rotnes
Last modified: 2002-10-01
*************************************
**/

/*
CVS Version : $Id: temp11.js,v 1.5 2003/02/26 17:37:41 lhr Exp $

*/
                          
                          
/*
*function that change the information displayed on the screen when the moves the mouse arrow
*over an image
*
*argTextNo int = number indicating which text to display, each image should correspond to 
*                an index in the two arrays that holds the information to be displayes(InfoText and InfoHeader). 
*                The element at index 0 in the arrays, is always empty, therby a call to this function with 0 
*                as the argument will clear the field.
*               
*/
function changeText(argTextNo){
  var infoID = "infoID";
  var infoHeaderID = "infoHeaderID";
  
  
  //netscape 6 && ie 5>
	if (document.getElementById){
		tmp2 = document.getElementById(infoHeaderID);
		tmp = document.getElementById(infoID);
		if (argTextNo==0){
			document.getElementById("closeIcon").src = "/ms/img/icons/s1x1.gif";
		}
		else
		{
			document.getElementById("closeIcon").src = "/ms/img/icons/close9x9.gif";
		}
	}else if (document.all){ //Explorer 4
  		tmp2 = document.all[infoHeaderID];
		tmp = document.all[infoID];
		if (argTextNo==0){
			document.images["closeIcon"].src = "/ms/img/icons/s1x1.gif";
		}
		else
		{
			document.images["closeIcon"].src = "/ms/img/icons/close9x9.gif";
		}
	}else{ 
		alert(js_fn_NOT_VALID_BROWSER); 
		return false; 	
	}
	
  tmp2.innerHTML = InfoHeader[argTextNo];
  tmp.innerHTML = InfoText[argTextNo];
}