$(document).ready(function() {
       $('html, body').scrollTo($(window).height(), 100);
    $('#header h1 a').click(function () {
       $('img.seeSlideHover').css('top', $('img.seeSlideHover').height() * -1)
       $('.slide').css('height', $(window).height());
       $('.blogcontainer').css('height', $(window).height() *.65);
    			$('body,html').animate({
    				scrollTop: 0
    			}, 800);
    			return false;
    		});
    		var Test=0;
    $('#nav a#radio').click(function() {
      if (Test == 0) {
       $('.mursic').show('slow');
       $('#nav a#radio img').attr('src', 'wordpress/wp-content/themes/MuseumOfWonder/images/radio-off.png');
       $('#nav a#radio').addClass('radioOn');
       Test = 1;
       } else {
       $('.mursic').hide('slow');
       $('#nav a#radio img').attr('src', 'wordpress/wp-content/themes/MuseumOfWonder/images/ro-radio.png');
       $('#nav a#radio').removeClass('radioOn');
       Test=0;}
			return false;
		});
    $(document).pitchdeck({
        top_links: 'a.movers',
        nav: 'a.movers',
        easing: 'easeInOutQuart',
        next_button: '.next, .start',
        link_labels: false,
        keyboard: true
    });
    
    $('.slide').css('height', $(window).height())
    $('img.seeSlideHover').css('top', $('img.seeSlideHover').height() * -1)
    $(".hovercenter a").click(function() {
    		$("html, body").animate({
    			scrollTop: $($(this).attr("href")).offset().top + "px"
    		}, {
    			duration: 700
    		});
    		return false;
    	});
    	$("a.backdown").click(function() {
       		$("html, body").animate({
       			scrollTop: $($(this).attr("href")).offset().top + "px"
       		}, {
       			duration: 700
       		});
       		return false;
       	});
       		$("a.seemymap").click(function() {
             		$("html, body").animate({
             			scrollTop: $($(this).attr("href")).offset().top + "px"
             		}, {
             			duration: 700
             		});
             		return false;
             	});
});

$(document).ready(function(){
   $('#slide0').css('width', $(window).width())
   $('#slide0').css('height', $(window).height())
    $("img.seeSlideHover").fadeTo("slow", 0); // This sets the opacity of the thumbs to fade down to 60% when the page loads

    $(".hovercenter a").hover(function(){
       $('img.seeSlideHover').css('top', $('img.seeSlideHover').height() * -1)
        $('img.seeSlideHover').fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
    },function(){
        $('img.seeSlideHover').fadeTo("slow", 0); // This should set the opacity back to 60% on mouseout
    });
});
$(window).resize(function() {
   $('.slide').css('height', $(window).height())
    $('img.seeSlideHover').css('top', $('img.seeSlideHover').height() * -1)
    $('#slide0').css('width', $(window).width())
    $('#slide0').css('height', $(window).height())
})

