// PopUp

function popup(neu_width, neu_height, url, center) {
	neu_screenX = (center) ? ((screen.width-neu_width)/2) : 32;
	neu_screenY = (center) ? ((screen.height-neu_height-32)/2) : 32;
	neu_param = "directories=no,menubar=no,toolbar=no,status=no,resizable=yes,scrollbars=yes,width="+neu_width+",height="+neu_height+",screenX="+neu_screenX+",screenY="+neu_screenY;
	neu=window.open(url,"_popup",neu_param);
	neu.window.focus();
	neu.window.moveTo(neu_screenX, neu_screenY);
}


/*
Floating Menu script-  Roy Whittle (http://www.javascript-fx.com/)
Script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use

Changes by D++ David Weber 2006
*/

//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"


function JSFX_FloatTopDiv()
{
	var startX = -22,
	startY = 220;
	var ns = (navigator.appName.indexOf("Netscape") != -1);
	var d = document;
	function ml(id)
	{
		var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
		if(d.layers)el.style=el;
		el.sP=function(x,y) { this.style.left=x+"px"; this.style.top=y+"px"; };
		el.x = startX;
		if (verticalpos=="fromtop")
		el.y = startY;
		else{
		el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		el.y -= startY;
		el.style.visibility = "visible";
		}
		return el;
	}
	window.stayTopLeft=function()
	{
		if (verticalpos=="fromtop"){
		var pY = ns ? pageYOffset : document.body.scrollTop;
		ftlObj.y += (pY + startY - ftlObj.y)/8;
		} else {
		var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
		ftlObj.y += (pY - startY - ftlObj.y)/8;
		}
		ftlObj.sP(ftlObj.x, ftlObj.y);
		setTimeout("stayTopLeft()", 10);
	}
	ftlObj = ml("claim");
	stayTopLeft();
}

// Pulldown Menu

function startList() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("pulldownnav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}


window.onload = function() {
startList();
JSFX_FloatTopDiv();
}
