$(function(){
	//Prevent default link clicking
	
	$("a#morephotos_btn").click(function(event){
		event.preventDefault();
	});


	$("a#select_btn").click(function(event){
		$("#dropdown").toggle();
		event.preventDefault();
	});
		
	$("a#horton_btn,a#hawkinson_btn,a#hiawatha_btn,a#rayvic_btn,a#annex_btn").hover(
		function () {
			$(this).find("img").show();
		}, 
		function () {
			$(this).find("img").hide();
		}
	);
	
	$("a#morephotos_btn").click(function(event){
		$("#photoviewer").toggle();
		event.preventDefault();
	});
	
	$('#cycle').cycle({ 
    	fx: 'scrollHorz',
    	timeout: 0,
    	speed: '300',
		next: '#next_btn,#cycle img', 
    	prev: '#prev_btn',
   		before: function() {
   			var total = $("#cycle img").length;
   			var number = $("#cycle img").index(this) + 1;
   			
   			$(".total").html(total);
   			$(".number").html(number);
        }
	});
});