Team:SCUT/js/test
function revslider_showDoubleJqueryError(t){var e="Revolution Slider Error: You have some jquery.js library include that comes after the revolution files js include.";e+="
This includes make eliminates the revolution slider libraries, and make it not work.",e+="
To fix it you can:
1. In the Slider Settings -> Troubleshooting set option: Put JS Includes To Body option to true.",e+="
2. Find the double jquery.js include and remove it.",e=""+e+"",jQuery(t).show().html(e)}function createCookie(t,e,i){if(i){var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3);var s="; expires="+n.toGMTString()}else var s="";document.cookie=t+"="+e+s+"; path=/"}function readCookie(t){for(var e=t+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var s=i[n];" "==s.charAt(0);)s=s.substring(1,s.length);if(0==s.indexOf(e))return s.substring(e.length,s.length)}return null}function eraseCookie(t){createCookie(t,"",-1)}$(window).load(function(){$("#slides").slides({preload:!0,preloadImage:"images/nivo-preloader.gif",play:0,pause:0,effect:"fade",autoHeight:!0,effects:{navigation:"fade",pagination:"fade"},hoverPause:!0})});var api,api2;jQuery(document).ready(function(){api=jQuery(".fullwidthbanner").revolution({delay:9e3,startheight:450,startwidth:1120,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"bullet",navigationArrows:"verticalcentered",navigationStyle:"round",touchenabled:"on",onHoverStop:"on",navOffsetHorizontal:0,navOffsetVertical:0,stopAtSlide:-1,stopAfterLoops:-1,shadow:0,fullWidth:"on"}),api2=jQuery(".banner").revolution({delay:9e3,startheight:450,startwidth:1120,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"bullet",navigationArrows:"verticalcentered",navigationStyle:"round",touchenabled:"on",onHoverStop:"on",navOffsetHorizontal:0,navOffsetVertical:0,stopAtSlide:-1,stopAfterLoops:-1,shadow:0,fullWidth:"on"}),$(".blog-slides").slides({preload:!0,preloadImage:"images/nivo-preloader.gif",play:5e3,pause:2500,effect:"slide",autoHeight:!1,effects:{navigation:"fade",pagination:"fade"},hoverPause:!0}),$(".blog-slides .next, #slides .next, .post .next").hide(),$(".blog-slides .prev, #slides .prev, .post .prev").hide(),$(".blog-slides, #slides").hover(function(){$(".next").stop(!0,!0).fadeIn(),$(".prev").stop(!0,!0).fadeIn()},function(){$(".next").fadeOut(),$(".prev").fadeOut()}),$(".clients li").hover(function(){$(this).children("a").animate({opacity:"0.8"},{queue:!1,duration:200})},function(){$(this).children("a").animate({opacity:"0.4"},{queue:!1,duration:200})}),$("#testimonials").cycle({fx:"fade",timeout:4e3,speed:1e3}),$(".item-on-hover, .item-on-hover-white").hover(function(){$(this).animate({opacity:1},200),$(this).children(".hover-link, .hover-image, .hover-video").animate({opacity:1},200)},function(){$(this).animate({opacity:0},200),$(this).children(".hover-link, .hover-image, .hover-video").animate({opacity:0},200)}),$(".grid-item-on-hover").hover(function(){$(this).animate({opacity:.9},200)},function(){$(this).animate({opacity:0},200)});var t=$(".grid"),e=$("#masonry-blog"),i=$(".portfolio-gallery"),n=$(".gallery-page"),s=$(".four-columns, .three-columns, .two-columns");e.imagesLoaded(function(){e.isotope({itemSelector:".masonry-post",animationEngine:"jquery",gutterWidth:20})}),n.imagesLoaded(function(){n.isotope({itemSelector:"li",animationEngine:"jquery",gutterWidth:20})}),i.imagesLoaded(function(){i.isotope({itemSelector:"a",animationEngine:"jquery",gutterWidth:20})}),t.isotope({itemSelector:"li",animationEngine:"jquery",masonry:{columnWidth:5}}),s.isotope({itemSelector:"li",animationEngine:"jquery"});var a=$("#options .option-set"),o=a.find("a");o.click(function(){var e=$(this);if(e.hasClass("selected"))return!1;var i=e.parents(".option-set");i.find(".selected").removeClass("selected"),e.addClass("selected");var n={},a=i.attr("data-option-key"),o=e.attr("data-option-value");return o="false"===o?!1:o,n[a]=o,"layoutMode"===a&&"function"==typeof changeLayoutMode?changeLayoutMode(e,n):(t.isotope(n),s.isotope(n)),!1}),$("#mainnav").mobileMenu({defaultText:"Navigate to...",className:"select-menu",subMenuDash:"–"}),$("#portfolio-carousel, #homeblog-carousel, .post-thumbnail, .portfolio li").preloadify(),$("ul#mainnav").superfish({delay:100,autoArrows:!1,animation:{opacity:"show",opacity:"show"},speed:"fast"}),$("ul#mainnav li").css({overflow:"visible"}),$("ul#mainnav li ul li:last-child").addClass("nav-last-item"),$("ul#mainnav li ul li:first-child").addClass("nav-first-item");var r;$("#mainnav > li").each(function(){r=$(this),(r.find("> a.current").length||r.find("> ul > li > a.current").length)&&(r.addClass("current-item item-active"),$(this).prev().addClass("prev-item"))}),$("#mainnav > li").hover(function(){$(this).prev().addClass("previ-item")},function(){$(this).prev().removeClass("previ-item")}),$("#flickr").jflickrfeed({limit:10,qstrings:{id:"58842866@N08",tags:"architecture"},itemTemplate:'<a href="Template:Image b"><img src="Template:Image s" alt="Template:Title" /></a> '}),$(window).load(function(){function t(){e.width()/e.height()<n?i.removeClass().addClass("bgheight"):i.removeClass().addClass("bgwidth")}var e=$(window),i=$("#bg"),n=i.width()/i.height();e.resize(function(){t()}).trigger("resize")}),$("a[rel^='prettyPhoto']").prettyPhoto({animation_speed:"normal",theme:"light_square",slideshow:3e3,autoplay_slideshow:!1});var l=1e3;$("#top div").each(function(){$(this).css("zIndex",l),l-=10}),$("#homeblog-carousel").jcarousel({vertical:!1,rtl:!1,start:1,offset:1,scroll:1,animation:"normal",easing:"swing",auto:0}),document.documentElement.clientWidth<1e3?$("#portfolio-carousel").jcarousel({vertical:!1,rtl:!1,start:1,offset:1,scroll:1,animation:"normal",easing:"swing",auto:0}):$("#portfolio-carousel").jcarousel({vertical:!1,rtl:!1,start:1,offset:1,scroll:4,animation:"normal",easing:"swing",auto:0}),$(".home .top-shadow").hide().delay(1500).fadeIn(3e3),$(".home .bottom-shadow").hide().delay(1500).fadeIn(3e3),$(".tabs-wrapper").each(function(){$(this).find(".tab-content").hide(),$(this).find("ul.tabs li:first").addClass("active").show(),$(this).find(".tab-content:first").show()}),$("ul.tabs li").click(function(t){$(this).parents(".tabs-wrapper").find("ul.tabs li").removeClass("active"),$(this).addClass("active"),$(this).parents(".tabs-wrapper").find(".tab-content").hide();var e=$(this).find("a").attr("href");$("li.tab-item:first-child").css("background","none"),$(this).parents(".tabs-wrapper").find(e).fadeIn(),t.preventDefault()}),$("ul.tabs li a").click(function(t){t.preventDefault()}),$("li.tab-item:last-child").addClass("last-item"),$(".ac-btn").click(function(){$(".ac-btn").removeClass("on"),$(".ac-selected").slideUp("normal"),$(".ac-content").removeClass("ac-selected"),$(".ac-content").slideUp("normal"),1==$(this).next().is(":hidden")&&($(this).addClass("on"),$(this).next().slideDown("normal"))}),$(".ac-btn").mouseover(function(){$(this).addClass("over")}).mouseout(function(){$(this).removeClass("over")}),$(".ac-content").hide(),$("#toggle-view li").click(function(){var t=$(this).children("div.panel");t.is(":hidden")?(t.slideDown("200"),$(this).children("span").addClass("toggle-minus"),$(this).addClass("activated")):(t.slideUp("200"),$(this).children("span").removeClass("toggle-minus"),$(this).children("span").addClass("toggle-plus"),$(this).removeClass("activated"))}),$("#topfooter").append(''),$(".box-error").prepend(''),$(".box-notice").prepend(''),$(".box-success").prepend(''),$(".box-info").prepend(''),$(".check").prepend(''),$(".tick-list li").prepend(''),$(".play-list li").prepend(''),$(".star-list li").prepend(''),$(".arrow-list li").prepend(''),$("#audio_jplayer").jPlayer({ready:function(t){$(this).jPlayer("setMedia",{mp3:"media/audio.mp3",ogg:"media/audio.ogg"})},swfPath:"../../media",supplied:"mp3, ogg",wmode:"window"})});var Skills=new function(){var t=document.getElementById("skills"),e={photoshop:"90%",wordpress:"80%",jquery:"100%",illustrator:"40%",ajax:"55%"},i=function(){var i="";for(var n in e){var s=n,a=e[n];i+='=l&&(a--,o>=l&&o--),r.splice(l--,1),!t.unique));l++);return this},has:function(t){if(r)for(var e=0,i=r.length;i>e;e++)if(t===r[e])return!0;return!1},empty:function(){return r=[],this},disable:function(){return r=l=i=e,this},disabled:function(){return!r},lock:function(){return l=e,(!i||i===!0)&&h.disable(),this},locked:function(){return!l},fireWith:function(e,s){return l&&(n?t.once||l.push([e,s]):(!t.once||!i)&&d(e,s)),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!i}};return h};var $=[].slice;O.extend({Deferred:function(t){var e,i=O.Callbacks("once memory"),n=O.Callbacks("once memory"),s=O.Callbacks("memory"),a="pending",o={resolve:i,reject:n,notify:s},r={done:i.add,fail:n.add,progress:s.add,state:function(){return a},isResolved:i.fired,isRejected:n.fired,then:function(t,e,i){return l.done(t).fail(e).progress(i),this},always:function(){return l.done.apply(l,arguments).fail.apply(l,arguments),this},pipe:function(t,e,i){return O.Deferred(function(n){O.each({done:[t,"resolve"],fail:[e,"reject"],progress:[i,"notify"]},function(t,e){var i,s=e[0],a=e[1];O.isFunction(s)?l[t](function(){i=s.apply(this,arguments),i&&O.isFunction(i.promise)?i.promise().then(n.resolve,n.reject,n.notify):n[a+"With"](this===l?n:this,[i])}):l[t](n[a])})}).promise()},promise:function(t){if(null==t)t=r;else for(var e in r)t[e]=r[e];return t}},l=r.promise({});for(e in o)l[e]=o[e].fire,l[e+"With"]=o[e].fireWith;return l.done(function(){a="resolved"},n.disable,s.lock).fail(function(){a="rejected"},i.disable,s.lock),t&&t.call(l,l),l},when:function(t){function e(t){return function(e){o[t]=arguments.length>1?$.call(arguments,0):e,l.notifyWith(c,o)}}function i(t){return function(e){n[t]=arguments.length>1?$.call(arguments,0):e,--r||l.resolveWith(l,n)}}var n=$.call(arguments,0),s=0,a=n.length,o=Array(a),r=a,l=1>=a&&t&&O.isFunction(t.promise)?t:O.Deferred(),c=l.promise();if(a>1){for(;a>s;s++)n[s]&&n[s].promise&&O.isFunction(n[s].promise)?n[s].promise().then(i(s),l.reject,e(s)):--r;
r||l.resolveWith(l,n)}else l!==t&&l.resolveWith(l,a?[t]:[]);return c}}),O.support=function(){var e,i,n,s,a,o,r,l,c,d,h,u,p=M.createElement("div");M.documentElement;if(p.setAttribute("className","t"),p.innerHTML="
a",i=p.getElementsByTagName("*"),n=p.getElementsByTagName("a")[0],!i||!i.length||!n)return{};s=M.createElement("select"),a=s.appendChild(M.createElement("option")),o=p.getElementsByTagName("input")[0],e={leadingWhitespace:3===p.firstChild.nodeType,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(n.getAttribute("style")),hrefNormalized:"/a"===n.getAttribute("href"),opacity:/^0.55/.test(n.style.opacity),cssFloat:!!n.style.cssFloat,checkOn:"on"===o.value,optSelected:a.selected,getSetAttribute:"t"!==p.className,enctype:!!M.createElement("form").enctype,html5Clone:"<:nav>"!==M.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},o.checked=!0,e.noCloneChecked=o.cloneNode(!0).checked,s.disabled=!0,e.optDisabled=!a.disabled;try{delete p.test}catch(f){e.deleteExpando=!1}if(!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",function(){e.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick")),o=M.createElement("input"),o.value="t",o.setAttribute("type","radio"),e.radioValue="t"===o.value,o.setAttribute("checked","checked"),p.appendChild(o),l=M.createDocumentFragment(),l.appendChild(p.lastChild),e.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,e.appendChecked=o.checked,l.removeChild(o),l.appendChild(p),p.innerHTML="",t.getComputedStyle&&(r=M.createElement("div"),r.style.width="0",r.style.marginRight="0",p.style.width="2px",p.appendChild(r),e.reliableMarginRight=0===(parseInt((t.getComputedStyle(r,null)||{marginRight:0}).marginRight,10)||0)),p.attachEvent)for(h in{submit:1,change:1,focusin:1})d="on"+h,u=d in p,u||(p.setAttribute(d,"return;"),u="function"==typeof p[d]),e[h+"Bubbles"]=u;return l.removeChild(p),l=s=a=r=p=o=null,O(function(){var t,i,n,s,a,o,r,l,d,h,f=M.getElementsByTagName("body")[0];!f||(o=1,r="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",l="visibility:hidden;border:0;",d="style='"+r+"border:5px solid #000;padding:0;'",h="
",t=M.createElement("div"),t.style.cssText=l+"width:0;height:0;position:static;top:0;margin-top:"+o+"px",f.insertBefore(t,f.firstChild),p=M.createElement("div"),t.appendChild(p),p.innerHTML="
",c=p.getElementsByTagName("td"),u=0===c[0].offsetHeight,c[0].style.display="",c[1].style.display="none",e.reliableHiddenOffsets=u&&0===c[0].offsetHeight,p.innerHTML="",p.style.width=p.style.paddingLeft="1px",O.boxModel=e.boxModel=2===p.offsetWidth,"undefined"!=typeof p.style.zoom&&(p.style.display="inline",p.style.zoom=1,e.inlineBlockNeedsLayout=2===p.offsetWidth,p.style.display="",p.innerHTML="",e.shrinkWrapBlocks=2!==p.offsetWidth),p.style.cssText=r+l,p.innerHTML=h,i=p.firstChild,n=i.firstChild,s=i.nextSibling.firstChild.firstChild,a={doesNotAddBorder:5!==n.offsetTop,doesAddBorderForTableAndCells:5===s.offsetTop},n.style.position="fixed",n.style.top="20px",a.fixedPosition=20===n.offsetTop||15===n.offsetTop,n.style.position=n.style.top="",i.style.overflow="hidden",i.style.position="relative",a.subtractsBorderForOverflowNotVisible=-5===n.offsetTop,a.doesNotIncludeMarginInBodyOffset=f.offsetTop!==o,f.removeChild(t),p=t=null,O.extend(e,a))}),e}();var H=/^(?:\{.*\}|\[.*\])$/,F=/([A-Z])/g;O.extend({cache:{},uuid:0,expando:"jQuery"+(O.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(t){return t=t.nodeType?O.cache[t[O.expando]]:t[O.expando],!!t&&!N(t)},data:function(t,i,n,s){if(O.acceptData(t)){var a,o,r,l=O.expando,c="string"==typeof i,d=t.nodeType,h=d?O.cache:t,u=d?t[l]:t[l]&&l,p="events"===i;if((!u||!h[u]||!p&&!s&&!h[u].data)&&c&&n===e)return;return u||(d?t[l]=u=++O.uuid:u=l),h[u]||(h[u]={},d||(h[u].toJSON=O.noop)),("object"==typeof i||"function"==typeof i)&&(s?h[u]=O.extend(h[u],i):h[u].data=O.extend(h[u].data,i)),a=o=h[u],s||(o.data||(o.data={}),o=o.data),n!==e&&(o[O.camelCase(i)]=n),p&&!o[i]?a.events:(c?(r=o[i],null==r&&(r=o[O.camelCase(i)])):r=o,r)}},removeData:function(t,e,i){if(O.acceptData(t)){var n,s,a,o=O.expando,r=t.nodeType,l=r?O.cache:t,c=r?t[o]:o;if(!l[c])return;if(e&&(n=i?l[c]:l[c].data)){O.isArray(e)||(e in n?e=[e]:(e=O.camelCase(e),e=e in n?[e]:e.split(" ")));for(s=0,a=e.length;a>s;s++)delete n[e[s]];if(!(i?N:O.isEmptyObject)(n))return}if(!i&&(delete l[c].data,!N(l[c])))return;O.support.deleteExpando||!l.setInterval?delete l[c]:l[c]=null,r&&(O.support.deleteExpando?delete t[o]:t.removeAttribute?t.removeAttribute(o):t[o]=null)}},_data:function(t,e,i){return O.data(t,e,i,!0)},acceptData:function(t){if(t.nodeName){var e=O.noData[t.nodeName.toLowerCase()];if(e)return e!==!0&&t.getAttribute("classid")===e}return!0}}),O.fn.extend({data:function(t,i){var n,s,a,o=null;if("undefined"==typeof t){if(this.length&&(o=O.data(this[0]),1===this[0].nodeType&&!O._data(this[0],"parsedAttrs"))){s=this[0].attributes;for(var r=0,l=s.length;l>r;r++)a=s[r].name,0===a.indexOf("data-")&&(a=O.camelCase(a.substring(5)),A(this[0],a,o[a]));O._data(this[0],"parsedAttrs",!0)}return o}return"object"==typeof t?this.each(function(){O.data(this,t)}):(n=t.split("."),n[1]=n[1]?"."+n[1]:"",i===e?(o=this.triggerHandler("getData"+n[1]+"!",[n[0]]),o===e&&this.length&&(o=O.data(this[0],t),o=A(this[0],t,o)),o===e&&n[1]?this.data(n[0]):o):this.each(function(){var e=O(this),s=[n[0],i];e.triggerHandler("setData"+n[1]+"!",s),O.data(this,t,i),e.triggerHandler("changeData"+n[1]+"!",s)}))},removeData:function(t){return this.each(function(){O.removeData(this,t)})}}),O.extend({_mark:function(t,e){t&&(e=(e||"fx")+"mark",O._data(t,e,(O._data(t,e)||0)+1))},_unmark:function(t,e,i){if(t!==!0&&(i=e,e=t,t=!1),e){i=i||"fx";var n=i+"mark",s=t?0:(O._data(e,n)||1)-1;s?O._data(e,n,s):(O.removeData(e,n,!0),E(e,i,"mark"))}},queue:function(t,e,i){var n;return t?(e=(e||"fx")+"queue",n=O._data(t,e),i&&(!n||O.isArray(i)?n=O._data(t,e,O.makeArray(i)):n.push(i)),n||[]):void 0},dequeue:function(t,e){e=e||"fx";var i=O.queue(t,e),n=i.shift(),s={};"inprogress"===n&&(n=i.shift()),n&&("fx"===e&&i.unshift("inprogress"),O._data(t,e+".run",s),n.call(t,function(){O.dequeue(t,e)},s)),i.length||(O.removeData(t,e+"queue "+e+".run",!0),E(t,e,"queue"))}}),O.fn.extend({queue:function(t,i){return"string"!=typeof t&&(i=t,t="fx"),i===e?O.queue(this[0],t):this.each(function(){var e=O.queue(this,t,i);"fx"===t&&"inprogress"!==e[0]&&O.dequeue(this,t)})},dequeue:function(t){return this.each(function(){O.dequeue(this,t)})},delay:function(t,e){return t=O.fx?O.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var n=setTimeout(e,t);i.stop=function(){clearTimeout(n)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,i){function n(){--l||a.resolveWith(o,[o])}"string"!=typeof t&&(i=t,t=e),t=t||"fx";for(var s,a=O.Deferred(),o=this,r=o.length,l=1,c=t+"defer",d=t+"queue",h=t+"mark";r--;)(s=O.data(o[r],c,e,!0)||(O.data(o[r],d,e,!0)||O.data(o[r],h,e,!0))&&O.data(o[r],c,O.Callbacks("once memory"),!0))&&(l++,s.add(n));return n(),a.promise()}});var B,D,R,W=/[\n\t\r]/g,U=/\s+/,V=/\r/g,Q=/^(?:button|input)$/i,X=/^(?:button|input|object|select|textarea)$/i,Y=/^a(?:rea)?$/i,G=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,J=O.support.getSetAttribute;O.fn.extend({attr:function(t,e){return O.access(this,t,e,!0,O.attr)},removeAttr:function(t){return this.each(function(){O.removeAttr(this,t)})},prop:function(t,e){return O.access(this,t,e,!0,O.prop)},removeProp:function(t){return t=O.propFix[t]||t,this.each(function(){try{this[t]=e,delete this[t]}catch(i){}})},addClass:function(t){var e,i,n,s,a,o,r;if(O.isFunction(t))return this.each(function(e){O(this).addClass(t.call(this,e,this.className))});if(t&&"string"==typeof t)for(e=t.split(U),i=0,n=this.length;n>i;i++)if(s=this[i],1===s.nodeType)if(s.className||1!==e.length){for(a=" "+s.className+" ",o=0,r=e.length;r>o;o++)~a.indexOf(" "+e[o]+" ")||(a+=e[o]+" ");s.className=O.trim(a)}else s.className=t;return this},removeClass:function(t){var i,n,s,a,o,r,l;if(O.isFunction(t))return this.each(function(e){O(this).removeClass(t.call(this,e,this.className))});if(t&&"string"==typeof t||t===e)for(i=(t||"").split(U),n=0,s=this.length;s>n;n++)if(a=this[n],1===a.nodeType&&a.className)if(t){for(o=(" "+a.className+" ").replace(W," "),r=0,l=i.length;l>r;r++)o=o.replace(" "+i[r]+" "," ");a.className=O.trim(o)}else a.className="";return this},toggleClass:function(t,e){var i=typeof t,n="boolean"==typeof e;return O.isFunction(t)?this.each(function(i){O(this).toggleClass(t.call(this,i,this.className,e),e)}):this.each(function(){if("string"===i)for(var s,a=0,o=O(this),r=e,l=t.split(U);s=l[a++];)r=n?r:!o.hasClass(s),o[r?"addClass":"removeClass"](s);else("undefined"===i||"boolean"===i)&&(this.className&&O._data(this,"__className__",this.className),this.className=this.className||t===!1?"":O._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;n>i;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(W," ").indexOf(e)>-1)return!0;return!1},val:function(t){var i,n,s,a=this[0];return arguments.length?(s=O.isFunction(t),this.each(function(n){var a,o=O(this);1===this.nodeType&&(a=s?t.call(this,n,o.val()):t,null==a?a="":"number"==typeof a?a+="":O.isArray(a)&&(a=O.map(a,function(t){return null==t?"":t+""})),i=O.valHooks[this.nodeName.toLowerCase()]||O.valHooks[this.type],i&&"set"in i&&i.set(this,a,"value")!==e||(this.value=a))})):a?(i=O.valHooks[a.nodeName.toLowerCase()]||O.valHooks[a.type],i&&"get"in i&&(n=i.get(a,"value"))!==e?n:(n=a.value,"string"==typeof n?n.replace(V,""):null==n?"":n)):void 0}}),O.extend({valHooks:{option:{get:function(t){var e=t.attributes.value;return!e||e.specified?t.value:t.text}},select:{get:function(t){var e,i,n,s,a=t.selectedIndex,o=[],r=t.options,l="select-one"===t.type;if(0>a)return null;for(i=l?a:0,n=l?a+1:r.length;n>i;i++)if(s=r[i],s.selected&&(O.support.optDisabled?!s.disabled:null===s.getAttribute("disabled"))&&(!s.parentNode.disabled||!O.nodeName(s.parentNode,"optgroup"))){if(e=O(s).val(),l)return e;o.push(e)}return l&&!o.length&&r.length?O(r[a]).val():o},set:function(t,e){var i=O.makeArray(e);return O(t).find("option").each(function(){this.selected=O.inArray(O(this).val(),i)>=0}),i.length||(t.selectedIndex=-1),i}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(t,i,n,s){var a,o,r,l=t.nodeType;return t&&3!==l&&8!==l&&2!==l?s&&i in O.attrFn?O(t)[i](n):"undefined"==typeof t.getAttribute?O.prop(t,i,n):(r=1!==l||!O.isXMLDoc(t),r&&(i=i.toLowerCase(),o=O.attrHooks[i]||(G.test(i)?D:B)),n!==e?null===n?void O.removeAttr(t,i):o&&"set"in o&&r&&(a=o.set(t,n,i))!==e?a:(t.setAttribute(i,""+n),n):o&&"get"in o&&r&&null!==(a=o.get(t,i))?a:(a=t.getAttribute(i),null===a?e:a)):void 0},removeAttr:function(t,e){var i,n,s,a,o=0;if(e&&1===t.nodeType)for(n=e.toLowerCase().split(U),a=n.length;a>o;o++)s=n[o],s&&(i=O.propFix[s]||s,O.attr(t,s,""),t.removeAttribute(J?s:i),G.test(s)&&i in t&&(t[i]=!1))},attrHooks:{type:{set:function(t,e){if(Q.test(t.nodeName)&&t.parentNode)O.error("type property can't be changed");else if(!O.support.radioValue&&"radio"===e&&O.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}},value:{get:function(t,e){return B&&O.nodeName(t,"button")?B.get(t,e):e in t?t.value:null},set:function(t,e,i){return B&&O.nodeName(t,"button")?B.set(t,e,i):void(t.value=e)}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(t,i,n){var s,a,o,r=t.nodeType;return t&&3!==r&&8!==r&&2!==r?(o=1!==r||!O.isXMLDoc(t),o&&(i=O.propFix[i]||i,a=O.propHooks[i]),n!==e?a&&"set"in a&&(s=a.set(t,n,i))!==e?s:t[i]=n:a&&"get"in a&&null!==(s=a.get(t,i))?s:t[i]):void 0},propHooks:{tabIndex:{get:function(t){var i=t.getAttributeNode("tabindex");return i&&i.specified?parseInt(i.value,10):X.test(t.nodeName)||Y.test(t.nodeName)&&t.href?0:e}}}}),O.attrHooks.tabindex=O.propHooks.tabIndex,D={get:function(t,i){var n,s=O.prop(t,i);return s===!0||"boolean"!=typeof s&&(n=t.getAttributeNode(i))&&n.nodeValue!==!1?i.toLowerCase():e},set:function(t,e,i){var n;return e===!1?O.removeAttr(t,i):(n=O.propFix[i]||i,n in t&&(t[n]=!0),t.setAttribute(i,i.toLowerCase())),i}},J||(R={name:!0,id:!0},B=O.valHooks.button={get:function(t,i){var n;return n=t.getAttributeNode(i),n&&(R[i]?""!==n.nodeValue:n.specified)?n.nodeValue:e},set:function(t,e,i){var n=t.getAttributeNode(i);return n||(n=M.createAttribute(i),t.setAttributeNode(n)),n.nodeValue=e+""}},O.attrHooks.tabindex.set=B.set,O.each(["width","height"],function(t,e){O.attrHooks[e]=O.extend(O.attrHooks[e],{set:function(t,i){return""===i?(t.setAttribute(e,"auto"),i):void 0}})}),O.attrHooks.contenteditable={get:B.get,set:function(t,e,i){""===e&&(e="false"),B.set(t,e,i)}}),O.support.hrefNormalized||O.each(["href","src","width","height"],function(t,i){O.attrHooks[i]=O.extend(O.attrHooks[i],{get:function(t){var n=t.getAttribute(i,2);return null===n?e:n}})}),O.support.style||(O.attrHooks.style={get:function(t){return t.style.cssText.toLowerCase()||e},set:function(t,e){return t.style.cssText=""+e}}),O.support.optSelected||(O.propHooks.selected=O.extend(O.propHooks.selected,{get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}})),O.support.enctype||(O.propFix.enctype="encoding"),O.support.checkOn||O.each(["radio","checkbox"],function(){O.valHooks[this]={get:function(t){return null===t.getAttribute("value")?"on":t.value}}}),O.each(["radio","checkbox"],function(){O.valHooks[this]=O.extend(O.valHooks[this],{set:function(t,e){return O.isArray(e)?t.checked=O.inArray(O(t).val(),e)>=0:void 0}})});var K=/^(?:textarea|input|select)$/i,Z=/^([^\.]*)?(?:\.(.+))?$/,tt=/\bhover(\.\S+)?\b/,et=/^key/,it=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,st=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,at=function(t){var e=st.exec(t);return e&&(e[1]=(e[1]||"").toLowerCase(),e[3]=e[3]&&new RegExp("(?:^|\\s)"+e[3]+"(?:\\s|$)")),e},ot=function(t,e){var i=t.attributes||{};return(!e[1]||t.nodeName.toLowerCase()===e[1])&&(!e[2]||(i.id||{}).value===e[2])&&(!e[3]||e[3].test((i["class"]||{}).value))},rt=function(t){return O.event.special.hover?t:t.replace(tt,"mouseenter$1 mouseleave$1")};O.event={add:function(t,i,n,s,a){var o,r,l,c,d,h,u,p,f,m,g;if(3!==t.nodeType&&8!==t.nodeType&&i&&n&&(o=O._data(t))){for(n.handler&&(f=n,n=f.handler),n.guid||(n.guid=O.guid++),l=o.events,l||(o.events=l={}),r=o.handle,r||(o.handle=r=function(t){return"undefined"==typeof O||t&&O.event.triggered===t.type?e:O.event.dispatch.apply(r.elem,arguments)},r.elem=t),i=O.trim(rt(i)).split(" "),c=0;c=0&&(g=g.slice(0,-1),r=!0),g.indexOf(".")>=0&&(v=g.split("."),g=v.shift(),v.sort()),(!s||O.event.customEvent[g])&&!O.event.global[g])return;if(i="object"==typeof i?i[O.expando]?i:new O.Event(g,i):new O.Event(g),i.type=g,i.isTrigger=!0,i.exclusive=r,i.namespace=v.join("."),i.namespace_re=i.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,h=g.indexOf(":")<0?"on"+g:"",!s){o=O.cache;for(l in o)o[l].events&&o[l].events[g]&&O.event.trigger(i,n,o[l].handle.elem,!0);return}if(i.result=e,i.target||(i.target=s),n=null!=n?O.makeArray(n):[],n.unshift(i),u=O.event.special[g]||{},u.trigger&&u.trigger.apply(s,n)===!1)return;if(f=[[s,u.bindType||g]],!a&&!u.noBubble&&!O.isWindow(s)){for(m=u.delegateType||g,c=nt.test(m+g)?s:s.parentNode,d=null;c;c=c.parentNode)f.push([c,m]),d=c;d&&d===s.ownerDocument&&f.push([d.defaultView||d.parentWindow||t,m])}for(l=0;ln;n++)h=p[n],u=h.selector,l[u]===e&&(l[u]=h.quick?ot(a,h.quick):o.is(u)),l[u]&&d.push(h);d.length&&v.push({elem:a,matches:d})}for(p.length>f&&v.push({elem:this,matches:p.slice(f)}),n=0;n0?this.on(e,null,t,i):this.trigger(e)},O.attrFn&&(O.attrFn[e]=!0),et.test(e)&&(O.event.fixHooks[e]=O.event.keyHooks),it.test(e)&&(O.event.fixHooks[e]=O.event.mouseHooks)}),function(){function t(t,e,i,n,a,o){for(var r=0,l=n.length;l>r;r++){var c=n[r];if(c){var d=!1;for(c=c[t];c;){if(c[s]===i){d=n[c.sizset];break}if(1===c.nodeType)if(o||(c[s]=i,c.sizset=r),"string"!=typeof e){if(c===e){d=!0;break}}else if(u.filter(e,[c]).length>0){d=c;break}c=c[t]}n[r]=d}}}function i(t,e,i,n,a,o){for(var r=0,l=n.length;l>r;r++){var c=n[r];if(c){var d=!1;for(c=c[t];c;){if(c[s]===i){d=n[c.sizset];break}if(1===c.nodeType&&!o&&(c[s]=i,c.sizset=r),c.nodeName.toLowerCase()===e){d=c;break}c=c[t]}n[r]=d}}}var n=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,s="sizcache"+(Math.random()+"").replace(".",""),a=0,o=Object.prototype.toString,r=!1,l=!0,c=/\\/g,d=/\r\n/g,h=/\W/;[0,0].sort(function(){return l=!1,0});var u=function(t,e,i,s){i=i||[],e=e||M;var a=e;if(1!==e.nodeType&&9!==e.nodeType)return[];if(!t||"string"!=typeof t)return i;var r,l,c,d,h,p,g,v,b=!0,w=u.isXML(e),_=[],C=t;do if(n.exec(""),r=n.exec(C),r&&(C=r[3],_.push(r[1]),r[2])){d=r[3];break}while(r);if(_.length>1&&m.exec(t))if(2===_.length&&f.relative[_[0]])l=x(_[0]+_[1],e,s);else for(l=f.relative[_[0]]?[e]:u(_.shift(),e);_.length;)t=_.shift(),f.relative[t]&&(t+=_.shift()),l=x(t,l,s);else if(!s&&_.length>1&&9===e.nodeType&&!w&&f.match.ID.test(_[0])&&!f.match.ID.test(_[_.length-1])&&(h=u.find(_.shift(),e,w),e=h.expr?u.filter(h.expr,h.set)[0]:h.set[0]),e)for(h=s?{expr:_.pop(),set:y(s)}:u.find(_.pop(),1!==_.length||"~"!==_[0]&&"+"!==_[0]||!e.parentNode?e:e.parentNode,w),l=h.expr?u.filter(h.expr,h.set):h.set,_.length>0?c=y(l):b=!1;_.length;)p=_.pop(),g=p,f.relative[p]?g=_.pop():p="",null==g&&(g=e),f.relative[p](c,g,w);else c=_=[];if(c||(c=l),c||u.error(p||t),"[object Array]"===o.call(c))if(b)if(e&&1===e.nodeType)for(v=0;null!=c[v];v++)c[v]&&(c[v]===!0||1===c[v].nodeType&&u.contains(e,c[v]))&&i.push(l[v]);else for(v=0;null!=c[v];v++)c[v]&&1===c[v].nodeType&&i.push(l[v]);else i.push.apply(i,c);else y(c,i);return d&&(u(d,a,i,s),u.uniqueSort(i)),i};u.uniqueSort=function(t){if(w&&(r=l,t.sort(w),r))for(var e=1;e0},u.find=function(t,e,i){var n,s,a,o,r,l;if(!t)return[];for(s=0,a=f.order.length;a>s;s++)if(r=f.order[s],(o=f.leftMatch[r].exec(t))&&(l=o[1],o.splice(1,1),"\\"!==l.substr(l.length-1)&&(o[1]=(o[1]||"").replace(c,""),n=f.find[r](o,e,i),null!=n))){t=t.replace(f.match[r],"");break}return n||(n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName("*"):[]),{set:n,expr:t}},u.filter=function(t,i,n,s){for(var a,o,r,l,c,d,h,p,m,g=t,v=[],y=i,b=i&&i[0]&&u.isXML(i[0]);t&&i.length;){for(r in f.filter)if(null!=(a=f.leftMatch[r].exec(t))&&a[2]){if(d=f.filter[r],h=a[1],o=!1,a.splice(1,1),"\\"===h.substr(h.length-1))continue;if(y===v&&(v=[]),f.preFilter[r])if(a=f.preFilter[r](a,y,n,v,s,b)){if(a===!0)continue}else o=l=!0;if(a)for(p=0;null!=(c=y[p]);p++)c&&(l=d(c,a,p,y),m=s^l,n&&null!=l?m?o=!0:y[p]=!1:m&&(v.push(c),o=!0));if(l!==e){if(n||(y=v),t=t.replace(f.match[r],""),!o)return[];break}}if(t===g){if(null!=o)break;u.error(t)}g=t}return y},u.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)};var p=u.getText=function(t){var e,i,n=t.nodeType,s="";if(n){if(1===n||9===n){if("string"==typeof t.textContent)return t.textContent;if("string"==typeof t.innerText)return t.innerText.replace(d,"");for(t=t.firstChild;t;t=t.nextSibling)s+=p(t)}else if(3===n||4===n)return t.nodeValue}else for(e=0;i=t[e];e++)8!==i.nodeType&&(s+=p(i));return s},f=u.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(t){return t.getAttribute("href")},type:function(t){return t.getAttribute("type")}},relative:{"+":function(t,e){var i="string"==typeof e,n=i&&!h.test(e),s=i&&!n;n&&(e=e.toLowerCase());for(var a,o=0,r=t.length;r>o;o++)if(a=t[o]){for(;(a=a.previousSibling)&&1!==a.nodeType;);t[o]=s||a&&a.nodeName.toLowerCase()===e?a||!1:a===e}s&&u.filter(e,t,!0)},">":function(t,e){var i,n="string"==typeof e,s=0,a=t.length;if(n&&!h.test(e)){for(e=e.toLowerCase();a>s;s++)if(i=t[s]){var o=i.parentNode;t[s]=o.nodeName.toLowerCase()===e?o:!1}}else{for(;a>s;s++)i=t[s],i&&(t[s]=n?i.parentNode:i.parentNode===e);n&&u.filter(e,t,!0)}},"":function(e,n,s){var o,r=a++,l=t;"string"==typeof n&&!h.test(n)&&(n=n.toLowerCase(),o=n,l=i),l("parentNode",n,r,e,o,s)},"~":function(e,n,s){var o,r=a++,l=t;"string"==typeof n&&!h.test(n)&&(n=n.toLowerCase(),o=n,l=i),l("previousSibling",n,r,e,o,s)}},find:{ID:function(t,e,i){if("undefined"!=typeof e.getElementById&&!i){var n=e.getElementById(t[1]);return n&&n.parentNode?[n]:[]}},NAME:function(t,e){if("undefined"!=typeof e.getElementsByName){for(var i=[],n=e.getElementsByName(t[1]),s=0,a=n.length;a>s;s++)n[s].getAttribute("name")===t[1]&&i.push(n[s]);return 0===i.length?null:i;
}},TAG:function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t[1]):void 0}},preFilter:{CLASS:function(t,e,i,n,s,a){if(t=" "+t[1].replace(c,"")+" ",a)return t;for(var o,r=0;null!=(o=e[r]);r++)o&&(s^(o.className&&(" "+o.className+" ").replace(/[\t\n\r]/g," ").indexOf(t)>=0)?i||n.push(o):i&&(e[r]=!1));return!1},ID:function(t){return t[1].replace(c,"")},TAG:function(t,e){return t[1].replace(c,"").toLowerCase()},CHILD:function(t){if("nth"===t[1]){t[2]||u.error(t[0]),t[2]=t[2].replace(/^\+|\s*/g,"");var e=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===t[2]&&"2n"||"odd"===t[2]&&"2n+1"||!/\D/.test(t[2])&&"0n+"+t[2]||t[2]);t[2]=e[1]+(e[2]||1)-0,t[3]=e[3]-0}else t[2]&&u.error(t[0]);return t[0]=a++,t},ATTR:function(t,e,i,n,s,a){var o=t[1]=t[1].replace(c,"");return!a&&f.attrMap[o]&&(t[1]=f.attrMap[o]),t[4]=(t[4]||t[5]||"").replace(c,""),"~="===t[2]&&(t[4]=" "+t[4]+" "),t},PSEUDO:function(t,e,i,s,a){if("not"===t[1]){if(!((n.exec(t[3])||"").length>1||/^\w/.test(t[3]))){var o=u.filter(t[3],e,i,!0^a);return i||s.push.apply(s,o),!1}t[3]=u(t[3],null,null,e)}else if(f.match.POS.test(t[0])||f.match.CHILD.test(t[0]))return!0;return t},POS:function(t){return t.unshift(!0),t}},filters:{enabled:function(t){return t.disabled===!1&&"hidden"!==t.type},disabled:function(t){return t.disabled===!0},checked:function(t){return t.checked===!0},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},parent:function(t){return!!t.firstChild},empty:function(t){return!t.firstChild},has:function(t,e,i){return!!u(i[3],t).length},header:function(t){return/h\d/i.test(t.nodeName)},text:function(t){var e=t.getAttribute("type"),i=t.type;return"input"===t.nodeName.toLowerCase()&&"text"===i&&(e===i||null===e)},radio:function(t){return"input"===t.nodeName.toLowerCase()&&"radio"===t.type},checkbox:function(t){return"input"===t.nodeName.toLowerCase()&&"checkbox"===t.type},file:function(t){return"input"===t.nodeName.toLowerCase()&&"file"===t.type},password:function(t){return"input"===t.nodeName.toLowerCase()&&"password"===t.type},submit:function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&"submit"===t.type},image:function(t){return"input"===t.nodeName.toLowerCase()&&"image"===t.type},reset:function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&"reset"===t.type},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},input:function(t){return/input|select|textarea|button/i.test(t.nodeName)},focus:function(t){return t===t.ownerDocument.activeElement}},setFilters:{first:function(t,e){return 0===e},last:function(t,e,i,n){return e===n.length-1},even:function(t,e){return e%2===0},odd:function(t,e){return e%2===1},lt:function(t,e,i){return ei[3]-0},nth:function(t,e,i){return i[3]-0===e},eq:function(t,e,i){return i[3]-0===e}},filter:{PSEUDO:function(t,e,i,n){var s=e[1],a=f.filters[s];if(a)return a(t,i,e,n);if("contains"===s)return(t.textContent||t.innerText||p([t])||"").indexOf(e[3])>=0;if("not"===s){for(var o=e[3],r=0,l=o.length;l>r;r++)if(o[r]===t)return!1;return!0}u.error(s)},CHILD:function(t,e){var i,n,a,o,r,l,c=e[1],d=t;switch(c){case"only":case"first":for(;d=d.previousSibling;)if(1===d.nodeType)return!1;if("first"===c)return!0;d=t;case"last":for(;d=d.nextSibling;)if(1===d.nodeType)return!1;return!0;case"nth":if(i=e[2],n=e[3],1===i&&0===n)return!0;if(a=e[0],o=t.parentNode,o&&(o[s]!==a||!t.nodeIndex)){for(r=0,d=o.firstChild;d;d=d.nextSibling)1===d.nodeType&&(d.nodeIndex=++r);o[s]=a}return l=t.nodeIndex-n,0===i?0===l:l%i===0&&l/i>=0}},ID:function(t,e){return 1===t.nodeType&&t.getAttribute("id")===e},TAG:function(t,e){return"*"===e&&1===t.nodeType||!!t.nodeName&&t.nodeName.toLowerCase()===e},CLASS:function(t,e){return(" "+(t.className||t.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(t,e){var i=e[1],n=u.attr?u.attr(t,i):f.attrHandle[i]?f.attrHandle[i](t):null!=t[i]?t[i]:t.getAttribute(i),s=n+"",a=e[2],o=e[4];return null==n?"!="===a:!a&&u.attr?null!=n:"="===a?s===o:"*="===a?s.indexOf(o)>=0:"~="===a?(" "+s+" ").indexOf(o)>=0:o?"!="===a?s!==o:"^="===a?0===s.indexOf(o):"$="===a?s.substr(s.length-o.length)===o:"|="===a?s===o||s.substr(0,o.length+1)===o+"-":!1:s&&n!==!1},POS:function(t,e,i,n){var s=e[2],a=f.setFilters[s];return a?a(t,i,e,n):void 0}}},m=f.match.POS,g=function(t,e){return"\\"+(e-0+1)};for(var v in f.match)f.match[v]=new RegExp(f.match[v].source+/(?![^\[]*\])(?![^\(]*\))/.source),f.leftMatch[v]=new RegExp(/(^(?:.|\r|\n)*?)/.source+f.match[v].source.replace(/\\(\d+)/g,g));var y=function(t,e){return t=Array.prototype.slice.call(t,0),e?(e.push.apply(e,t),e):t};try{Array.prototype.slice.call(M.documentElement.childNodes,0)[0].nodeType}catch(b){y=function(t,e){var i=0,n=e||[];if("[object Array]"===o.call(t))Array.prototype.push.apply(n,t);else if("number"==typeof t.length)for(var s=t.length;s>i;i++)n.push(t[i]);else for(;t[i];i++)n.push(t[i]);return n}}var w,_;M.documentElement.compareDocumentPosition?w=function(t,e){return t===e?(r=!0,0):t.compareDocumentPosition&&e.compareDocumentPosition?4&t.compareDocumentPosition(e)?-1:1:t.compareDocumentPosition?-1:1}:(w=function(t,e){if(t===e)return r=!0,0;if(t.sourceIndex&&e.sourceIndex)return t.sourceIndex-e.sourceIndex;var i,n,s=[],a=[],o=t.parentNode,l=e.parentNode,c=o;if(o===l)return _(t,e);if(!o)return-1;if(!l)return 1;for(;c;)s.unshift(c),c=c.parentNode;for(c=l;c;)a.unshift(c),c=c.parentNode;i=s.length,n=a.length;for(var d=0;i>d&&n>d;d++)if(s[d]!==a[d])return _(s[d],a[d]);return d===i?_(t,a[d],-1):_(s[d],e,1)},_=function(t,e,i){if(t===e)return i;for(var n=t.nextSibling;n;){if(n===e)return-1;n=n.nextSibling}return 1}),function(){var t=M.createElement("div"),i="script"+(new Date).getTime(),n=M.documentElement;t.innerHTML="",n.insertBefore(t,n.firstChild),M.getElementById(i)&&(f.find.ID=function(t,i,n){if("undefined"!=typeof i.getElementById&&!n){var s=i.getElementById(t[1]);return s?s.id===t[1]||"undefined"!=typeof s.getAttributeNode&&s.getAttributeNode("id").nodeValue===t[1]?[s]:e:[]}},f.filter.ID=function(t,e){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return 1===t.nodeType&&i&&i.nodeValue===e}),n.removeChild(t),n=t=null}(),function(){var t=M.createElement("div");t.appendChild(M.createComment("")),t.getElementsByTagName("*").length>0&&(f.find.TAG=function(t,e){var i=e.getElementsByTagName(t[1]);if("*"===t[1]){for(var n=[],s=0;i[s];s++)1===i[s].nodeType&&n.push(i[s]);i=n}return i}),t.innerHTML="",t.firstChild&&"undefined"!=typeof t.firstChild.getAttribute&&"#"!==t.firstChild.getAttribute("href")&&(f.attrHandle.href=function(t){return t.getAttribute("href",2)}),t=null}(),M.querySelectorAll&&function(){var t=u,e=M.createElement("div"),i="__sizzle__";if(e.innerHTML="",!e.querySelectorAll||0!==e.querySelectorAll(".TEST").length){u=function(e,n,s,a){if(n=n||M,!a&&!u.isXML(n)){var o=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(e);if(o&&(1===n.nodeType||9===n.nodeType)){if(o[1])return y(n.getElementsByTagName(e),s);if(o[2]&&f.find.CLASS&&n.getElementsByClassName)return y(n.getElementsByClassName(o[2]),s)}if(9===n.nodeType){if("body"===e&&n.body)return y([n.body],s);if(o&&o[3]){var r=n.getElementById(o[3]);if(!r||!r.parentNode)return y([],s);if(r.id===o[3])return y([r],s)}try{return y(n.querySelectorAll(e),s)}catch(l){}}else if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){var c=n,d=n.getAttribute("id"),h=d||i,p=n.parentNode,m=/^\s*[+~]/.test(e);d?h=h.replace(/'/g,"\\$&"):n.setAttribute("id",h),m&&p&&(n=n.parentNode);try{if(!m||p)return y(n.querySelectorAll("[id='"+h+"'] "+e),s)}catch(g){}finally{d||c.removeAttribute("id")}}}return t(e,n,s,a)};for(var n in t)u[n]=t[n];e=null}}(),function(){var t=M.documentElement,e=t.matchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.msMatchesSelector;if(e){var i=!e.call(M.createElement("div"),"div"),n=!1;try{e.call(M.documentElement,"[test!='']:sizzle")}catch(s){n=!0}u.matchesSelector=function(t,s){if(s=s.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!u.isXML(t))try{if(n||!f.match.PSEUDO.test(s)&&!/!=/.test(s)){var a=e.call(t,s);if(a||!i||t.document&&11!==t.document.nodeType)return a}}catch(o){}return u(s,null,null,[t]).length>0}}}(),function(){var t=M.createElement("div");if(t.innerHTML="",t.getElementsByClassName&&0!==t.getElementsByClassName("e").length){if(t.lastChild.className="e",1===t.getElementsByClassName("e").length)return;f.order.splice(1,0,"CLASS"),f.find.CLASS=function(t,e,i){return"undefined"==typeof e.getElementsByClassName||i?void 0:e.getElementsByClassName(t[1])},t=null}}(),M.documentElement.contains?u.contains=function(t,e){return t!==e&&(t.contains?t.contains(e):!0)}:M.documentElement.compareDocumentPosition?u.contains=function(t,e){return!!(16&t.compareDocumentPosition(e))}:u.contains=function(){return!1},u.isXML=function(t){var e=(t?t.ownerDocument||t:0).documentElement;return e?"HTML"!==e.nodeName:!1};var x=function(t,e,i){for(var n,s=[],a="",o=e.nodeType?[e]:e;n=f.match.PSEUDO.exec(t);)a+=n[0],t=t.replace(f.match.PSEUDO,"");t=f.relative[t]?t+"*":t;for(var r=0,l=o.length;l>r;r++)u(t,o[r],s,i);return u.filter(a,s)};u.attr=O.attr,u.selectors.attrMap={},O.find=u,O.expr=u.selectors,O.expr[":"]=O.expr.filters,O.unique=u.uniqueSort,O.text=u.getText,O.isXMLDoc=u.isXML,O.contains=u.contains}();var lt=/Until$/,ct=/^(?:parents|prevUntil|prevAll)/,dt=/,/,ht=/^.[^:#\[\.,]*$/,ut=Array.prototype.slice,pt=O.expr.match.POS,ft={children:!0,contents:!0,next:!0,prev:!0};O.fn.extend({find:function(t){var e,i,n=this;if("string"!=typeof t)return O(t).filter(function(){for(e=0,i=n.length;i>e;e++)if(O.contains(n[e],this))return!0});var s,a,o,r=this.pushStack("","find",t);for(e=0,i=this.length;i>e;e++)if(s=r.length,O.find(t,this[e],r),e>0)for(a=s;ao;o++)if(r[o]===r[a]){r.splice(a--,1);break}return r},has:function(t){var e=O(t);return this.filter(function(){for(var t=0,i=e.length;i>t;t++)if(O.contains(this,e[t]))return!0})},not:function(t){return this.pushStack(S(this,t,!1),"not",t)},filter:function(t){return this.pushStack(S(this,t,!0),"filter",t)},is:function(t){return!!t&&("string"==typeof t?pt.test(t)?O(t,this.context).index(this[0])>=0:O.filter(t,this).length>0:this.filter(t).length>0)},closest:function(t,e){var i,n,s=[],a=this[0];if(O.isArray(t)){for(var o=1;a&&a.ownerDocument&&a!==e;){for(i=0;ii;i++)for(a=this[i];a;){if(r?r.index(a)>-1:O.find.matchesSelector(a,t)){s.push(a);break}if(a=a.parentNode,!a||!a.ownerDocument||a===e||11===a.nodeType)break}return s=s.length>1?O.unique(s):s,this.pushStack(s,"closest",t)},index:function(t){return t?"string"==typeof t?O.inArray(this[0],O(t)):O.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(t,e){var i="string"==typeof t?O(t,e):O.makeArray(t&&t.nodeType?[t]:t),n=O.merge(this.get(),i);return this.pushStack(k(i[0])||k(n[0])?n:O.unique(n))},andSelf:function(){return this.add(this.prevObject)}}),O.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return O.dir(t,"parentNode")},parentsUntil:function(t,e,i){return O.dir(t,"parentNode",i)},next:function(t){return O.nth(t,2,"nextSibling")},prev:function(t){return O.nth(t,2,"previousSibling")},nextAll:function(t){return O.dir(t,"nextSibling")},prevAll:function(t){return O.dir(t,"previousSibling")},nextUntil:function(t,e,i){return O.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return O.dir(t,"previousSibling",i)},siblings:function(t){return O.sibling(t.parentNode.firstChild,t)},children:function(t){return O.sibling(t.firstChild)},contents:function(t){return O.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:O.makeArray(t.childNodes)}},function(t,e){O.fn[t]=function(i,n){var s=O.map(this,e,i);return lt.test(t)||(n=i),n&&"string"==typeof n&&(s=O.filter(n,s)),s=this.length>1&&!ft[t]?O.unique(s):s,(this.length>1||dt.test(n))&&ct.test(t)&&(s=s.reverse()),this.pushStack(s,t,ut.call(arguments).join(","))}}),O.extend({filter:function(t,e,i){return i&&(t=":not("+t+")"),1===e.length?O.find.matchesSelector(e[0],t)?[e[0]]:[]:O.find.matches(t,e)},dir:function(t,i,n){for(var s=[],a=t[i];a&&9!==a.nodeType&&(n===e||1!==a.nodeType||!O(a).is(n));)1===a.nodeType&&s.push(a),a=a[i];return s},nth:function(t,e,i,n){e=e||1;for(var s=0;t&&(1!==t.nodeType||++s!==e);t=t[i]);return t},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}});var mt="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gt=/ jQuery\d+="(?:\d+|null)"/g,vt=/^\s+/,yt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,wt=/",""],legend:[1,""],thead:[1,"","
"],tr:[2,"","
"],td:[3,"
"],col:[2,"
"],area:[1,""],_default:[0,"",""]},Et=j(M);Pt.optgroup=Pt.option,Pt.tbody=Pt.tfoot=Pt.colgroup=Pt.caption=Pt.thead,Pt.th=Pt.td,O.support.htmlSerialize||(Pt._default=[1,"div"!==d[1]||p?[]:u.childNodes:u.firstChild&&u.firstChild.childNodes;for(a=f.length-1;a>=0;--a)O.nodeName(f[a],"tbody")&&!f[a].childNodes.length&&f[a].parentNode.removeChild(f[a])}!O.support.leadingWhitespace&&vt.test(o)&&u.insertBefore(e.createTextNode(vt.exec(o)[0]),u.firstChild),o=u.childNodes}else o=e.createTextNode(o);var m;if(!O.support.appendChecked)if(o[0]&&"number"==typeof(m=o.length))for(a=0;m>a;a++)y(o[a]);else y(o);o.nodeType?r.push(o):r=O.merge(r,o)}if(i)for(s=function(t){return!t.type||kt.test(t.type)},l=0;r[l];l++)if(!n||!O.nodeName(r[l],"script")||r[l].type&&"text/javascript"!==r[l].type.toLowerCase()){if(1===r[l].nodeType){var g=O.grep(r[l].getElementsByTagName("script"),s);r.splice.apply(r,[l+1,0].concat(g))}i.appendChild(r[l])}else n.push(r[l].parentNode?r[l].parentNode.removeChild(r[l]):r[l]);return r},cleanData:function(t){for(var e,i,n,s=O.cache,a=O.event.special,o=O.support.deleteExpando,r=0;null!=(n=t[r]);r++)if((!n.nodeName||!O.noData[n.nodeName.toLowerCase()])&&(i=n[O.expando])){if(e=s[i],e&&e.events){for(var l in e.events)a[l]?O.event.remove(n,l):O.removeEvent(n,l,e.handle);e.handle&&(e.handle.elem=null)}o?delete n[O.expando]:n.removeAttribute&&n.removeAttribute(O.expando),delete s[i]}}});var Nt,At,It,Mt=/alpha\([^)]*\)/i,Lt=/opacity=([^)]*)/,qt=/([A-Z]|^ms)/g,Ot=/^-?\d+(?:px)?$/i,zt=/^-?\d/,$t=/^([\-+])=([\-+.\de]+)/,Ht={position:"absolute",visibility:"hidden",display:"block"},Ft=["Left","Right"],Bt=["Top","Bottom"];O.fn.css=function(t,i){return 2===arguments.length&&i===e?this:O.access(this,t,i,!0,function(t,i,n){return n!==e?O.style(t,i,n):O.css(t,i)})},O.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Nt(t,"opacity","opacity");return""===i?"1":i}return t.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":O.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,i,n,s){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var a,o,r=O.camelCase(i),l=t.style,c=O.cssHooks[r];if(i=O.cssProps[r]||r,n===e)return c&&"get"in c&&(a=c.get(t,!1,s))!==e?a:l[i];if(o=typeof n,"string"===o&&(a=$t.exec(n))&&(n=+(a[1]+1)*+a[2]+parseFloat(O.css(t,i)),o="number"),null==n||"number"===o&&isNaN(n))return;if("number"===o&&!O.cssNumber[r]&&(n+="px"),!(c&&"set"in c&&(n=c.set(t,n))===e))try{l[i]=n}catch(d){}}},css:function(t,i,n){var s,a;return i=O.camelCase(i),a=O.cssHooks[i],i=O.cssProps[i]||i,"cssFloat"===i&&(i="float"),a&&"get"in a&&(s=a.get(t,!0,n))!==e?s:Nt?Nt(t,i):void 0},swap:function(t,e,i){var n={};for(var s in e)n[s]=t.style[s],t.style[s]=e[s];i.call(t);for(s in e)t.style[s]=n[s]}}),O.curCSS=O.css,O.each(["height","width"],function(t,e){O.cssHooks[e]={get:function(t,i,n){var s;return i?0!==t.offsetWidth?m(t,e,n):(O.swap(t,Ht,function(){s=m(t,e,n)}),s):void 0},set:function(t,e){return Ot.test(e)?(e=parseFloat(e),e>=0?e+"px":void 0):e}}}),O.support.opacity||(O.cssHooks.opacity={get:function(t,e){return Lt.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100+"":e?"1":""},set:function(t,e){var i=t.style,n=t.currentStyle,s=O.isNumeric(e)?"alpha(opacity="+100*e+")":"",a=n&&n.filter||i.filter||"";i.zoom=1,e>=1&&""===O.trim(a.replace(Mt,""))&&(i.removeAttribute("filter"),n&&!n.filter)||(i.filter=Mt.test(a)?a.replace(Mt,s):a+" "+s)}}),O(function(){O.support.reliableMarginRight||(O.cssHooks.marginRight={get:function(t,e){var i;return O.swap(t,{display:"inline-block"},function(){i=e?Nt(t,"margin-right","marginRight"):t.style.marginRight}),i}})}),M.defaultView&&M.defaultView.getComputedStyle&&(At=function(t,e){var i,n,s;return e=e.replace(qt,"-$1").toLowerCase(),(n=t.ownerDocument.defaultView)&&(s=n.getComputedStyle(t,null))&&(i=s.getPropertyValue(e),""===i&&!O.contains(t.ownerDocument.documentElement,t)&&(i=O.style(t,e))),i}),M.documentElement.currentStyle&&(It=function(t,e){var i,n,s,a=t.currentStyle&&t.currentStyle[e],o=t.style;return null===a&&o&&(s=o[e])&&(a=s),!Ot.test(a)&&zt.test(a)&&(i=o.left,n=t.runtimeStyle&&t.runtimeStyle.left,n&&(t.runtimeStyle.left=t.currentStyle.left),o.left="fontSize"===e?"1em":a||0,a=o.pixelLeft+"px",o.left=i,n&&(t.runtimeStyle.left=n)),""===a?"auto":a}),Nt=At||It,O.expr&&O.expr.filters&&(O.expr.filters.hidden=function(t){var e=t.offsetWidth,i=t.offsetHeight;return 0===e&&0===i||!O.support.reliableHiddenOffsets&&"none"===(t.style&&t.style.display||O.css(t,"display"))},O.expr.filters.visible=function(t){return!O.expr.filters.hidden(t)});var Dt,Rt,Wt=/%20/g,Ut=/\[\]$/,Vt=/\r?\n/g,Qt=/#.*$/,Xt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Yt=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Gt=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Jt=/^(?:GET|HEAD)$/,Kt=/^\/\//,Zt=/\?/,te=/'},a);var v,y,b,w,_,x,C,j=this,S=!1,k=t(window).height(),T=t(window).width();return doresize=!0,scroll_pos=p(),t(window).unbind("resize.prettyphoto").bind("resize.prettyphoto",function(){u(),f()}),a.keyboard_shortcuts&&t(document).unbind("keydown.prettyphoto").bind("keydown.prettyphoto",function(e){if("undefined"!=typeof $pp_pic_holder&&$pp_pic_holder.is(":visible"))switch(e.keyCode){case 37:t.prettyPhoto.changePage("previous"),e.preventDefault();break;case 39:t.prettyPhoto.changePage("next"),e.preventDefault();break;case 27:settings.modal||t.prettyPhoto.close(),e.preventDefault()}}),t.prettyPhoto.initialize=function(){return settings=a,"pp_default"==settings.theme&&(settings.horizontal_padding=16),settings.ie6_fallback&&t.browser.msie&&6==parseInt(t.browser.version)&&(settings.theme="light_square"),theRel=t(this).attr(settings.hook),galleryRegExp=/\[(?:.*)\]/,isSet=galleryRegExp.exec(theRel)?!0:!1,pp_images=isSet?jQuery.map(j,function(e,i){return-1!=t(e).attr(settings.hook).indexOf(theRel)?t(e).attr("href"):void 0}):t.makeArray(t(this).attr("href")),pp_titles=isSet?jQuery.map(j,function(e,i){return-1!=t(e).attr(settings.hook).indexOf(theRel)?t(e).find("img").attr("alt")?t(e).find("img").attr("alt"):"":void 0}):t.makeArray(t(this).find("img").attr("alt")),pp_descriptions=isSet?jQuery.map(j,function(e,i){return-1!=t(e).attr(settings.hook).indexOf(theRel)?t(e).attr("title")?t(e).attr("title"):"":void 0}):t.makeArray(t(this).attr("title")),pp_images.length>settings.overlay_gallery_max&&(settings.overlay_gallery=!1),set_position=jQuery.inArray(t(this).attr("href"),pp_images),rel_index=isSet?set_position:t("a["+settings.hook+"^='"+theRel+"']").index(t(this)),g(this),settings.allow_resize&&t(window).bind("scroll.prettyphoto",function(){u()}),t.prettyPhoto.open(),!1},t.prettyPhoto.open=function(e){return"undefined"==typeof settings&&(settings=a,t.browser.msie&&6==t.browser.version&&(settings.theme="light_square"),pp_images=t.makeArray(arguments[0]),pp_titles=arguments[1]?t.makeArray(arguments[1]):t.makeArray(""),pp_descriptions=arguments[2]?t.makeArray(arguments[2]):t.makeArray(""),isSet=pp_images.length>1?!0:!1,set_position=arguments[3]?arguments[3]:0,g(e.target)),t.browser.msie&&6==t.browser.version&&t("select").css("visibility","hidden"),settings.hideflash&&t("object,embed,iframe[src*=youtube],iframe[src*=vimeo]").css("visibility","hidden"),l(t(pp_images).size()),t(".pp_loaderIcon").show(),settings.deeplinking&&i(),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)),$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+t(pp_images).size()),"undefined"!=typeof pp_descriptions[set_position]&&""!=pp_descriptions[set_position]?$pp_pic_holder.find(".pp_description").show().html(unescape(pp_descriptions[set_position])):$pp_pic_holder.find(".pp_description").hide(),movie_width=parseFloat(s("width",pp_images[set_position]))?s("width",pp_images[set_position]):settings.default_width.toString(),movie_height=parseFloat(s("height",pp_images[set_position]))?s("height",pp_images[set_position]):settings.default_height.toString(),S=!1,-1!=movie_height.indexOf("%")&&(movie_height=parseFloat(t(window).height()*parseFloat(movie_height)/100-150),S=!0),-1!=movie_width.indexOf("%")&&(movie_width=parseFloat(t(window).width()*parseFloat(movie_width)/100-150),S=!0),$pp_pic_holder.fadeIn(function(){switch(settings.show_title&&""!=pp_titles[set_position]&&"undefined"!=typeof pp_titles[set_position]?$ppt.html(unescape(pp_titles[set_position])):$ppt.html("�"),imgPreloader="",skipInjection=!1,h(pp_images[set_position])){case"image":imgPreloader=new Image,nextImage=new Image,isSet&&set_position
This includes make eliminates the revolution slider libraries, and make it not work.",e+="
To fix it you can:
1. In the Slider Settings -> Troubleshooting set option: Put JS Includes To Body option to true.",e+="
2. Find the double jquery.js include and remove it.",e=""+e+"",jQuery(t).show().html(e)}function createCookie(t,e,i){if(i){var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3);var s="; expires="+n.toGMTString()}else var s="";document.cookie=t+"="+e+s+"; path=/"}function readCookie(t){for(var e=t+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var s=i[n];" "==s.charAt(0);)s=s.substring(1,s.length);if(0==s.indexOf(e))return s.substring(e.length,s.length)}return null}function eraseCookie(t){createCookie(t,"",-1)}$(window).load(function(){$("#slides").slides({preload:!0,preloadImage:"images/nivo-preloader.gif",play:0,pause:0,effect:"fade",autoHeight:!0,effects:{navigation:"fade",pagination:"fade"},hoverPause:!0})});var api,api2;jQuery(document).ready(function(){api=jQuery(".fullwidthbanner").revolution({delay:9e3,startheight:450,startwidth:1120,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"bullet",navigationArrows:"verticalcentered",navigationStyle:"round",touchenabled:"on",onHoverStop:"on",navOffsetHorizontal:0,navOffsetVertical:0,stopAtSlide:-1,stopAfterLoops:-1,shadow:0,fullWidth:"on"}),api2=jQuery(".banner").revolution({delay:9e3,startheight:450,startwidth:1120,hideThumbs:200,thumbWidth:100,thumbHeight:50,thumbAmount:5,navigationType:"bullet",navigationArrows:"verticalcentered",navigationStyle:"round",touchenabled:"on",onHoverStop:"on",navOffsetHorizontal:0,navOffsetVertical:0,stopAtSlide:-1,stopAfterLoops:-1,shadow:0,fullWidth:"on"}),$(".blog-slides").slides({preload:!0,preloadImage:"images/nivo-preloader.gif",play:5e3,pause:2500,effect:"slide",autoHeight:!1,effects:{navigation:"fade",pagination:"fade"},hoverPause:!0}),$(".blog-slides .next, #slides .next, .post .next").hide(),$(".blog-slides .prev, #slides .prev, .post .prev").hide(),$(".blog-slides, #slides").hover(function(){$(".next").stop(!0,!0).fadeIn(),$(".prev").stop(!0,!0).fadeIn()},function(){$(".next").fadeOut(),$(".prev").fadeOut()}),$(".clients li").hover(function(){$(this).children("a").animate({opacity:"0.8"},{queue:!1,duration:200})},function(){$(this).children("a").animate({opacity:"0.4"},{queue:!1,duration:200})}),$("#testimonials").cycle({fx:"fade",timeout:4e3,speed:1e3}),$(".item-on-hover, .item-on-hover-white").hover(function(){$(this).animate({opacity:1},200),$(this).children(".hover-link, .hover-image, .hover-video").animate({opacity:1},200)},function(){$(this).animate({opacity:0},200),$(this).children(".hover-link, .hover-image, .hover-video").animate({opacity:0},200)}),$(".grid-item-on-hover").hover(function(){$(this).animate({opacity:.9},200)},function(){$(this).animate({opacity:0},200)});var t=$(".grid"),e=$("#masonry-blog"),i=$(".portfolio-gallery"),n=$(".gallery-page"),s=$(".four-columns, .three-columns, .two-columns");e.imagesLoaded(function(){e.isotope({itemSelector:".masonry-post",animationEngine:"jquery",gutterWidth:20})}),n.imagesLoaded(function(){n.isotope({itemSelector:"li",animationEngine:"jquery",gutterWidth:20})}),i.imagesLoaded(function(){i.isotope({itemSelector:"a",animationEngine:"jquery",gutterWidth:20})}),t.isotope({itemSelector:"li",animationEngine:"jquery",masonry:{columnWidth:5}}),s.isotope({itemSelector:"li",animationEngine:"jquery"});var a=$("#options .option-set"),o=a.find("a");o.click(function(){var e=$(this);if(e.hasClass("selected"))return!1;var i=e.parents(".option-set");i.find(".selected").removeClass("selected"),e.addClass("selected");var n={},a=i.attr("data-option-key"),o=e.attr("data-option-value");return o="false"===o?!1:o,n[a]=o,"layoutMode"===a&&"function"==typeof changeLayoutMode?changeLayoutMode(e,n):(t.isotope(n),s.isotope(n)),!1}),$("#mainnav").mobileMenu({defaultText:"Navigate to...",className:"select-menu",subMenuDash:"–"}),$("#portfolio-carousel, #homeblog-carousel, .post-thumbnail, .portfolio li").preloadify(),$("ul#mainnav").superfish({delay:100,autoArrows:!1,animation:{opacity:"show",opacity:"show"},speed:"fast"}),$("ul#mainnav li").css({overflow:"visible"}),$("ul#mainnav li ul li:last-child").addClass("nav-last-item"),$("ul#mainnav li ul li:first-child").addClass("nav-first-item");var r;$("#mainnav > li").each(function(){r=$(this),(r.find("> a.current").length||r.find("> ul > li > a.current").length)&&(r.addClass("current-item item-active"),$(this).prev().addClass("prev-item"))}),$("#mainnav > li").hover(function(){$(this).prev().addClass("previ-item")},function(){$(this).prev().removeClass("previ-item")}),$("#flickr").jflickrfeed({limit:10,qstrings:{id:"58842866@N08",tags:"architecture"},itemTemplate:'
',i+='
"}$(t).html(i)},n=function(){var e=0;$("p[data-width]",t).each(function(){var t=$(this);t.queue("width",function(i){t.delay(e).animate({width:t.data("width")},600,"easeInOutExpo",i)}),t.dequeue("width"),e+=300})};this.init=function(){i(),setTimeout(function(){n()},500)}};Skills.init(),function(t){t.fn.hoverIntent=function(e,i){var n={sensitivity:7,interval:100,timeout:0};n=t.extend(n,i?{over:e,out:i}:e);var s,a,o,r,l=function(t){s=t.pageX,a=t.pageY},c=function(e,i){return i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(o-s)+Math.abs(r-a)<n.sensitivity?(t(i).unbind("mousemove",l),i.hoverIntent_s=1,n.over.apply(i,[e])):(o=s,r=a,i.hoverIntent_t=setTimeout(function(){c(e,i)},n.interval),void 0)},d=function(t,e){return e.hoverIntent_t=clearTimeout(e.hoverIntent_t),e.hoverIntent_s=0,n.out.apply(e,[t])},h=function(e){for(var i=("mouseover"==e.type?e.fromElement:e.toElement)||e.relatedTarget;i&&i!=this;)try{i=i.parentNode}catch(e){i=this}if(i==this)return!1;var s=jQuery.extend({},e),a=this;a.hoverIntent_t&&(a.hoverIntent_t=clearTimeout(a.hoverIntent_t)),"mouseover"==e.type?(o=s.pageX,r=s.pageY,t(a).bind("mousemove",l),1!=a.hoverIntent_s&&(a.hoverIntent_t=setTimeout(function(){c(s,a)},n.interval))):(t(a).unbind("mousemove",l),1==a.hoverIntent_s&&(a.hoverIntent_t=setTimeout(function(){d(s,a)},n.timeout)))};return this.mouseover(h).mouseout(h)}}(jQuery),function(t){"use strict";function e(i,n,s,a){function o(t){t.timeout&&(r.cycleTimeout=setTimeout(function(){e(i,t,0,!t.rev)},t.timeout))}if(!n.busy){var r=i[0].parentNode,l=i[n.currSlide],c=i[n.nextSlide];if(0!==r.cycleTimeout||s)if(s||!r.cyclePause){n.before.length&&t.each(n.before,function(t,e){e.apply(c,[l,c,n,a])});var d=function(){t.browser.msie&&this.style.removeAttribute("filter"),t.each(n.after,function(t,e){e.apply(c,[l,c,n,a])}),o(n)};n.nextSlide!=n.currSlide&&(n.busy=1,t.fn.cycle.custom(l,c,n,d));var h=n.nextSlide+1==i.length;n.nextSlide=h?0:n.nextSlide+1,n.currSlide=h?i.length-1:n.nextSlide-1}else o(n)}}function i(t,i,n){var s=t[0].parentNode,a=s.cycleTimeout;return a&&(clearTimeout(a),s.cycleTimeout=0),i.nextSlide=i.currSlide+n,i.nextSlide<0?i.nextSlide=t.length-1:i.nextSlide>=t.length&&(i.nextSlide=0),e(t,i,1,n>=0),!1}var n="Lite-1.6";t.fn.cycle=function(n){return this.each(function(){n=n||{},this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=0,this.cyclePause=0;var s=t(this),a=n.slideExpr?t(n.slideExpr,this):s.children(),o=a.get();if(o.length<2)return void(window.console&&console.log("terminating; too few slides: "+o.length));var r=t.extend({},t.fn.cycle.defaults,n||{},t.metadata?s.metadata():t.meta?s.data():{}),l=t.isFunction(s.data)?s.data(r.metaAttr):null;l&&(r=t.extend(r,l)),r.before=r.before?[r.before]:[],r.after=r.after?[r.after]:[],r.after.unshift(function(){r.busy=0});var c=this.className;r.width=parseInt((c.match(/w:(\d+)/)||[])[1],10)||r.width,r.height=parseInt((c.match(/h:(\d+)/)||[])[1],10)||r.height,r.timeout=parseInt((c.match(/t:(\d+)/)||[])[1],10)||r.timeout,"static"==s.css("position")&&s.css("position","relative"),r.width&&s.width(r.width),r.height&&"auto"!=r.height&&s.height(r.height);var d=0;a.css({position:"absolute",top:0}).each(function(e){t(this).css("z-index",o.length-e)}),t(o[d]).css("opacity",1).show(),t.browser.msie&&o[d].style.removeAttribute("filter"),r.fit&&r.width&&a.width(r.width),r.fit&&r.height&&"auto"!=r.height&&a.height(r.height),r.pause&&s.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});var h=t.fn.cycle.transitions[r.fx];if(h&&h(s,a,r),a.each(function(){var e=t(this);this.cycleH=r.fit&&r.height?r.height:e.height(),this.cycleW=r.fit&&r.width?r.width:e.width()}),r.cssFirst&&t(a[d]).css(r.cssFirst),r.timeout)for(r.speed.constructor==String&&(r.speed={slow:600,fast:200}[r.speed]||400),r.sync||(r.speed=r.speed/2);r.timeout-r.speed<250;)r.timeout+=r.speed;r.speedIn=r.speed,r.speedOut=r.speed,r.slideCount=o.length,r.currSlide=d,r.nextSlide=1;var u=a[d];r.before.length&&r.before[0].apply(u,[u,u,r,!0]),r.after.length>1&&r.after[1].apply(u,[u,u,r,!0]),r.click&&!r.next&&(r.next=r.click),r.next&&t(r.next).unbind("click.cycle").bind("click.cycle",function(){return i(o,r,r.rev?-1:1)}),r.prev&&t(r.prev).unbind("click.cycle").bind("click.cycle",function(){return i(o,r,r.rev?1:-1)}),r.timeout&&(this.cycleTimeout=setTimeout(function(){e(o,r,0,!r.rev)},r.timeout+(r.delay||0)))})},t.fn.cycle.custom=function(e,i,n,s){var a=t(e),o=t(i);o.css(n.cssBefore);var r=function(){o.animate(n.animIn,n.speedIn,n.easeIn,s)};a.animate(n.animOut,n.speedOut,n.easeOut,function(){a.css(n.cssAfter),n.sync||r()}),n.sync&&r()},t.fn.cycle.transitions={fade:function(t,e,i){e.not(":eq(0)").hide(),i.cssBefore={opacity:0,display:"block"},i.cssAfter={display:"none"},i.animOut={opacity:0},i.animIn={opacity:1}},fadeout:function(e,i,n){n.before.push(function(e,i,n,s){t(e).css("zIndex",n.slideCount+(s===!0?1:0)),t(i).css("zIndex",n.slideCount+(s===!0?0:1))}),i.not(":eq(0)").hide(),n.cssBefore={opacity:1,display:"block",zIndex:1},n.cssAfter={display:"none",zIndex:0},n.animOut={opacity:0},n.animIn={opacity:1}}},t.fn.cycle.ver=function(){return n},t.fn.cycle.defaults={animIn:{},animOut:{},fx:"fade",after:null,before:null,cssBefore:{},cssAfter:{},delay:0,fit:0,height:"auto",metaAttr:"cycle",next:null,pause:!1,prev:null,speed:1e3,slideExpr:null,sync:!0,timeout:4e3}}(jQuery)(function(t){t.fn.jflickrfeed=function(e,i){e=t.extend(!0,{flickrbase:"../../../api.flickr.com/services/feeds/default.htm",feedapi:"photos_public.gne",limit:20,qstrings:{lang:"en-us",format:"json",jsoncallback:"?"},cleanDescription:!0,useTemplate:!0,itemTemplate:"",itemCallback:function(){}},e);var n=e.flickrbase+e.feedapi+"?",s=!0;for(var a in e.qstrings)s||(n+="&"),n+=a+"="+e.qstrings[a],s=!1;return t(this).each(function(){var s=t(this),a=this;t.getJSON(n,function(n){t.each(n.items,function(t,i){if(t<e.limit){if(e.cleanDescription){var n=/',i+="
"+s+"
",i+="(.*?)<\/p>/g,o=i.description;n.test(o)&&(i.description=o.match(n)[2],void 0!=i.description&&(i.description=i.description.replace("<p>","").replace("
","")))}if(i.image_s=i.media.m.replace("_m","_s"),i.image_t=i.media.m.replace("_m","_t"),i.image_m=i.media.m.replace("_m","_m"),i.image=i.media.m.replace("_m",""),i.image_b=i.media.m.replace("_m","_b"),delete i.media,e.useTemplate){var r=e.itemTemplate;for(var l in i){var c=new RegExp("Template:"+l+"","g");r=r.replace(c,i[l])}s.append(r)}e.itemCallback.call(a,i)}}),t.isFunction(i)&&i.call(a,n)})})}})(jQuery),function(t,e){function i(t){return O.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}function n(t){if(!be[t]){var e=M.body,i=O("<"+t+">").appendTo(e),n=i.css("display");i.remove(),("none"===n||""===n)&&(me||(me=M.createElement("iframe"),me.frameBorder=me.width=me.height=0),e.appendChild(me),ge&&me.createElement||(ge=(me.contentWindow||me.contentDocument).document,ge.write(("CSS1Compat"===M.compatMode?"<!doctype html>":"")+""),ge.close()),i=ge.createElement(t),ge.body.appendChild(i),n=O.css(i,"display"),e.removeChild(me)),be[t]=n}return be[t]}function s(t,e){var i={};return O.each(xe.concat.apply([],xe.slice(0,e)),function(){i[this]=t}),i}function a(){ye=e}function o(){return setTimeout(a,0),ye=O.now()}function r(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function l(){try{return new t.XMLHttpRequest}catch(e){}}function c(t,i){t.dataFilter&&(i=t.dataFilter(i,t.dataType));var n,s,a,o,r,l,c,d,h=t.dataTypes,u={},p=h.length,f=h[0];for(n=1;p>n;n++){if(1===n)for(s in t.converters)"string"==typeof s&&(u[s.toLowerCase()]=t.converters[s]);if(o=f,f=h[n],"*"===f)f=o;else if("*"!==o&&o!==f){if(r=o+" "+f,l=u[r]||u["* "+f],!l){d=e;for(c in u)if(a=c.split(" "),(a[0]===o||"*"===a[0])&&(d=u[a[1]+" "+f])){c=u[c],c===!0?l=d:d===!0&&(l=c);break}}!l&&!d&&O.error("No conversion from "+r.replace(" "," to ")),l!==!0&&(i=l?l(i):d(c(i)))}}return i}function d(t,i,n){var s,a,o,r,l=t.contents,c=t.dataTypes,d=t.responseFields;for(a in d)a in n&&(i[d[a]]=n[a]);for(;"*"===c[0];)c.shift(),s===e&&(s=t.mimeType||i.getResponseHeader("content-type"));if(s)for(a in l)if(l[a]&&l[a].test(s)){c.unshift(a);break}if(c[0]in n)o=c[0];else{for(a in n){if(!c[0]||t.converters[a+" "+c[0]]){o=a;break}r||(r=a)}o=o||r}return o?(o!==c[0]&&c.unshift(o),n[o]):void 0}function h(t,e,i,n){if(O.isArray(e))O.each(e,function(e,s){i||Ut.test(t)?n(t,s):h(t+"["+("object"==typeof s||O.isArray(s)?e:"")+"]",s,i,n)});else if(i||null==e||"object"!=typeof e)n(t,e);else for(var s in e)h(t+"["+s+"]",e[s],i,n)}function u(t,i){var n,s,a=O.ajaxSettings.flatOptions||{};for(n in i)i[n]!==e&&((a[n]?t:s||(s={}))[n]=i[n]);s&&O.extend(!0,t,s)}function p(t,i,n,s,a,o){a=a||i.dataTypes[0],o=o||{},o[a]=!0;for(var r,l=t[a],c=0,d=l?l.length:0,h=t===oe;d>c&&(h||!r);c++)r=l[c](i,n,s),"string"==typeof r&&(!h||o[r]?r=e:(i.dataTypes.unshift(r),r=p(t,i,n,s,r,o)));return(h||!r)&&!o["*"]&&(r=p(t,i,n,s,"*",o)),r}function f(t){return function(e,i){if("string"!=typeof e&&(i=e,e="*"),O.isFunction(i))for(var n,s,a,o=e.toLowerCase().split(ie),r=0,l=o.length;l>r;r++)n=o[r],a=/^\+/.test(n),a&&(n=n.substr(1)||"*"),s=t[n]=t[n]||[],s[a?"unshift":"push"](i)}}function m(t,e,i){var n="width"===e?t.offsetWidth:t.offsetHeight,s="width"===e?Ft:Bt,a=0,o=s.length;if(n>0){if("border"!==i)for(;o>a;a++)i||(n-=parseFloat(O.css(t,"padding"+s[a]))||0),"margin"===i?n+=parseFloat(O.css(t,i+s[a]))||0:n-=parseFloat(O.css(t,"border"+s[a]+"Width"))||0;return n+"px"}if(n=Nt(t,e,e),(0>n||null==n)&&(n=t.style[e]||0),n=parseFloat(n)||0,i)for(;o>a;a++)n+=parseFloat(O.css(t,"padding"+s[a]))||0,"padding"!==i&&(n+=parseFloat(O.css(t,"border"+s[a]+"Width"))||0),"margin"===i&&(n+=parseFloat(O.css(t,i+s[a]))||0);return n+"px"}function g(t,e){e.src?O.ajax({url:e.src,async:!1,dataType:"script"}):O.globalEval((e.text||e.textContent||e.innerHTML||"").replace(Tt,"/*$0*/")),e.parentNode&&e.parentNode.removeChild(e)}function v(t){var e=M.createElement("div");return Et.appendChild(e),e.innerHTML=t.outerHTML,e.firstChild}function y(t){var e=(t.nodeName||"").toLowerCase();"input"===e?b(t):"script"!==e&&"undefined"!=typeof t.getElementsByTagName&&O.grep(t.getElementsByTagName("input"),b)}function b(t){("checkbox"===t.type||"radio"===t.type)&&(t.defaultChecked=t.checked)}function w(t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName("*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll("*"):[]}function _(t,e){var i;1===e.nodeType&&(e.clearAttributes&&e.clearAttributes(),e.mergeAttributes&&e.mergeAttributes(t),i=e.nodeName.toLowerCase(),"object"===i?e.outerHTML=t.outerHTML:"input"!==i||"checkbox"!==t.type&&"radio"!==t.type?"option"===i?e.selected=t.defaultSelected:("input"===i||"textarea"===i)&&(e.defaultValue=t.defaultValue):(t.checked&&(e.defaultChecked=e.checked=t.checked),e.value!==t.value&&(e.value=t.value)),e.removeAttribute(O.expando))}function x(t,e){if(1===e.nodeType&&O.hasData(t)){var i,n,s,a=O._data(t),o=O._data(e,a),r=a.events;if(r){delete o.handle,o.events={};for(i in r)for(n=0,s=r[i].length;s>n;n++)O.event.add(e,i+(r[i][n].namespace?".":"")+r[i][n].namespace,r[i][n],r[i][n].data)}o.data&&(o.data=O.extend({},o.data))}}function C(t,e){return O.nodeName(t,"table")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function j(t){var e=mt.split("|"),i=t.createDocumentFragment();if(i.createElement)for(;e.length;)i.createElement(e.pop());return i}function S(t,e,i){if(e=e||0,O.isFunction(e))return O.grep(t,function(t,n){var s=!!e.call(t,n,t);return s===i});if(e.nodeType)return O.grep(t,function(t,n){return t===e===i});if("string"==typeof e){var n=O.grep(t,function(t){return 1===t.nodeType});if(ht.test(e))return O.filter(e,n,!i);e=O.filter(e,n)}return O.grep(t,function(t,n){return O.inArray(t,e)>=0===i})}function k(t){return!t||!t.parentNode||11===t.parentNode.nodeType}function T(){return!0}function P(){return!1}function E(t,e,i){var n=e+"defer",s=e+"queue",a=e+"mark",o=O._data(t,n);o&&("queue"===i||!O._data(t,s))&&("mark"===i||!O._data(t,a))&&setTimeout(function(){!O._data(t,s)&&!O._data(t,a)&&(O.removeData(t,n,!0),o.fire())},0)}function N(t){for(var e in t)if(("data"!==e||!O.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function A(t,i,n){if(n===e&&1===t.nodeType){var s="data-"+i.replace(F,"-$1").toLowerCase();if(n=t.getAttribute(s),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:O.isNumeric(n)?parseFloat(n):H.test(n)?O.parseJSON(n):n}catch(a){}O.data(t,i,n)}else n=e}return n}function I(t){var e,i,n=z[t]={};for(t=t.split(/\s+/),e=0,i=t.length;i>e;e++)n[t[e]]=!0;return n}var M=t.document,L=t.navigator,q=t.location,O=function(){function i(){if(!r.isReady){try{M.documentElement.doScroll("left")}catch(t){return void setTimeout(i,1)}r.ready()}}var n,s,a,o,r=function(t,e){return new r.fn.init(t,e,n)},l=t.jQuery,c=t.$,d=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,h=/\S/,u=/^\s+/,p=/\s+$/,f=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m=/^[\],:{}\s]*$/,g=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,v=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,y=/(?:^|:|,)(?:\s*\[)+/g,b=/(webkit)[ \/]([\w.]+)/,w=/(opera)(?:.*version)?[ \/]([\w.]+)/,_=/(msie) ([\w.]+)/,x=/(mozilla)(?:.*? rv:([\w.]+))?/,C=/-([a-z]|[0-9])/gi,j=/^-ms-/,S=function(t,e){return(e+"").toUpperCase()},k=L.userAgent,T=Object.prototype.toString,P=Object.prototype.hasOwnProperty,E=Array.prototype.push,N=Array.prototype.slice,A=String.prototype.trim,I=Array.prototype.indexOf,q={};return r.fn=r.prototype={constructor:r,init:function(t,i,n){var s,a,o,l;if(!t)return this;if(t.nodeType)return this.context=this[0]=t,this.length=1,this;if("body"===t&&!i&&M.body)return this.context=M,this[0]=M.body,this.selector=t,this.length=1,this;if("string"==typeof t){if(s="<"!==t.charAt(0)||">"!==t.charAt(t.length-1)||t.length<3?d.exec(t):[null,t,null],s&&(s[1]||!i)){if(s[1])return i=i instanceof r?i[0]:i,l=i?i.ownerDocument||i:M,o=f.exec(t),o?r.isPlainObject(i)?(t=[M.createElement(o[1])],r.fn.attr.call(t,i,!0)):t=[l.createElement(o[1])]:(o=r.buildFragment([s[1]],[l]),t=(o.cacheable?r.clone(o.fragment):o.fragment).childNodes),r.merge(this,t);if(a=M.getElementById(s[2]),a&&a.parentNode){if(a.id!==s[2])return n.find(t);this.length=1,this[0]=a}return this.context=M,this.selector=t,this}return!i||i.jquery?(i||n).find(t):this.constructor(i).find(t)}return r.isFunction(t)?n.ready(t):(t.selector!==e&&(this.selector=t.selector,this.context=t.context),r.makeArray(t,this))},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return N.call(this,0)},get:function(t){return null==t?this.toArray():0>t?this[this.length+t]:this[t]},pushStack:function(t,e,i){var n=this.constructor();return r.isArray(t)?E.apply(n,t):r.merge(n,t),n.prevObject=this,n.context=this.context,"find"===e?n.selector=this.selector+(this.selector?" ":"")+i:e&&(n.selector=this.selector+"."+e+"("+i+")"),n},each:function(t,e){return r.each(this,t,e)},ready:function(t){return r.bindReady(),a.add(t),this},eq:function(t){return t=+t,-1===t?this.slice(t):this.slice(t,t+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(N.apply(this,arguments),"slice",N.call(arguments).join(","))},map:function(t){return this.pushStack(r.map(this,function(e,i){return t.call(e,i,e)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},r.fn.init.prototype=r.fn,r.extend=r.fn.extend=function(){var t,i,n,s,a,o,l=arguments[0]||{},c=1,d=arguments.length,h=!1;for("boolean"==typeof l&&(h=l,l=arguments[1]||{},c=2),"object"!=typeof l&&!r.isFunction(l)&&(l={}),d===c&&(l=this,--c);d>c;c++)if(null!=(t=arguments[c]))for(i in t)n=l[i],s=t[i],l!==s&&(h&&s&&(r.isPlainObject(s)||(a=r.isArray(s)))?(a?(a=!1,o=n&&r.isArray(n)?n:[]):o=n&&r.isPlainObject(n)?n:{},l[i]=r.extend(h,o,s)):s!==e&&(l[i]=s));return l},r.extend({noConflict:function(e){return t.$===r&&(t.$=c),e&&t.jQuery===r&&(t.jQuery=l),r},isReady:!1,readyWait:1,holdReady:function(t){t?r.readyWait++:r.ready(!0)},ready:function(t){if(t===!0&&!--r.readyWait||t!==!0&&!r.isReady){if(!M.body)return setTimeout(r.ready,1);if(r.isReady=!0,t!==!0&&--r.readyWait>0)return;a.fireWith(M,[r]),r.fn.trigger&&r(M).trigger("ready").off("ready")}},bindReady:function(){if(!a){if(a=r.Callbacks("once memory"),"complete"===M.readyState)return setTimeout(r.ready,1);if(M.addEventListener)M.addEventListener("DOMContentLoaded",o,!1),t.addEventListener("load",r.ready,!1);else if(M.attachEvent){M.attachEvent("onreadystatechange",o),t.attachEvent("onload",r.ready);var e=!1;try{e=null==t.frameElement}catch(n){}M.documentElement.doScroll&&e&&i()}}},isFunction:function(t){return"function"===r.type(t)},isArray:Array.isArray||function(t){return"array"===r.type(t)},isWindow:function(t){return t&&"object"==typeof t&&"setInterval"in t},isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},type:function(t){return null==t?String(t):q[T.call(t)]||"object"},isPlainObject:function(t){if(!t||"object"!==r.type(t)||t.nodeType||r.isWindow(t))return!1;try{if(t.constructor&&!P.call(t,"constructor")&&!P.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(i){return!1}var n;for(n in t);return n===e||P.call(t,n)},isEmptyObject:function(t){for(var e in t)return!1;return!0},error:function(t){throw new Error(t)},parseJSON:function(e){return"string"==typeof e&&e?(e=r.trim(e),t.JSON&&t.JSON.parse?t.JSON.parse(e):m.test(e.replace(g,"@").replace(v,"]").replace(y,""))?new Function("return "+e)():void r.error("Invalid JSON: "+e)):null},parseXML:function(i){var n,s;try{t.DOMParser?(s=new DOMParser,n=s.parseFromString(i,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(i))}catch(a){n=e}return(!n||!n.documentElement||n.getElementsByTagName("parsererror").length)&&r.error("Invalid XML: "+i),n},noop:function(){},globalEval:function(e){e&&h.test(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(j,"ms-").replace(C,S)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toUpperCase()===e.toUpperCase()},each:function(t,i,n){var s,a=0,o=t.length,l=o===e||r.isFunction(t);if(n)if(l){for(s in t)if(i.apply(t[s],n)===!1)break}else for(;o>a&&i.apply(t[a++],n)!==!1;);else if(l){for(s in t)if(i.call(t[s],s,t[s])===!1)break}else for(;o>a&&i.call(t[a],a,t[a++])!==!1;);return t},trim:A?function(t){return null==t?"":A.call(t)}:function(t){return null==t?"":(t+"").replace(u,"").replace(p,"")},makeArray:function(t,e){var i=e||[];if(null!=t){var n=r.type(t);null==t.length||"string"===n||"function"===n||"regexp"===n||r.isWindow(t)?E.call(i,t):r.merge(i,t)}return i},inArray:function(t,e,i){var n;if(e){if(I)return I.call(e,t,i);for(n=e.length,i=i?0>i?Math.max(0,n+i):i:0;n>i;i++)if(i in e&&e[i]===t)return i}return-1},merge:function(t,i){var n=t.length,s=0;if("number"==typeof i.length)for(var a=i.length;a>s;s++)t[n++]=i[s];else for(;i[s]!==e;)t[n++]=i[s++];return t.length=n,t},grep:function(t,e,i){var n,s=[];i=!!i;for(var a=0,o=t.length;o>a;a++)n=!!e(t[a],a),i!==n&&s.push(t[a]);return s},map:function(t,i,n){var s,a,o=[],l=0,c=t.length,d=t instanceof r||c!==e&&"number"==typeof c&&(c>0&&t[0]&&t[c-1]||0===c||r.isArray(t));if(d)for(;c>l;l++)s=i(t[l],l,n),null!=s&&(o[o.length]=s);else for(a in t)s=i(t[a],a,n),null!=s&&(o[o.length]=s);return o.concat.apply([],o)},guid:1,proxy:function(t,i){if("string"==typeof i){var n=t[i];i=t,t=n}if(!r.isFunction(t))return e;var s=N.call(arguments,2),a=function(){return t.apply(i,s.concat(N.call(arguments)))};return a.guid=t.guid=t.guid||a.guid||r.guid++,a},access:function(t,i,n,s,a,o){var l=t.length;if("object"==typeof i){for(var c in i)r.access(t,c,i[c],s,a,n);return t}if(n!==e){s=!o&&s&&r.isFunction(n);for(var d=0;l>d;d++)a(t[d],i,s?n.call(t[d],d,a(t[d],i)):n,o);return t}return l?a(t[0],i):e},now:function(){return(new Date).getTime()},uaMatch:function(t){t=t.toLowerCase();var e=b.exec(t)||w.exec(t)||_.exec(t)||t.indexOf("compatible")<0&&x.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},sub:function(){function t(e,i){return new t.fn.init(e,i)}r.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(i,n){return n&&n instanceof r&&!(n instanceof t)&&(n=t(n)),r.fn.init.call(this,i,n,e)},t.fn.init.prototype=t.fn;var e=t(M);return t},browser:{}}),r.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(t,e){q["[object "+e+"]"]=e.toLowerCase()}),s=r.uaMatch(k),s.browser&&(r.browser[s.browser]=!0,r.browser.version=s.version),r.browser.webkit&&(r.browser.safari=!0),h.test("�")&&(u=/^[\s\xA0]+/,p=/[\s\xA0]+$/),n=r(M),M.addEventListener?o=function(){M.removeEventListener("DOMContentLoaded",o,!1),r.ready()}:M.attachEvent&&(o=function(){"complete"===M.readyState&&(M.detachEvent("onreadystatechange",o),r.ready())}),r}(),z={};O.Callbacks=function(t){t=t?z[t]||I(t):{};var i,n,s,a,o,r=[],l=[],c=function(e){var i,n,s,a;for(i=0,n=e.length;n>i;i++)s=e[i],a=O.type(s),"array"===a?c(s):"function"===a&&(!t.unique||!h.has(s))&&r.push(s)},d=function(e,c){for(c=c||[],i=!t.memory||[e,c],n=!0,o=s||0,s=0,a=r.length;r&&a>o;o++)if(r[o].apply(e,c)===!1&&t.stopOnFalse){i=!0;break}n=!1,r&&(t.once?i===!0?h.disable():r=[]:l&&l.length&&(i=l.shift(),h.fireWith(i[0],i[1])))},h={add:function(){if(r){var t=r.length;c(arguments),n?a=r.length:i&&i!==!0&&(s=t,d(i[0],i[1]))}return this},remove:function(){if(r)for(var e=arguments,i=0,s=e.length;s>i;i++)for(var l=0;lt |
","
"]),O.fn.extend({text:function(t){return O.isFunction(t)?this.each(function(e){var i=O(this);i.text(t.call(this,e,i.text()))}):"object"!=typeof t&&t!==e?this.empty().append((this[0]&&this[0].ownerDocument||M).createTextNode(t)):O.text(this)},wrapAll:function(t){if(O.isFunction(t))return this.each(function(e){O(this).wrapAll(t.call(this,e))});if(this[0]){var e=O(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return O.isFunction(t)?this.each(function(e){O(this).wrapInner(t.call(this,e))}):this.each(function(){var e=O(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=O.isFunction(t);return this.each(function(i){O(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){O.nodeName(this,"body")||O(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(t){1===this.nodeType&&this.appendChild(t)})},prepend:function(){return this.domManip(arguments,!0,function(t){1===this.nodeType&&this.insertBefore(t,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(t){this.parentNode.insertBefore(t,this)});if(arguments.length){var t=O.clean(arguments);return t.push.apply(t,this.toArray()),this.pushStack(t,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(t){this.parentNode.insertBefore(t,this.nextSibling)});if(arguments.length){var t=this.pushStack(this,"after",arguments);return t.push.apply(t,O.clean(arguments)),t}},remove:function(t,e){for(var i,n=0;null!=(i=this[n]);n++)(!t||O.filter(t,[i]).length)&&(!e&&1===i.nodeType&&(O.cleanData(i.getElementsByTagName("*")),O.cleanData([i])),i.parentNode&&i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)for(1===t.nodeType&&O.cleanData(t.getElementsByTagName("*"));t.firstChild;)t.removeChild(t.firstChild);return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return O.clone(this,t,e)})},html:function(t){if(t===e)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(gt,""):null;if("string"!=typeof t||xt.test(t)||!O.support.leadingWhitespace&&vt.test(t)||Pt[(bt.exec(t)||["",""])[1].toLowerCase()])O.isFunction(t)?this.each(function(e){var i=O(this);i.html(t.call(this,e,i.html()))}):this.empty().append(t);else{t=t.replace(yt,"<$1>$2>");try{for(var i=0,n=this.length;n>i;i++)1===this[i].nodeType&&(O.cleanData(this[i].getElementsByTagName("*")),this[i].innerHTML=t)}catch(s){this.empty().append(t)}}return this},replaceWith:function(t){return this[0]&&this[0].parentNode?O.isFunction(t)?this.each(function(e){var i=O(this),n=i.html();i.replaceWith(t.call(this,e,n))}):("string"!=typeof t&&(t=O(t).detach()),this.each(function(){var e=this.nextSibling,i=this.parentNode;O(this).remove(),e?O(e).before(t):O(i).append(t)})):this.length?this.pushStack(O(O.isFunction(t)?t():t),"replaceWith",t):this},detach:function(t){return this.remove(t,!0)},domManip:function(t,i,n){var s,a,o,r,l=t[0],c=[];if(!O.support.checkClone&&3===arguments.length&&"string"==typeof l&&St.test(l))return this.each(function(){O(this).domManip(t,i,n,!0)});if(O.isFunction(l))return this.each(function(s){var a=O(this);t[0]=l.call(this,s,i?a.html():e),a.domManip(t,i,n)});if(this[0]){if(r=l&&l.parentNode,s=O.support.parentNode&&r&&11===r.nodeType&&r.childNodes.length===this.length?{fragment:r}:O.buildFragment(t,this,c),o=s.fragment,a=1===o.childNodes.length?o=o.firstChild:o.firstChild,a){i=i&&O.nodeName(a,"tr");for(var d=0,h=this.length,u=h-1;h>d;d++)n.call(i?C(this[d],a):this[d],s.cacheable||h>1&&u>d?O.clone(o,!0,!0):o)}c.length&&O.each(c,g)}return this}}),O.buildFragment=function(t,e,i){var n,s,a,o,r=t[0];return e&&e[0]&&(o=e[0].ownerDocument||e[0]),o.createDocumentFragment||(o=M),1===t.length&&"string"==typeof r&&r.length<512&&o===M&&"<"===r.charAt(0)&&!Ct.test(r)&&(O.support.checkClone||!St.test(r))&&(O.support.html5Clone||!jt.test(r))&&(s=!0,a=O.fragments[r],a&&1!==a&&(n=a)),n||(n=o.createDocumentFragment(),O.clean(t,o,n,i)),s&&(O.fragments[r]=a?n:1),{fragment:n,cacheable:s}},O.fragments={},O.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){O.fn[t]=function(i){var n=[],s=O(i),a=1===this.length&&this[0].parentNode;if(a&&11===a.nodeType&&1===a.childNodes.length&&1===s.length)return s[e](this[0]),this;for(var o=0,r=s.length;r>o;o++){var l=(o>0?this.clone(!0):this).get();O(s[o])[e](l),n=n.concat(l)}return this.pushStack(n,t,s.selector)}}),O.extend({clone:function(t,e,i){var n,s,a,o=O.support.html5Clone||!jt.test("<"+t.nodeName)?t.cloneNode(!0):v(t);if(!(O.support.noCloneEvent&&O.support.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||O.isXMLDoc(t)))for(_(t,o),n=w(t),s=w(o),a=0;n[a];++a)s[a]&&_(n[a],s[a]);if(e&&(x(t,o),i))for(n=w(t),s=w(o),a=0;n[a];++a)x(n[a],s[a]);return n=s=null,o},clean:function(t,e,i,n){var s;e=e||M,"undefined"==typeof e.createElement&&(e=e.ownerDocument||e[0]&&e[0].ownerDocument||M);for(var a,o,r=[],l=0;null!=(o=t[l]);l++)if("number"==typeof o&&(o+=""),o){if("string"==typeof o)if(_t.test(o)){o=o.replace(yt,"<$1>$2>");var c=(bt.exec(o)||["",""])[1].toLowerCase(),d=Pt[c]||Pt._default,h=d[0],u=e.createElement("div");for(e===M?Et.appendChild(u):j(e).appendChild(u),u.innerHTML=d[1]+o+d[2];h--;)u=u.lastChild;if(!O.support.tbody){var p=wt.test(o),f="table"!==c||p?"