Array.prototype.inArray = function (value)
{
var i;
for (i=0; i < this.length; i++) 
{
	if (this[i] == value) 
	{
	return true;
	}
}
return false;
};

function IsNumeric(sText){
	var ValidChars = "0123456789.";
	var IsNumber=true;
	var Char;

	for (i = 0; i < sText.length && IsNumber == true; i++) 
		{ 
		Char = sText.charAt(i); 
		if (ValidChars.indexOf(Char) == -1) 
			{
				IsNumber = false;
			}
		}
	return IsNumber;
   
}


function highlight(e) {
	
	this.src = "img/labels/" + this.id + "_over.png";

}

function unhighlight(e) { 
	
	this.src = "img/labels/" + this.id + ".png";
	
}

function highlightBg(e) { 

	this.style.backgroundColor = "#f4f4f4";

}

function unhighlightBg(e) { 

	this.style.backgroundColor = "#fff";

}

function fadeIn(e){
				
	this.style.borderColor = "#000";
	
}

function fadeOut(e){
	
	this.style.borderColor = "#ccc";
	
}

function initTabs(){
	
	document.getElementById(currentPage).src = "img/labels/" + currentPage + "_over.png";
	
}

function getInfo(id){
		
	for(i = 1; i < 8; i++){
		
		thisOne = "r"+i;
		divId = "div_"+thisOne;

		if(thisOne==id){
			document.getElementById(divId).style.display = 'block';
			document.getElementById(thisOne).style.fontWeight = 'bold';
			document.getElementById(thisOne).style.padding = '3px 3px 1px 0px';
			document.getElementById(thisOne).style.borderBottom = '1px #dddddd solid';
		}else{
			document.getElementById(divId).style.display = 'none';
			document.getElementById(thisOne).style.fontWeight = 'normal';
			document.getElementById(thisOne).style.padding = '3px 3px 2px 0px';
			document.getElementById(thisOne).style.borderBottom = 'none';
		}
		
	}

	
}

