$(document).ready(function() {

 var easing = 'easeOutExpo';
 
 function resize() {
 var width = $(window.viewport).width();
 if (width < 267) { width = 267; }
 //$('#credit').animate({'left': Math.floor((width -
 //($('#credit').outerWidth())) / 5)}, {queue:false, duration:300, easing: easing}); }
 $('#credit').animate({'left': Math.floor((width -
 ($('#credit').outerWidth())))}, {queue:false, duration:300, easing: easing}); }

 resize();

 $(window).bind('resize', function() {
 resize();
 });

 $('#credit').hide().css('visibility', 'visible').fadeIn("fast");
 $('#credit').bind('mouseenter', function() {
 $('#credit').animate({"height": "320px"},{queue:false, duration:300, easing: easing});
 });
 $('#credit').bind('mouseleave', function() {
 $('#credit').animate({"height": "53px"},{queue:false, duration:300, easing: easing});
 });
 
 
 
  function resize() {
 var width = $(window.viewport).width();
 if (width < 267) { width = 267; }
 //$('#credit').animate({'left': Math.floor((width -
 //($('#credit').outerWidth())) / 5)}, {queue:false, duration:300, easing: easing}); }
 $('#about').animate({'left': Math.floor((width -
 ($('#about').outerWidth())))}, {queue:false, duration:300, easing: easing}); }

 resize();

 $(window).bind('resize', function() {
 resize();
 });

 $('#about').hide().css('visibility', 'visible').fadeIn("fast");
 $('#about').bind('mouseenter', function() {
 $('#about').animate({"height": "315px"},{queue:false, duration:300, easing: easing});
 });
 $('#about').bind('mouseleave', function() {
 $('#about').animate({"height": "40px"},{queue:false, duration:300, easing: easing});
 });
 
 /*------------------- + 20111009append------------------*/
 function resize() {
	 var width = $(window.viewport).width();
	 if (width < 267) { width = 267; }
	 //$('#credit').animate({'left': Math.floor((width -
	 //($('#credit').outerWidth())) / 5)}, {queue:false, duration:300, easing: easing}); }
	 $('#book').animate({'left': Math.floor((width -
	 ($('#book').outerWidth())))}, {queue:false, duration:300, easing: easing});
}

	 resize();

	 $(window).bind('resize', function() {
	 resize();
	 });

	 $('#book').hide().css('visibility', 'visible').fadeIn("fast");
	 $('#book').bind('mouseenter', function() {
	 $('#book').animate({"height": "425px"},{queue:false, duration:300, easing: easing});
	 });
	 $('#book').bind('mouseleave', function() {
	 $('#book').animate({"height": "40px"},{queue:false, duration:300, easing: easing});
	 });
/*------------------- - 20111009append------------------*/
 
  function resize() {
 var width = $(window.viewport).width();
 if (width < 200) { width = 200; }
 //$('#credit').animate({'left': Math.floor((width -
 //($('#credit').outerWidth())) / 5)}, {queue:false, duration:300, easing: easing}); }
 $('#news').animate({'left': Math.floor((width -
 ($('#news').outerWidth())))}, {queue:false, duration:300, easing: easing}); }

 resize();

 $(window).bind('resize', function() {
 resize();
 });

 $('#news').hide().css('visibility', 'visible').fadeIn("fast");
 $('#news').bind('mouseenter', function() {
 $('#news').animate({"height": "125px"},{queue:false, duration:300, easing: easing});
 });
 $('#news').bind('mouseleave', function() {
 $('#news').animate({"height": "40px"},{queue:false, duration:300, easing: easing});
 });
 
 
 
 
});




