function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


CSAg = window.navigator.userAgent; 
CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("/")+1),10);
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSIEEle(s) { return document.all.tags("div")[s]; }
function CSNSStyl(s) { return CSFindElement(s,0); }
function CSFindElement(n,ly) { if (CSBVers < 4) return document[n];
	var curDoc = ly ? ly.document : document; var elem = curDoc[n];
	if (!elem) { for (var i=0;i<curDoc.layers.length;i++) {
		elem = CSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}
	return elem;
}

function MoveLayer(s,s2,offX,offY) {
	if (IsIE()) {
//		CSIEStyl(s).left = document.all.tags("a")[s2].offsetLeft + offX
//		CSIEStyl(s).top = document.all.tags("a")[s2].offsetTop + offY
		CSIEStyl(s).left = CSIEEle(s2).offsetLeft + offX
		CSIEStyl(s).top = CSIEEle(s2).offsetTop + offY
	} else {
		CSNSStyl(s).pageX = document.anchors[s2].x + offX
		CSNSStyl(s).pageY = document.anchors[s2].y + offY
//		CSNSStyl(s).pageX = CSNSStyl(s2).pageX + offX
//		CSNSStyl(s).pageY = CSNSStyl(s2).pageY + offY
	}
}

function ResizeCurrentWindow() {
	location.reload()
}

if (IsIE()) {
	self.onresize = ResizeCurrentWindow;
}

function SetReference(inlayer) {
	if (IsIE()) {
		document.write ('<div id="' + inlayer + '" style="position:relative; top:0px; left:0px; width:0px; height:0px; z-index:1;">');
	} else {
		document.write ('<a name="' + inlayer + '"></a>')
	}
}

function SetReferenceEnd() {
	if (IsIE()) {
		document.write ('</div>');
	}
}
