function popupWindow(url,windowName,windowWidth,windowHeight){
	windowSize = "width=" + windowWidth + ",height=" + windowHeight + ",scrollbars=no" + ",resizable=yes" + ",top=10" + ",left=10";
	newWindow = window.open(url, windowName, windowSize);
	newWindow.focus();
}

function initRollOverImages() {
	var image_cache = new Object();
	$("img.RO").each(function(i) {
		var imgsrc = this.src;
		var dot = this.src.lastIndexOf('.');
		var imgsrc_on = this.src.substr(0, dot) + '_f2' + this.src.substr(dot, 4);
		image_cache[this.src] = new Image();
		image_cache[this.src].src = imgsrc_on;
		$(this).hover(
			function() { this.src = imgsrc_on; },
			function() { this.src = imgsrc; });
	});
}

function toPageTop(){
	window.scrollTo(0, 0);
}

function pullMemberLink(){
	var disp = document.getElementById('member-link').style.display;
	if(disp == "block"){
		document.getElementById('member-link').style.display = "none";
	} else {
		document.getElementById('member-link').style.display = "block";
	}
	return false;
}

$(document).ready(initRollOverImages);
