(function($){

var easeType ='swing';
var animationTime = 200;

//$('.contactheader').css({visibility:'hidden'});

/*
$('.infobutton').toggle(function(){
	$('#hiddenheader').stop().animate({top: [0,easeType]},animationTime);
	$('#container').stop().animate({paddingTop:[420,easeType]},animationTime);
	$('.contactheader').css({visibility:'visible'});
},function(){
	$('#hiddenheader').stop().animate({top: [-200,easeType]},animationTime);
	$('#container').stop().animate({paddingTop:[220,easeType]},animationTime);
	$('.contactheader').css({visibility:'hidden'});
});
*/

$(document).scroll(function(){

	
	if ($(this).scrollTop() > 0 ) {
		$('#hiddenheader').stop().animate({top: [-200,easeType]},animationTime);
		$('#container').stop().animate({paddingTop:[220,easeType]},animationTime);
		// $('.contactheader').css({visibility:'hidden'});
	}
	
	if ($(this).scrollTop() === 0 ) {
		$('#hiddenheader').stop().animate({top: [0,easeType]},animationTime);
		$('#container').stop().animate({paddingTop:[420,easeType]},animationTime);
		// $('.contactheader').css({visibility:'visible'});
	}

	$('.likecover').click(function(){
		var permalink = $(this).attr('href');
		$(this).parent().html('<iframe src="http://www.facebook.com/plugins/like.php?href='+permalink+'&amp;layout=button_count&amp;show_faces=false&amp;width=120&amp;action=recommend&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:120px; height:21px;" allowTransparency="true"></iframe>').css('paddingTop','10px');
		$(this).hide();
		return false;
	});
	
});



})(this.jQuery);
























