function changeStatus (id)
{
	collapseAll();
	myObj = eval(id);
	if (myObj.style.display == 'none')
	{
		myObj.style.display = 'block';
	}
		
	else
		myObj.style.display = 'none'
}

function chgClass(id,classname){						
myObj = eval(id);

myObj.className = classname;

}


				

function HideItem (id)
{
	myObj = eval(id);
	myObj.style.display = 'none';
}

var TimeOutID

function collapseAll(){
 HideItem("About");
 HideItem("Investors");
 HideItem("Contact");
}

function openCurrent(id){
	 myObj = eval(id);
	myObj.style.display = 'block';
	clearTimeout(TimeOutID)
}

function openCurrent_in_3s(id){
	TimeOutID = setTimeout("openCurrent("+id+")", 1000)
}

function resizeWidth(){
	document.all.item("tblMainBody").style.height = document.body.clientHeight -166;
	if(document.body.clientWidth<=780){
		//document.all.item("tblHeader").style.width=780;
		//document.all.item("tblTopMenu").style.width=780;
		//document.all.item("tblTopSubMenu").style.width=780;
		document.all.item("tblMainBody").style.width=780;		
		//document.all.item("tblfooter1").style.width=780;			
		//document.all.item("tblfooter2").style.width=780;		
	}
	else{
		//document.all.item("tblHeader").style.width=document.body.clientWidth;
		//document.all.item("tblTopMenu").style.width=document.body.clientWidth;
		//document.all.item("tblTopSubMenu").style.width=document.body.clientWidth;
		document.all.item("tblMainBody").style.width=document.body.clientWidth;
		//document.all.item("tblfooter1").style.width=document.body.clientWidth;
		//document.all.item("tblfooter2").style.width=document.body.clientWidth;
	}	
}


function chgClass(id,classname){
	myObj = eval(id);
	myObj.className = classname;
}


function setFrameHeight(id, contentHeight)
{
	document.getElementById(id).height = contentHeight;
}

var ns = (document.layers)? true:false
var ie = (document.all)? true:false


/*This Function is used to begin a Layer or Div tag depending upon the browser and the parameters*/
function openlyr(lyrparam){
if(ns){
	document.write("<layer "+lyrparam+">")}
else{
	document.write("<div "+lyrparam+">")
}
}

/*This Function is used to end a Layer or Div tag depending upon the browser*/
function closelyr(){
if(ns){
	document.write("<\/layer>")}
else{
	document.write("<\/div>")
}
}

/*This Function is used to insert an HTML into Layer or Div*/
function inserthtml(lyr,htm){ 
if(ns){
	document.layers[lyr].document.write(htm);
	document.layers[lyr].document.close();
}
else{
	document.all.item(lyr).innerHTML=htm;
}
}