$(document).ready(function(){

	//$("div#mygalone").slideView();

	$('#slideshow').cycle({ 
        fx:     'scrollHorz', 
        speed:   800, 
        timeout: 5000, 
        pager:  '#ss-nav', 
        before: function() {  
            $('#caption').html(this.alt); 
        } 
    });

	if(document.getElementById("gridview")) {
	
		$(".grid li").click(function(){
			window.location=$(this).find("h3:first a:first").attr("href");
		});
		$(".grid li").hover(function(){
			$(this).addClass("hover");
			$(this).css({"cursor" : "pointer"});
			},function(){
			$(this).removeClass("hover");
		});
	}
	if(document.getElementById("mod_feature")) {
	
		$("#mod_feature").click(function(){
			window.location=$(this).find("h4:first a:first").attr("href");
		});
		$("#mod_feature").hover(function(){
			$(this).addClass("hover");
			$(this).css({"cursor" : "pointer"});
			},function(){
			$(this).removeClass("hover");
		});
	}
	if(document.getElementById("short_bios")) {
	
		$(".bio_col").click(function(){
			window.location=$(this).find("p:first a:first").attr("href");
		});
		$(".bio_col").hover(function(){
			$(this).find("a:first").addClass("hover");
			$(this).css({"cursor" : "pointer"});
			},function(){
			$(this).find("a:first").removeClass("hover");
		});
	}
	
	if(document.getElementById("commentform")) {
		$("#commentform").validate();
	}
});
