// JavaScript Document
var animId = null;
var hidePastDiv = null;

function showDiv(id){
    var whichdiv = document.getElementById(id);

if (animId != null){
	
	var tempPastDiv = document.getElementById(hidePastDiv);


	
	if(hidePastDiv == id){	
	clearInterval(animId);
	hidePastDiv = null;
	animId = null;
	tempPastDiv.style.visibility = 'visible';
		
	}else{
		tempPastDiv.style.visibility = 'hidden';
	}
    


}
		var agt=navigator.userAgent.toLowerCase();
		//alert(agt);
		if ( (agt.indexOf('msie 6.0') != -1) || (agt.indexOf('msie 7.0') != -1) ) {
			whichdiv.style.left = "0px";
			whichdiv.style.visibility = 'visible';
		}else if ( agt.indexOf('msie 8.0') != -1 ) {
		
			if ( id == 'MS_DropDown_Attorneys' ) {
				whichdiv.style.left = "-17px";
				whichdiv.style.visibility = 'visible';
			}else if( id == 'MS_DropDown_LearnMore' ){
				whichdiv.style.left = "-28px";
				whichdiv.style.visibility = 'visible';
			}else {
				whichdiv.style.left = "-7px";
				whichdiv.style.visibility = 'visible';
			}
				
		}else if ( agt.indexOf('safari') != -1 ) {
			 whichdiv.style.left = "-3px";
			 whichdiv.style.visibility = 'visible';
		}else{
			 whichdiv.style.visibility = 'visible';
		}
} 

function hideDiv(id){

    var whichdiv = document.getElementById(id);
			 whichdiv.style.visibility = 'hidden';
      
} 

function hideDivWithDelay(whichdiv){
	var div = whichdiv;
	hidePastDiv = div;
	animId = setInterval( "hideDiv('"+div+"');", 400); 
	
}

