<!-- 
browser_ok=(((navigator.appName == "Netscape")&&(parseInt(navigator.appVersion)>=3))||((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>= 4)));


var omode = false;
var umode = false;

var ie = false;
var ns = false;
var ie4 = false;
ie = (navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion) >= 4);
ns = (navigator.appName == "Netscape")&&(parseInt(navigator.appVersion)>=4);

if( navigator.appVersion.search('MSIE 4.0') != -1 ) ie4=true;

var no_browser = -99999;


function hideLayer(layer) {
	if (ie) layer.style.visibility = "hidden";
	if (ns) layer.visibility = "hide";
	
}

function showLayer(layer) {
	if (ie) layer.style.visibility = "visible";
	if (ns) layer.visibility = "show";
}

function isVisible(layer) {
	if (ie && layer.style.visibility == "visible") return(true);
	if (ns && layer.visibility == "show") return(true);
	return(false);
}



function moveLayer(layer, x, y) {
	if (ns) layer.moveTo(x, y);
	if (ie) {
		layer.style.left = x; 
		layer.style.top  = y;
	}
}

function shiftLayer(layer, x, y) {
	if (ns) layer.moveBy(x, y);
	if (ie) {
		layer.style.pixelLeft += x;
		layer.style.pixelTop  += y;
	}
}

function getLeft(layer) {
	if (ie) return(layer.style.pixelLeft);
	if (ns) return(layer.left);
	return(no_browser);
}

function getRight(layer) {
	if (ie) return(layer.style.pixelLeft + getWidth(layer));
	if (ns) return(layer.left + getWidth(layer));
	return(no_browser);
}

function getTop(layer) {
	if (ie) return(layer.style.pixelTop);
	if (ns) return(layer.top);
	return(no_browser);
}

function getBottom(layer) {
	if (ie) return(layer.style.pixelTop + getHeight(layer));
	if (ns) return(layer.top + getHeight(layer));
	return(no_browser);
}

function getWidth(layer) {
	if (ns) {
		if (layer.document.width) return(layer.document.width);
		else return(layer.clip.right - layer.clip.left);
	}
  	if (ie) {
		if (layer.style.pixelWidth) return(layer.style.pixelWidth);
		else return(layer.clientWidth);
	}
	return(no_browser);
}

function getHeight(layer) {
	if (ns) {
		if (layer.document.height) return (layer.document.height);
		else return(layer.clip.bottom - layer.clip.top);
	}
	if (ie) {
		if (false && layer.style.pixelHeight) return(layer.style.pixelHeight);
		else return(layer.clientHeight);
	}
	return(no_browser);
}

function getZ(layer) {
	if (ns) return(layer.zIndex);
	if (ie) return(layer.style.zIndex);
	return(no_browser);
}

function setZ(layer, z) {
	if (ns) layer.zIndex = z;
	if (ie) layer.style.zIndex = z;
}



function clipLayer(layer, clipl, clipt, clipr, clipb) {
	if (ns) {
		layer.clip.left   = clipl;
		layer.clip.top    = clipt;
		layer.clip.right  = clipr;
		layer.clip.bottom = clipb;
	}
	if (ie) layer.style.clip = 'rect(' + clipt + ' ' +  clipr + ' ' + clipb + ' ' + clipl +')';
}

function getClipLeft(layer) {
	if (ns) return(layer.clip.left);
	if (ie) {
		if (!layer.style.clip) return(0);
		var c = IEClip(layer.style.clip);
		return(c[3]);
	}
	return(no_browser);
}

function getClipTop(layer) {
	if (ns) return(layer.clip.top);
	if (ie) {
		if (!layer.style.clip) return(0);
		c = IEClip(layer.style.clip);
		return(c[0]);
	}
	return(no_browser);
}

function getClipRight(layer) {
	if (ns) return(layer.clip.right);
	if (ie) {
		if (!layer.style.clip) return(layer.style.pixelWidth);
		c = IEClip(layer.style.clip);
		return(c[1]);
	}
	return(no_browser);
}

function getClipBottom(layer) {
	if (ns) return(layer.clip.bottom);
	if (ie) {
		if (!layer.style.clip) return(layer.style.pixelHeight);
		c = IEClip(layer.style.clip);
		return(c[2]);
	}
	return(no_browser);
}

function getClipWidth(layer) {
	if (ns) return(layer.clip.right);
	if (ie) {
		if (!layer.style.clip) return(layer.style.pixelWidth);
		c = IEClip(layer.style.clip);
		return(c[1] - c[3]);
	}
	return(no_browser);
}

function getClipHeight(layer) {
	if (ns) return(layer.clip.bottom);
	if (ie) {
		if (!layer.style.clip) return(layer.style.pixelHeight);
		c = IEClip(layer.style.clip);
		return(c[2] - c[0]);
	}
	return(no_browser);
}

