(function(e){function t(){if(e.fn.ajaxSubmit.debug){var t="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log){window.console.log(t)}else if(window.opera&&window.opera.postError){window.opera.postError(t)}}}e.fn.ajaxSubmit=function(n){function g(){function v(){var t=c.attr("target"),n=c.attr("action");r.setAttribute("target",s);if(r.getAttribute("method")!="POST"){r.setAttribute("method","POST")}if(r.getAttribute("action")!=i.url){r.setAttribute("action",i.url)}if(!i.skipEncodingOverride){c.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(i.timeout){setTimeout(function(){h=true;b()},i.timeout)}var o=[];try{if(i.extraData){for(var f in i.extraData){o.push(e('').appendTo(r)[0])}}u.appendTo("body");a.attachEvent?a.attachEvent("onload",b):a.addEventListener("load",b,false);r.submit()}finally{r.setAttribute("action",n);if(t){r.setAttribute("target",t)}else{c.removeAttr("target")}e(o).remove()}}function b(){g=a.contentWindow?a.contentWindow.document:a.contentDocument?a.contentDocument:a.document;if(!g||g.location.href==i.iframeSrc){return}a.detachEvent?a.detachEvent("onload",b):a.removeEventListener("load",b,false);var n=true;try{if(h){throw"timeout"}var r=i.dataType=="xml"||g.XMLDocument||e.isXMLDoc(g);t("isXml="+r);if(!r&&window.opera&&(g.body==null||g.body.innerHTML=="")){if(--y){t("requeing onLoad callback, DOM not available");setTimeout(b,250);return}}f.responseText=g.body?g.body.innerHTML:g.documentElement?g.documentElement.innerHTML:null;f.responseXML=g.XMLDocument?g.XMLDocument:g;f.getResponseHeader=function(e){var t={"content-type":i.dataType};return t[e]};var s=/(json|script)/.test(i.dataType);if(s||i.textarea){var o=g.getElementsByTagName("textarea")[0];if(o){f.responseText=o.value}else if(s){var c=g.getElementsByTagName("pre")[0];var p=g.getElementsByTagName("body")[0];if(c){f.responseText=c.textContent}else if(p){f.responseText=p.innerHTML}}}else if(i.dataType=="xml"&&!f.responseXML&&f.responseText!=null){f.responseXML=w(f.responseText)}m=S(f,i.dataType,i)}catch(d){t("error caught:",d);n=false;f.error=d;i.error&&i.error.call(i.context,f,"error",d);l&&e.event.trigger("ajaxError",[f,i,d])}if(f.aborted){t("upload aborted");n=false}if(n){i.success&&i.success.call(i.context,m,"success",f);l&&e.event.trigger("ajaxSuccess",[f,i])}l&&e.event.trigger("ajaxComplete",[f,i]);if(l&&!--e.active){e.event.trigger("ajaxStop")}i.complete&&i.complete.call(i.context,f,n?"success":"error");setTimeout(function(){u.removeData("form-plugin-onload");u.remove();f.responseXML=null},100)}var r=c[0];if(e(":input[name=submit],:input[id=submit]",r).length){alert('Error: Form elements must not have name or id of "submit".');return}var i=e.extend(true,{},e.ajaxSettings,n);i.context=i.context||i;var s="jqFormIO"+(new Date).getTime(),o="_"+s;var u=e('');} function hst_tab(tid,lcl){$(tid+" .title li").click(function(){$(tid+" .active").addClass('inactive');$(tid+" .active").removeClass('active');$("#"+this.id).addClass('active');$("#"+this.id).removeClass('inactive');$(tid+" "+lcl).addClass('invisible');$(tid+" ."+this.id).removeClass('invisible');});} function hst_slide(slide,slidenum){$('#'+slide+' .right').click(function(){right=$('#'+slide+' li.active').attr('id');right--;if(right<1)right=slidenum;$('#'+slide+' li').removeClass('active');$('#'+slide+' li#'+right).addClass('active');});$('#'+slide+' .left').click(function(){left=$('#'+slide+' li.active').attr('id');left++;if(left>slidenum)left=1;$('#'+slide+' li').removeClass('active');$('#'+slide+' li#'+left).addClass('active');});} (function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){module.exports=factory;}else{factory(jQuery);}} (function($){var toFix=['wheel','mousewheel','DOMMouseScroll','MozMousePixelScroll'];var toBind='onwheel'in document||document.documentMode>=9?['wheel']:['mousewheel','DomMouseScroll','MozMousePixelScroll'];var lowestDelta,lowestDeltaXY;if($.event.fixHooks){for(var i=toFix.length;i;){$.event.fixHooks[toFix[--i]]=$.event.mouseHooks;}} $.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var i=toBind.length;i;){this.addEventListener(toBind[--i],handler,false);}}else{this.onmousewheel=handler;}},teardown:function(){if(this.removeEventListener){for(var i=toBind.length;i;){this.removeEventListener(toBind[--i],handler,false);}}else{this.onmousewheel=null;}}};$.fn.extend({mousewheel:function(fn){return fn?this.bind("mousewheel",fn):this.trigger("mousewheel");},unmousewheel:function(fn){return this.unbind("mousewheel",fn);}}); function handler(event){var orgEvent=event||window.event,args=[].slice.call(arguments,1),delta=0,deltaX=0,deltaY=0,absDelta=0,absDeltaXY=0,fn;event=$.event.fix(orgEvent);event.type="mousewheel";if(orgEvent.wheelDelta){delta=orgEvent.wheelDelta;} if(orgEvent.detail){delta=orgEvent.detail*-1;} if(orgEvent.deltaY){deltaY=orgEvent.deltaY*-1;delta=deltaY;} if(orgEvent.deltaX){deltaX=orgEvent.deltaX;delta=deltaX*-1;} if(orgEvent.wheelDeltaY!==undefined){deltaY=orgEvent.wheelDeltaY;} if(orgEvent.wheelDeltaX!==undefined){deltaX=orgEvent.wheelDeltaX*-1;} absDelta=Math.abs(delta);if(!lowestDelta||absDelta0?'floor':'ceil';delta=Math[fn](delta/lowestDelta);deltaX=Math[fn](deltaX/lowestDeltaXY);deltaY=Math[fn](deltaY/lowestDeltaXY);args.unshift(event,delta,deltaX,deltaY);return($.event.dispatch||$.event.handle).apply(this,args);}}));(function($){var mwheelI={pos:[-260,-260]},minDif=3,doc=document,root=doc.documentElement,body=doc.body,longDelay,shortDelay;function unsetPos(){if(this===mwheelI.elem){mwheelI.pos=[-260,-260];mwheelI.elem=false;minDif=3;}} $.event.special.mwheelIntent={setup:function(){var jElm=$(this).bind('mousewheel',$.event.special.mwheelIntent.handler);if(this!==doc&&this!==root&&this!==body){jElm.bind('mouseleave',unsetPos);} jElm=null;return true;},teardown:function(){$(this).unbind('mousewheel',$.event.special.mwheelIntent.handler).unbind('mouseleave',unsetPos);return true;},handler:function(e,d){var pos=[e.clientX,e.clientY];if(this===mwheelI.elem||Math.abs(mwheelI.pos[0]-pos[0])>minDif||Math.abs(mwheelI.pos[1]-pos[1])>minDif){mwheelI.elem=this;mwheelI.pos=pos;minDif=250;clearTimeout(shortDelay);shortDelay=setTimeout(function(){minDif=10;},200);clearTimeout(longDelay);longDelay=setTimeout(function(){minDif=3;},1500);e=$.extend({},e,{type:'mwheelIntent'});return($.event.dispatch||$.event.handle).apply(this,arguments);}}};$.fn.extend({mwheelIntent:function(fn){return fn?this.bind("mwheelIntent",fn):this.trigger("mwheelIntent");},unmwheelIntent:function(fn){return this.unbind("mwheelIntent",fn);}});$(function(){body=doc.body;$(doc).bind('mwheelIntent.mwheelIntentDefault',$.noop);});})(jQuery);function hst_opcl(elid){(document.getElementById(elid).style.display=='none')?$("#"+elid).fadeIn():$("#"+elid).fadeOut();} ;