// ==========================================================================
// Some variables and default Browsercheck
// ==========================================================================
// LOOK AT OTHER JS CODE IN CASE YOU NEED IT
// ==========================================================================
// MakePageCoordinates function to scan the user's available document body width and height plus add. options
// ==========================================================================
function makePageCoords(){
	this.x=0;
	this.x2=(bw.ns4 || bw.ns5)?innerWidth:document.body.offsetWidth;
	this.y=0;
	this.y2=(bw.ns4 || bw.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
}
// ==========================================================================
// Img-Swap and Highlight
// ==========================================================================
function on(name){
         document[name].src = eval(name + "on.src");
}

function off(name){
         document[name].src = eval(name + ".src");
}
// ==========================================================================
// rePosition function when resizing window or menubars (specify new pageCoords and re-position all objects)
// ==========================================================================
function rePos() {
	if (this.x2 != window.innerWidth || this.y2 != window.innerHeight)
	document.location.href = document.location.href
}
// ==========================================================================
// PopUp centered win with add. features
// ==========================================================================
function newWin(page, name, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(page, name, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}



