jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});(function(b){var k={},a,l,c=document,i=window,h=c.documentElement,j=b.expando;b.event.special.inview={add:function(d){k[d.guid+"-"+this[j]]={data:d,$element:b(this)}},remove:function(d){try{delete k[d.guid+"-"+this[j]]}catch(m){}}};function g(){var n,d,m={height:i.innerHeight,width:i.innerWidth};if(!m.height){n=c.compatMode;if(n||!b.support.boxModel){d=n==="CSS1Compat"?h:c.body;m={height:d.clientHeight,width:d.clientWidth}}}return m}function e(){return{top:i.pageYOffset||h.scrollTop||c.body.scrollTop,left:i.pageXOffset||h.scrollLeft||c.body.scrollLeft}}function f(){var o=b(),n,m=0;b.each(k,function(y,x){var v=x.data.selector,w=x.$element;o=o.add(v?w.find(v):w)});n=o.length;if(n){a=a||g();l=l||e();for(;m<n;m++){if(!b.contains(h,o[m])){continue}var t=b(o[m]),u={height:t.height(),width:t.width()},d=t.offset(),p=t.data("inview"),r,q,s;if(!l||!a){return}if(d.top+u.height>l.top&&d.top<l.top+a.height&&d.left+u.width>l.left&&d.left<l.left+a.width){r=(l.left>d.left?"right":(l.left+a.width)<(d.left+u.width)?"left":"both");q=(l.top>d.top?"bottom":(l.top+a.height)<(d.top+u.height)?"top":"both");s=r+"-"+q;if(!p||p!==s){t.data("inview",s).trigger("inview",[true,r,q])}}else{if(p){t.data("inview",false).trigger("inview",[false])}}}}}b(i).bind("scroll resize",function(){a=l=null});setInterval(f,250)})(jQuery);(function(a){a.fn.jkey=function(j,m,l){var h=this;if(!this[0].parentNode){h=document}var f={a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,"0":48,"1":49,"2":50,"3":51,"4":52,"5":53,"6":54,"7":55,"8":56,"9":57,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,shift:16,ctrl:17,control:17,alt:18,option:18,opt:18,cmd:224,command:224,fn:255,"function":255,backspace:8,osxdelete:8,enter:13,"return":13,space:32,spacebar:32,esc:27,escape:27,tab:9,capslock:20,capslk:20,"super":91,windows:91,insert:45,"delete":46,home:36,end:35,pgup:33,pageup:33,pgdn:34,pagedown:34,left:37,up:38,right:39,down:40,"`":96,"~":96,"-":45,_:45,"=":187,"+":187,"[":219,"{":219,"]":221,"}":221,"\\":220,"|":220,";":59,":":59,"'":222,'"':222,",":188,"<":188,".":190,">":190,"/":191,"?":191};var k="";var i="";if(typeof m=="function"&&typeof l=="undefined"){l=m;m=false}if(j.toString().indexOf(",")>-1){var d=j.match(/[a-zA-Z0-9]+/gi)}else{var d=[j]}for(k in d){if(!d.hasOwnProperty(k)){continue}if(d[k].toString().indexOf("+")>-1){var c=[];var g=d[k].split("+");for(i in g){c[i]=f[g[i]]}d[k]=c}else{d[k]=f[d[k]]}}function b(o){var p,n={};for(p in o){if(o.hasOwnProperty(p)){n[o[p]]=p}}return n}var e=b(f);return this.each(function(){h=a(this);var n=[];h.bind("keydown.jkey",function(q){n[q.keyCode]=q.keyCode;if(a.inArray(q.keyCode,d)>-1){if(typeof l=="function"){l.call(this,e[q.keyCode]);if(m===false){q.preventDefault()}}}else{for(k in d){if(a.inArray(q.keyCode,d[k])>-1){var p="unchecked";for(i in d[k]){if(p!=false){if(a.inArray(d[k][i],n)>-1){p=true}else{p=false}}}if(p===true){if(typeof l=="function"){var o="";for(var r in n){if(n[r]!=""){o+=e[n[r]]+"+"}}o=o.substring(0,o.length-1);l.call(this,o);if(m===false){q.preventDefault()}}}}}}}).bind("keyup.jkey",function(o){n[o.keyCode]=""})})}})(jQuery);/*! Copyright (c) 2009 Brandon Aaron (http://brandonaaron.net)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 *
 * Version: 3.0.2
 * 
 * Requires: 1.2.2+
 */
