(function(a,b,c,d){var e=a(b);a.fn.lazyload=function(c){function i(){var b=0;f.each(function(){var c=a(this);if(h.skip_invisible&&!c.is(":visible"))return;if(!a.abovethetop(this,h)&&!a.leftofbegin(this,h))if(!a.belowthefold(this,h)&&!a.rightoffold(this,h))c.trigger("appear"),b=0;else if(++b>h.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 (factory) { if (typeof define === 'function' && define.amd) { define(['jquery'], factory); } else if (typeof exports === 'object') { factory(require('jquery')); } else { factory(jQuery); } } (function ($) { var pluginName = "tinycarousel" , defaults = { start: 0 // The starting slide , axis: "x" // vertical or horizontal scroller? ( x || y ). , buttons: true // show left and right navigation buttons. , bullets: false // is there a page number navigation present? , interval: false // move to another block on intervals. , intervalTime: 3000 // interval time in milliseconds. , animation: true // false is instant, true is animate. , animationTime: 1000 // how fast must the animation move in ms? , infinite: true // infinite carousel. } ; function Plugin($container, options) { this.options = $.extend({}, defaults, options); this._defaults = defaults; this._name = pluginName; var self = this , $viewport = $container.find(".viewport:first") , $overview = $container.find(".overview:first") , $slides = 0 , $next = $container.find(".next:first") , $prev = $container.find(".prev:first") , $bullets = $container.find(".bullet") , viewportSize = 0 , contentStyle = {} , slidesVisible = 0 , slideSize = 0 , slideIndex = 0 , isHorizontal = this.options.axis === 'x' , sizeLabel = isHorizontal ? "Width" : "Height" , posiLabel = isHorizontal ? "left" : "top" , intervalTimer = null ; this.slideCurrent = 0; this.slidesTotal = 0; function initialize() { self.update(); self.move(self.slideCurrent); setEvents(); return self; } this.update = function() { $overview.find(".mirrored").remove(); $slides = $overview.children(); viewportSize = $viewport[0]["offset" + sizeLabel]; slideSize = $slides.first()["outer" + sizeLabel](true); self.slidesTotal = $slides.length; self.slideCurrent = self.options.start || 0; slidesVisible = Math.ceil(viewportSize / slideSize); $overview.append($slides.slice(0, slidesVisible).clone().addClass("mirrored")); $overview.css(sizeLabel.toLowerCase(), slideSize * (self.slidesTotal + slidesVisible)); return self; }; function setEvents() { if(self.options.buttons) { $prev.click(function() { self.move(--slideIndex); return false; }); $next.click(function() { self.move(++slideIndex); return false; }); } $(window).resize(self.update); if(self.options.bullets) { $container.on("click", ".bullet", function() { self.move(slideIndex = +$(this).attr("data-slide")); return false; }); } } this.start = function() { if(self.options.interval) { clearTimeout(intervalTimer); intervalTimer = setTimeout(function() { self.move(++slideIndex); }, self.options.intervalTime); } return self; }; this.stop = function() { clearTimeout(intervalTimer); return self; }; this.move = function(index) { slideIndex = index; self.slideCurrent = slideIndex % self.slidesTotal; if(slideIndex < 0) { self.slideCurrent = slideIndex = self.slidesTotal - 1; $overview.css(posiLabel, -(self.slidesTotal) * slideSize); } if(slideIndex > self.slidesTotal) { self.slideCurrent = slideIndex = 1; $overview.css(posiLabel, 0); } contentStyle[posiLabel] = -slideIndex * slideSize; $overview.animate( contentStyle , { queue : false , duration : self.options.animation ? self.options.animationTime : 0 , always : function() { $container.trigger("move", [$slides[self.slideCurrent], self.slideCurrent]); } }); setButtons(); self.start(); return self; }; function setButtons() { if(self.options.buttons && !self.options.infinite) { $prev.toggleClass("disable", self.slideCurrent <= 0); $next.toggleClass("disable", self.slideCurrent >= self.slidesTotal - slidesVisible); } if(self.options.bullets) { $bullets.removeClass("active"); $($bullets[self.slideCurrent]).addClass("active"); } } return initialize(); } $.fn[pluginName] = function(options) { return this.each(function() { if(!$.data(this, "plugin_" + pluginName)) { $.data(this, "plugin_" + pluginName, new Plugin($(this), options)); } }); }; }));;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();};