//<![CDATA[
$(document).ready(function(){

// H1 Hover + Logo Hover
	$("#logo a, h1 a").hover(
		function(){
			$("h1 a").addClass("logohover");
		},
		function(){
			$("h1 a").removeClass("logohover");
	});		
	$("#logo a, h1 a").hover(
		function(){
			$("ul.nav li#home").addClass("hot");
		},
		function(){
			$("ul.nav li#home").removeClass("hot");
	});		/**/
	
// redefine Cycle's updateActivePagerLink function 
$.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex) { 
    $(pager).find('li.homethumb').removeClass('overlay') 
        .filter('li.homethumb:eq('+currSlideIndex+')').addClass('overlay'); 
}; 						   
// Cycle gallery
	$('#slideshow').cycle({ 
		fx:    'fade',
		speed:  1500,
		timeout: 4000,
		delay:	  0,    // additional delay (in ms) for first 
						// transition (hint: can be negative)
		//speedIn:     null,  // speed of the "in" transition 
		//speedOut:    null,  // speed of the "out" transition
		width:	'706',
		next:   '#next', 
		prev:   '#previous',
		pause:         0,     // true to enable "pause on hover" 		
		pauseOnPagerHover: true, // true to pause when hovering over pager link 		
		pager:   '#nav', 
    	pagerEvent: 'mouseover',
		pagerAnchorBuilder: function(idx, slide) { 
       		// return selector string for existing anchor 
        	return 'li.homethumb:eq(' + idx + ')'; },
		activePagerClass: 'overlay' // class name used for the active pager link
		//updateActivePagerLink: 1     callback fn invoked to update the active
									 // pager link (adds/removes activePagerClass style)
		});
	
// homethumb hover
	$(".homethumb").hover(
		function(){
			$(this).addClass("overlay");
		},
		function(){
			$(this).addClass("overlay");}
	);		
	
// Entire Block clickable .homethumb .details
	$("li.homethumb .details").click(function(){
    	window.location=$(this).find("a").attr("href");return false;
	});

// Wall of fame:
// content fade in
	$("body.page-id-1464 #content").css(
		{"opacity": "0"}
		);	
	$('body.page-id-1464 #content').animate(
		{"opacity": "1.0"},
		{duration: 1000}
		);
// opacity onload
	$("body.page-id-1464 .entry p a img").css(
		{"opacity": "0.5"}
		);	
// opacity hover
$("body.page-id-1464 .entry p a img").hover(
		function(){
			$(this).animate(
				{"opacity": "1"},
				{duration: 50}
			);
		},
		function(){
			$(this).animate(
				{"opacity": "0.5"},
				{duration: 750}
			);
	});
// opacity click
$("body.page-id-1464 .entry p a img").click(
		function(){
			$(this).animate(
				{"opacity": "0.3"},
				{duration: 0}
			);
		},
		function(){
			$(this).animate(
				{"opacity": "1"},
				{duration: 0}
			);
	});

// First 3 Past List
	/*$("ul.past li:nth-child(1), ul.past li:nth-child(2), ul.past li:nth-child(3)").css(
		{"display": "none"}
	);*/

// homethumb onload
	/*$(".homethumb .overlay").css(
		{"display": "none"}
		);	*/
	/*$(".homethumb").hover(
		function(){
			$(".homethumb .overlay").css(
				{"display": "block"}
				);
		},
		function(){
			$(".homethumb .overlay").css(
				{"display": "none"}
				);
	});	*/
	
/*$(".narrowcolumn .post").hover(
		function(){
			$(this).css(
				{"backgroundColor": "#000000"},
				{"opacity": "0.3"}
				);
		},
		function(){
			$(this).css(
				{"backgroundColor": "transparent"},
				{"opacity": "0.3"}
				);
	});		*/
	
	

}); //close doc ready
//]]>