function IEClip(str) {
	var c = new Array();
	var i; 
	i = str.indexOf("(");        c[0] = parseInt(str.substring(i + 1, str.length), 10);
	i = str.indexOf(" ", i + 1); c[1] = parseInt(str.substring(i + 1, str.length), 10);
	i = str.indexOf(" ", i + 1); c[2] = parseInt(str.substring(i + 1, str.length), 10);
	i = str.indexOf(" ", i + 1); c[3] = parseInt(str.substring(i + 1, str.length), 10);
	return(c);
}



function scrollLayerTo(layer, x, y, bound) {
	var dx = getClipLeft(layer) - x;
	var dy = getClipTop(layer) - y;
	scrollLayerBy(layer, -dx, -dy, bound);
}

function scrollLayerBy(layer, dx, dy, bound) {
	var cl = getClipLeft(layer);
	var ct = getClipTop(layer);
	var cr = getClipRight(layer);
	var cb = getClipBottom(layer);
	if (bound) {
		if (cl + dx < 0) dx = -cl;
		else if (cr + dx > getWidth(layer)) dx = getWidth(layer) - cr;
		if (ct + dy < 0) dy = -ct;
		else if (cb + dy > getHeight(layer)) dy = getHeight(layer) - cb;
	}
  clipLayer(layer, cl + dx, ct + dy, cr + dx, cb + dy);
  shiftLayer(layer, -dx, -dy);
}

var onUp = false;
var onDown = false;
var h = 0;
var w = 0;
var speed;



function doScrollUp(input){
if(input==1) temp = temp1;
if(input==2) temp = temp2;
if (ie) speed = 5;
if (ns) speed = 2;
if (onUp) {
	scrollLayerBy(temp, 0, -speed, true);
   	setTimeout('doScrollUp()', 1);
	}
}

function doScrollDown(input) {
if(input==1) temp = temp1;
if(input==2) temp = temp2;
if (ie) speed = 5;
if (ns) speed = 2;

if (h==0) h = getHeight(temp);
if (w==0) w = getClipHeight(temp);
if (onDown && (h > w)) {
	scrollLayerBy(temp, 0, speed, true);
	setTimeout('doScrollDown()', 1);
	}
}

function incSpeed() {
	 speed += 1;
}

function stopScroll() {
	onUp = false;
	onDown = false;
	if (ie) speed = 5;
	if (ns) speed = 2;
}



function setBgColor(layer, color) {
	if (ns) layer.bgColor = color;
	if (ie)layer.style.backgroundColor = color;
}

function setBgImage(layer, src) {
	if (ns) layer.background.src = src;
	if (ie) layer.style.backgroundImage = "url(" + src + ")";
}


function getLayer(name) {
	if (ns) return findLayer(name, document);
	if (ie) return eval('document.all.' + name);
	return null;
}

function findLayer(name, doc) {
	var i, layer;
	for (i = 0; i < doc.layers.length; i++) {
		layer = doc.layers[i];
		if (layer.name == name) return layer;
		if (layer.document.layers.length > 0) {
			layer = findLayer(name, layer.document);
			if (layer != null) return layer;
		}
	}
	return null;
}



function getWinWidth() {
	if (ns) return(window.innerWidth);
	if (ie) return(document.body.offsetWidth);
	return(no_browser);
}

function getWinHeight() {
	if (ns) return(window.innerHeight);
	if (ie) return(document.body.offsetHeight);
	return(no_browser);
}

function getPageWidth() {
	if (ns) return(document.width);
	if (ie) return(document.body.scrollWidth);
	return(no_browser);
}

function getPageHeight() {
	if (ns) return(document.height);
	if (ie) return(document.body.scrollHeight);
	return(no_browser);
}

function getScrollX() {
	if (ns) return(window.pageXOffset);
	if (ie) return(document.body.scrollLeft);
	return(no_broswser);
}

function getScrollY() {
	if (ns) return(window.pageYOffset);
	if (ie) return(document.body.scrollTop);
	return(no_browser);
}


function hideChild(visChild){
var n=0;
while(n<visChild.length){
	hideLayer(visChild[n]);
	n++;
	}
return;
}

function setLeft(source, dest){
	if(ns) dest.left = source.left;
	if(ie) dest.style.left = source.style.left;
}

function setTop(dest, offset){
	if(ns) dest.top = offset;
	if(ie) dest.style.top = offset;
}


function setWH(layer,width,height){
	if(ns) layer.resizeTo(width,height);
	if(ie){
		layer.style.width  =width;
		layer.style.height =height;
	}
	return;
}

