$(document).ready(function(){jQuery.extend(jQuery.browser,{SafariMobile:navigator.userAgent.toLowerCase().match(/iP(hone|ad)/i)});$(function(){if($.browser.SafariMobile)$(".description").css({width:"212px",left:"-1px",bottom:"-1px"}),$("#music").css({display:"none"});else{positionAmount=300;var b=function(a){return newPosition=scrollPercentage*positionAmount*a-positionAmount*a};$(window).height()>=$(document).height()?$(".img4").css("backgroundPosition","100% 30px"):$(".img4").css("backgroundPosition",
"-9999px -9999px");$(window).scroll(function(){scrollPercentage=$(window).scrollTop()/($(document).height()-$(window).height());$("#introduction_wrapper").css({opacity:1-scrollPercentage*1.4});$("#featured").css("backgroundPosition","-30px "+(b(1.6)+105)+"px");$(".img4").css("backgroundPosition",""+(b(0.1)+115)+"% "+(b(1.6)+30)+"px");scrollPercentage==1&&$("#like").animate({bottom:"0"});$(window).scrollTop()<$(document).height()-$(window).height()-50&&$("#like").css("bottom","-50px");scrollPercentage==
1&&$("#gplus").animate({bottom:"0"});$(window).scrollTop()<$(document).height()-$(window).height()-50&&$("#gplus").css("bottom","-50px")});$(document).bind("keydown",function(a){if(a.keyCode=="40")return $(window)._scrollable().stop(),$.scrollTo("+=200",500,"easeOutExpo"),!1;if(a.keyCode=="38")return $(window)._scrollable().stop(),$.scrollTo("-=200",500,"easeOutExpo"),!1})}})});jQuery(window).load(function(){$("#topimage").backgroundScale({imageSelector:"#image",centerAlign:!0,containerPadding:100})});
