function setBackground()
{
	var pos = findPosY(document.getElementById('wrapper'));				
	var calcHeight = (pos-144);				
	document.body.style.backgroundPosition  = '50% '+calcHeight+'px';
}
function findPosY(obj)
{
	var curtop = 0;
	if(obj.offsetParent)
		while(1)
		{
		  curtop += obj.offsetTop;
		  if(!obj.offsetParent)
			break;
		  obj = obj.offsetParent;
		}
	else if(obj.y)
		curtop += obj.y;
	return curtop;
}
  
window.onresize=setBackground;
window.onload=setBackground;


function highlightIcon(icon, obj)
{
	if(obj==null)
		obj = document.getElementById('icon_'+icon);
	if(obj.className!="active")
		obj.src = obj.src.replace('.png','_active.png');
}
function unHighlightIcon(icon, obj)
{
	if(obj==null)
		obj = document.getElementById('icon_'+icon);
	if(obj.className!="active")
		obj.src = obj.src.replace('_active.png','.png');
}
