	//////////////
	//standard.js	
	var pfadjust=20;
	var isIE, isNN, dom, isMac, isN6;
    //var STYLE_PATH = "/instyle/read/styles/";
	if (document.all){
		isIE = true;
		dom = document.all;
	} else if (document.layers){
		isNN = true;
		dom = document.layers;
		document.captureEvents(Event.RESIZE);
	    window.onresize = handleNNResize;
		pfadjust=pfadjust-1;
	} else if ((navigator.appName == "Netscape") && (document.getElementById)){
		isN6 = true;
        dom = document.getElementsByTagName;
    }
	
	var agent = navigator.userAgent.toLowerCase();
	if (agent.lastIndexOf('mac') < 0) {
		isMac = false;
	} else {
		isMac = true;
	}
	
	var is_major = parseInt(navigator.appVersion);
	var is_ie   = (agent.indexOf("msie") != -1);
	var is_ie3  = (is_ie && (is_major < 4));
	var is_ie4  = (is_ie && (is_major == 4) && (agent.indexOf("msie 5.0")==-1) );
	var is_ie5up  = (is_ie  && !is_ie3 && !is_ie4);

	// handle netscape resize bug
	var ws, hs;
	if (isNN){
		ws = window.innerWidth;
		hs = window.innerHeight;
	}
	
	function handleNNResize(){
		if (isNN){
			if (window.innerWidth != ws || window.innerHeight != hs) {
				window.location.href = window.location.href;
			}
		}
	}
	
	function writeLayer(n,x,y,w,h,z,vis,cnt,exn,exe) {
		document.write(returnLayer(n,x,y,w,h,z,vis,cnt,exn,exe));
	}
	
	function returnLayer(n,x,y,w,h,z,vis,cnt,exn,exe){
		if (isNN) {
			vis == 1 ? vis='show' : vis='hide';
			return '<layer width='+w+' height='+h+' left='+x+' top='+y+' name="'+n+'" z-index='+z+' visibility="'+vis+'" '+exn+'>'+cnt+'</layer>';
		} else if (isIE) {
			vis == 1 ? vis='visible' : vis='hidden';
			return '<div id="'+n+'" style="position:absolute;width:'+w+';height:'+h+';left:'+x+';top:'+y+';z-index:'+z+';visibility:'+vis+';'+exe+'" >'+cnt+'</div>';
		} else if (isN6) {
			vis == 1 ? vis='visible' : vis='hidden';
            //return '<div id="'+n+'" style="position:absolute;width:'+w+';height:'+h+';left:'+x+';top:'+(y-10)+';z-index:'+z+';visibility:'+vis+';'+exe+'" >'+cnt+'</div>';
        return '<div id="'+n+'" style="position:absolute;width:'+w+';height:'+h+';left:'+x+';top:'+y+';z-index:'+z+';visibility:'+vis+';'+exe+'" >'+cnt+'</div>';
		}
		
	}
	
	function switchImg(which,newSrc,nnLayer){
		var layerInfo = "";
		var my_src = eval(newSrc);
		if (isNN){
			layerInfo = nnLayer;
		}
		eval(layerInfo + "document.images['" + which + "'].src = '" + my_src.src + "'");
	}
	
	function returnMapArea(left,top,width,height,href,over,out){
		var str = '<AREA COORDS="'+ left +','+ top +','+ (left + width) +','+ (top + height) +'" HREF="'+ href +'" onmouseover="'+ over +'" onmouseout="'+ out +'">';
		return str;
	}
	
	function switchVis(id, state){
		var my_vis;
		if (isIE) {
			state ? my_vis = "visible" : my_vis = "hidden";
			dom[id].style.visibility = my_vis;
		} else if (isNN) {
			state ? my_vis = "show" : my_vis = "hide";
			dom[id].visibility = my_vis;
		} else if (isN6) {
            state ? my_vis = "visible" : my_vis = "hidden";
            document.getElementById(id).style.visibility = my_vis;
        }
	}
	

	function goLocation(loc){
		location.href = loc;
	}
	   
	function updateParent(newURL) {
		opener.document.location = newURL;
		timoutID=setTimeout("focusMain()",100)
	}
	
	function focusMain(){
		opener.document.focus();
		clearTimeout(timeoutID)
	}
	


