// image rollover
function rollover( imageobj )
{
	var mystring = imageobj.src;
	if( mystring.indexOf( ".gif" ) >= 1)	{ imageobj.src = mystring.replace( /\.gif/gi, '_over.html' ); }
	else					{ imageobj.src = mystring.replace( /\.jpg/gi, '_over-2.html' ); }
}


// image rollout
function rollout( imageobj )
{
	var mystring = imageobj.src;
	if( mystring.indexOf( ".gif" ) >= 1 )	{ imageobj.src = mystring.replace( /\_over\.gif/gi, '.gif' ); }
	else					{ imageobj.src = mystring.replace( /\_over\.jpg/gi, '.jpg' ); }
}


// fix height of two elements
function fixH(one,two)
{
	if( document.getElementById(one) )
	{
		// get height
		var lh	= document.getElementById(one).offsetHeight;
		var rh	= document.getElementById(two).offsetHeight;
		var nh	= Math.max(lh, rh);
		
		// set height
		document.getElementById(one).style.height	= nh+"px";
		document.getElementById(two).style.height	= nh+"px";
	}
}
