// ----------------
// DESIGN4WORKS.COM
// ----------------



//-----------------------------------------------------------------------------
// getObject
//-----------------------------------------------------------------------------
function getObject( elem )
{
	if ( document.all )
	{
		return document.all[ elem ];
	}
	else
	{
		return document.getElementById( elem );
	}
}



//-----------------------------------------------------------------------------
// hilite unhilite
//-----------------------------------------------------------------------------

var prefix = "../";

function hilite( name, aPrefix) {
	if ( aPrefix == 1) {
		prefix = "";
	}
	window.document.images[ name ].src = prefix+"images/"+name+"_hover.gif";
	return true;
}

function unhilite( name, aPrefix ) {
	if ( aPrefix == 1) {
		prefix = "";
	}
	window.document.images[ name ].src = prefix+"images/"+name+".gif";
	return true;
}




//-----------------------------------------------------------------------------
// toggleDisplay
//-----------------------------------------------------------------------------
function toggledisplay( id ){
  var mydiv = getObject( id );
  mydiv.style.display = ( mydiv.style.display=='block'?'none':'block' );
} 


function showImage( aElementID, aImageID, aImageURL ) {
	window.document.images[ aImageID ].src = aImageURL;
	var picturebox = getObject( 'text' );
	
	picturebox.style.display = 'none';
}

