// overload jquery's onDomReady
if(jQuery.browser.mozilla||jQuery.browser.opera)document.removeEventListener("DOMContentLoaded",jQuery.ready,!1),document.addEventListener("DOMContentLoaded",function(){jQuery.ready()},!1);jQuery.event.remove(window,"load",jQuery.ready),jQuery.event.add(window,"load",function(){jQuery.ready()}),jQuery.extend({includeStates:{},include:function(a,b,c){typeof b!="function"&&!c&&(c=b,b=null),a=a.replace("\n",""),jQuery.includeStates[a]=!1;var d=document.createElement("script");return d.type="text/javascript",d.onload=function(){jQuery.includeStates[a]=!0,b&&b.call(d)},d.onreadystatechange=function(){if(this.readyState!="complete"&&this.readyState!="loaded")return;jQuery.includeStates[a]=!0,b&&b.call(d)},d.src=a,c?(c.constructor!=Array&&(c=[c]),setTimeout(function(){var a=!0;$.each(c,function(b,c){if(!c())return a=!1,!1}),a?document.getElementsByTagName("head")[0].appendChild(d):setTimeout(arguments.callee,10)},10)):document.getElementsByTagName("head")[0].appendChild(d),function(){return jQuery.includeStates[a]}},readyOld:jQuery.ready,ready:function(){if(jQuery.isReady)return;imReady=!0,$.each(jQuery.includeStates,function(a,b){if(!b)return imReady=!1}),imReady?jQuery.readyOld.apply(jQuery,arguments):setTimeout(arguments.callee,10)}}),$.include("/js/jquery.easing.1.3.js"),jQuery(".ddsmoothmenu").length&&$.include("/js/ddsmoothmenu.js"),jQuery("#fsb, .column").length&&($.include("/js/jquery.flexibleColumns.min.js"),jQuery(function(){jQuery("#fsb").autoColumn(50,".widget-container"),jQuery("#fsb").autoHeight(".widget-container"),jQuery(".columns").autoColumn(50,".column"),jQuery(".columns").autoHeight(".column"),jQuery(".columns2").autoColumn(50,".column"),jQuery(".columns2").autoHeight(".column"),jQuery(".columns3").autoColumn(33,".column"),jQuery(".columns3").autoHeight(".column"),jQuery(".columns4").autoColumn(33,".column"),jQuery(".columns4").autoHeight(".column"),jQuery(".columns5").autoColumn(33,".column"),jQuery(".columns5").autoHeight(".column"),jQuery(".columns6").autoColumn(33,".column"),jQuery(".columns6").autoHeight(".column"),jQuery(".columns7").autoColumn(33,".column"),jQuery(".columns7").autoHeight(".column"),jQuery(".columns8").autoColumn(33,".column"),jQuery(".columns8").autoHeight(".column"),jQuery(".columns9").autoColumn(33,".column"),jQuery(".columns9").autoHeight(".column"),jQuery(".columns10").autoColumn(33,".column"),jQuery(".columns10").autoHeight(".column"),jQuery(".columns11").autoColumn(33,".column"),jQuery(".columns11").autoHeight(".column"),jQuery(".columns12").autoColumn(33,".column"),jQuery(".columns12").autoHeight(".column"),jQuery(".columns13").autoColumn(33,".column"),jQuery(".columns13").autoHeight(".column"),jQuery(".columns14").autoColumn(33,".column"),jQuery(".columns14").autoHeight(".column"),jQuery(".columns15").autoColumn(33,".column"),jQuery(".columns15").autoHeight(".column"),jQuery(".columns16").autoColumn(33,".column"),jQuery(".columns16").autoHeight(".column")})),jQuery("#accordion").length&&($.include("sliders/accordion-slider/jquery.elegantAccordion.js"),jQuery(document).ready(function(){jQuery("#accordion").eAccordion({easing:"swing",autoPlay:!0,startStopped:!1,stopAtEnd:!1,delay:4e3,animationTime:600,hashTags:!0,pauseOnHover:!0,width:null,height:null,expandedWidth:"422px"})})),jQuery("#nivo-slider").length&&($.include("sliders/nivo-slider/jquery.nivo.slider.js"),jQuery(document).ready(function(){jQuery("#nivo-slider").nivoSlider({effect:"random",slices:40,animSpeed:600,pauseTime:3e3,directionNav:!0,directionNavHide:!1,controlNav:!0})})),jQuery("#coin-slider").length&&($.include("sliders/coin-slider/coin-slider.js"),jQuery(document).ready(function(){jQuery("#coin-slider").coinslider({width:952,height:392,spw:10,sph:5,delay:3e3,sDelay:30,opacity:1,titleSpeed:500,effect:"random",navigation:!0,links:!0,hoverPause:!0})})),jQuery("#anything").length&&($.include("sliders/anything-slider/jquery.anythingslider.js"),jQuery(document).ready(function(){jQuery("#anything").anythingSlider({width:952,height:392,startStopped:!0}).find(".panel").find("div[class*=caption]").css({position:"absolute"}).end().hover(function(){showCaptions(jQuery(this))},function(){hideCaptions(jQuery(this))}),showCaptions=function(a){var b=a;b.find(".caption-top").length&&b.find(".caption-top").show().animate({top:10,opacity:.8},400),b.find(".caption-right").length&&b.find(".caption-right").show().animate({right:10,opacity:.8},400),b.find(".caption-bottom").length&&b.find(".caption-bottom").show().animate({bottom:10,opacity:.8},400),b.find(".caption-left").length&&b.find(".caption-left").show().animate({left:10,opacity:.8},400)},hideCaptions=function(a){var b=a;b.find(".caption-top").length&&b.find(".caption-top").stop().animate({top:-50,opacity:0},350,function(){b.find(".caption-top").hide()}),b.find(".caption-right").length&&b.find(".caption-right").stop().animate({right:-200,opacity:0},350,function(){b.find(".caption-right").hide()}),b.find(".caption-bottom").length&&b.find(".caption-bottom").stop().animate({bottom:-50,opacity:0},350,function(){b.find(".caption-bottom").hide()}),b.find(".caption-left").length&&b.find(".caption-left").stop().animate({left:-200,opacity:0},350,function(){b.find(".caption-left").hide()})},hideCaptions(jQuery("#anything .panel"))})),jQuery("#piecemaker").length&&($.include("piecemaker/scripts/swfobject/swfobject.js"),jQuery(document).ready(function(){var a={};a.cssSource="piecemaker/piecemaker.css",a.xmlSource="piecemaker/piecemaker.xml";var b={};b.play="true",b.menu="false",b.scale="showall",b.wmode="transparent",b.allowfullscreen="true",b.allowscriptaccess="always",b.allownetworking="all",swfobject.embedSWF("piecemaker/piecemaker.swf","piecemaker","1000","600","10",null,a,b,null)})),jQuery("#orbit-slider").length&&($.include("sliders/orbit-slider/jquery.orbit.js"),jQuery(document).ready(function(){jQuery("#orbit-slider").orbit({animation:"fade",animationSpeed:800,timer:!0,advanceSpeed:4e3,pauseOnHover:!1,startClockOnMouseOut:!1,startClockOnMouseOutAfter:1e3,directionalNav:!0,captions:!0,captionAnimation:"fade",captionAnimationSpeed:800,bullets:!0,bulletThumbs:!0,bulletThumbLocation:"sliders/orbit-slider/orbit/",afterSlideChange:function(){}})})),jQuery("#s3slider").length&&($.include("sliders/serie3-slider/s3Slider.js"),jQuery(document).ready(function(){jQuery("#s3slider").s3Slider({timeOut:3e3})})),jQuery("#roundabout").length&&($.include("sliders/roundabout-slider/jquery.roundabout.js"),$.include("sliders/roundabout-slider/jquery.roundabout-shapes.min.js"),jQuery(document).ready(function(){jQuery("#roundabout ul").roundabout({bearing:0,tilt:0,minZ:80,maxZ:100,minOpacity:.7,maxOpacity:1,minScale:.4,maxScale:1.3,duration:800,easing:"easeOutExpo",clickToFocus:!0,focusBearing:0,shape:"square",childSelector:"li",startingChild:6,reflect:!1})})),jQuery(".widget_recent_projects").length&&($.include("/js/jquery.cycle.all.min.js"),jQuery(function(){jQuery(".widget_recent_projects ul").cycle({fx:"scrollLeft",timeout:5e3,delay:-1e3})})),jQuery("a[data-rel^='prettyPhoto']").length&&$.include("/js/jquery.prettyPhoto.js"),jQuery("#slider-code").length&&($.include("/js/jquery.tinycarousel.js"),jQuery(document).ready(function(){jQuery.fn.showFeatureText=function(){return this.each(function(){var a=jQuery(this),b=jQuery("h4",this);b.css({position:"absolute",bottom:"0px"}).hide(),a.hover(function(){b.slideDown("fast")},function(){b.slideUp("fast")})})},jQuery("#slider-code .overview li").showFeatureText(),jQuery("#slider-code").tinycarousel({start:1,display:3,axis:"x",controls:!0,pager:!1,interval:!1,intervaltime:3e3,rewind:!1,animation:!0,duration:1e3,callback:null})})),jQuery(".social").length&&$.include("/js/jquery.tipsy.js"),jQuery(".widget_search").length&&$.include("/js/jquery.watermarkinput.js"),jQuery(".gototop").length&&($.include("/js/jquery.localscroll-min.js"),$.include("/js/jquery.scrollTo-min.js")),jQuery("#contact").length&&$.include("/js/jquery.jigowatt.js"),jQuery("select, input:checkbox, input:radio").length&&$.include("/js/jquery.uniform.min.js"),jQuery(".portfolio_rotator").length&&($.include("sliders/roundabout-slider/jquery.roundabout.js"),$.include("sliders/roundabout-slider/jquery.roundabout-shapes.min.js"),jQuery(document).ready(function(){jQuery(".portfolio_rotator ul").roundabout({bearing:0,tilt:0,minZ:10,maxZ:100,minOpacity:.3,maxOpacity:1,minScale:.6,maxScale:1,duration:600,btnNext:null,btnPrev:null,easing:"swing",clickToFocus:!0,focusBearing:0,shape:"waterWheel",debug:!1,childSelector:"li",startingChild:0,reflect:!1})})),jQuery("body").length&&$.include("/js/common.js"),jQuery(".gotoform").length&&($.include("/js/jquery.localscroll-min.js"),$.include("/js/jquery.scrollTo-min.js")),jQuery(".jclock").length&&$.include("/js/jquery.jclock.js")
