document.write('<link rel="stylesheet" type="text/css" href="css/script.css" />');

var ids = ['d0','d1','d2','d3','d4','d5','d6'];
function showDay(whch,ev) {
	for (i=0; i<7; i++){
		z = ids[i];
		if(document.getElementById){
			if(document.getElementById(z)){
				document.getElementById(z).style.display = "none";
			}
		}else if(document.all){
			if(document.all(z)){
				document.all(z).style.visibility = "hidden";
			}
		}else if(document.layers){
			if(document.layers[z]){
				document.layers[z].visibility = "hide";
			}
		}
	}
	z = whch;
	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";
    }
    if (!ev) { ev = window.event; }
    ev.cancelBubble = true;
    if (ev.stopPropagation) { ev.stopPropagation(); }
    if (ev.preventDefault) { ev.preventDefault(); }
}

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

function findaclub(frstday) {
	showDay(frstday);
}

/*
function cleardays() { $(".days").hide(); }

$(function() { cleardays(); $("#d1").show(); } );

$(function() {
	$("#d0").click(function() { cleardays(); $(this).show(); } );
	$("#d1").click(function() { cleardays(); $(this).show(); } );
	$("#d2").click(function() { cleardays(); $(this).show(); } );
	$("#d3").click(function() { cleardays(); $(this).show(); } );
	$("#d4").click(function() { cleardays(); $(this).show(); } );
	$("#d5").click(function() { cleardays(); $(this).show(); } );
	$("#d6").click(function() { cleardays(); $(this).show(); } );
});
*/

function showclubinfo(club) {
    nw = window.open("club.php?club=" + club, "ClubInfoWin");
	//       "width=410,height=400,toolbar=no,menubar=no,scrollbars=yes");
	}

function locationInfo() {
    $('a[href*=location]').click(function() {
        open(this.href); return false;
    });
}
$(document).ready(locationInfo);

function clubInfo() {
	$('a[href*=club_info]').click(function() {
		// open(this.href,'Club Info','width=400,height=300,scrollbars=yes');
		open(this.href);
		return false;
	});
}
$(clubInfo);

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


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