// rollover for all Lost for Words Sections

var timeout_LostwordsId;
var timeout_LostwordsInternalId;

function preload_lostwordsInternal() {
if(document.images) {
  var ImgArray = new Array();
  for (var i = 0; i < 3; i++) {
    ImgArray[i] = new Image();
  }    
	ImgArray[0].src = "images/lostwords_intrnl_about.gif";
	ImgArray[1].src = "images/lostwords_intrnl_whoswho.gif";
	ImgArray[2].src = "images/lostwords_intrnl_forum.gif";
  }
}


function reset_Menu() {
	var imgTurl;
	if(document.images) {
  		imgTurl = 'homeimages/lostwords_textroll_off.jpg'; 
   		document.textroll.src=imgTurl;	
	}
}

function reset_InternalMenu(imgRurl) {
	if(document.images) {
   		document.lostwords_nav.src=imgRurl;
	}
}


function off_nav(thisNav, imgName) {
	var objStr,obj, imgRurl, imgTurl;
	if(document.images) {
		if (thisNav == 'm') {  
	  		objStr = 'document.m_' + imgName;
      		obj = eval(objStr);      
      		imgRurl = 'homeimages/lostwords_' + imgName + '.gif';
      		obj.src = imgRurl;
      		timeout_LostwordsId = setTimeout("reset_Menu()",10);      		
      		} 
      	else if (thisNav == 'm_ei') { 
 	  		objStr = 'document.m_' + imgName;
      		obj = eval(objStr);      
      		imgRurl = 'homeimages/lostwords_' + imgName + '.gif';
      		obj.src = imgRurl;
      		}  
      	else if (thisNav == 'f') { 
 	  		objStr = 'document.f_' + imgName;
      		obj = eval(objStr);      
      		imgRurl = 'homeimages/feature_' + imgName + '.jpg';
      		obj.src = imgRurl;
      		timeout_LostwordsId = setTimeout("reset_Menu()",10);    
      		}  
      	else if (thisNav == 'i') { 
      		imgRurl = 'images/lostwords_intrnl_' + imgName + '.gif';
      		timeout_LostwordsInternalId = setTimeout("reset_InternalMenu(\"" + imgRurl + "\")",10); 
      		}
      	else if (thisNav == 'ei') { 
	  		objStr = 'document.' + imgName + '_s';
      		obj = eval(objStr);
      		imgTurl = 'images/default_descrip.gif';      
      		imgRurl = 'images/' + imgName + '_square.gif';
      		document.descrip.src=imgTurl;
      		obj.src = imgRurl; 
      		} 	     		     
	}
}

function on_nav(thisNav, imgName) {
	var objStr,obj, imgRurl, imgTurl;
	if(document.images) {
		if (thisNav == 'm') {
			clearTimeout(timeout_LostwordsId);
	  		objStr = 'document.m_' + imgName;
      		obj = eval(objStr);
      		imgTurl = 'homeimages/lostwords_' + imgName + '_text.gif';      
      		imgRurl = 'homeimages/lostwords_' + imgName + '_over.gif';
      		document.textroll.src=imgTurl;
      		obj.src = imgRurl;      		
      		}
       	else if (thisNav == 'm_ei') {
      		clearTimeout(timeout_LostwordsId);
      		objStr = 'document.m_' + imgName;
      		obj = eval(objStr);
      		imgRurl = 'homeimages/lostwords_' + imgName + '_over.gif';  
      		obj.src = imgRurl;
      		}
     	else if (thisNav == 'f') {
      		clearTimeout(timeout_LostwordsId);
      		objStr = 'document.f_' + imgName;
      		obj = eval(objStr);
      		imgTurl = 'homeimages/feature_' + imgName + '_text.jpg';
      		imgRurl = 'homeimages/feature_' + imgName + '_over.jpg';  
      		document.textroll.src=imgTurl;
      		obj.src = imgRurl;
      		}
      	else if (thisNav == 'i') { 
      		clearTimeout(timeout_LostwordsInternalId);
      		imgRurl = 'images/lostwords_intrnl_' + imgName + '.gif';
      		document.lostwords_nav.src=imgRurl;
      		}
       	else if (thisNav == 'ei') {
       		document.tale_s.src="images/tale_square.gif";
       		document.woman_s.src="images/woman_square.gif";
       		document.agutter_s.src="images/agutter_square.gif";
	  		objStr = 'document.' + imgName + '_s';
      		obj = eval(objStr);
      		imgTurl = 'images/' + imgName + '_descrip.gif';      
      		imgRurl = 'images/' + imgName + '_square_over.gif';
      		document.descrip.src=imgTurl;
      		obj.src = imgRurl;  
      		} 
       	else if (thisNav == 'ei_off') {
       		document.tale_s.src="images/tale_square.gif";
       		document.woman_s.src="images/woman_square.gif";
       		document.agutter_s.src="images/agutter_square.gif";
	  		objStr = 'document.' + imgName + '_s';
      		obj = eval(objStr);
      		imgTurl = 'images/default_descrip.gif';      
      		imgRurl = 'images/' + imgName + '_square_over.gif';
      		document.descrip.src=imgTurl;
      		obj.src = imgRurl;
      		}          		       		
	}
}

