/* public area javascript code
 * based on	dynlite dhtml dom api
 * peter assenov- AIP Solutions Ltd.' 2004
 * @version: 2.2.0.3/2004-11-23
 * !requires: dynlite.0.8.js 
 */
/* show - hide left menu */
function showFirst(par1,par2)
{	document.getElementById(par1).style.display="block";
	document.getElementById(par2).style.display="none";
	if(document.getElementById('bigpic1')){
		document.getElementById('bigpic1').style.display="block";
		document.getElementById('bigpic2').style.display="none";
	}
	uffic=document.getElementById('ufficioControl').style;
	uffic.background="#8C8C8C";
	uffic.color="#FFFFFF";
	cas=document.getElementById('casaControl').style;
	cas.background="#ECECEC";
	cas.color="#8C8C8C";
}
function showSecond(par1,par2)
{	document.getElementById(par1).style.display="none";
	document.getElementById(par2).style.display="block";
	if(document.getElementById('bigpic1')){
		document.getElementById('bigpic1').style.display="none";
		document.getElementById('bigpic2').style.display="block";
	}
	uffic=document.getElementById('ufficioControl').style;
	uffic.background="#ECECEC";
	uffic.color="#8C8C8C";
	cas=document.getElementById('casaControl').style
	cas.background="#8C8C8C";
	cas.color="#FFFFFF";
}
/* show - hide search div */
function searchOn()
{	document.getElementById('advancedSearch').style.display="block";
	document.getElementById('advSearchHeader').style.display="block";
}
function searchOff()
{	document.getElementById('advancedSearch').style.display="none";
	document.getElementById('advSearchHeader').style.display="none";
}
/* popup */
function popupopen(file,w,h)
{	this.popupW=w||370;
	this.popupH=h||370;
	this.popupX=parseInt(((ns6)? window.innerWidth:document.body.offsetWidth)/2-this.popupW/2)||100;			
	this.popupY=parseInt(((ns6)? window.innerHeight:document.body.offsetHeight)/2-this.popupH/2)||50;
	if(this.popupWin)
	{	this.popupWin.close();
		this.popupWin=0;
	} 
	this.popupWin=window.open(file,'popupWindow','left='+this.popupX+',top='+this.popupY+',width='+this.popupW+',height='+this.popupH+',scrollbars=1');
	this.popupWin.focus();
};
/* modified popup function */
function openPopUp(par)
{popupWin=window.open('../popUp.html?'+par,'','left=100,top=100,width=390,height=315,scrollbars=1');}

/* end of public scripts */