window.onload = function ()
{
	document.forms["search"].elements["q"].focus();
};

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// based on tooltip script by www.webmatze.de
wmtt = null;
img = null;
document.onmousemove = updateWMTT;
function updateWMTT (e) 
{
	var x = 0;
	var y = 0;
	if (wmtt != null) 
	{
		offset = (document.documentElement) ? document.documentElement : document.body;
		x = (document.all) ? window.event.x + offset.scrollLeft : e.pageX;
		y = (document.all) ? window.event.y + offset.scrollTop  : e.pageY;
		
		wmtt.style.left = (x - 1) + "px";
		wmtt.style.top 	= (y + 30) + "px";
	}
}
function showWMTT(id, imgUrl) 
{
	if (imgUrl == "" || document.getElementById == undefined)
	{
		return;
	}
	img = document.getElementById ("bigImg");
	img.src = imgUrl;
	wmtt = document.getElementById (id);
	wmtt.style.display = "block"
}
function hideWMTT() 
{
	if (wmtt == null)
	{
		return;
	}
	wmtt.style.display = "none";
	img.src = "laden.gif";
}
function getScrollXY () 
{
	var os = new Object ();
	os.x = 0;
	os.y = 0;
	if( typeof( window.pageYOffset ) == 'number' ) 
	{
		//Netscape compliant
		os.y = window.pageYOffset;
		os.x = window.pageXOffset;
	} 
	else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) 
	{
		//DOM compliant
		os.y = document.body.scrollTop;
		os.x = document.body.scrollLeft;
	} 
	else if( document.documentElement &&
	  ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) 
	{
		//IE6 standards compliant mode
		os.y = document.documentElement.scrollTop;
		os.x = document.documentElement.scrollLeft;
	}
 	return os;
}
function gt2 (s)
{
	s = s.split("&").join("%");
	gt (s);
}
