(function(b){b.drabaTip={defaults:{event:"hover",attribute:"title",type:"attribute",delay:[150,150],offset:[20,20],contents:function(a){return a},onActive:function(a){return true},onShow:function(){},onHide:function(){},onComplete:function(f,e,a){},container:".drabatip",posBy:"mouse",posByPos:"left,top",followMouse:false,pos:"left,top",ajustPos:true,cache:true,ajaxCache:true}};b.fn.drabaTip=function(a){var r=b.extend({},b.fn.drabaTip.defaults,a);var t=b(this);var z=0;var A=0;var q=b(r.container);var B=null;var v="title";q.css({display:"none",position:"absolute"});if(r.event=="hover"){t.hover(function(c){B=b(this);p(c,1)},function(){w(1)});q.hover(function(c){p(c,2)},function(){w(2)});if(r.posBy=="mouse"&&r.followMouse){t.mousemove(function(c){s(c)})}}else{if(r.event=="click"){t.click(function(c){B=b(this);p(c)});q.find(".close").click(function(){w()})}}var p=function(d,c){if(c==1){B.data(v,B.attr(v));B.attr(v,"");if(!B.__onActive){B.__onActive=r.onActive}if(!B.__onActive(d)){return}y();s(d);z=1}else{if(c==2){A=1}else{y();s(d);z=A=1}}setTimeout(x,r.delay[0])};var x=function(){if(z||A){q.show();if(!B.__onShow){B.__onShow=r.onShow}B.__onShow()}};var s=function(l){var k=q;var h=k.width();var m=k.height();var i=b("body")[0];var n=i.clientWidth;var e=i.clientHeight;var d=b(i).scrollTop();var o=b(i).scrollLeft();var c=r.offset[0];var g=r.offset[1];var j=r.pos.split(",");var f=r.posByPos.split(",");c-=j[0]=="right"?h:0;g-=j[1]=="bottom"?m:0;if(r.posBy=="mouse"){c+=l.pageX;g+=l.pageY}else{if(r.posBy=="client"){c+=o;g+=d;if(f[0]=="right"){c+=n}if(f[1]=="bottom"){g+=e}}else{if(r.posBy=="element"){c+=B.offset().left;g+=B.offset().top;if(f[0]=="right"){c+=B.width()}if(f[1]=="bottom"){g+=B.height()}}}}if(r.ajustPos){c-=j[0]=="left"&&c+h-o-n>0?c+h-o-n:0;g-=j[1]=="top"&&g+m-d-e>0?g+m-d-e:0;c=c<0?0:c;g=g<0?0:g}q.css({left:c+"px",top:g+"px"})};var u=function(){if(!z&&!A){q.hide();if(!B.__onHide){B.__onHide=r.onHide}B.__onHide()}};var w=function(c){if(c==1){B.attr(v,B.data(v));z=0}else{if(c==2){A=0}else{z=A=0}}if(!z&&!A){setTimeout(u,r.delay[1])}};var y=function(){var c;if(r.cache&&B.data("__contents")!=null){c=B.data("__contents")}else{switch(r.type){case"html":c=B.html();break;case"text":c=B.text();break;case"attribute":if(r.attribute=="title"){c=B.data("title")}else{c=B.attr(r.attribute)}break;case"url":break}if(!B.__getContent){B.__getContent=r.contents}c=B.__getContent(c);if(r.cache){B.data("__contents",c)}}if(typeof(c)=="string"){q.html(c)}else{b.each(c,function(d,e){q.find("."+d).html(e)})}}};b.fn.drabaTip.defaults=b.drabaTip.defaults})(jQuery);(function(){var c={interval:1000,idle:5000,limit:5};var d=null;var a="work";var b=function(){var e=$("img[_src]");if(e.length){if(a=="idle"){window.clearInterval(d);d=window.setInterval(b,c.interval);a="work"}e.each(function(g,f){if(g<c.limit){$(f).attr("src",$(f).attr("_src")).removeAttr("_src")}})}else{if(a=="work"){clearInterval(d);d=window.setInterval(b,c.idle);a="idle"}}};$.lazyload=function(e){c=$.extend({},c,e);d=window.setInterval(b,c.interval);b()}})(jQuery);(function(a){a.checkbox={defaults:{all:null,anti:null,checked:false,valueto:null,seperater:","}};a.fn.checkbox=function(k){var b=a.extend({},a.fn.checkbox.defaults,k);var c=a(this);var d=a(b.all);var f=a(b.anti);var h=a(b.valueto);c.click(function(){j()});d.click(function(){i(a(this).is(":checked"))});f.click(function(){g()});var j=function(){d.attr("checked",!c.not(":checked").length>0);e()};var i=function(l){c.attr("checked",l);j()};var g=function(){c.each(function(){a(this).attr("checked",!a(this).is(":checked"))});j()};var e=function(){var n=c.filter(":checked");var l=[];for(var m=0;m<n.length;m++){l[m]=a(n[m]).val()}h.val(l.join(b.seperater))};if(b.checked==true){i(true)}else{j()}};a.fn.checkbox.defaults=a.checkbox.defaults})(jQuery);
