document.oNav=["aboutUs","inventory","services","quality","contactUs","orderTracking","careers","customerServices"];

var aboutUs = new Image(); aboutUs.src = "img/nav/aboutUs.jpg"; var aboutUs_z = new Image(); aboutUs_z.src = "img/nav/aboutUs_z.jpg";
//var news = new Image(); news.src = "img/nav/news.jpg"; var news_z = new Image(); news_z.src = "img/nav/news_z.jpg";
var inventory = new Image(); inventory.src = "img/nav/inventory.jpg"; var inventory_z = new Image(); inventory_z.src = "img/nav/inventory_z.jpg";
var services = new Image(); services.src = "img/nav/services.jpg"; var services_z = new Image(); services_z.src = "img/nav/services_z.jpg";
var quality = new Image(); quality.src = "img/nav/quality.jpg"; var quality_z = new Image(); quality_z.src = "img/nav/quality_z.jpg";
var contactUs = new Image(); contactUs.src = "img/nav/contactUs.jpg"; var contactUs_z = new Image(); contactUs_z.src = "img/nav/contactUs_z.jpg";
var orderTracking = new Image(); orderTracking.src = "img/nav/orderTracking.jpg"; var orderTracking_z = new Image(); orderTracking_z.src = "img/nav/orderTracking_z.jpg";
var careers = new Image(); careers.src = "img/nav/careers.jpg"; var careers_z = new Image(); careers_z.src = "img/nav/careers_z.jpg";
var customerServices = new Image(); customerServices.src = "img/nav/customerServices.jpg"; var customerServices_z = new Image(); customerServices_z.src = "img/nav/customerServices_z.jpg";



function init(){

}
function setpageArea(){
	document.junk=oMaker('div_pageArea');
	document.junk.el.className="pageArea";
	pg = new pginfo();
	if (bw.ie){
	document.title = "ie "+document.junk.el.scrollHeight +" - "+ Math.random();
		document.junk.css.height="100%";
	}
	else{
	document.title = "ie "+document.junk.el.scrollHeight +" - "+ Math.random();
		document.junk.css.height="100%";
	
	}
	setTimeout("setpageArea();",5000);
}
function mLover(id,div){ 
	if (document.images){
			if (bw.ns4 && div){	document.layers[div].document[id].src=eval(id+"_z.src");		} 
			else {			document[id].src=eval(id+"_z.src");		}
	}
}

function mLout(id,div){	
	if (document.images){
			if (bw.ns4 && div){	document.layers[div].document[id].src=eval(id+".src");		} 
			else {			document[id].src=eval(id+".src");		}
	}
}
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie = (this.ie4 || this.ie5 || this.ie6)?1:0; 
	this.pc=(navigator.appVersion.indexOf("Mac") == -1)
	this.iepc=(this.pc &&  (this.ie4 || this.ie5 || this.ie6)==1)
	this.ie4mac=((!this.pc) &&  (this.ie)==1)
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns5mac=((!this.pc) && (this.ns5)==1)
	this.iemac=((!this.pc) && (this.ie5)==1)
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}

bw=new checkBrowser()	


function oMaker(div,nest){ 
	this.el=new Object();
  this.css=new Object();
  this.el=bw.dom?document.getElementById(div):bw.ie4?document.all[div]:bw.ns4?nest?document[nest].document[div]:document[div]:0;  
	this.css=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	return this;
}

function dshow(div,nest){	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 	obj.visibility='visible';
}

function dhide(div,nest){	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 	obj.visibility='hidden';
}
function fill(code,div,nest){	  this.el=bw.dom?document.getElementById(div):bw.ie4?document.all[div]:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
  	if (bw.ns4){		this.el.document.open(); this.el.document.write(code); this.el.document.close();	}
	  else{ this.el.innerHTML = code;}
}

var pg = false;

function pginfo(){ 
	this.x=0; 	this.y=0;
	this.wid=(bw.ns4 || bw.ns5)?window.innerWidth:document.body.clientWidth;
	this.hei=(bw.ns4 || bw.ns5)?window.innerHeight:document.body.clientHeight;
	return this;
}		
