sfHover = function() {     
var sfEls = document.getElementById("menu").getElementsByTagName("LI");  
for (var i=0; i<sfEls.length; i++) {        
	sfEls[i].onmouseover=function() {             
		this.className+=" over";         
	}         
	sfEls[i].onmouseout=function() {             
		this.className=this.className.replace(new RegExp(" over\\b"), "");        
	 }     
} 
} 
if (window.attachEvent) window.attachEvent("onload", sfHover); 


$(document).ready(function() {
	$('a#member_login').click(function() {
		$('#dimBackground').show();
		$('#member_login_form').show('slow');
	});
	$('a#close_mform').click(function() {
		$('#dimBackground').hide();
		$('#member_login_form').hide('slow');
	});
	if(document.getElementById('hideright')) {
		$('#right_pane').hide();
		$('#real_content').width(750);
	}
});

var prev_alink;
function showtab(tab,alink) {
	var obj = document.getElementById('plant_tab');
	
	$('#plant_tab_ul ').find('a').css({'background-color':'#33CC66','color':'#3f4244'});
	alink.style.backgroundColor = '#336600';
	alink.style.color = '#FFFFFF';
	if(tab==1) {
		obj.innerHTML = document.getElementById('general_info').innerHTML;
	} 
	else if(tab==2) {
		obj.innerHTML= document.getElementById('overview').innerHTML;
	}
	else if(tab==3) {
		obj.innerHTML = document.getElementById('salient').innerHTML;
	}
	else if(tab==4) {
		obj.innerHTML = document.getElementById('performance').innerHTML;
	}
	else if(tab==5) {
		obj.innerHTML = document.getElementById('summary').innerHTML;
	}
} 

/*window.onload = function() {
	if(document.getElementById('hideright')) {
		document.getElementById('right_pane').style.display = "none";
		document.getElementById('real_content').style.width = "750px";
	}
}*/

