//Change Search button image
function sbchange(sact)
{
	if(sact=="over"){document.getElementById("searchbid").className="buttonsearchb";return;}
	if(sact=="out"){document.getElementById("searchbid").className="buttonsearchr";return;}
	if(sact=="over1"){document.getElementById("formbtn").className="buttonformbtnb";return;}
	if(sact=="out1"){document.getElementById("formbtn").className="buttonformbtnr";return;}
}

//Extend background texture if fails
function pageheight()
{
	if (window.innerHeight && window.scrollMaxY) 
	{// Firefox
	yWithScroll = window.innerHeight + window.scrollMaxY;            
	} 
	else if (document.body.scrollHeight > document.body.offsetHeight)
	{ // all but Explorer Mac
	yWithScroll = document.body.scrollHeight;
	} 
	else 
	{ // works in Explorer 6 Strict, Mozilla (not FF) and Safari
	yWithScroll = document.body.offsetHeight;
	} 
PSWS=yWithScroll;
var prh=document.getElementById("pagerest").scrollHeight;
var prhn=document.getElementById("pagerest").style.height;
//alert("page"+PSWS+" scrolldiv"+prh+" heightdiv"+prhn);
if(prh<(PSWS-93))
{
	document.getElementById("pagerest").style.height=(PSWS-93);
}
return PSWS; 
}

function transwidth()
{
	var titlerest=712-document.getElementById('titletext').scrollWidth;
	document.getElementById('titlerest').style.width=titlerest+"px";
}