/* 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;
//winh=(ns6)? window.innerHeight:document.body.offsetHeight;
//if(winw<980)	document.write('<style>div.content{left:440px;}div.contentInner{left:485px;}</style>')
//if(winh<670||window.alignTop)	document.write('<style>div.content{top:335px;}div.contentInner{top:335px;}div.backgrIndexLeft{top:335px;}div.backgrIndexRight{top:335px;}div.backgrInner{top:335px;}</style>')
onresize=function(){self.location.reload()}

//search-effect
function searchFocus()
{	if(document.forms[0].elements[0].value=="search") document.forms[0].elements[0].value="";
}
/* popup window managing */
popupWin=0;
popupOpen=function(file,w,h) 
{	this.popupW=w||450;
	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,status=0');
	this.popupWin.focus();
};

footerPos=function(){
	document.getElementById('backgrInner').style.height=document.getElementById('text').offsetHeight-20;
}

//map functions
mob=new Object();
mob.pl=226-2;
mob.pt=142-2;
mob.zob=0;
mob.cob=0;
mob.timeout=0;

mob.select=function(ob)
{	this.cob=ob; /* area object */	
	var cords=this.cob.getAttribute('coords').split(',');
	
	if(this.lob) this.lob.className=this.lob.className.toString().replace(/mapActive/,'');
	this.lob=obj(this.cob.getAttribute('ref')); /* list object */
	this.lob.className+=' mapActive';
	
	if(!this.zob) this.zob=obj('mapZoom');/* zoom object */
	this.zob.style.left=this.pl+parseInt(cords[0])+'px';
	this.zob.style.top=this.pt+parseInt(cords[1])+'px';
	this.zob.innerHTML=this.lob.innerHTML;
	this.zob.on();
}
mob.over=function()
{	clearTimeout(this.timeout);
}	
mob.out=function(mode)
{	this.timeout=setTimeout("obj('mapZoom').off()",500);
}	
