
var bottomid;
function init()
{
expandHide(1);
expandHide(2);
expandHide(3);
expandHide(4);
expandHide(5);
enableTooltips('content_tooltip');
enableTooltips('bottomNav');
}
function openlink(address)
{
document.location(address);
}
$(document).ready(function() {

	$("#nav").find("li").hover(function() {
	 $(this).css("background","url('images/left_hover.jpg') repeat-x center");
	  }, function() {
 $(this).css("background","none");
	});
	
   $("#nav").find("li:has('ul')").hover(function() {
   $(this).children("ul").animate({opacity: 'show'}, "fast").css("display","block");
 }, function() {
	$(this).children("ul").css("display","none");
	});
	
	
	 
 });

function over(a)
	{
     // background:url("../images/tablefthover.jpg") no-repeat left top;
//	  background:url("../images/tabrighthover.jpg") no-repeat right top;
//	 document.getElementbyId('tabs1').style.color="red";
	tab_id="tabs"+a;
	 document.getElementById(tab_id).style.backgroundImage= "url('images/tablefthover.jpg')";
	  document.getElementById(tab_id).firstChild.style.backgroundImage= "url('images/tabrighthover.jpg')";
	  document.getElementById(tab_id).firstChild.style.color= "#333333";
	  document.getElementById(tab_id).firstChild.getElementsByTagName("ul")[0].style.color= "#000000";

	links=document.getElementById(tab_id).firstChild.getElementsByTagName("a");
	  for(i=0;i<links.length;i++){
	  	  links[i].style.color= "#24618E";
		  }
	}
	
function out(a)
	{
		 document.getElementById(tab_id).style.backgroundImage= "url('images/tableft.gif')";
		  document.getElementById(tab_id).firstChild.style.backgroundImage= "url('images/tabright.gif')";
 	 	 document.getElementById(tab_id).firstChild.style.color= "#24618E";

	  document.getElementById(tab_id).firstChild.getElementsByTagName("ul")[0].style.color= "#999999";
	links=document.getElementById(tab_id).firstChild.getElementsByTagName("a");
	  for(i=0;i<links.length;i++){
	  	  links[i].style.color= "#999999";
		  }

}	

function scrollpage(a)
	{
	bottomid=a;
window.scrollTo(0,document.body.clientHeight);
	document.getElementById(a).style.borderWidth="2px";
	document.getElementById(a).style.borderStyle="solid";
	document.getElementById(a).style.borderColor="#777777";
	setTimeout("clearborder()",250);	
	}

function clearborder()
	{
document.getElementById(bottomid).style.borderStyle="none";
	}
