// JavaScript Document

$ = function(id) {return document.getElementById(id);}

menu_over = function(obj)
{
	obj.src = obj.src.substr(0,obj.src.length - 4) + "-h.png"; 
}

menu_out = function(obj)
{
	obj.src = obj.src.substr(0,obj.src.length - 6) + ".png"; 
}

menu_click = function(obj)
{
	obj.src = obj.src.substr(0,obj.src.length - 6) + "-a.png"; 
}


resizeDivs = function()
{
	var screenH = screen.height;
    var screenW = screen.width;
	var scrollBarDim = 16;
	var titleHeight = 182;
	
    if(document.all)
	{
        availW = document.body.clientWidth;
        availH = document.body.clientHeight;
    }
	else
	{
        availW = innerWidth;
		availH = innerHeight;
    }	
		
	$("menu").style.height = (parseInt(availH) - titleHeight) + 'px';	
}