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={}}})());
/*!
 * jQuery Cycle Lite Plugin
 * http://malsup.com/jquery/cycle/lite/
 * Copyright (c) 2008-2011 M. Alsup
 * Version: 1.3.1 (07-OCT-2011)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires: jQuery v1.3.2 or later
 */
(function(d){var a="Lite-1.3";d.fn.cycle=function(e){return this.each(function(){e=e||{};if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var l=d(this);var i=e.slideExpr?d(e.slideExpr,this):l.children();var g=i.get();if(g.length<2){window.console&&console.log("terminating; too few slides: "+g.length);return}var f=d.extend({},d.fn.cycle.defaults,e||{},d.metadata?l.metadata():d.meta?l.data():{});var m=d.isFunction(l.data)?l.data(f.metaAttr):null;if(m){f=d.extend(f,m)}f.before=f.before?[f.before]:[];f.after=f.after?[f.after]:[];f.after.unshift(function(){f.busy=0});var n=this.className;f.width=parseInt((n.match(/w:(\d+)/)||[])[1])||f.width;f.height=parseInt((n.match(/h:(\d+)/)||[])[1])||f.height;f.timeout=parseInt((n.match(/t:(\d+)/)||[])[1])||f.timeout;if(l.css("position")=="static"){l.css("position","relative")}if(f.width){l.width(f.width)}if(f.height&&f.height!="auto"){l.height(f.height)}var h=0;i.css({position:"absolute",top:0,left:0}).each(function(o){d(this).css("z-index",g.length-o)});d(g[h]).css("opacity",1).show();if(d.browser.msie){g[h].style.removeAttribute("filter")}if(f.fit&&f.width){i.width(f.width)}if(f.fit&&f.height&&f.height!="auto"){i.height(f.height)}if(f.pause){l.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}var j=d.fn.cycle.transitions[f.fx];j&&j(l,i,f);i.each(function(){var o=d(this);this.cycleH=(f.fit&&f.height)?f.height:o.height();this.cycleW=(f.fit&&f.width)?f.width:o.width()});if(f.cssFirst){d(i[h]).css(f.cssFirst)}if(f.timeout){if(f.speed.constructor==String){f.speed={slow:600,fast:200}[f.speed]||400}if(!f.sync){f.speed=f.speed/2}while((f.timeout-f.speed)<250){f.timeout+=f.speed}}f.speedIn=f.speed;f.speedOut=f.speed;f.slideCount=g.length;f.currSlide=h;f.nextSlide=1;var k=i[h];if(f.before.length){f.before[0].apply(k,[k,k,f,true])}if(f.after.length>1){f.after[1].apply(k,[k,k,f,true])}if(f.click&&!f.next){f.next=f.click}if(f.next){d(f.next).bind("click",function(){return c(g,f,f.rev?-1:1)})}if(f.prev){d(f.prev).bind("click",function(){return c(g,f,f.rev?1:-1)})}if(f.timeout){this.cycleTimeout=setTimeout(function(){b(g,f,0,!f.rev)},f.timeout+(f.delay||0))}})};function b(j,e,i,k){if(e.busy){return}var h=j[0].parentNode,n=j[e.currSlide],l=j[e.nextSlide];if(h.cycleTimeout===0&&!i){return}if(i||!h.cyclePause){if(e.before.length){d.each(e.before,function(p,q){q.apply(l,[n,l,e,k])})}var f=function(){if(d.browser.msie){this.style.removeAttribute("filter")}d.each(e.after,function(p,q){q.apply(l,[n,l,e,k])});m()};if(e.nextSlide!=e.currSlide){e.busy=1;d.fn.cycle.custom(n,l,e,f)}var g=(e.nextSlide+1)==j.length;e.nextSlide=g?0:e.nextSlide+1;e.currSlide=g?j.length-1:e.nextSlide-1}function m(){if(e.timeout){h.cycleTimeout=setTimeout(function(){b(j,e,0,!e.rev)},e.timeout)}}}function c(e,f,i){var h=e[0].parentNode,g=h.cycleTimeout;if(g){clearTimeout(g);h.cycleTimeout=0}f.nextSlide=f.currSlide+i;if(f.nextSlide<0){f.nextSlide=e.length-1}else{if(f.nextSlide>=e.length){f.nextSlide=0}}b(e,f,1,i>=0);return false}d.fn.cycle.custom=function(k,h,i,e){var j=d(k),g=d(h);g.css(i.cssBefore);
var f=function(){g.animate(i.animIn,i.speedIn,i.easeIn,e)};j.animate(i.animOut,i.speedOut,i.easeOut,function(){j.css(i.cssAfter);if(!i.sync){f()}});if(i.sync){f()}};d.fn.cycle.transitions={fade:function(f,g,e){g.not(":eq(0)").hide();e.cssBefore={opacity:0,display:"block"};e.cssAfter={display:"none"};e.animOut={opacity:0};e.animIn={opacity:1}},fadeout:function(f,g,e){e.before.push(function(k,i,j,h){d(k).css("zIndex",j.slideCount+(h===true?1:0));d(i).css("zIndex",j.slideCount+(h===true?0:1))});g.not(":eq(0)").hide();e.cssBefore={opacity:1,display:"block",zIndex:1};e.cssAfter={display:"none",zIndex:0};e.animOut={opacity:0}}};d.fn.cycle.ver=function(){return a};d.fn.cycle.defaults={animIn:{},animOut:{},fx:"fade",after:null,before:null,cssBefore:{},cssAfter:{},delay:0,fit:0,height:"auto",metaAttr:"cycle",next:null,pause:0,prev:null,speed:1000,slideExpr:null,sync:1,timeout:4000}})(jQuery);(function(a){a.fn.lazyload=function(b){var c={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:window,skip_invisible:true};if(b){if(null!==b.failurelimit){b.failure_limit=b.failurelimit;delete b.failurelimit}a.extend(c,b)}var d=this;if(0==c.event.indexOf("scroll")){a(c.container).bind(c.event,function(f){var e=function(j){var h=0;d.each(function(){if(a.abovethetop(this,c)||a.leftofbegin(this,c)){}else{if(!a.belowthefold(this,c)&&!a.rightoffold(this,c)){a(this).trigger("appear")}else{if(h++>c.failurelimit){return false}}}});var i=a.grep(d,function(k){return !k.loaded});d=a(i)};(function g(){e();if(d.length){setTimeout(g,1000)}})()})}this.each(function(){var e=this;e.loaded=false;a(e).one("appear",function(){if(!this.loaded){a("<img />").bind("load",function(){a(e).hide().attr("src",a(e).data("original"))[c.effect](c.effectspeed);e.loaded=true}).attr("src",a(e).data("original"))}});if(0!=c.event.indexOf("scroll")){a(e).bind(c.event,function(f){if(!e.loaded){a(e).trigger("appear")}})}});a(c.container).trigger(c.event);return this};a.belowthefold=function(c,d){if(d.container===undefined||d.container===window){var b=a(window).height()+a(window).scrollTop()}else{var b=a(d.container).offset().top+a(d.container).height()}return b<=a(c).offset().top-d.threshold};a.rightoffold=function(c,d){if(d.container===undefined||d.container===window){var b=a(window).width()+a(window).scrollLeft()}else{var b=a(d.container).offset().left+a(d.container).width()}return b<=a(c).offset().left-d.threshold};a.abovethetop=function(c,d){if(d.container===undefined||d.container===window){var b=a(window).scrollTop()}else{var b=a(d.container).offset().top}return b>=a(c).offset().top+d.threshold+a(c).height()};a.leftofbegin=function(c,d){if(d.container===undefined||d.container===window){var b=a(window).scrollLeft()}else{var b=a(d.container).offset().left}return b>=a(c).offset().left+d.threshold+a(c).width()};a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0,container:window})},"above-the-fold":function(b){return !a.belowthefold(b,{threshold:0,container:window})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0,container:window})},"left-of-fold":function(b){return !a.rightoffold(b,{threshold:0,container:window})}})})(jQuery);(function(a){a.fn.filterable=function(b){b=a.extend({useHash:true,animationSpeed:1500,show:{width:"show",opacity:"show"},hide:{width:"hide",opacity:"hide"},useTags:true,tagSelector:".filter-nav a",selectedTagClass:"current",allTag:"all"},b);return a(this).each(function(){a(this).bind("filter",function(d,c){if(b.useTags){a(b.tagSelector).removeClass(b.selectedTagClass);a(b.tagSelector+"[href="+c+"]").addClass(b.selectedTagClass)}a(this).trigger("filterportfolio",[c.substr(1)])});a(this).bind("filterportfolio",function(d,c){if(c==b.allTag){a(this).trigger("show")}else{a(this).trigger("show",["."+c]);a(this).trigger("hide",[":not(."+c+")"])}if(b.useHash){location.hash="#"+c}});a(this).bind("show",function(d,c){a(this).children(c).stop(true,true).animate(b.show,b.animationSpeed,"easeInQuad");a(this).children(c).find("a.zoom").attr("rel","gallery[portfolio]")
});a(this).bind("hide",function(d,c){a(this).children(c).stop(true,true).animate(b.hide,b.animationSpeed,"easeOutQuad");a(this).children(c).find("a.zoom").attr("rel","")});if(b.useHash){if(location.hash!=""){a(this).trigger("filter",[location.hash])}else{a(this).trigger("filter",["#"+b.allTag])}}if(b.useTags){a(b.tagSelector).click(function(){a("#portfolio").trigger("filter",[a(this).attr("href")]);a(b.tagSelector).removeClass("current");a(this).addClass("current")})}})}})(jQuery);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(e){e.prettyPhoto={version:"3.1.3"};e.fn.prettyPhoto=function(g){g=jQuery.extend({animation_speed:"fast",slideshow:5000,autoplay_slideshow:false,opacity:0.8,show_title:true,allow_resize:true,default_width:500,default_height:344,counter_separator_label:"/",theme:"pp_default",horizontal_padding:20,hideflash:false,wmode:"opaque",autoplay:true,modal:false,deeplinking:true,overlay_gallery:true,keyboard_shortcuts:true,changepicturecallback:function(){},callback:function(){},ie6_fallback:true,markup:'<div class="pp_pic_holder">       <div class="ppt">&nbsp;</div>       <div class="pp_top">        <div class="pp_left"></div>        <div class="pp_middle"></div>        <div class="pp_right"></div>       </div>       <div class="pp_content_container">        <div class="pp_left">        <div class="pp_right">         <div class="pp_content">          <div class="pp_loaderIcon"></div>          <div class="pp_fade">           <a href="#" class="pp_expand" title="Expand the image">Expand</a>           <div class="pp_hoverContainer">            <a class="pp_next" href="#">next</a>            <a class="pp_previous" href="#">previous</a>           </div>           <div id="pp_full_res"></div>           <div class="pp_details">            <div class="pp_nav">             <a href="#" class="pp_arrow_previous">Previous</a>             <p class="currentTextHolder">0/0</p>             <a href="#" class="pp_arrow_next">Next</a>            </div>            <p class="pp_description"></p>            <div class="pp_social">{pp_social}</div>            <a class="pp_close" href="#">Close</a>           </div>          </div>         </div>        </div>        </div>       </div>       <div class="pp_bottom">        <div class="pp_left"></div>        <div class="pp_middle"></div>        <div class="pp_right"></div>       </div>      </div>      <div class="pp_overlay"></div>',gallery_markup:'<div class="pp_gallery">         <a href="#" class="pp_arrow_previous">Previous</a>         <div>          <ul>           {gallery}          </ul>         </div>         <a href="#" class="pp_arrow_next">Next</a>        </div>',image_markup:'<img id="fullResImage" src="{path}" />',flash_markup:'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="{width}" height="{height}"><param name="wmode" value="{wmode}" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="{path}" /><embed src="{path}" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="{width}" height="{height}" wmode="{wmode}"></embed></object>',quicktime_markup:'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="{height}" width="{width}"><param name="src" value="{path}"><param name="autoplay" value="{autoplay}"><param name="type" value="video/quicktime"><embed src="{path}" height="{height}" width="{width}" autoplay="{autoplay}" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"></embed></object>',iframe_markup:'<iframe src ="{path}" width="{width}" height="{height}" frameborder="no"></iframe>',inline_markup:'<div class="pp_inline">{content}</div>',custom_markup:"",social_tools:'<div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="none">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"><\/script></div><div class="facebook"><iframe src="http://www.facebook.com/plugins/like.php?locale=en_US&href={location_href}&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div>'},g);var n=this,m=false,t,r,s,u,x,y,i=e(window).height(),B=e(window).width(),j;
doresize=true,scroll_pos=z();e(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){q();w()});if(g.keyboard_shortcuts){e(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(C){if(typeof $pp_pic_holder!="undefined"){if($pp_pic_holder.is(":visible")){switch(C.keyCode){case 37:e.prettyPhoto.changePage("previous");C.preventDefault();break;case 39:e.prettyPhoto.changePage("next");C.preventDefault();break;case 27:if(!settings.modal){e.prettyPhoto.close()}C.preventDefault();break}}}})}e.prettyPhoto.initialize=function(){settings=g;if(settings.theme=="pp_default"){settings.horizontal_padding=16}if(settings.ie6_fallback&&e.browser.msie&&parseInt(e.browser.version)==6){settings.theme="light_square"}theRel=e(this).attr("rel");galleryRegExp=/\[(?:.*)\]/;isSet=(galleryRegExp.exec(theRel))?true:false;pp_images=(isSet)?jQuery.map(n,function(D,C){if(e(D).attr("rel").indexOf(theRel)!=-1){return e(D).attr("href")}}):e.makeArray(e(this).attr("href"));pp_titles=(isSet)?jQuery.map(n,function(D,C){if(e(D).attr("rel").indexOf(theRel)!=-1){return(e(D).html())?e(D).html():""}}):e.makeArray(e(this).html());pp_descriptions=(isSet)?jQuery.map(n,function(D,C){if(e(D).attr("rel").indexOf(theRel)!=-1){return(e(D).attr("title"))?e(D).attr("title"):""}}):e.makeArray(e(this).attr("title"));if(pp_images.length>30){settings.overlay_gallery=false}set_position=jQuery.inArray(e(this).attr("href"),pp_images);rel_index=(isSet)?set_position:e("a[rel^='"+theRel+"']").index(e(this));h(this);if(settings.allow_resize){e(window).bind("scroll.prettyphoto",function(){q()})}e.prettyPhoto.open();return false};e.prettyPhoto.open=function(C){if(typeof settings=="undefined"){settings=g;if(e.browser.msie&&e.browser.version==6){settings.theme="light_square"}pp_images=e.makeArray(arguments[0]);pp_titles=(arguments[1])?e.makeArray(arguments[1]):e.makeArray("");pp_descriptions=(arguments[2])?e.makeArray(arguments[2]):e.makeArray("");isSet=(pp_images.length>1)?true:false;set_position=0;h(C.target)}if(e.browser.msie&&e.browser.version==6){e("select").css("visibility","hidden")}if(settings.hideflash){e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden")}l(e(pp_images).size());e(".pp_loaderIcon").show();if(settings.deeplinking){b()}if(settings.social_tools){facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href));$pp_pic_holder.find(".pp_social").html(facebook_like_link)}if($ppt.is(":hidden")){$ppt.css("opacity",0).show()}$pp_overlay.show().fadeTo(settings.animation_speed,settings.opacity);$pp_pic_holder.find(".currentTextHolder").text((set_position+1)+settings.counter_separator_label+e(pp_images).size());if(pp_descriptions[set_position]!=""){$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position]))}else{$pp_pic_holder.find(".pp_description").hide()}movie_width=(parseFloat(a("width",pp_images[set_position])))?a("width",pp_images[set_position]):settings.default_width.toString();movie_height=(parseFloat(a("height",pp_images[set_position])))?a("height",pp_images[set_position]):settings.default_height.toString();m=false;if(movie_height.indexOf("%")!=-1){movie_height=parseFloat((e(window).height()*parseFloat(movie_height)/100)-150);m=true}if(movie_width.indexOf("%")!=-1){movie_width=parseFloat((e(window).width()*parseFloat(movie_width)/100)-150);m=true}$pp_pic_holder.fadeIn(function(){(settings.show_title&&pp_titles[set_position]!=""&&typeof pp_titles[set_position]!="undefined")?$ppt.html(unescape(pp_titles[set_position])):$ppt.html("&nbsp;");imgPreloader="";skipInjection=false;switch(A(pp_images[set_position])){case"image":imgPreloader=new Image();nextImage=new Image();if(isSet&&set_position<e(pp_images).size()-1){nextImage.src=pp_images[set_position+1]}prevImage=new Image();if(isSet&&pp_images[set_position-1]){prevImage.src=pp_images[set_position-1]}$pp_pic_holder.find("#pp_full_res")[0].innerHTML=settings.image_markup.replace(/{path}/g,pp_images[set_position]);
imgPreloader.onload=function(){t=p(imgPreloader.width,imgPreloader.height);k()};imgPreloader.onerror=function(){alert("Image cannot be loaded. Make sure the path is correct and image exist.");e.prettyPhoto.close()};imgPreloader.src=pp_images[set_position];break;case"youtube":t=p(movie_width,movie_height);movie_id=a("v",pp_images[set_position]);if(movie_id==""){movie_id=pp_images[set_position].split("youtu.be/");movie_id=movie_id[1];if(movie_id.indexOf("?")>0){movie_id=movie_id.substr(0,movie_id.indexOf("?"))}if(movie_id.indexOf("&")>0){movie_id=movie_id.substr(0,movie_id.indexOf("&"))}}movie="http://www.youtube.com/embed/"+movie_id;(a("rel",pp_images[set_position]))?movie+="?rel="+a("rel",pp_images[set_position]):movie+="?rel=1";if(settings.autoplay){movie+="&autoplay=1"}toInject=settings.iframe_markup.replace(/{width}/g,t.width).replace(/{height}/g,t.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,movie);break;case"vimeo":t=p(movie_width,movie_height);movie_id=pp_images[set_position];var E=/http:\/\/(www\.)?vimeo.com\/(\d+)/;var D=movie_id.match(E);movie="http://player.vimeo.com/video/"+D[2]+"?title=0&amp;byline=0&amp;portrait=0";if(settings.autoplay){movie+="&autoplay=1;"}vimeo_width=t.width+"/embed/?moog_width="+t.width;toInject=settings.iframe_markup.replace(/{width}/g,vimeo_width).replace(/{height}/g,t.height).replace(/{path}/g,movie);break;case"quicktime":t=p(movie_width,movie_height);t.height+=15;t.contentHeight+=15;t.containerHeight+=15;toInject=settings.quicktime_markup.replace(/{width}/g,t.width).replace(/{height}/g,t.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,pp_images[set_position]).replace(/{autoplay}/g,settings.autoplay);break;case"flash":t=p(movie_width,movie_height);flash_vars=pp_images[set_position];flash_vars=flash_vars.substring(pp_images[set_position].indexOf("flashvars")+10,pp_images[set_position].length);filename=pp_images[set_position];filename=filename.substring(0,filename.indexOf("?"));toInject=settings.flash_markup.replace(/{width}/g,t.width).replace(/{height}/g,t.height).replace(/{wmode}/g,settings.wmode).replace(/{path}/g,filename+"?"+flash_vars);break;case"iframe":t=p(movie_width,movie_height);frame_url=pp_images[set_position];frame_url=frame_url.substr(0,frame_url.indexOf("iframe")-1);toInject=settings.iframe_markup.replace(/{width}/g,t.width).replace(/{height}/g,t.height).replace(/{path}/g,frame_url);break;case"ajax":doresize=false;t=p(movie_width,movie_height);doresize=true;skipInjection=true;e.get(pp_images[set_position],function(F){toInject=settings.inline_markup.replace(/{content}/g,F);$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;k()});break;case"custom":t=p(movie_width,movie_height);toInject=settings.custom_markup;break;case"inline":myClone=e(pp_images[set_position]).clone().append('<br clear="all" />').css({width:settings.default_width}).wrapInner('<div id="pp_full_res"><div class="pp_inline"></div></div>').appendTo(e("body")).show();doresize=false;t=p(e(myClone).width(),e(myClone).height());doresize=true;e(myClone).remove();toInject=settings.inline_markup.replace(/{content}/g,e(pp_images[set_position]).html());break}if(!imgPreloader&&!skipInjection){$pp_pic_holder.find("#pp_full_res")[0].innerHTML=toInject;k()}});return false};e.prettyPhoto.changePage=function(C){currentGalleryPage=0;if(C=="previous"){set_position--;if(set_position<0){set_position=e(pp_images).size()-1}}else{if(C=="next"){set_position++;if(set_position>e(pp_images).size()-1){set_position=0}}else{set_position=C}}rel_index=set_position;if(!doresize){doresize=true}e(".pp_contract").removeClass("pp_contract").addClass("pp_expand");o(function(){e.prettyPhoto.open()})};e.prettyPhoto.changeGalleryPage=function(C){if(C=="next"){currentGalleryPage++;if(currentGalleryPage>totalPage){currentGalleryPage=0}}else{if(C=="previous"){currentGalleryPage--;if(currentGalleryPage<0){currentGalleryPage=totalPage}}else{currentGalleryPage=C}}slide_speed=(C=="next"||C=="previous")?settings.animation_speed:0;
slide_to=currentGalleryPage*(itemsPerPage*itemWidth);$pp_gallery.find("ul").animate({left:-slide_to},slide_speed)};e.prettyPhoto.startSlideshow=function(){if(typeof j=="undefined"){$pp_pic_holder.find(".pp_play").unbind("click").removeClass("pp_play").addClass("pp_pause").click(function(){e.prettyPhoto.stopSlideshow();return false});j=setInterval(e.prettyPhoto.startSlideshow,settings.slideshow)}else{e.prettyPhoto.changePage("next")}};e.prettyPhoto.stopSlideshow=function(){$pp_pic_holder.find(".pp_pause").unbind("click").removeClass("pp_pause").addClass("pp_play").click(function(){e.prettyPhoto.startSlideshow();return false});clearInterval(j);j=undefined};e.prettyPhoto.close=function(){if($pp_overlay.is(":animated")){return}e.prettyPhoto.stopSlideshow();$pp_pic_holder.stop().find("object,embed").css("visibility","hidden");e("div.pp_pic_holder,div.ppt,.pp_fade").fadeOut(settings.animation_speed,function(){e(this).remove()});$pp_overlay.fadeOut(settings.animation_speed,function(){if(e.browser.msie&&e.browser.version==6){e("select").css("visibility","visible")}if(settings.hideflash){e("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","visible")}e(this).remove();e(window).unbind("scroll.prettyphoto");c();settings.callback();doresize=true;r=false;delete settings})};function k(){e(".pp_loaderIcon").hide();projectedTop=scroll_pos.scrollTop+((i/2)-(t.containerHeight/2));if(projectedTop<0){projectedTop=0}$ppt.fadeTo(settings.animation_speed,1);$pp_pic_holder.find(".pp_content").animate({height:t.contentHeight,width:t.contentWidth},settings.animation_speed);$pp_pic_holder.animate({top:projectedTop,left:(B/2)-(t.containerWidth/2),width:t.containerWidth},settings.animation_speed,function(){$pp_pic_holder.find(".pp_hoverContainer,#fullResImage").height(t.height).width(t.width);$pp_pic_holder.find(".pp_fade").fadeIn(settings.animation_speed);if(isSet&&A(pp_images[set_position])=="image"){$pp_pic_holder.find(".pp_hoverContainer").show()}else{$pp_pic_holder.find(".pp_hoverContainer").hide()}if(t.resized){e("a.pp_expand,a.pp_contract").show()}else{e("a.pp_expand").hide()}if(settings.autoplay_slideshow&&!j&&!r){e.prettyPhoto.startSlideshow()}settings.changepicturecallback();r=true});f()}function o(C){$pp_pic_holder.find("#pp_full_res object,#pp_full_res embed").css("visibility","hidden");$pp_pic_holder.find(".pp_fade").fadeOut(settings.animation_speed,function(){e(".pp_loaderIcon").show();C()})}function l(C){(C>1)?e(".pp_nav").show():e(".pp_nav").hide()}function p(D,C){resized=false;v(D,C);imageWidth=D,imageHeight=C;if(((y>B)||(x>i))&&doresize&&settings.allow_resize&&!m){resized=true,fitting=false;while(!fitting){if((y>B)){imageWidth=(B-200);imageHeight=(C/D)*imageWidth}else{if((x>i)){imageHeight=(i-200);imageWidth=(D/C)*imageHeight}else{fitting=true}}x=imageHeight,y=imageWidth}v(imageWidth,imageHeight);if((y>B)||(x>i)){p(y,x)}}return{width:Math.floor(imageWidth),height:Math.floor(imageHeight),containerHeight:Math.floor(x),containerWidth:Math.floor(y)+(settings.horizontal_padding*2),contentHeight:Math.floor(s),contentWidth:Math.floor(u),resized:resized}}function v(D,C){D=parseFloat(D);C=parseFloat(C);$pp_details=$pp_pic_holder.find(".pp_details");$pp_details.width(D);detailsHeight=parseFloat($pp_details.css("marginTop"))+parseFloat($pp_details.css("marginBottom"));$pp_details=$pp_details.clone().addClass(settings.theme).width(D).appendTo(e("body")).css({position:"absolute",top:-10000});detailsHeight+=$pp_details.height();detailsHeight=(detailsHeight<=34)?36:detailsHeight;if(e.browser.msie&&e.browser.version==7){detailsHeight+=8}$pp_details.remove();$pp_title=$pp_pic_holder.find(".ppt");$pp_title.width(D);titleHeight=parseFloat($pp_title.css("marginTop"))+parseFloat($pp_title.css("marginBottom"));$pp_title=$pp_title.clone().appendTo(e("body")).css({position:"absolute",top:-10000});titleHeight+=$pp_title.height();$pp_title.remove();s=C+detailsHeight;u=D;x=s+titleHeight+$pp_pic_holder.find(".pp_top").height()+$pp_pic_holder.find(".pp_bottom").height();
y=D}function A(C){if(C.match(/youtube\.com\/watch/i)||C.match(/youtu\.be/i)){return"youtube"}else{if(C.match(/vimeo\.com/i)){return"vimeo"}else{if(C.match(/\b.mov\b/i)){return"quicktime"}else{if(C.match(/\b.swf\b/i)){return"flash"}else{if(C.match(/\biframe=true\b/i)){return"iframe"}else{if(C.match(/\bajax=true\b/i)){return"ajax"}else{if(C.match(/\bcustom=true\b/i)){return"custom"}else{if(C.substr(0,1)=="#"){return"inline"}else{return"image"}}}}}}}}}function q(){if(doresize&&typeof $pp_pic_holder!="undefined"){scroll_pos=z();contentHeight=$pp_pic_holder.height(),contentwidth=$pp_pic_holder.width();projectedTop=(i/2)+scroll_pos.scrollTop-(contentHeight/2);if(projectedTop<0){projectedTop=0}if(contentHeight>i){return}$pp_pic_holder.css({top:projectedTop,left:(B/2)+scroll_pos.scrollLeft-(contentwidth/2)})}}function z(){if(self.pageYOffset){return{scrollTop:self.pageYOffset,scrollLeft:self.pageXOffset}}else{if(document.documentElement&&document.documentElement.scrollTop){return{scrollTop:document.documentElement.scrollTop,scrollLeft:document.documentElement.scrollLeft}}else{if(document.body){return{scrollTop:document.body.scrollTop,scrollLeft:document.body.scrollLeft}}}}}function w(){i=e(window).height(),B=e(window).width();if(typeof $pp_overlay!="undefined"){$pp_overlay.height(e(document).height()).width(B)}}function f(){if(isSet&&settings.overlay_gallery&&A(pp_images[set_position])=="image"&&(settings.ie6_fallback&&!(e.browser.msie&&parseInt(e.browser.version)==6))){itemWidth=52+5;navWidth=(settings.theme=="facebook"||settings.theme=="pp_default")?50:30;itemsPerPage=Math.floor((t.containerWidth-100-navWidth)/itemWidth);itemsPerPage=(itemsPerPage<pp_images.length)?itemsPerPage:pp_images.length;totalPage=Math.ceil(pp_images.length/itemsPerPage)-1;if(totalPage==0){navWidth=0;$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").hide()}else{$pp_gallery.find(".pp_arrow_next,.pp_arrow_previous").show()}galleryWidth=itemsPerPage*itemWidth;fullGalleryWidth=pp_images.length*itemWidth;$pp_gallery.css("margin-left",-((galleryWidth/2)+(navWidth/2))).find("div:first").width(galleryWidth+5).find("ul").width(fullGalleryWidth).find("li.selected").removeClass("selected");goToPage=(Math.floor(set_position/itemsPerPage)<totalPage)?Math.floor(set_position/itemsPerPage):totalPage;e.prettyPhoto.changeGalleryPage(goToPage);$pp_gallery_li.filter(":eq("+set_position+")").addClass("selected")}else{$pp_pic_holder.find(".pp_content").unbind("mouseenter mouseleave")}}function h(C){if(settings.social_tools){facebook_like_link=settings.social_tools.replace("{location_href}",encodeURIComponent(location.href))}settings.markup=settings.markup.replace("{pp_social}",(settings.social_tools)?facebook_like_link:"");e("body").append(settings.markup);$pp_pic_holder=e(".pp_pic_holder"),$ppt=e(".ppt"),$pp_overlay=e("div.pp_overlay");if(isSet&&settings.overlay_gallery){currentGalleryPage=0;toInject="";for(var D=0;D<pp_images.length;D++){if(!pp_images[D].match(/\b(jpg|jpeg|png|gif)\b/gi)){classname="default";img_src=""}else{classname="";img_src=pp_images[D]}toInject+="<li class='"+classname+"'><a href='#'><img src='"+img_src+"' width='50' alt='' /></a></li>"}toInject=settings.gallery_markup.replace(/{gallery}/g,toInject);$pp_pic_holder.find("#pp_full_res").after(toInject);$pp_gallery=e(".pp_pic_holder .pp_gallery"),$pp_gallery_li=$pp_gallery.find("li");$pp_gallery.find(".pp_arrow_next").click(function(){e.prettyPhoto.changeGalleryPage("next");e.prettyPhoto.stopSlideshow();return false});$pp_gallery.find(".pp_arrow_previous").click(function(){e.prettyPhoto.changeGalleryPage("previous");e.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_content").hover(function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeIn()},function(){$pp_pic_holder.find(".pp_gallery:not(.disabled)").fadeOut()});itemWidth=52+5;$pp_gallery_li.each(function(E){e(this).find("a").click(function(){e.prettyPhoto.changePage(E);e.prettyPhoto.stopSlideshow();return false})})}if(settings.slideshow){$pp_pic_holder.find(".pp_nav").prepend('<a href="#" class="pp_play">Play</a>');
$pp_pic_holder.find(".pp_nav .pp_play").click(function(){e.prettyPhoto.startSlideshow();return false})}$pp_pic_holder.attr("class","pp_pic_holder "+settings.theme);$pp_overlay.css({opacity:0,height:e(document).height(),width:e(window).width()}).bind("click",function(){if(!settings.modal){e.prettyPhoto.close()}});e("a.pp_close").bind("click",function(){e.prettyPhoto.close();return false});e("a.pp_expand").bind("click",function(E){if(e(this).hasClass("pp_expand")){e(this).removeClass("pp_expand").addClass("pp_contract");doresize=false}else{e(this).removeClass("pp_contract").addClass("pp_expand");doresize=true}o(function(){e.prettyPhoto.open()});return false});$pp_pic_holder.find(".pp_previous, .pp_nav .pp_arrow_previous").bind("click",function(){e.prettyPhoto.changePage("previous");e.prettyPhoto.stopSlideshow();return false});$pp_pic_holder.find(".pp_next, .pp_nav .pp_arrow_next").bind("click",function(){e.prettyPhoto.changePage("next");e.prettyPhoto.stopSlideshow();return false});q()}if(!pp_alreadyInitialized&&d()){pp_alreadyInitialized=true;hashIndex=d();hashRel=hashIndex;hashIndex=hashIndex.substring(hashIndex.indexOf("/")+1,hashIndex.length-1);hashRel=hashRel.substring(0,hashRel.indexOf("/"));setTimeout(function(){e("a[rel^='"+hashRel+"']:eq("+hashIndex+")").trigger("click")},50)}return this.unbind("click.prettyphoto").bind("click.prettyphoto",e.prettyPhoto.initialize)};function d(){url=location.href;hashtag=(url.indexOf("#!")!=-1)?decodeURI(url.substring(url.indexOf("#!")+2,url.length)):false;return hashtag}function b(){if(typeof theRel=="undefined"){return}location.hash="!"+theRel+"/"+rel_index+"/"}function c(){url=location.href;hashtag=(url.indexOf("#!prettyPhoto")>0)?true:false;if(hashtag){location.hash="!prettyPhoto"}}function a(h,g){h=h.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var f="[\\?&]"+h+"=([^&#]*)";var j=new RegExp(f);var i=j.exec(g);return(i==null)?"":i[1]}})(jQuery);var pp_alreadyInitialized=false;jQuery(document).ready(function(){if($("#container").hasClass("home")){$("#leftHand").stop().animate({top:"0",left:"-355px"},1200,"easeOutExpo");$("#rightHand").stop().animate({top:"0",right:"-265px"},1200,"easeOutExpo");$("#msg_wrapper").click(function(){window.location="portfolio.html";return false});$(function(){var p=8000;var e;var l=0;var g=0;var r=$("#msg_thumbs .msg_thumb_wrapper").length;var h=4;o();function n(){$("#msg_slideshow").unbind("mouseenter").bind("mouseenter",t).andSelf().unbind("mouseleave").bind("mouseleave",j)}$("#msg_grid").bind("click",function(u){j();$("#msg_slideshow").unbind("mouseenter").unbind("mouseleave");d();$("#msg_thumbs").stop().animate({top:"300px"},500);u.preventDefault()});$("#msg_thumb_close").bind("click",function(u){t();n();$("#msg_thumbs").stop().animate({top:"300px"},500);u.preventDefault()});$("#msg_pause_play").bind("click",function(v){var u=$(this);if(u.hasClass("msg_play")){o()}else{d()}v.preventDefault()});$("#msg_next").bind("click",function(u){d();k();u.preventDefault()});$("#msg_prev").bind("click",function(u){d();i();u.preventDefault()});function t(){$("#msg_controls").stop().animate({right:"15px"},500)}function j(){$("#msg_controls").stop().animate({right:"-110px"},500)}function o(){k();$("#msg_pause_play").addClass("msg_pause").removeClass("msg_play");e=setInterval(k,p)}function d(){$("#msg_pause_play").addClass("msg_play").removeClass("msg_pause");clearTimeout(e)}function k(){++l;c("r")}function i(){--l;c("l")}function c(u){m();var y=$("#msg_thumbs .msg_thumb_wrapper:nth-child("+g+")").find("a:nth-child("+parseInt(l-h*(g-1))+")").find("img");if(y.length){var w=y.attr("alt");var x=y.attr("title");var v=$("#msg_wrapper").find("img");if(v.length){v.fadeOut(function(){$(this).remove();$("#featured-caption").animate({opacity:0,left:"-=35"},500);$("<img />").load(function(){var z=$(this);q(z);z.hide();$("#msg_wrapper").empty().append(z.fadeIn())}).attr("src",w);$("#featured-caption h3").empty().append(x);$("#featured-caption").fadeIn("slow").animate({opacity:1,left:"+=35"},1000)})}else{$("<img />").load(function(){var z=$(this);q(z);z.hide();$("#msg_wrapper").empty().append(z.fadeIn())}).attr("src",w);$("#featured-caption h3").empty().append(x)}}else{if(u=="r"){--l}else{if(u=="l"){++l}}m();return}}function m(){$("#msg_thumbs").find(".msg_thumb_wrapper:nth-child("+g+")").hide();g=Math.ceil(l/h);if(g>r){g=1;l=1}else{if(g==0){g=r;l=g*h}}$("#msg_thumbs").find(".msg_thumb_wrapper:nth-child("+g+")").show()}$("#msg_thumb_next").bind("click",function(u){s();u.preventDefault()});$("#msg_thumb_prev").bind("click",function(u){f();u.preventDefault()});function s(){var u=$("#msg_thumbs").find(".msg_thumb_wrapper:nth-child("+parseInt(g+1)+")");if(u.length){$("#msg_thumbs").find(".msg_thumb_wrapper:nth-child("+g+")").fadeOut(function(){++g;u.fadeIn()})}}function f(){var u=$("#msg_thumbs").find(".msg_thumb_wrapper:nth-child("+parseInt(g-1)+")");if(u.length){$("#msg_thumbs").find(".msg_thumb_wrapper:nth-child("+g+")").fadeOut(function(){--g;u.fadeIn()})}}$("#msg_thumbs .msg_thumb_wrapper > a").bind("click",function(x){var w=$(this);$("#msg_thumb_close").trigger("click");var u=w.index();var v=w.parent().index();l=parseInt(v*h+u+1);c();x.preventDefault()}).bind("mouseenter",function(){var u=$(this);u.stop().animate({opacity:1})}).bind("mouseleave",function(){var u=$(this);u.stop().animate({opacity:0.8})});function q(v){var x=new Image();x.src=v.attr("src");var E=x.width;var A=x.height;var F=400;var z=400;if(E>F){var y=F;var w=E/F;var B=A/w;if(B>z){var C=z;var u=B/z;var D=y/u;x.width=D;x.height=C}else{x.width=y;x.height=B}}else{if(A>z){var B=z;var w=A/z;var y=E/w;if(y>F){var D=F;var u=y/F;var C=B/u;x.height=C;x.width=D}else{x.width=y;x.height=B}}}v.css({width:x.width,height:x.height})}});$(function(){$("#testimonial").cycle({fx:"fade",next:"#nextTestominial",prev:"#prevTestominial",pause:0,pauseOnPagerHover:0})});$(function(){$(".readmore").hide();$(".more").hover(function(){$(this).find("a.readmore").stop().fadeIn()
},function(){$(this).find("a.readmore").hide()})});$("#home-bio").click(function(){window.location="about";return false});$("#home-skills").click(function(){window.location="about#skills";return false})}else{$("#leftHand").stop().animate({top:"-50px",left:"-355px"},1000,"easeOutQuart");$("#rightHand").stop().animate({top:"-50px",right:"-265px"},700,"easeOutQuart")}var a=/ at /;var b=/ dot /g;$("#contact .mailme").each(function(){var c=$(this).text().replace(a,"@").replace(b,".");$(this).after('<a href="mailto:'+c+'" title="Send an email">'+c+"</a>");$(this).remove()});$("#featuredWheel").hover(function(){$("#rightHand").stop(true,true).animate({right:-275});$("#leftHand").stop(true,true).animate({left:-365})},function(){$("#rightHand").stop(true,true).animate({right:-265});$("#leftHand").stop(true,true).animate({left:-355})})});$("#portfolio figure").hover(function(){$(this).children("figcaption").css("display","block").animate({opacity:0},0).stop().animate({opacity:1},500)},function(){$(this).children("figcaption").animate({opacity:0},300)});if($("#portfolio").length>0){$("#portfolio").filterable();$("#portfolio img").lazyload({effect:"fadeIn",event:"scroll",skip_invisible:false,failure_limit:10});$("a[rel^='gallery']").prettyPhoto({social_tools:false,deeplinking:false,theme:"light_square",markup:'<div class="pp_pic_holder"> 								<div class="ppt">&nbsp;</div> 								<div class="pp_top"> 									<div class="pp_left"></div> 									<div class="pp_middle"></div> 									<div class="pp_right"></div> 								</div> 								<div class="pp_content_container"> 									<div class="pp_left"> 									<div class="pp_right"> 										<div class="pp_content"> 											<div class="pp_loaderIcon"></div> 											<div class="pp_fade"> 												<a href="#" class="pp_expand" title="Expand the image">Expand</a> 												<div class="pp_hoverContainer"> 													<a class="pp_next" href="#">next</a> 													<a class="pp_previous" href="#">previous</a> 												</div> 												<div id="pp_full_res"></div> 												<div class="pp_details"> 													<p class="pp_description"></p> 													{pp_social} 													<a class="pp_close" href="#">Close</a> 												</div> 											</div> 										</div> 									</div> 									</div> 								</div> 								<div class="pp_bottom"> 									<div class="pp_left"></div> 									<div class="pp_middle"></div> 									<div class="pp_right"></div> 								</div> 							</div> 							<div class="pp_overlay"></div>',gallery_markup:""});$(window).scroll(function(){if($(window).scrollTop()>200){$("#pageHeader").addClass("portfolio");$("#main").css("padding-top","480px");$("#pageHeader").css("min-height","340px")}else{$("#pageHeader").removeClass("portfolio");$("#main").css("padding-top","0px");$("#pageHeader").css("min-height","450px")}})}if($.browser.msie&&$.browser.version<7){alert("Oops! Your browser is too old to handle this website. Please upgrade to a modern browser. IE6 was built for an era that did not anticipate sites like Google Maps and YouTube, and long before Twitter and iPhone rocked our world. Modern web browsers are safer, more productive, and better equipped for todays content and applications. If your IT department still requires you to use IE6, consider asking them for an upgrade.");location.href="http://www.google.com/chrome"};
