	 IE4 = (document.all) ? 1 : 0;
	 NS4 = (document.layers) ? 1 : 0;
	 ver4 = (IE4 || NS4) ? 1 : 0;
	 mac = (navigator.userAgent.indexOf("Mac") != -1);
	 imLoaded = false;
	
	 function imHideLayer(layer) {
	 if(!ver4||!imLoaded) {
	 return;
	 }
	 if(IE4) {
	 imElement = eval("document.all." + layer + ".style");
	 } else {
	 imElement = eval("document." + layer);
	 }
	 imElement.visibility = "hidden";
	 }
	 function imShowLayer(layer) {
	 if(!ver4||!imLoaded) {
	 return;
	 }
	 if(IE4) {
	 imElement = eval("document.all." + layer + ".style");
	 } else {
	 imElement = eval("document." + layer);
	 }
	 imElement.visibility = "visible";
	 }
	
	 function imMapOver(on,x1,y1,x2,y2,hidden) {
	 if(!ver4||(IE4&&mac)||!imLoaded) {
	 return;
	 }
	 if(IE4) {
	 imElement = eval("document.all." + hidden + ".style");
	 } else {
	 imElement = eval("document." + hidden);
	 }
	 if(!on) { 
	 imElement.visibility = "hidden";
	 return;
	 }
	 if(NS4) {
	 imElement.clip.top = y1;
	 imElement.clip.right = x2;
	 imElement.clip.bottom = y2;
	 imElement.clip.left = x1;
	 } else {
	 imElement.clip = "rect(" + y1 + " " + x2 + " " +
	 y2 + " " + x1 + ")";
	 }
	 imElement.visibility = "visible";
	 }
	
	 function imPosition(source, destination,offtop,offleft) {
	 if(!ver4||(IE4&&mac)||!imLoaded) {
	 return;
	 }
	 if(IE4) {
	 var left = 0;
	 var top = 0;
	 imSource = eval("document.all." + source);
	 imDestination = eval("document.all." + destination);
	 imParent = imDestination;
	 while(imParent.tagName != "BODY") {
	 top += imParent.offsetTop;
	 left += imParent.offsetLeft;
	 imParent = imParent.offsetParent;
	 }
	 imSource.style.left = left+offleft;
	 imSource.style.top = top+offtop;
	 } else {
	 imSource = eval("document." + source);
	 imDestination = eval("document." + destination);
	 x = imDestination.pageX?imDestination.pageX:imDestination.x;
	 y = imDestination.pageX?imDestination.pageY:imDestination.y;
	 x+=offleft;
	 y+=offtop;
	 imSource.moveTo(x,y);
	 }
	 }
	
	 function imHideAllLayers() {
	 imHideLayers(true,"");
	 }
	
	 function imHideLayers(hideall,match) {
	 if(!ver4||(IE4&&mac)||!imLoaded) {
	 return;
	 }
	 if(IE4) {
	 divs = document.all.tags("DIV");
	 for(i = 0; i < divs.length; i++) {
	 if(hideall || divs(i).id.indexOf(match) != -1) {
	 divs(i).style.visibility = "hidden";
	 }
	 }
	 } else if(NS4) {
	 for(i = 0; i < document.layers.length; i++) {
	 if(hideall || document.layers[i].name.indexOf(match) != -1) {
	 document.layers[i].visibility = "hidden";
	 }
	 }
	 }
	 }
	
	 function imRedo() {
	 window.location.reload();
	 }
	
	 function imResize() {
	 setTimeout("window.onresize=imRedo",500);
	 }
	 window.onload = imResize
	 onload = imResize;

    function conHideLayers() {
    }

    function conShowLayer(lname,td) {
    }
	
    imLoaded = true;

	window.onerror = null;
 	onerror = null;
	conTimer=0;

    function imClicked(event) {
        imHideLayers(false,'con');
        return(true);
    }
    if(NS4) {
        document.onmousedown=imClicked;
        onmousedown=imClicked;
    }

    function conHideLayers() {
        imHideLayers(false,'con');
        clearTimeout(conTimer);
        if(window.event) {
            window.event.returnValue = true;
        }
        return(true);
    }

    function conShowLayer(lname) {
        imShowLayer(lname);
		    }
		
	function conHideLayer(lname) {
        imHideLayer(lname);
		    }
