function popUp(URL,width,height) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+width+",height="+height+"');");
}
function loadRollOver() {
	var imgs, i, src, qual, pre, img;
	pre = new Array();
	imgs = document.images;
	for(i = 0; i < imgs.length; i++) {
		src = imgs[i].getAttribute("src");
		qual = src.substring(src.lastIndexOf("_"),
		src.lastIndexOf("."));
		if(qual == "_off" || qual == "_on") {
			img = pre.push(new Image());
			pre[img-1].setAttribute("src", src.substring(0,
			src.lastIndexOf("_")) + (qual == "_off" ? "_on" : "_off") + src.substr(src.lastIndexOf(".")));
			if(qual == "_off") {
				imgs[i].onmouseover = function() {
					hoverOn(this);
				}
				imgs[i].onmouseout = function() {
					hoverOff(this);
				}
			}
		}
	}
}
function hoverOn(obj) {
	var src;
	src = obj.getAttribute("src");
	qual = src.substring(src.lastIndexOf("_"), src.lastIndexOf("."));
	if(qual == "_off") {
		obj.setAttribute("src", src.substring(0, src.lastIndexOf("_")) + "_on" + src.substr(src.lastIndexOf(".")));
	}
}

function hoverOff(obj) {
	var src;
	src = obj.getAttribute("src");
	obj.setAttribute("src", src.substring(0, src.lastIndexOf("_")) + "_off" + src.substr(src.lastIndexOf(".")));
}
window.onload = loadRollOver;


var win = null;
function NewWindow(mypage,myname,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings =
	'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	win = window.open(mypage,myname,settings)
}

