// Since javascript is running hide messages
$(function () { $('.js').hide(); } );

function showinfo(memb) {
	nw = window.open("member_info.php?member=" + memb, "MemberInfoWin");
//	     "width=410,height=400,toolbar=no,menubar=no,scrollbars=yes");
}

var M = ["m225","m226a","m226b","m226c","m226d","m226e","m226f","m226g","m226h","m226i","m226j","m226k","m226l","m226m","m226n","m226o"];
var N = "";
function hideEm(){
	for (i=0; i<M.length; i++) {
		hideIt(M[i]);
	}
}
function hideIt(z) {
	if(document.getElementById){
		document.getElementById(z).style.display = "none";
	}else if(document.all){
		document.all(z).style.visibility = "hidden";
	}else if(document.layers){
		document.layers[z].visibility = "hide";
	}
}
function showIt(z){
	hideEm();
	if (N == z) { return; }
    if(document.getElementById){
        document.getElementById(z).style.display = "block";
    }else if(document.all){
        document.all(z).style.visibility = "visible";
    }else if(document.layers){
        document.layers[z].visibility = "show";
    }
	N = z;
}

function manual_contents() {
	$('#manuals.proj').hide();
	$('#manuals a').click(function() { $(this).filter('.proj').show(); return false; });
}

function tableruler() {
    $('table.ruler>tbody>tr').hover(
        function() { $(this).addClass("ruled");}, function() { $(this).removeClass("ruled"); } );
}

$(tableruler);

function showHideCol3() {
	$('.proj').hide();
	$('#manuals tr').each(function() {
		$(this).click( function() {
			$('.proj').hide();
			$(this).children("td:eq(2)").children(".proj").show();
		} );
	});

}

$(function () {
    $('a[href*=member_info]').click(function() {
        // open(this.href,'meminfo','width=400,height=600,resizable,scrollbars'); return false
        open(this.href); return false;
    });
});

function getquote () {$("#quote").load("getquote.php"); }

$(function() {
	$("#quote").click(function(){
		$(this).fadeOut();
		$(this).load("getquote.php", { nocache:Math.random() },
			function() { $(this).fadeIn() }
		);
	});
});

/*
$(function() {
	$("#quote").parent("a").bind("click",function(){
		$("#quote").load("getquote.php", { nocache:Math.random() },
			$(this).fadeIn());
		return false;
	});
});
*/
