//---------------------------------------------------------------------------------------------------------
//	DHTML JavaScript (ver 2.3)
//---------------------------------------------------------------------------------------------------------



//-------------------------------------------------------------------------------------------------------
//	Image swap
//-------------------------------------------------------------------------------------------------------
function swapImg(id,img)
{
	if( document.getElementById)
	{
		obj	= document.getElementById(id);
		obj.setAttribute( 'src', img );
	}
}



//----------------------------------//
//  Javascript - paintingDetails		//	
//  opens large horzonal window		//
//----------------------------------//	
	
	function paintingDetails(content,target)
{
	window.open(content,target,"menubar=0,statusbar=0,scrollbars=1,toolbar=0,location=0,width=800,height=650");
}

function DoJunc( url )
{
 if ( !opener.closed )
 {
  opener.document.location    = url
 } 
}


//---------------------------------------------------------------------------------------------------------
//	Pop-up window
//---------------------------------------------------------------------------------------------------------
var selectedID = 0;

function showbox(what)
{
	//	Hide existing one
	if (selectedID)
	{
		hidebox();	
	}
	
	boxobject							= document.getElementById('box' + what);
	boxobject.style.visibility			= 'visible'; 
	selectedID							= what;
}

function hidebox()
{
	if (selectedID)
	{
		selectedobject					= document.getElementById('box' + selectedID);
		selectedobject.style.visibility = 'hidden'; 
		selectedID						= 0;
	}
}
