(function(a,c){var b=function(a,b,c){var g;return function(){var i=this,h=arguments;g?clearTimeout(g):c&&a.apply(i,h);g=setTimeout(function(){c||a.apply(i,h);g=null},b||500)}};jQuery.fn[c]=function(a){return a?this.bind("resize",b(a)):this.trigger(c)}})(jQuery,"smartresize");
(function(a){function c(d){var c;return d&&d.constructor==Array&&d.length==3?d:(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(d))?[parseInt(c[1]),parseInt(c[2]),parseInt(c[3])]:(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(d))?[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(d))?[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]:
(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(d))?[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]:b[a.trim(d).toLowerCase()]}a.each("backgroundColor,borderBottomColor,borderLeftColor,borderRightColor,borderTopColor,color,outlineColor".split(","),function(b,e){a.fx.step[e]=function(b){if(b.state==0){var d;d=b.elem;var i=e,h;do{h=a.curCSS(d,i);if(h!=""&&h!="transparent"||a.nodeName(d,"body"))break;i="backgroundColor"}while(d=d.parentNode);d=c(h);b.start=d;b.end=c(b.end)}b.elem.style[e]=
"rgb("+[Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0]),255),0),Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1]),255),0),Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2]),255),0)].join(",")+")"}});var b={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,
0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,
203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery);
jQuery.cookie=function(a,c,b){if(arguments.length>1&&String(c)!=="[object Object]"){b=jQuery.extend({},b);if(c===null||c===void 0)b.expires=-1;if(typeof b.expires==="number"){var d=b.expires,e=b.expires=new Date;e.setDate(e.getDate()+d)}c=String(c);return document.cookie=[encodeURIComponent(a),"=",b.raw?c:encodeURIComponent(c),b.expires?"; expires="+b.expires.toUTCString():"",b.path?"; path="+b.path:"",b.domain?"; domain="+b.domain:"",b.secure?"; secure":""].join("")}b=c||{};e=b.raw?function(a){return a}:
decodeURIComponent;return(d=RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)").exec(document.cookie))?e(d[1]):null};
(function(a,c){function b(a,b){for(var d=decodeURI(a),d=i[b?"strict":"loose"].exec(d),c={attr:{},param:{},seg:{}},e=14;e--;)c.attr[f[e]]=d[e]||"";c.param.query={};c.param.fragment={};c.attr.query.replace(h,function(a,b,d){b&&(c.param.query[b]=d)});c.attr.fragment.replace(j,function(a,b,d){b&&(c.param.fragment[b]=d)});c.seg.path=c.attr.path.replace(/^\/+|\/+$/g,"").split("/");c.seg.fragment=c.attr.fragment.replace(/^\/+|\/+$/g,"").split("/");c.attr.base=c.attr.host?c.attr.protocol+"://"+c.attr.host+
(c.attr.port?":"+c.attr.port:""):"";return c}function d(a){a=a.tagName;return a!==c?e[a.toLowerCase()]:a}var e={a:"href",img:"src",form:"action",base:"href",script:"src",iframe:"src",link:"href"},f="source,protocol,authority,userInfo,user,password,host,port,relative,path,directory,file,query,fragment".split(","),g={anchor:"fragment"},i={strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/},
h=/(?:^|&|;)([^&=;]*)=?([^&;]*)/g,j=/(?:^|&|;)([^&=;]*)=?([^&;]*)/g;a.fn.url=function(b){var c="";this.length&&(c=a(this).attr(d(this[0]))||"");return a.url(c,b)};a.url=function(a,d){arguments.length===1&&a===!0&&(d=!0,a=c);a=a||window.location.toString();return{data:b(a,d||!1),attr:function(a){a=g[a]||a;return a!==c?this.data.attr[a]:this.data.attr},param:function(a){return a!==c?this.data.param.query[a]:this.data.param.query},fparam:function(a){return a!==c?this.data.param.fragment[a]:this.data.param.fragment},
segment:function(a){return a===c?this.data.seg.path:(a=a<0?this.data.seg.path.length+a:a-1,this.data.seg.path[a])},fsegment:function(a){return a===c?this.data.seg.fragment:(a=a<0?this.data.seg.fragment.length+a:a-1,this.data.seg.fragment[a])}}}})(jQuery);
var JSTweener={looping:!1,frameRate:60,objects:[],defaultOptions:{time:1,transition:"easeoutexpo",delay:0,prefix:{},suffix:{},onStart:void 0,onStartParams:void 0,onUpdate:void 0,onUpdateParams:void 0,onComplete:void 0,onCompleteParams:void 0},inited:!1,easingFunctionsLowerCase:{},init:function(){this.inited=!0;for(var a in JSTweener.easingFunctions)this.easingFunctionsLowerCase[a.toLowerCase()]=JSTweener.easingFunctions[a]},toNumber:function(a,c,b){b||(b="px");return a.toString().match(/[0-9]/)?Number(a.toString().replace(RegExp(b+
"$"),"").replace(RegExp("^"+(c?c:"")),"")):0},addTween:function(a,c){var b=this;this.inited||this.init();var d={};d.target=a;d.targetPropeties={};for(var e in this.defaultOptions)typeof c[e]!="undefined"?(d[e]=c[e],delete c[e]):d[e]=this.defaultOptions[e];d.easing=typeof d.transition=="function"?d.transition:this.easingFunctionsLowerCase[d.transition.toLowerCase()];for(e in c){d.prefix[e]||(d.prefix[e]="");d.suffix[e]||(d.suffix[e]="");var f=this.toNumber(a[e],d.prefix[e],d.suffix[e]);d.targetPropeties[e]=
{b:f,c:c[e]-f}}setTimeout(function(){d.startTime=new Date-0;d.endTime=d.time*1E3+d.startTime;if(typeof d.onStart=="function")if(d.onStartParams)d.onStart.apply(d,d.onStartParams);else d.onStart();b.objects.push(d);if(!b.looping)b.looping=!0,b.eventLoop.call(b)},d.delay*1E3)},eventLoop:function(){for(var a=new Date-0,c=0;c<this.objects.length;c++){var b=this.objects[c],d=a-b.startTime,e=b.endTime-b.startTime;if(d>=e){for(var f in b.targetPropeties){var g=b.targetPropeties[f];try{b.target[f]=b.prefix[f]+
(g.b+g.c)+b.suffix[f]}catch(i){}}this.objects.splice(c,1);if(typeof b.onUpdate=="function")if(b.onUpdateParams)b.onUpdate.apply(b,b.onUpdateParams);else b.onUpdate();if(typeof b.onComplete=="function")if(b.onCompleteParams)b.onComplete.apply(b,b.onCompleteParams);else b.onComplete()}else{for(f in b.targetPropeties){g=b.targetPropeties[f];g=b.easing(d,g.b,g.c,e);try{b.target[f]=b.prefix[f]+g+b.suffix[f]}catch(h){}}if(typeof b.onUpdate=="function")if(b.onUpdateParams)b.onUpdate.apply(b,b.onUpdateParams);
else b.onUpdate()}}if(this.objects.length>0){var j=this;setTimeout(function(){j.eventLoop()},1E3/j.frameRate)}else this.looping=!1},Utils:{bezier2:function(a,c,b,d){return(1-a)*(1-a)*c+2*a*(1-a)*b+a*a*d},bezier3:function(a,c,b,d,e){return Math.pow(1-a,3)*c+3*a*Math.pow(1-a,2)*b+3*a*a*(1-a)*d+a*a*a*e},allSetStyleProperties:function(a){var c;c=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null):a.currentStyle;for(var b in c)if(!b.match(/^\d+$/))try{a.style[b]=
c[b]}catch(d){}}}};
JSTweener.easingFunctions={easeNone:function(a,c,b,d){return b*a/d+c},easeInQuad:function(a,c,b,d){return b*(a/=d)*a+c},easeOutQuad:function(a,c,b,d){return-b*(a/=d)*(a-2)+c},easeInOutQuad:function(a,c,b,d){return(a/=d/2)<1?b/2*a*a+c:-b/2*(--a*(a-2)-1)+c},easeInCubic:function(a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(a,c,b,d){return(a/=d/2)<1?b/2*a*a*a+c:b/2*((a-=2)*a*a+2)+c},easeOutInCubic:function(a,c,b,d){return a<d/2?JSTweener.easingFunctions.easeOutCubic(a*
2,c,b/2,d):JSTweener.easingFunctions.easeInCubic(a*2-d,c+b/2,b/2,d)},easeInQuart:function(a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(a,c,b,d){return(a/=d/2)<1?b/2*a*a*a*a+c:-b/2*((a-=2)*a*a*a-2)+c},easeOutInQuart:function(a,c,b,d){return a<d/2?JSTweener.easingFunctions.easeOutQuart(a*2,c,b/2,d):JSTweener.easingFunctions.easeInQuart(a*2-d,c+b/2,b/2,d)},easeInQuint:function(a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(a,
c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(a,c,b,d){return(a/=d/2)<1?b/2*a*a*a*a*a+c:b/2*((a-=2)*a*a*a*a+2)+c},easeOutInQuint:function(a,c,b,d){return a<d/2?JSTweener.easingFunctions.easeOutQuint(a*2,c,b/2,d):JSTweener.easingFunctions.easeInQuint(a*2-d,c+b/2,b/2,d)},easeInSine:function(a,c,b,d){return-b*Math.cos(a/d*(Math.PI/2))+b+c},easeOutSine:function(a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeOutInSine:function(a,
c,b,d){return a<d/2?JSTweener.easingFunctions.easeOutSine(a*2,c,b/2,d):JSTweener.easingFunctions.easeInSine(a*2-d,c+b/2,b/2,d)},easeInExpo:function(a,c,b,d){return a==0?c:b*Math.pow(2,10*(a/d-1))+c-b*0.001},easeOutExpo:function(a,c,b,d){return a==d?c+b:b*1.001*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(a,c,b,d){return a==0?c:a==d?c+b:(a/=d/2)<1?b/2*Math.pow(2,10*(a-1))+c-b*5.0E-4:b/2*1.0005*(-Math.pow(2,-10*--a)+2)+c},easeOutInExpo:function(a,c,b,d){return a<d/2?JSTweener.easingFunctions.easeOutExpo(a*
2,c,b/2,d):JSTweener.easingFunctions.easeInExpo(a*2-d,c+b/2,b/2,d)},easeInCirc:function(a,c,b,d){return-b*(Math.sqrt(1-(a/=d)*a)-1)+c},easeOutCirc:function(a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(a,c,b,d){return(a/=d/2)<1?-b/2*(Math.sqrt(1-a*a)-1)+c:b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeOutInCirc:function(a,c,b,d){return a<d/2?JSTweener.easingFunctions.easeOutCirc(a*2,c,b/2,d):JSTweener.easingFunctions.easeInCirc(a*2-d,c+b/2,b/2,d)},easeInElastic:function(a,c,b,d,e,f){if(a==
0)return c;if((a/=d)==1)return c+b;f||(f=d*0.3);!e||e<Math.abs(b)?(e=b,b=f/4):b=f/(2*Math.PI)*Math.asin(b/e);return-(e*Math.pow(2,10*(a-=1))*Math.sin((a*d-b)*2*Math.PI/f))+c},easeOutElastic:function(a,c,b,d,e,f){var g;if(a==0)return c;if((a/=d)==1)return c+b;f||(f=d*0.3);!e||e<Math.abs(b)?(e=b,g=f/4):g=f/(2*Math.PI)*Math.asin(b/e);return e*Math.pow(2,-10*a)*Math.sin((a*d-g)*2*Math.PI/f)+b+c},easeInOutElastic:function(a,c,b,d,e,f){var g;if(a==0)return c;if((a/=d/2)==2)return c+b;f||(f=d*0.3*1.5);!e||
e<Math.abs(b)?(e=b,g=f/4):g=f/(2*Math.PI)*Math.asin(b/e);return a<1?-0.5*e*Math.pow(2,10*(a-=1))*Math.sin((a*d-g)*2*Math.PI/f)+c:e*Math.pow(2,-10*(a-=1))*Math.sin((a*d-g)*2*Math.PI/f)*0.5+b+c},easeOutInElastic:function(a,c,b,d,e,f){return a<d/2?JSTweener.easingFunctions.easeOutElastic(a*2,c,b/2,d,e,f):JSTweener.easingFunctions.easeInElastic(a*2-d,c+b/2,b/2,d,e,f)},easeInBack:function(a,c,b,d,e){e==void 0&&(e=1.70158);return b*(a/=d)*a*((e+1)*a-e)+c},easeOutBack:function(a,c,b,d,e){e==void 0&&(e=1.70158);
return b*((a=a/d-1)*a*((e+1)*a+e)+1)+c},easeInOutBack:function(a,c,b,d,e){e==void 0&&(e=1.70158);return(a/=d/2)<1?b/2*a*a*(((e*=1.525)+1)*a-e)+c:b/2*((a-=2)*a*(((e*=1.525)+1)*a+e)+2)+c},easeOutInBack:function(a,c,b,d,e){return a<d/2?JSTweener.easingFunctions.easeOutBack(a*2,c,b/2,d,e):JSTweener.easingFunctions.easeInBack(a*2-d,c+b/2,b/2,d,e)},easeInBounce:function(a,c,b,d){return b-JSTweener.easingFunctions.easeOutBounce(d-a,0,b,d)+c},easeOutBounce:function(a,c,b,d){return(a/=d)<1/2.75?b*7.5625*a*
a+c:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+0.75)+c:a<2.5/2.75?b*(7.5625*(a-=2.25/2.75)*a+0.9375)+c:b*(7.5625*(a-=2.625/2.75)*a+0.984375)+c},easeInOutBounce:function(a,c,b,d){return a<d/2?JSTweener.easingFunctions.easeInBounce(a*2,0,b,d)*0.5+c:JSTweener.easingFunctions.easeOutBounce(a*2-d,0,b,d)*0.5+b*0.5+c},easeOutInBounce:function(a,c,b,d){return a<d/2?JSTweener.easingFunctions.easeOutBounce(a*2,c,b/2,d):JSTweener.easingFunctions.easeInBounce(a*2-d,c+b/2,b/2,d)}};JSTweener.easingFunctions.linear=JSTweener.easingFunctions.easeNone;
(function(a,c){function b(){i=a.setTimeout(b,x);m+=1;k+=1;var c=p-o;k>w&&(c=0,q-=n,k=0);r.css({backgroundPosition:""+c+"px "+q+"px"});p=c;m===v&&(a.clearTimeout(i),y())}function d(a){$(a).stop().animate({color:"#000000"},h)}function e(a){$(a).stop().animate({color:"#949494"},j)}function f(){s();var a=$(".menu ul li"),b=$(".menu_copyright"),a=a.add(b);$(".caption").css("opacity","0");for(var b=a.length,c=Array(b),d=0;d<b;d+=1)c[d]={opacity:"0"},JSTweener.addTween(c[d],{time:0.8,opacity:1,transition:"easeInOutQuint",
onUpdate:function(b){$(a[b]).css({opacity:c[b].opacity})},delay:d*0.2,onUpdateParams:[d],onComplete:function(){}})}var g=$(a),i,h=150,j=150,v=171,m=0,n=49,o=126,w=9,p=0,x=10,q=0,k=0,z=$(".menu"),r=$("<div>").attr("class","logo_animation").css({height:n,width:o});$(".logo_static");$("#logo_index").append(r);var B=function(){var a=$(".thumbnail").find("img"),b=a.length,c=0;a.one("load",function(){c+=1;c===b&&(A(),$(a).each(function(a){var b=Math.random()*10;b+=5;var c=this;setTimeout(function(){t(c)},
a*b)}))}).each(function(){(this.complete||jQuery.browser.msie&&parseInt(jQuery.browser.version)==6)&&$(this).trigger("load")})},s=function(){var b=$(".gallery").find(".page");$(".caption").css("opacity","0");var d=$(b[0]).find("img"),e=d.length,f=0;$(".index").length||$(c).keydown(function(b){if(b.keyCode===37)a.location=String($(".menu .menu_controls .arrows #leftarrow").attr("href"));if(b.keyCode===39)a.location=String($(".menu .menu_controls .arrows #rightarrow").attr("href"))});$(d).one("load",
function(){$(b[0]).width();$(a).width();f+=1;if(f===e){var c=0;$(d).each(function(a){$(this).parent().css("margin-right");c+=this.width;u(c);var b=this;setTimeout(function(){t(b)},a*500)})}}).each(function(){(this.complete||jQuery.browser.msie&&parseInt(jQuery.browser.version)==6)&&$(this).trigger("load")})},t=function(a){var b=$(a),c=b.siblings(".caption");c.css("opacity","0");var a=b[0].width,d=b[0].height,e={x:0,y:0},f={0:{x:0,y:0},1:{x:a,y:0},2:{x:a,y:d},3:{x:0,y:d}};if($("html.canvas").length){var g=
$("<canvas></canvas>").attr({width:a,height:d}).css({display:"inline",position:"absolute",top:0,left:0}),h=g[0].getContext("2d");b.css({opacity:"0"});c.css({opacity:"0"});b.show();h.lineWidth=1;h.strokeStyle="#AAAAAA";h.moveTo(f[0].x,f[0].y);b.parent().parent().show();b.parent().append(g);JSTweener.addTween(e,{time:0.2,transition:"easeInOutQuint",onUpdate:function(){h.lineTo(e.x,e.y);h.stroke()},x:f[1].x,y:f[1].y,onComplete:function(){JSTweener.addTween(e,{time:0.2,transition:"easeInOutQuint",onUpdate:function(){h.lineTo(e.x,
e.y);h.stroke()},x:f[2].x,y:f[2].y,onComplete:function(){JSTweener.addTween(e,{time:0.2,transition:"easeInOutQuint",onUpdate:function(){h.lineTo(e.x,e.y);h.stroke()},x:f[3].x,y:f[3].y,onComplete:function(){JSTweener.addTween(e,{time:0.2,transition:"easeInOutQuint",onUpdate:function(){h.lineTo(e.x,e.y);h.stroke()},x:f[0].x,y:f[0].y,onComplete:function(){C(g);var a={opacity:0};b.css("opacity",a.opacity);JSTweener.addTween(a,{time:0.2,transition:"easeInOutQuint",opacity:1,onUpdate:function(){b.css("opacity",
a.opacity)},onComplete:function(){$.cookie("captionFlag")==="true"&&l(c);$(".menu_controls .arrows").fadeIn(1E3)}})}})}})}})}})}else c.css("opacity","0"),$.cookie("captionFlag")==="true"&&l(c),b.parent().parent().show(),b.show()},C=function(a){var b={opacity:1};a.css({opacity:b.opacity});JSTweener.addTween(b,{time:0.35,opacity:0,transition:"easeInOutQuad",onUpdate:function(){a.css({opacity:b.opacity})},onComplete:function(){}})},l=function(a){var b={opacity:0};a.css({opacity:b.opacity});JSTweener.addTween(b,
{time:0.5,opacity:1,transition:"easeInOutQuad",onUpdate:function(){a.css({opacity:b.opacity})},onComplete:function(){}})},D=function(a){var b={opacity:1};a.css({opacity:b.opacity});JSTweener.addTween(b,{time:0.5,opacity:0,transition:"easeInOutQuad",onUpdate:function(){a.css({opacity:b.opacity})},onComplete:function(){}})},A=function(){var a=$(".menu_copyright"),b={opacity:0};a.css({opacity:b.opacity});JSTweener.addTween(b,{time:0.5,opacity:1,transition:"easeInOutQuad",onUpdate:function(){a.css({opacity:b.opacity})},
onComplete:function(){}})},y=function(){var a=$("#logo_index"),b={left:50,marginLeft:-63,marginTop:-49};JSTweener.addTween(b,{time:1.5,left:0,marginLeft:13,marginTop:-49,transition:"easeInOutQuint",onUpdate:function(){a.css({left:b.left+"%",marginLeft:b.marginLeft+"px",marginTop:b.marginTop+"px"})},onComplete:function(){E()}})},E=function(){var a=$("#logo_index"),b={top:50,marginTop:-49};JSTweener.addTween(b,{time:0.5,top:0,marginTop:-2,transition:"easeInOutQuint",onUpdate:function(){a.css({top:b.top+
"%",marginTop:b.marginTop+"px"})},onComplete:function(){$(".menu").css("opacity","1");$(".index .menu div, .index .menu ul li").css("display","block").css("opacity","0");f()}})};$(".caption_button").bind("click",function(a){a.preventDefault();var a=$.cookie("captionFlag"),b=$(".caption");a==="false"?($(this).html("caption off"),$.cookie("captionFlag","true",{path:"/"}),b.each(function(){l($(this))})):a==="true"&&($(this).html("caption on"),$.cookie("captionFlag","false",{path:"/"}),b.each(function(){D($(this))}))});
$(".menu ul li a").bind("mouseover",function(a){a.preventDefault();d(this)});$(".menu ul li a").bind("mouseout",function(a){a.preventDefault();e(this)});$(".communications a").bind("mouseover",function(){d(this)});$(".communications a").bind("mouseout",function(){e(this)});$("a#leftarrow").bind("mouseover",function(a){$(a.target).filter("img").stop().animate({opacity:0},300)});$("a#leftarrow").bind("mouseout",function(a){$(a.target).filter("img").stop().animate({opacity:1},300)});$("a#rightarrow").bind("mouseover",
function(a){$(a.target).filter("img").stop().animate({opacity:0},300)});$("a#rightarrow").bind("mouseout",function(a){$(a.target).filter("img").stop().animate({opacity:1},300)});var u=function(b){var c=$(a).width(),d=$("#left").width(),e=c/2,f=$(".page>.image"),c=$(".gallery"),g=0,g=b?b:f.width(),b=e-g/2-d;b<0&&(b=0);$(".clientlist").length||c.css({left:b+"px"})},F=function(){var b=$(a).width(),c=$("#left").width();b/=2;var d=$(".page"),e=$(".gallery"),c=b-d.width()/2-c;c<0&&(c=0);if(!$(".clientlist").length){var f=
{left:e.css("left")};JSTweener.addTween(f,{time:0.5,left:c,transition:"easeInOutQuint",onUpdate:function(){e.css({left:f.left+"px"})}})}},G=function(){$.cookie("captionFlag","false",{path:"/"});$("#logo_loader>img").one("load",function(){$("#logo_loader").remove();b()}).each(function(){(this.complete||jQuery.browser.msie&&parseInt(jQuery.browser.version)==6)&&$(this).trigger("load")})};u();g.smartresize(function(){F()});$(".index").length?G():($(".menu").css("opacity","1"),$(".index .menu div, .index .menu ul li").css("display",
"block").css("opacity","0"),z.show(),$(".thumbnails").length?B():s())})(this,document);
