/* browser snifer */
dom=(document.getElementById)?1:0;
ns6=(dom&&!document.all)?1:0;
if(!dom) alert('This site is not compatible with your browser!');
/* window positioning */
//winw=(ns6)? window.innerWidth:document.body.offsetWidth;
//if(winw<1000)	document.write('<style>div.content{left:500px;}</style>')
//onresize=function(){self.location.reload()}

/* popup window managing */
popupWin=0;
popupOpen=function(file,w,h) 
{	this.popupW=w||610;
	this.popupH=h||510;
	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=0');
	this.popupWin.focus();
};

function openPopUp(par)
{popupWin=window.open('popUp.php?'+par,'','left=10,top=10,width=580,height=550,scrollbars=1,resizable=yes');}

function openPopUpNews(par)
{popupWin=window.open('popUpNews.php?'+par,'','left=10,top=10,width=580,height=550,scrollbars=1,resizable=yes');}

/* spray nozzles left menu over effects */
function squareOver(par)
{	document.getElementById('little'+par).style.background="#72B3CE";
	document.getElementById('big'+par).style.background="#344190";
	document.getElementById('big'+par).style.border="1px solid #72B3CE";
}
function squareOut(par)
{	document.getElementById('little'+par).style.background="#344190";
	document.getElementById('big'+par).style.background="#72B3CE";
	document.getElementById('big'+par).style.border="1px solid #344190";
}

backgrPos=function(){
	//alert(document.getElementById('middleBlock').offsetHeight);
	if(document.getElementById('middleBlock').offsetHeight>620){
		document.getElementById('backgrLeft').style.height=document.getElementById('middleBlock').offsetHeight;
		document.getElementById('backgrRight').style.height=document.getElementById('middleBlock').offsetHeight-20;
	}
}