$(function(){
	$("nav#glonav ul li").hover(function(){
		if($("nav#glonav ul li ul").is(":visible")){ $(this).siblings().children("ul").animate({height: "hide", opacity: 0}, 500, "swing");}
		$(this).children("ul").filter(':not(:animated)').animate({height: "show", opacity: 1.0}, 500, "swing");
	},function(){
		$(this).children("ul").animate({height: "hide", opacity: 0}, 500, "swing");
	});
	$("img.hoverfade").hover(function(){
		$(this).stop().fadeTo("slow",0.7);
	},function(){
		$(this).stop().fadeTo("slow",1.0);
	});
	$("a[href^=#]").click(function(){
		var Hash = $(this.hash);
		var HashOffset = $(Hash).offset().top;
		$("html,body").animate({
			scrollTop: HashOffset
		}, 500, "swing");
		return false;
	});
	$("div.entry-cnt p a[href$='.pdf']").addClass("pdffile").attr("target","_blank");
	$("div.entry-cnt p a[href$='.xls'],div.entry-cnt p a[href$='.xlsx']").addClass("excelfile");
	$("div.entry-cnt p a[href$='.doc'],div.entry-cnt p a[href$='.docx']").addClass("wordfile");
	$("div.entry-cnt p a[href$='.ppt'],div.entry-cnt p a[href$='.pptx']").addClass("pptfile");

	$(".fbpic, a[rel=picgrp]").lightBox({
		imageLoading: 'images/lightbox-ico-loading.gif',
		imageBtnPrev: 'images/lightbox-btn-prev.gif',
		imageBtnNext: 'images/lightbox-btn-next.gif',
		imageBtnClose: 'images/lightbox-btn-close.gif',
		imageBlank: 'images/lightbox-blank.gif'
	});
	$("table.club-tdl").each(function(){
		$(this).find("td:even").addClass("club-tdl-even");
	});
	$("table.oddeven").each(function(){
		$(this).find("tr:even").addClass("tbl-even");
	});
});
