  function navigateTo(theTD, NewWindow){
  	if(theTD.childNodes){
		var Cnodes = theTD.childNodes;
		for(var i=0; i<Cnodes.length; i++){
			if(Cnodes[i].tagName && Cnodes[i].tagName.toLowerCase() == "a"){
				var TheURL = Cnodes[i].href;
				if(TheURL){
					if(NewWindow){
						window.open(TheURL);
					}
					else{
						top.location.href = TheURL;
					}					
				}
			}
		}
	}	
  }
 
 
 function setHover(theTD, MouseIsOverTD){
  	if(theTD.childNodes){
		var Cnodes = theTD.childNodes;
		theTD.style.cursor = 'hand';
		if(MouseIsOverTD){
			theTD.className = 'menualt';			
			for(var i=0; i<Cnodes.length; i++){
				if(Cnodes[i].tagName && Cnodes[i].tagName.toLowerCase() == "a"){
					Cnodes[i].style.color = '#FF0000';
				}
			}	
		}
		else{
			theTD.className = 'menu';
			for(var i=0; i<Cnodes.length; i++){
				if(Cnodes[i].tagName && Cnodes[i].tagName.toLowerCase() == "a"){
					Cnodes[i].style.color = '';
				}
			}			
		}
	}	
  }
  
  function setOn(sender, MouseIsOverTD){
  	if(!document.getElementById || !sender.id || sender.id.length < 5){return;}
	var TheImage, theTD
	var IndexNo = sender.id.split('_')[1];
	TheImage = document.getElementById('lnk_' + IndexNo).childNodes[0];
	theTD = document.getElementById('cell_' + IndexNo);
	if(MouseIsOverTD){
		theTD.childNodes[0].style.color = '#FFFFFF';
		theTD.className = 'menutopalt';		
		TheImage.src = TheImage.src.substring(0, TheImage.src.indexOf('.jpg')) + '_dwn.jpg';
	}
	else
	{
		theTD.childNodes[0].style.color = '';
		theTD.className = 'menutop';
		TheImage.src = TheImage.src.substring(0, TheImage.src.indexOf('_dwn.jpg')) + '.jpg';
	}
  }  

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function Replace(TheStr,TheDelStr,ThePutStr){
var Str=TheStr
var Del=TheDelStr
var Put=ThePutStr
	while(Str.match(Del)){
		tmp=Str.indexOf(Del)
		BeforRep=Str.substring(0, tmp)
		AfterRep=Str.substring(tmp+Del.length, Str.length)
		Str=BeforRep+Put+AfterRep
	}
	return Str
}

