var currentPanel = 1;
function showPanel(panelNum){
	//hide visible panel, show selected panel, set tab
	hidePanel();
	document.getElementById('panel'+panelNum).style.visibility = 'visible';
	currentPanel = panelNum;
	setState(panelNum);
}
function hidePanel(){
	//hide visible panel, unhilite tab
	document.getElementById('panel'+currentPanel).style.visibility = 'hidden';
	document.getElementById('tab'+currentPanel).style.backgroundColor = '#6C84AA';
	document.getElementById('tab'+currentPanel).style.color = 'navy';
}
function setState(tabNum){
	if(tabNum==currentPanel){
		document.getElementById('tab'+tabNum).style.backgroundColor = '#ddddff';
		document.getElementById('tab'+tabNum).style.color = 'blue';
	}else{
		document.getElementById('tab'+tabNum).style.backgroundColor = '#6C84AA';
		document.getElementById('tab'+tabNum).style.color = 'navy';
	}
}
function hover(tab){
	tab.style.backgroundColor = 'ddddff';
}
function init()
{
	if (document.layers){
		//Netscape 4 specific code
		window.open("indexn4.htm","ITLohbergerN4");
		self.focus();
		self.close();
		return;	
	}
	if (document.getElementById){
		//Netscape 6 specific code
		showPanel(1);
		return;
	}
	if (document.all){
      //IE4+ specific code
	  showPanel(1);
	  return;
	}
}