(function(c){var a=["DOMMouseScroll","mousewheel"];c.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var d=a.length;d;){this.addEventListener(a[--d],b,false)}}else{this.onmousewheel=b}},teardown:function(){if(this.removeEventListener){for(var d=a.length;d;){this.removeEventListener(a[--d],b,false)}}else{this.onmousewheel=null}}};c.fn.extend({mousewheel:function(d){return d?this.bind("mousewheel",d):this.trigger("mousewheel")},unmousewheel:function(d){return this.unbind("mousewheel",d)}});function b(f){var d=[].slice.call(arguments,1),g=0,e=true;f=c.event.fix(f||window.event);f.type="mousewheel";if(f.wheelDelta){g=f.wheelDelta/120}if(f.detail){g=-f.detail/3}d.unshift(f,g);return c.event.handle.apply(this,d)}})(jQuery);window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){arguments.callee=arguments.callee.caller;var b=[].slice.call(arguments);(typeof console.log==="object"?log.apply.call(console.log,console,b):console.log.apply(console,b))}};(function(e){function h(){}for(var g="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,timeStamp,profile,profileEnd,time,timeEnd,trace,warn".split(","),f;f=g.pop();){e[f]=e[f]||h}})((function(){try{console.log();return window.console}catch(a){return window.console={}}})());$(document).ready(function(){var a=$("html").height();$("body").height(a+150);$("#main > div.grid_4").hover(function(){$("p",this).animate({height:"120px"},{queue:false,duration:500})},function(){$("p",this).animate({height:"0"},{queue:false,duration:500})});$(".view_more:not(.comingsoon)").click(function(){$(window).resize(function(){$("body").height($(window).height()).width($(window).width()).css("overflow","hidden");$(".fullscreen").width($(window).width()).height($(window).height())});var c=$(this).parent();$("footer").fadeIn(600);$(".fullscreen").fadeIn(600);var c=$(this).parent();var b=$(this).attr("href");$(".fullscreen div").load(b+" .slider",function(){$(".fullscreen").fadeIn(600);if($("img",this).hasClass("video")){$(".fullscreen .precedent, .fullscreen .suivant").hide();$("img",this).replaceWith('<iframe title="YouTube video player" width="820" height="559" src="http://www.youtube.com/embed/nxAvuHSrqos?hd=1" frameborder="0" allowfullscreen="" style="display: inline; "></iframe>')}});$("#sidebar").load(b+" .sidebar");$("body, html").height($(window).height()).width($(window).width()).css("overflow","hidden");$(".fullscreen").width($(window).width()).height($(window).height());$(".fullscreen .precedent").fadeOut();$(".fullscreen .suivant").fadeIn();return false});$(".suivant").click(function(){var c=$(this).parent();var d=$("img",c).length;var b=parseInt($(".fullscreen").attr("id"));$("img.active",c).animate({left:"-=2000px"},{duration:600,easing:"easeOutQuint",complete:function(){$(this).removeClass("active")}});b=b+1;if(b>1){$(".precedent",c).fadeIn(600)}else{$(".precedent",c).fadeOut(600)}if(b==d){$(".suivant",c).fadeOut(600)}$(c).attr("id",b);$("img:nth-child("+b+")",c).css("left","2000px");$("img:nth-child("+b+")",c).show(0,function(){$(this).addClass("active")});$("img:nth-child("+b+")",c).animate({left:"-=2000px"},{duration:600,easing:"easeOutQuint",complete:function(){}});return false});$(".precedent").click(function(){var c=$(this).parent();var d=$("img",c).length;var b=parseInt($(".fullscreen").attr("id"));$("img.active",c).animate({left:"+=2000px"},{duration:600,easing:"easeOutQuint",complete:function(){$(this).removeClass("active")}});b=b-1;$(c).attr("id",b);if(b<d){$(".suivant",c).fadeIn(600)}if(b==1){$(".precedent",c).fadeOut(600)}$("img:nth-child("+b+")",c).css("left","-2000px");$("img:nth-child("+b+")",c).show(0,function(){$(this).addClass("active")});$("img:nth-child("+b+")",c).animate({left:"+=2000px"},{duration:600,easing:"easeOutQuint",complete:function(){}});return false});$(document).jkey("left",function(){var c=$(".fullscreen");var d=$("img",c).length;var b=parseInt($(".fullscreen").attr("id"));if(b!==1){$("img.active",c).animate({left:"+=2000px"},{duration:600,easing:"easeOutQuint",complete:function(){$(this).removeClass("active")}});b=b-1;$(c).attr("id",b);if(b<d){$(".suivant",c).fadeIn(600)}if(b==1){$(".precedent",c).fadeOut(600)}$("img:nth-child("+b+")",c).css("left","-2000px");$("img:nth-child("+b+")",c).show(0,function(){$(this).addClass("active")});$("img:nth-child("+b+")",c).animate({left:"+=2000px"},{duration:600,easing:"easeOutQuint",complete:function(){}});return false}});$(document).jkey("right",function(){var c=$(".fullscreen");var d=$("img",c).length;var b=parseInt($(".fullscreen").attr("id"));if(b!==d){$("img.active",c).animate({left:"-=2000px"},{duration:600,easing:"easeOutQuint",complete:function(){$(this).removeClass("active")}});b=b+1;if(b>1){$(".precedent",c).fadeIn(600)}else{$(".precedent",c).fadeOut(600)}if(b==d){$(".suivant",c).fadeOut(600)}$(c).attr("id",b);$("img:nth-child("+b+")",c).css("left","2000px");$("img:nth-child("+b+")",c).show(0,function(){$(this).addClass("active")});$("img:nth-child("+b+")",c).animate({left:"-=2000px"},{duration:600,easing:"easeOutQuint",complete:function(){}});return false}});$(".close").click(function(){$("body").height(a+150);$("html").height(a+150).css("overflow","scroll");$("footer").fadeOut(600);if($("a.infoplus").hasClass("active")){$("a.infoplus").removeClass("active");
$("div#sidebar").css("right","-250px").css("display","none");$("div.fullscreen").animate({left:"0",},600)}var b=$(this).parent();$("div.fullscreen").attr("id","1");$("#sidebar").removeClass(".active");$(".slider",b).remove();$("#sidebar .sidebar").remove();$(b).slideUp(1000)});$(".galery a").click(function(){var c=$(this).parent();var d=$("img",c).length;var b=parseInt($(this).parent().attr("id"));if(b<3){$("img.active",c).animate({left:"-=2000px"},{duration:600,easing:"easeOutQuint",complete:function(){$(this).removeClass("active")}});b=b+1;if(b==d){$(".suivant",c).fadeOut(600)}$(c).attr("id",b);$("img:nth-child("+b+")",c).css("left","2000px");$("img:nth-child("+b+")",c).show(0,function(){$(this).addClass("active")});$("img:nth-child("+b+")",c).animate({left:"-=2000px"},{duration:600,easing:"easeOutQuint",complete:function(){$(this).addClass("active")}})}else{$("img.active",c).animate({left:"+=2000px"},{duration:600,easing:"easeOutQuint",complete:function(){$(this).removeClass("active")}});b=b-1;$(c).attr("id",b);$("img:nth-child("+b+")",c).css("left","-2000px");$("img:nth-child("+b+")",c).show(0,function(){$(this).addClass("active")});$("img:nth-child("+b+")",c).animate({left:"+=2000px"},{duration:600,easing:"easeOutQuint",complete:function(){$(this).addClass("active")}})}return false});$("a.infoplus").click(function(){if($(this).hasClass("active")){$("div#sidebar").fadeOut(200);$("div.fullscreen").dequeue().animate({left:"0",},600);$("div#sidebar").dequeue().animate({right:"-250px",},600);$(this).removeClass("active")}else{$("div#sidebar").fadeIn(200);$("div.fullscreen").dequeue().animate({left:"-250px",},600);$("div#sidebar").dequeue().animate({right:"0",},600);$(this).addClass("active")}return false});$(window).scroll(function(){if($(window).scrollTop()>=$(document).height()-$(window).height()){$("footer").fadeIn(600)}else{$("footer").fadeOut(600)}})});
