// JavaScript Document
var animId = null;
var hidePastDiv = null;

function showDiv(id){
    var whichdiv = document.getElementById(id);

if (animId != null){
	clearInterval(animId);
	hideDiv(hidePastDiv,link);
	hidePastDiv = null;
	animId = null;

}
		var agt=navigator.userAgent.toLowerCase();
		
		//concat strings to set the maintable cell background and then set it...
		var str1='NavTop_Cell_';
        var str2=id;
        var str3 = str1 + str2;
		var whichbg = document.getElementById(str3);
		whichbg.style.backgroundImage = "url(images/navtab-over.gif)"; 

		var str4='NavTop_MainButton_';
		var str5= str4 + str2;
		var whichbuttonlink = document.getElementById(str5);
		whichbuttonlink.style.color = '#256f4e'; 

		

		if ( (agt.indexOf('msie 6.0') != -1) || (agt.indexOf('msie 7.0') != -1) ) {
//fix IE 6
			whichdiv.style.visibility = 'visible';
			
			
			
		}else if ( agt.indexOf('safari') != -1 ) {
			
			 whichdiv.style.visibility = 'visible';
		}else{
			 whichdiv.style.visibility = 'visible';
		}
} 




function hideDiv(id){
var whichdiv = document.getElementById(id);

var agt=navigator.userAgent.toLowerCase();


//concat strings to set the maintable cell background and then switch it back...
		var str1='NavTop_Cell_';
        var str2=id;
		var str3='';
        str3 = str1 + str2;
		var whichbg = document.getElementById(str3);
		whichbg.style.backgroundImage = 'none'; 
		
		
		var str4='NavTop_MainButton_';
		var str5= str4 + str2;
		var whichbuttonlink = document.getElementById(str5);
		whichbuttonlink.style.color = '#ffffff';

		if ( (agt.indexOf('msie 6.0') != -1) || (agt.indexOf('msie 7.0') != -1) ) {

        //fix IE 6

		    whichdiv.style.visibility = 'hidden';
		}else{
			whichdiv.style.visibility = 'hidden';
		}
		 
      
} 


