homepage=function(){menuHover();$('.menu').fadeIn(2000,function(){$('.titleHome').fadeIn(1000);});};offres=function(){menuHover();$(window).load(function(){$('.overflow').jScrollPane({showArrows:true});});$('.menu').fadeIn(2000,function(){$('.titleHome').fadeIn(1000);});if($('.offres').length>0)
{leftToRight($('.offres'),1500,275);leftToRight($('.menun2'),1500,0);}
if($('.pub').length>0)
{rightToLeft($('.pub'),1500,0);}}

studio=function(){menuHover();$('.overflow').jScrollPane({showArrows:true,autoReinitialise:true});$('.menu').fadeIn(1000);$('.lightbox').lightBox({'fixedNavigation':true});$('.lien_refresh a').bind('click',function(e){e.preventDefault();$('body').fadeOut('slow',function(){document.location.href=$(e.currentTarget).attr('href');});});if($('.actus').length>0)
{leftToRight($('.actus'),1500,275);leftToRight($('.menun2'),1500,0);}else if($('.revue').length>0){leftToRight($('.revue'),1500,0);}else{leftToRight($('.leftToRight'),1500);}};portfolio=function(){menuHover();$('.menu').fadeIn(1000);$('.portfolioNav .portfolioItems').bind('click',function(e){e.preventDefault();var imgSrc=$(e.currentTarget).find('img').attr('src').replace("thumb","large");var html=$('<div>');html.append(jQuery('<img>',{'src':imgSrc}));html.append(jQuery('<p>',{text:$(e.currentTarget).attr('title'),'class':'smallGrey stronger'}));html.append(jQuery('<p>',{text:"",'class':'smallGrey'}));$('.fullSize').css({display:'none'}).fadeIn().html(html);});}
menuHover=function(){init=function(){$('.menu').hover(function(e){menuOpen(e.currentTarget);},function(e){menuClose(e.currentTarget);});}
init();};menuOpen=function(elm){$(elm).animate({'bottom':0},{queue:false,duration:500});}
menuClose=function(elm){$(elm).delay(300).animate({'bottom':-105},{queue:false,duration:200});}
leftToRight=function(elm,time,offset){if(undefined==offset){offset=52;}
init=function(){elm.animate({'left':offset},{queue:false,duration:time,easing:'easeInExpo'});}
init();}
rightToLeft=function(elm,time,offset){if(undefined==offset){offset=52;}
init=function(){elm.animate({'right':offset},{queue:false,duration:time,easing:'easeInExpo'});}
init();}
$(window).ready(function(){jQuery('body').addClass('js');$('.lien_refresh a').bind('click',function(e){e.preventDefault();$('body').fadeOut('slow',function(){document.location.href=$(e.currentTarget).attr('href');});});$('body').fadeIn('slow');});
