dom = (document.getElementById) ? true : false;
ns5 = (navigator.userAgent.indexOf("Gecko")>-1) ? true: false;
ie5 = (navigator.userAgent.indexOf("MSIE")>-1) ? true : false;
ns4 = (document.layers && !dom) ? true : false;
ie4 = (document.all && !dom) ? true : false;
opera = (navigator.userAgent.indexOf("Opera")!=-1);
nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;

var origWidth, origHeight;

if (ns4) {
 origWidth = window.innerWidth;
 origHeight = window.innerHeight;
}

//window.onresize = reDo;

var theLyr, cssLyr,lyrWd, lyrHt;
var winWd;
var winHt;

function reDo() {
 if (window.innerWidth != origWidth || window.innerHeight != origHeight)
  window.location.reload();
 else
  window.location.reload();
}

function init(lyr) {
 //initLyr(lyr);
 //getWinInfo();
 //the content layer height = the window height - (6 + the header height + the content top and bottom margins)
 //lyrHt = winHt - 116;
 //fn_setHeight(cssLyr, lyrHt);
 initLyr('logo');
 fn_show(cssLyr); 
}

function initLyr(lyr) {
 theLyr = (ns4)? document.layers[lyr] : (ie4)? document.all[lyr] : (ie5||ns5)? document.getElementById(lyr): null;
 cssLyr = (ns4)? document.layers[lyr]: (ie4)? document.all[lyr].style: (ie5||ns5)? document.getElementById(lyr).style: null;
 lyrWd = (ns4)? cssLyr.clip.width: (cssLyr.width)? parseInt(cssLyr.width): theLyr.offsetWidth;
 lyrHt = (ns4)? cssLyr.clip.height: (cssLyr.height)? parseInt(cssLyr.height): theLyr.offsetHeight;
}

function getWinInfo() {
 winWd=(ie4||ie5)? document.body.clientWidth: window.innerWidth;
 winHt=(ie4||ie5)? document.body.clientHeight: window.innerHeight;
}

function fn_shiftTo(lyr,x,y) {
 if (ns4)
  lyr.moveTo(x,y);
 else
 {
  lyr.left=x+"px";
  lyr.top=y+"px";
 }
}

function fn_setHeight(lyr, ht) {
 lyr.height = ht;
}

function fn_setWidth(lyr, wd) {
 lyr.height = wd;
}

function fn_show(lyr) {
	lyr.visibility = "visible";
}

function OpenWin(page) {
 open(page,"","");
}
