<!--//--><![CDATA[//><!--
	function switchDiv(div_id) {
		var style_sheet = getStyleObject(div_id);
		if (style_sheet) {
			changeObjectVisibility("menu","hidden");
			changeObjectVisibility("menuitems","hidden");
			if (div_id == "menu") {
		  		changeObjectVisibility(div_id,"visible");
				changeObjectVisibility('menuitems',"visible");
			} else {
				changeObjectVisibility(div_id,"visible");
			}
		} else {
		  	alert("Please try again with a current browser.");
		}
	}
	
	function getStyleObject(objectId) {
		if(document.getElementById && document.getElementById(objectId)) {
			return document.getElementById(objectId).style;
		}
		else if (document.all && document.all(objectId)) {  
			return document.all(objectId).style;
		} 
		else if (document.layers && document.layers[objectId]) { 
			return document.layers[objectId];
		} else {
			return false;
		}
	}
	
	function changeObjectVisibility(objectId, newVisibility) {
	    var styleObject = getStyleObject(objectId);
	    if(styleObject) {
			styleObject.visibility = newVisibility;
			return true;
	    } else {
			return false;
	    }
	}
	
	function showLayer(layer) {
		changeObjectVisibility("menu","hidden");
		changeObjectVisibility("menuitems","hidden");
		if (layer == "menu") {
	  		changeObjectVisibility(layer,"visible");
			changeObjectVisibility('menuitems',"visible");
		} else {
			changeObjectVisibility(layer,"visible");
		}
	}

	var yclipTop = 0;
	var yclipWidth = 400;
	var yclipBottom = 360;
	var ytopper = 0;
	var ylyrheight = 0;
	var ytime,yamount,ytheTime;
	var DHTML;
	
	function init() {
		DHTML = (document.getElementById || document.all || document.layers)
		if (!DHTML) return;

		var y = new getObj('menuitems');
		if (document.layers) {
			ylyrheight = y.style.clip.bottom;
			ylyrheight += 20;
			y.style.clip.top = yclipTop;
			y.style.clip.left = 0;
			y.style.clip.right = yclipWidth;
			y.style.clip.bottom = yclipBottom;
		} else if (document.getElementById || document.all)	{
			ylyrheight = y.obj.offsetHeight;
			var yclipstring = 'rect('+yclipTop+'px,'+yclipWidth+'px,'+yclipBottom+'px,0)';
			y.style.clip = yclipstring;
		}
	}
	
	function scrollayery(layername,amt,tim) {
		if (!DHTML) return;
		thelayer = new getObj(layername);
		if (!thelayer) return;
		yamount = amt;
		ytheTime = tim;
		realscrolly();
	}
	
	function stopScrolly() {
		if (ytime) clearTimeout(ytime);
	}

	function realscrolly() {
		if (!DHTML) return;
		yclipTop += yamount;
		yclipBottom += yamount;
		ytopper -= yamount;
		if (yclipTop < 0 || yclipBottom > ylyrheight) {
			yclipTop -= yamount;
			yclipBottom -= yamount;
			ytopper += yamount;
			return;
		}
		if (document.getElementById || document.all) {
			clipstring = 'rect('+yclipTop+'px,'+yclipWidth+'px,'+yclipBottom+'px,0)'
			thelayer.style.clip = clipstring;
			thelayer.style.top = ytopper + 'px';
		} else if (document.layers)	{
			thelayer.style.clip.top = yclipTop;
			thelayer.style.clip.bottom = yclipBottom;
			thelayer.style.top = ytopper;
		}
		ytime = setTimeout('realscrolly()',ytheTime);
	}
	
	function getObj(name) {
		if (document.getElementById) {
		    this.obj = document.getElementById(name);
			this.style = document.getElementById(name).style;
		} else if (document.all) {
		    this.obj = document.all[name];
			this.style = document.all[name].style;
		} else if (document.layers) {
		   	this.obj = document.layers[name];
		   	this.style = document.layers[name];
		}
	}
//--><!]]>
