(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('');var a=u[0];u.css({position:"absolute",top:"-1000px",left:"-1000px"});var f={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;u.attr("src",i.iframeSrc)}};var l=i.global;if(l&&!(e.active++)){e.event.trigger("ajaxStart")}if(l){e.event.trigger("ajaxSend",[f,i])}if(i.beforeSend&&i.beforeSend.call(i.context,f,i)===false){if(i.global){e.active--}return}if(f.aborted){return}var h=0;var p=r.clk;if(p){var d=p.name;if(d&&!p.disabled){i.extraData=i.extraData||{};i.extraData[d]=p.value;if(p.type=="image"){i.extraData[d+".x"]=r.clk_x;i.extraData[d+".y"]=r.clk_y}}}if(i.forceSync){v()}else{setTimeout(v,10)}var m,g,y=50;var w=e.parseXML||function(e,t){if(window.ActiveXObject){t=new ActiveXObject("Microsoft.XMLDOM");t.async="false";t.loadXML(e)}else{t=(new DOMParser).parseFromString(e,"text/xml")}return t&&t.documentElement&&t.documentElement.nodeName!="parsererror"?t:null};var E=e.parseJSON||function(e){return window["eval"]("("+e+")")};var S=function(t,n,r){var i=t.getResponseHeader("content-type")||"",s=n==="xml"||!n&&i.indexOf("xml")>=0,o=s?t.responseXML:t.responseText;if(s&&o.documentElement.nodeName==="parsererror"){e.error&&e.error("parsererror")}if(r&&r.dataFilter){o=r.dataFilter(o,n)}if(typeof o==="string"){if(n==="json"||!n&&i.indexOf("json")>=0){o=E(o)}else if(n==="script"||!n&&i.indexOf("javascript")>=0){e.globalEval(o)}}return o}}if(!this.length){t("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof n=="function"){n={success:n}}var r=this.attr("action");var i=typeof r==="string"?e.trim(r):"";if(i){i=(i.match(/^([^#]+)/)||[])[1]}i=i||window.location.href||"";n=e.extend(true,{url:i,type:this[0].getAttribute("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},n);var s={};this.trigger("form-pre-serialize",[this,n,s]);if(s.veto){t("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(n.beforeSerialize&&n.beforeSerialize(this,n)===false){t("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var o,u,a=this.formToArray(n.semantic);if(n.data){n.extraData=n.data;for(o in n.data){if(n.data[o]instanceof Array){for(var f in n.data[o]){a.push({name:o,value:n.data[o][f]})}}else{u=n.data[o];u=e.isFunction(u)?u():u;a.push({name:o,value:u})}}}if(n.beforeSubmit&&n.beforeSubmit(a,this,n)===false){t("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[a,this,n,s]);if(s.veto){t("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var l=e.param(a);if(n.type.toUpperCase()=="GET"){n.url+=(n.url.indexOf("?")>=0?"&":"?")+l;n.data=null}else{n.data=l}var c=this,h=[];if(n.resetForm){h.push(function(){c.resetForm()})}if(n.clearForm){h.push(function(){c.clearForm()})}if(!n.dataType&&n.target){var p=n.success||function(){};h.push(function(t){var r=n.replaceTarget?"replaceWith":"html";e(n.target)[r](t).each(p,arguments)})}else if(n.success){h.push(n.success)}n.success=function(e,t,r){var i=n.context||n;for(var s=0,o=h.length;s0;var v="multipart/form-data";var m=c.attr("enctype")==v||c.attr("encoding")==v;if(n.iframe!==false&&(d||n.iframe||m)){if(n.closeKeepAlive){e.get(n.closeKeepAlive,g)}else{g()}}else{e.ajax(n)}this.trigger("form-submit-notify",[this,n]);return this};e.fn.ajaxForm=function(n){if(this.length===0){var r={s:this.selector,c:this.context};if(!e.isReady&&r.s){t("DOM not ready, queuing ajaxForm");e(function(){e(r.s,r.c).ajaxForm(n)});return this}t("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(t){if(!t.isDefaultPrevented()){t.preventDefault();e(this).ajaxSubmit(n)}}).bind("click.form-plugin",function(t){var n=t.target;var r=e(n);if(!r.is(":submit,input:image")){var i=r.closest(":submit");if(i.length==0){return}n=i[0]}var s=this;s.clk=n;if(n.type=="image"){if(t.offsetX!=undefined){s.clk_x=t.offsetX;s.clk_y=t.offsetY}else if(typeof e.fn.offset=="function"){var o=r.offset();s.clk_x=t.pageX-o.left;s.clk_y=t.pageY-o.top}else{s.clk_x=t.pageX-n.offsetLeft;s.clk_y=t.pageY-n.offsetTop}}setTimeout(function(){s.clk=s.clk_x=s.clk_y=null},100)})};e.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};e.fn.formToArray=function(t){var n=[];if(this.length===0){return n}var r=this[0];var i=t?r.getElementsByTagName("*"):r.elements;if(!i){return n}var s,o,u,a,f,l,c;for(s=0,l=i.length;sh.failure_limit)return!1})}var f=this,g,h={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:!0,appear:null,load:null};return c&&(d!==c.failurelimit&&(c.failure_limit=c.failurelimit,delete c.failurelimit),d!==c.effectspeed&&(c.effect_speed=c.effectspeed,delete c.effectspeed),a.extend(h,c)),g=h.container===d||h.container===b?e:a(h.container),0===h.event.indexOf("scroll")&&g.bind(h.event,function(a){return i()}),this.each(function(){var b=this,c=a(b);b.loaded=!1,c.one("appear",function(){if(!this.loaded){if(h.appear){var d=f.length;h.appear.call(b,d,h)}a("").bind("load",function(){c.hide().attr("src",c.data(h.data_attribute))[h.effect](h.effect_speed),b.loaded=!0;var d=a.grep(f,function(a){return!a.loaded});f=a(d);if(h.load){var e=f.length;h.load.call(b,e,h)}}).attr("src",c.data(h.data_attribute))}}),0!==h.event.indexOf("scroll")&&c.bind(h.event,function(a){b.loaded||c.trigger("appear")})}),e.bind("resize",function(a){i()}),/iphone|ipod|ipad.*os 5/gi.test(navigator.appVersion)&&e.bind("pageshow",function(b){b.originalEvent.persisted&&f.each(function(){a(this).trigger("appear")})}),a(b).load(function(){i()}),this},a.belowthefold=function(c,f){var g;return f.container===d||f.container===b?g=e.height()+e.scrollTop():g=a(f.container).offset().top+a(f.container).height(),g<=a(c).offset().top-f.threshold},a.rightoffold=function(c,f){var g;return f.container===d||f.container===b?g=e.width()+e.scrollLeft():g=a(f.container).offset().left+a(f.container).width(),g<=a(c).offset().left-f.threshold},a.abovethetop=function(c,f){var g;return f.container===d||f.container===b?g=e.scrollTop():g=a(f.container).offset().top,g>=a(c).offset().top+f.threshold+a(c).height()},a.leftofbegin=function(c,f){var g;return f.container===d||f.container===b?g=e.scrollLeft():g=a(f.container).offset().left,g>=a(c).offset().left+f.threshold+a(c).width()},a.inviewport=function(b,c){return!a.rightoffold(b,c)&&!a.leftofbegin(b,c)&&!a.belowthefold(b,c)&&!a.abovethetop(b,c)},a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-screen":function(b){return a.rightoffold(b,{threshold:0})},"left-of-screen":function(b){return!a.rightoffold(b,{threshold:0})},"in-viewport":function(b){return a.inviewport(b,{threshold:0})},"above-the-fold":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0})},"left-of-fold":function(b){return!a.rightoffold(b,{threshold:0})}})})(jQuery,window,document);function hst_fucos(vlu,ttl,eid,cs){if(vlu==ttl)document.getElementById(eid).value='';if(cs==1)document.getElementById(eid).size=document.getElementById(eid).size+20}
function hst_blur(vlu,ttl,eid,cs){if(vlu=='')document.getElementById(eid).value=ttl;if(cs==1)document.getElementById(eid).size=document.getElementById(eid).size-20}
function set_class(elid,elclass){el=document.getElementById(elid);el.className=elclass}
function emp_vlu(elid,dfvl){el=document.getElementById(elid);if(el.value==dfvl){el.value=''}}
function set_vlu(elid,dfvl){el=document.getElementById(elid);if(el.value==''){el.value=dfvl}}
function hst_loading(comm,elid){if(elid==''||elid=='undefined')elid='loading';if(comm=='start'){$("#"+elid).css('visibility','visible')}else{$("#"+elid).css('visibility','hidden')}}hst_loading('start','loading');
function hst_tip(elid){$(function(){$("#"+elid).click(function(){$(this).expose()})});$("#"+elid).tooltip({effect:'slide'})}
function hst_ajax_post(tget,fid,rq){hst_loading('start','loading');var options={target:'#'+tget,url:rq,beforeSubmit:function(arr,$form,options){hst_loading('start','loading')},success:function(){hst_show(tget);hst_loading('end','loading')}};$('#'+fid).ajaxForm(options)}
function hst_ajax_get(tget,rq){hst_loading('start','loading');$.ajax({url:rq,success:function(data){$('#'+tget).html(data);hst_loading('end','loading')}});return false}
function hst_hide(elid){document.getElementById(elid).style.cssText='visibility: hidden;opacity: 0;filter: alpha(opacity=0);height: 0px;width: 0px; overflow: hidden;';return false}
function hst_show(elid){document.getElementById(elid).style.cssText='visibility: visible;opacity: 1;filter: alpha(opacity=100);height: auto;width: 100%; overflow: auto;'}
function hst_wop(rq,opt){if(opt=='')opt='width=900,height=600,scrollbars=yes,resizable=yes,menubar=no,location=no';myWindow=window.open(rq,'',opt,'true');myWindow.focus();return false}
function check(elid){elm=document.getElementById(elid);if(elm.checked==true){uncheckk(elid)}else{checkk(elid)}}
function checkk(elid){elm=document.getElementById(elid);trlid='tr_'+elid;elm.checked=true;$('#'+trlid).addClass("active_tr",50)}
function uncheckk(elid){elm=document.getElementById(elid);trlid='tr_'+elid;elm.checked=false;$('#'+trlid).removeClass("active_tr",50)}
function hst_select_invert(elarr){for(i=0;i<=elarr.length;i++){check(elarr[i])}}
function hst_select_all(elarr){for(i=0;i<=elarr.length;i++){checkk(elarr[i])}}
function hst_deselect_all(elarr){for(i=0;i<=elarr.length;i++){uncheckk(elarr[i])}}$(document).ready(function(){$('.loginform input').focus(function(){if(this.value==this.title)this.value=''});$('.loginform input').blur(function(){if(this.value=='')this.value=this.title});$('.search input').focus(function(){if(this.value==this.title)this.value=''});$('.search input').blur(function(){if(this.value=='')this.value=this.title})});
function runtime(){alr=$('#time');alra=alr.html().split(':');h=alra[0];m=alra[1];s=alra[2];if(s<59){s++}else{s=0;if(m<59){m++}else{m=0;if(h<23){h++}else{h=0;m=0;s=0}}}if(h.length<2){h='0'+h}if(m.length<2){m='0'+m}if(s.length<2){s='0'+s}alr.html(h+':'+m+':'+s);setTimeout('runtime()',1000)}
function hst_getCookie(c_name){var i,x,y,ARRcookies=document.cookie.split(";");for(i=0;i');}
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();}
;