/* jQuery Cookie Plugin:Copyright (c) 2006 Klaus Hartl (stilbuero.de): Dual licensed under MIT/GPL: www.opensource.org/licenses/mit-license.php,www.gnu.org/licenses/gpl.html */
jQuery.cookie=function(_1,_2,_3){if(typeof _2!="undefined"){_3=_3||{};if(_2===null){_2="";_3.expires=-1;}var _4="";if(_3.expires&&(typeof _3.expires=="number"||_3.expires.toUTCString)){var _5;if(typeof _3.expires=="number"){_5=new Date();_5.setTime(_5.getTime()+(_3.expires*24*60*60*1000));}else{_5=_3.expires;}_4="; expires="+_5.toUTCString();}var _6=_3.path?"; path="+(_3.path):"";var _7=_3.domain?"; domain="+(_3.domain):"";var _8=_3.secure?"; secure":"";document.cookie=[_1,"=",encodeURIComponent(_2),_4,_6,_7,_8].join("");}else{var _9=null;if(document.cookie&&document.cookie!=""){var _a=document.cookie.split(";");for(var i=0;i<_a.length;i++){var _c=jQuery.trim(_a[i]);if(_c.substring(0,_1.length+1)==(_1+"=")){_9=decodeURIComponent(_c.substring(_1.length+1));break;}}}return _9;}};jQuery.fn.extend({everyTime:function(_1,_2,fn,_4,_5){return this.each(function(){jQuery.timer.add(this,_1,_2,fn,_4,_5);});},oneTime:function(_6,_7,fn){return this.each(function(){jQuery.timer.add(this,_6,_7,fn,1);});},stopTime:function(_9,fn){return this.each(function(){jQuery.timer.remove(this,_9,fn);});}});jQuery.extend({timer:{guid:1,global:{},regex:/^([0-9]+)\s*(.*s)?$/,powers:{"ms":1,"cs":10,"ds":100,"s":1000,"das":10000,"hs":100000,"ks":1000000},timeParse:function(_b){if(_b==undefined||_b==null){return null;}var _c=this.regex.exec(jQuery.trim(_b.toString()));if(_c[2]){var _d=parseInt(_c[1],10);var _e=this.powers[_c[2]]||1;return _d*_e;}else{return _b;}},add:function(_f,_10,_11,fn,_13,_14){var _15=0;if(jQuery.isFunction(_11)){if(!_13){_13=fn;}fn=_11;_11=_10;}_10=jQuery.timer.timeParse(_10);if(typeof _10!="number"||isNaN(_10)||_10<=0){return;}if(_13&&_13.constructor!=Number){_14=!!_13;_13=0;}_13=_13||0;_14=_14||false;if(!_f.$timers){_f.$timers={};}if(!_f.$timers[_11]){_f.$timers[_11]={};}fn.$timerID=fn.$timerID||this.guid++;var _16=function(){if(_14&&this.inProgress){return;}this.inProgress=true;if((++_15>_13&&_13!==0)||fn.call(_f,_15)===false){jQuery.timer.remove(_f,_11,fn);}this.inProgress=false;};_16.$timerID=fn.$timerID;if(!_f.$timers[_11][fn.$timerID]){_f.$timers[_11][fn.$timerID]=window.setInterval(_16,_10);}if(!this.global[_11]){this.global[_11]=[];}this.global[_11].push(_f);},remove:function(_17,_18,fn){var _1a=_17.$timers,ret;if(_1a){if(!_18){for(_18 in _1a){this.remove(_17,_18,fn);}}else{if(_1a[_18]){if(fn){if(fn.$timerID){window.clearInterval(_1a[_18][fn.$timerID]);delete _1a[_18][fn.$timerID];}}else{for(var fn in _1a[_18]){window.clearInterval(_1a[_18][fn]);delete _1a[_18][fn];}}for(ret in _1a[_18]){break;}if(!ret){ret=null;delete _1a[_18];}}}for(ret in _1a){break;}if(!ret){_17.$timers=null;}}}}});if(jQuery.browser.msie){jQuery(window).one("unload",function(){var _1c=jQuery.timer.global;for(var _1d in _1c){var els=_1c[_1d],i=els.length;while(--i){jQuery.timer.remove(els[i],_1d);}}});}
