var rollovers = new Array();
var browser = new checkBrowser();
var preloadFlag = false;

function checkBrowser() { this.browser = navigator.userAgent.toLowerCase(); this.version = navigator.appVersion.toLowerCase(); this.mac = this.version.indexOf("mac")!= -1 ? 1 : 0; this.ns = (this.browser.indexOf("mozilla")!=-1&&this.browser.indexOf("compatible")==-1&&document.layers) ? 1 : 0; this.ie = (document.all) ? 1 : 0; this.dom = (document.getElementById) ? 1 : 0; this.domie = (this.dom&&this.ie) ? 1 : 0; this.domns = (this.dom&&!this.ie) ? 1 : 0; this.rollover = true; this.min = (this.ns||(this.ie&&(this.mac&&this.version.indexOf("msie 4")!=-1))||this.dom); return this; }
function reloadWindow() { window.location.href = window.location.href; }
function getElement(obj) { if (document.getElementById) { return document.getElementById(obj); } if (document.all) { return document.all[obj]; } if (document.layers) { return getLayer(obj, document); } }
function moveLayer(obj, x, y) { if (obj) { if (browser.dom) { obj.style.left = x + 'px'; obj.style.top = y + 'px' } ; if (browser.ie) { obj.style.pixelLeft = x; obj.style.pixelTop = y; } } else return false; }
function layerX(obj) { if (obj) { if (browser.ie) { return (obj.style.pixelLeft) ? obj.style.pixelLeft : obj.offsetLeft } ; if (browser.dom) { return (obj.style.left) ? parseInt(obj.style.left) : parseInt(obj.offsetLeft); } } else return null; }
function layerY(obj) { if (obj) { if (browser.ie) { return (obj.style.pixelTop) ? obj.style.pixelTop : obj.offsetTop } ; if (browser.dom) { return (obj.style.top) ? parseInt(obj.style.top) : parseInt(obj.offsetTop); } } else return null; }
function layerHeight(obj) { if (obj) { if (browser.dom) { return (obj.style.height) ? parseInt(obj.style.height) : parseInt(obj.offsetHeight) } ;	 if (browser.ie) { return (obj.style.pixelHeight) ? obj.style.pixelHeight : obj.offsetHeight; } } else return null; }
function layerWidth(obj) { if (obj) { if (browser.dom) { return (obj.style.width) ? parseInt(obj.style.width) : parseInt(obj.offsetWidth) } ;	 if (browser.ie) { return (obj.style.pixelWidth) ? obj.style.pixelWidth : obj.offsetWidth; } } else return null; }
function layerVisible(obj,visible) { if (obj) { if (browser.ie||browser.dom) { obj.style.visibility = visible } ; if (browser.ns) { obj.visibility = (visible=='visible') ? 'show' : 'hide'; } } else return null; }
function layerBgColor(obj,color) { if (obj) { obj.style.backgroundColor = color; } }
function layerColor(obj,color) { if (obj) { obj.style.color = color; } }
function clipLayer(obj,clipleft, cliptop, clipright, clipbottom) { if (obj) { obj.style.clip = 'rect(' + cliptop + 'px ' + clipright + 'px ' + clipbottom + 'px ' + clipleft +'px)'; } }
function getzIndex(obj) { return (obj) ? obj.style.zIndex : null; }
function setzIndex(obj,z) { if (obj) { if (browser.ie||browser.dom) obj.style.zIndex = z; } }
function setStyle(obj,style) { if (obj) { if (!browser.domie) { obj.setAttribute("style",style); } else { obj.style.cssText = style; } } };
function addRollover(obj) { if (rollovers) { rollovers[obj.id] = {on:obj.on, off:obj.off}; newImage(obj.on); } }
function rollover(obj) { if (rollovers) { if (getElement(obj)) { getElement(obj).src = rollovers[obj].on; } } }
function rollout(obj) { if (rollovers) { if (getElement(obj)) { getElement(obj).src = rollovers[obj].off; } } } 
function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } 
