if("undefined"===typeof console){var console={};console.log=console.error=console.info=console.debug=console.warn=console.trace=console.dir=console.dirxml=console.group=console.groupEnd=console.time=console.timeEnd=console.assert=console.profile=function(){}}
jQuery(document).ready(function(a){a("body").removeClass("no_js").addClass("yes_js");YIT_Browser.isIE8()&&a("*:last-child").addClass("last-child");YIT_Browser.isIE10()&&a("html").attr("id","ie10").addClass("ie");a.fn.placeholder&&a("input[placeholder], textarea[placeholder]").placeholder();a("input[placeholder], textarea[placeholder]").each(function(){a(this).focus(function(){a(this).data("placeholder",a(this).attr("placeholder"));a(this).attr("placeholder","")}).blur(function(){a(this).attr("placeholder",
a(this).data("placeholder"))})});a(".ch-item").bind("hover",function(){});a('form input[type="text"], form textarea').focus(function(){a(this).parent().find("label.hide-label").hide()}).blur(function(){""==a(this).val()&&a(this).parent().find("label.hide-label").show()}).each(function(){""!=a(this).val()&&a(this).parent().find("label.hide-label").is(":visible")&&a(this).parent().find("label.hide-label").hide()});0!=a(".slider").length&&""==a.trim(a("#primary *, #page-meta").text())&&(a(".slider").attr("style",
"margin-bottom:0 !important;"),a("#primary").remove());jQuery("body").hasClass("isMobile")?(jQuery("a.thumb.img, .overlay_img, .section .related_proj, a.ch-info-lightbox").colorbox({transition:"elastic",rel:"lightbox",fixed:!0,maxWidth:"100%",maxHeight:"100%",opacity:0.7}),jQuery(".section .related_lightbox").colorbox({transition:"elastic",rel:"lightbox2",fixed:!0,maxWidth:"100%",maxHeight:"100%",opacity:0.7})):(jQuery("a.thumb.img, .overlay_img, .section.portfolio .related_proj, a.ch-info-lightbox, a.ch-info-lightbox").colorbox({transition:"elastic",
rel:"lightbox",fixed:!0,maxWidth:"80%",maxHeight:"80%",opacity:0.7}),jQuery(".section.portfolio .related_lightbox").colorbox({transition:"elastic",rel:"lightbox2",fixed:!0,maxWidth:"80%",maxHeight:"80%",opacity:0.7}));jQuery("a.thumb.video, .overlay_video, .section.portfolio .related_video, a.ch-info-lightbox-video").colorbox({transition:"elastic",rel:"lightbox",fixed:!0,maxWidth:"60%",maxHeight:"80%",innerWidth:"60%",innerHeight:"80%",opacity:0.7,iframe:!0,onOpen:function(){a("#cBoxContent").css({"-webkit-overflow-scrolling":"touch"})}});
jQuery(".section.portfolio .lightbox_related_video").colorbox({transition:"elastic",rel:"lightbox2",fixed:!0,maxWidth:"60%",maxHeight:"80%",innerWidth:"60%",innerHeight:"80%",opacity:0.7,iframe:!0,onOpen:function(){a("#cBoxContent").css({"-webkit-overflow-scrolling":"touch"})}});a(".picture_overlay").hover(function(){var b=a(this).find(".overlay div").innerWidth(),c=a(this).find(".overlay div").innerHeight();a(this).find(".overlay div").css({"margin-top":-c/2,"margin-left":-b/2});YIT_Browser.isIE8()&&
a(this).find(".overlay > div").show()},function(){YIT_Browser.isIE8()&&a(this).find(".overlay > div").hide()}).each(function(){var b=a(this).find(".overlay div").innerWidth(),c=a(this).find(".overlay div").innerHeight();a(this).find(".overlay div").css({"margin-top":-c/2,"margin-left":-b/2})});a("#primary").imagesLoaded(function(){0<a("#footer").length?a("#footer").stickyFooter():a("#copyright").stickyFooter()});a(".portfolio-simply").each(function(){var b,c=a(this);(b=function(){var a=c.find(".work-skillsdate").height()+
14;c.find(".work-description").css("padding-bottom",a+"px")})();a(window).resize(b)});a(".opera .quantity input.input-text.qty").replaceWith(function(){a(this).attr("value");return'<input type="text" class="input-text qty text" name="quantity" value="'+a(this).attr("value")+'" />'})});
