/* 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<800)	document.write('<style>div.content{left:380px;}</style>')
onresize=function(){self.location.reload()}

//search-effect
function searchFocus()
{	if(document.forms[0].elements[0].value=="search") document.forms[0].elements[0].value="";
	//alert(document.forms[0].elements[0].value)
}
/* popup window managing */
popupWin=0;
popupOpen=function(file,w,h) 
{	this.popupW=w||500;
	this.popupH=h||350;
	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();
};