$(document).ready(function() {

$("#fb").hide();
$("#tw").hide();
$("#fl").hide();
$("#vd").hide();
$("#m0").hide();

	$.fn.supersized.options = {  
			startwidth: 1160,  
			startheight: 900,
			minsize: .50,
			slideshow: 0,
			slideinterval: 5000  
		};
        $('#supersize').supersized(); 
   
var height = $('#supersize').height();
var heightfix = '118';
var calHeight = height - heightfix;
$('#footer').css({top: calHeight});

$("#book1").hide();
$("#book2").hide();
$(".top_links #follow_box").hide();

$("#buy").click(function() {		
		$("#home-book").show("fast"); 
		$("#home-book").hide(); 
				return false;
	});

$(".book1 a").click(function() {		
		$("#book1").show("fast"); 
		$("#book1").hide(); 
				return false;
	});

$(".book2 a").click(function() {		
		$("#book2").show("fast"); 
		$("#book2").hide(); 
				return false;
	});


$(".top_links li#follow a").click(function() {
    $(".top_links #follow_box").show("fast");
   $(".top_links #follow_box").hide();
	return false;
  });
  /*
 $(".top_links li#follow a").hover(function() {
    $(".top_links #follow_box").hide();
  });
	
	$(".follow_body li#facebook a").mouseover(function(){
		$("#fb").show("fast");
	});
	$(".follow_body li#facebook a").mouseout(function(){
		$("#fb").hide();
	});
	
	$(".follow_body li#twitter a").mouseover(function(){
		$("#tw").show("fast");
	});
	$(".follow_body li#twitter a").mouseout(function(){
		$("#tw").hide();
	});
	
	$(".follow_body li#flickr a").mouseover(function(){
		$("#fl").show("fast");
	});
	$(".follow_body li#flickr a").mouseout(function(){
		$("#fl").hide();
	});
	
	$(".follow_body li#video a").mouseover(function(){
		$("#vd").show("fast");
	});
	$(".follow_body li#video a").mouseout(function(){
		$("#vd").hide();
	});
	
	$(".follow_body li#mission a").mouseover(function(){
		$("#m0").show("fast");
	});
	$(".follow_body li#mission a").mouseout(function(){
		$("#m0").hide();
	});*/
});