
j.domready(function(){spotHome=j.fx({object:['#b-home-h-i'],duration:500,easing:'bounceOut'});spotAbout=j.fx({object:['#b-about-h-i'],duration:500,easing:'bounceOut'});spotFollow=j.fx({object:['#b-follow-h-i'],duration:500,easing:'bounceOut'});moveAbout=j.fx({object:['#about-zone'],fps:[60],next:j.fx({object:['#about','#contacts'],duration:500,easing:'expoOut'})});moveSea=j.fx({object:['#back-sea-footer','#sea-wash-one','#sea-wash-two','#sea-wash-tree'],height:[null,570,570,570],marginLeft:[-100,-200,-400,-600],duration:8000,easing:'elasticOut',next:j.fx({object:['#back-sea-footer','#sea-wash-one','#sea-wash-two','#sea-wash-tree'],height:[null,517,517,517],marginLeft:[0,0,0,0],duration:5000,easing:'expoOut',next:j.script({code:function(){moveSea.play();}})})});showSocial=j.fx({object:['#social'],fps:[60],duration:500,easing:'bounceOut',next:j.fx({object:['#social'],fps:[60],duration:500,easing:'bounceOut'})});showMore=j.fx({object:['#show-more'],duration:500,easing:'expoOut'});loadMore=j.load({object:'#the-place',uri:'/more',next:j.script({code:function(){$$("show-more").innerHTML="show more";}})})
var aboutstat=false;var socialstat=false;var numposts=4;j.event({object:['#sea'],event:'mouseover',action:function(e){moveSea.$.$.code=function(){moveSea.play();}
moveSea.play();}}).play()
j.event({object:['#sea'],event:'mouseout',action:function(e){moveSea.$.$.code=null;moveSea.stop();moveSea.$.play();}}).play()
j.event({object:['#btn-about'],event:'mouseover',action:function(e){spotAbout.opacity=[100];if(!j.sniff('IE'))spotAbout.play();}}).play()
j.event({object:['#btn-about'],event:'mouseout',action:function(e){spotAbout.opacity=[0];if(!j.sniff('IE'))spotAbout.play();}}).play()
j.event({object:['#btn-home'],event:'mouseover',action:function(e){spotHome.opacity=[100];if(!j.sniff('IE'))spotHome.play();}}).play()
j.event({object:['#btn-home'],event:'mouseout',action:function(e){spotHome.opacity=[0];if(!j.sniff('IE'))spotHome.play();}}).play()
j.event({object:['#btn-follow'],event:'mouseover',action:function(e){spotFollow.opacity=[100];if(!j.sniff('IE'))spotFollow.play();}}).play()
j.event({object:['#btn-follow'],event:'mouseout',action:function(e){spotFollow.opacity=[0];if(!j.sniff('IE'))spotFollow.play();}}).play()
j.event({object:['#btn-follow'],preventDefault:true,event:'click',action:function(e){if(socialstat==false){showSocial.width=['auto'];showSocial.height=['null'];showSocial.$.height=['auto'];showSocial.play();socialstat=true;}else{showSocial.width=[11];showSocial.height=[11];showSocial.$.height=['null'];showSocial.play();socialstat=false;}}}).play()
j.event({object:['#btn-about'],preventDefault:true,event:'click',action:function(e){if(aboutstat==false){moveAbout.height=['auto'];moveAbout.easing='elasticOut';moveAbout.duration=1600;moveAbout.$.opacity=[100,0];moveAbout.play();aboutstat=true;}else{moveAbout.height=[0];moveAbout.easing='expoOut';moveAbout.duration=500;moveAbout.play();aboutstat=false;}}}).play()
j.event({object:['#show-more'],event:'mouseover',action:function(e){showMore.height=[88];showMore.play();}}).play()
j.event({object:['#show-more'],event:'mouseout',action:function(e){showMore.height=[82];showMore.play();}}).play()
var showMore=j.event({object:['#show-more'],event:'mouseover',action:function(e){numposts=numposts+4;$$('show-more').innerHTML='loading';if(numposts>=totalposts){loadMore.$.code=function(){$$("show-more").innerHTML="no more";$$("show-more").style.cursor="default";}
showMore.stop();}
loadMore.method='POST';loadMore.params='numposts='+numposts;loadMore.play();}})
showMore.play()})
