// JavaScript Document
mainNavHover = function() {
	var sfEls = document.getElementById("mainNav").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"), "");
		}
	}
}
function categoryNavHover() {
	
		var sfEls = document.getElementById("categoryNav").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"), "");
		}
	}	
}
function adjustHeights()
{

var content_height=document.getElementById('content').offsetHeight;
var the_height=document.getElementById('pageBody').offsetHeight;

if(content_height>the_height){
document.getElementById('wrapper').style.height=content_height+144+"px";
}
if(content_height<the_height){
	document.getElementById('wrapper').style.height=the_height-144+"px";
	//alert(content_height);

}

var wrapper_height=document.getElementById('wrapper').offsetHeight;

if((content_height<wrapper_height-144)&&(the_height>550)){
document.getElementById('content').style.height=wrapper_height-244+"px";	
	
}
}