


function identBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=((this.ver.indexOf("MSIE 5")>-1 || this.ver.indexOf("MSIE 6")>-1) && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	if (this.ns5) { 
		if (document.getElementsByTagName("*")) {
	   		document.all = document.getElementsByTagName("*");
		}
	} 
	//plus simple
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;	
	this.n = (document.layers) ? 1:0;
	this.ie = (document.all) ? 1:0;
//	alert(this.ns5);
	this.ib=(this.ie5 || this.ie4 || this.ns4 || this.ns5 || this.ie6)
	return this
}

function makePageCoords(){
	this.x=0;this.x2=(ib.ns4 || ib.ns5)?innerWidth:document.body.offsetWidth;
	this.y=0;this.y2=(ib.ns4 || ib.ns5)?innerHeight:document.body.offsetHeight;
	this.x50=this.x2/2;	this.y50=this.y2/2;
	this.x10=(this.x2*10)/100-5;this.y10=(this.y2*10)/100-5;
	this.x15=(this.x2*15)/100-5;this.y15=(this.y2*15)/100-5; 
	return this;
}

var initDone = false;


function resized(){
	pageData2 = new getPageData();
	if(pageData2.x2!=pageData.x2 || pageData2.y2!=pageData.y2){		
		location.reload();
	}
}

function fun_writeIt(text){
	if(ib.ns4){this.ref.write(text);this.ref.close()}
	else if(ib.ie4 || ib.ie5 || ib.ns5) this.evnt.innerHTML=text
//	else if(ib.ns5) null; //ADD NS5 HERE.
}
var lastClicked = 1000;


function makeSect(obj,nslay,stop){
	if ((y=MM_findObj(obj))!=null){
		nslay=(!nslay) ? '':'document.'+nslay+'.';	
		this.css=ib.dom?document.getElementById(obj).style:ib.ie4?document.all[obj].style:ib.ns4?eval(nslay+'document.'+obj):0;			
//		alert(obj);	
		this.ref=ib.dom || ib.ie4?document:ib.ns4?eval(nslay+'document.'+obj+'.document'):0;
		this.evnt=ib.dom?document.getElementById(obj):ib.ie4?document.all[obj]:ib.ns4?this.css:0;			
		this.scrollHeight=ib.ns4?this.ref.height:ib.ns5?this.css.height:this.evnt.offsetHeight;
		this.scrollWidth=ib.ns4?this.ref.width:ib.ns5?this.css.width:this.evnt.offsetWidth;
		this.writeref=ib.dom? document.getElementById(obj):ib.ie4?document.all[obj]:ib.ns4?eval(nslay+"document."+obj+".document"):0;					
		this.moveObj=fun_moveObj;										
		this.moveBy=fun_moveBy;
		this.writeIt = fun_writeIt;
		this.showObj = showObject;
		this.hideObj = hideObject;
		this.x=(ib.ns4 || ib.ns5)? parseInt(this.css.left):ib.ie4?this.evnt.pixelLeft:this.css.pixelLeft;
		this.y=(ib.ns4 || ib.ns5)? parseInt(this.css.top):ib.ie4?this.evnt.pixelTop:this.css.pixelLeft;							
		this.obj = obj + "Object";
		eval(this.obj + "=this"); 	
		this.stop=stop;		
		return this
	}
}

function getPageData(){
	this.x=0;this.x2=(ib.ns4 || ib.ns5)?innerWidth:document.body.offsetWidth;
	this.y=0;this.y2=(ib.ns4 || ib.ns5)?innerHeight:document.body.offsetHeight;
	this.x50=this.x2/2;	this.y50=this.y2/2;
	this.x10=(this.x2*10)/100-5;this.y10=(this.y2*10)/100-5
	this.x15=(this.x2*15)/100-5;this.y15=(this.y2*15)/100-5; 
	return this;
}

function showObject(){this.css.visibility="visible"}
function hideObject(){this.css.visibility="hidden"}
function fun_moveBy(x,y){this.x=this.x+x; this.y=this.y+y; this.css.left=this.x;this.css.top=this.y}
function fun_moveObj(x,y){this.x=x; this.y=y;this.css.left=this.x; this.css.top=this.y}

function show(div,nslay){
	obj=ib.dom?document.getElementById(div).style:ib.ie4?document.all[div].style:ib.ns4?nslay?document[nslay].document[div]:document[div]:0; 
	obj.visibility='visible';
	return
}
//Hides the div
function hide(div,nslay){
	obj=ib.dom?document.getElementById(div).style:ib.ie4?document.all[div].style:ib.ns4?nslay?document[nslay].document[div]:document[div]:0; 
	obj.visibility='hidden';
	return
}

if(initDone) self.focus();



