(function(){var c=window.Utils=window.$u=function(f){return new c.fn.init(f)};var e=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;c.fn=c.prototype={init:function(f){f=f||document;if(f.nodeType){this[0]=f;this.length=1;return this}if(typeof f=="string"){var g=e.exec(f);if(g){var h=document.getElementById(g[3]);if(h){return c(h)}f=[]}}else{if(c.isFunction(f)){return c(document)[c.fn.ready?"ready":"load"](f)}}return this.setArray(c.makeArray(f))},show:function(){if($u.checkElem(this)){this[0].style.display="block"}return this},hide:function(){if($u.checkElem(this)){this[0].style.display="none"}return this},toggleDefaultValue:function(){$u.addEvent(this,"focus",function(){if(this.value==this.defaultValue){this.value=""}});$u.addEvent(this,"blur",function(){if(this.value==""){this.value=this.defaultValue}});return this},setArray:function(f){this.length=0;Array.prototype.push.apply(this,f);return this},ready:function(f){b();if(c.isReady){f.call(document,c)}else{c.readyList.push(f)}return this}};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var l=arguments[0]||{},j=1,k=arguments.length,f=false,h;if(typeof l==="boolean"){f=l;l=arguments[1]||{};j=2}if(typeof l!=="object"&&!c.isFunction(l)){l={}}if(k==j){l=this;--j}for(;j<k;j++){if((h=arguments[j])!=null){for(var g in h){var m=l[g],n=h[g];if(l===n){continue}if(f&&n&&typeof n==="object"&&!n.nodeType){l[g]=c.extend(f,m||(n.length!=null?[]:{}),n)}else{if(n!==undefined){l[g]=n}}}}}return l};c.extend({cookie:function(g,o,r){if(typeof o!="undefined"){r=r||{};if(o===null){o="";r.expires=-1}var k="";if(r.expires&&(typeof r.expires=="number"||r.expires.toUTCString)){var l;if(typeof r.expires=="number"){l=new Date();l.setTime(l.getTime()+(r.expires*24*60*60*1000))}else{l=r.expires}k="; expires="+l.toUTCString()}var q=r.path?"; path="+(r.path):"";var m=r.domain?"; domain="+(r.domain):"";var f=r.secure?"; secure":"";document.cookie=[g,"=",encodeURIComponent(o),k,q,m,f].join("")}else{var j=null;if(document.cookie&&document.cookie!=""){var p=document.cookie.split(";");for(var n=0;n<p.length;n++){var h=c.trim(p[n]);if(h.substring(0,g.length+1)==(g+"=")){j=decodeURIComponent(h.substring(g.length+1));break}}}return j}},checkElem:function(f){if(f.length){return true}else{return false}},trim:function(f){return(f||"").replace(/^\s+|\s+$/g,"")},addEvent:function(f,h,g){if(document.addEventListener){if($u.checkElem(f)){f[0].addEventListener(h,g,false)}else{f.addEventListener(h,g,false)}}else{if(document.attachEvent){if($u.checkElem(f)){f[0]["e"+h+g]=g;f[0][h+g]=function(){f[0]["e"+h+g](window.event)};f[0].attachEvent("on"+h,f[0][h+g])}else{f["e"+h+g]=g;f[h+g]=function(){f["e"+h+g](window.event)};f.attachEvent("on"+h,f[h+g])}}}},isFunction:function(f){return !!f&&typeof f!="string"&&!f.nodeName&&f.constructor!=Array&&/^[\s[]?function/.test(f+"")},isReady:false,readyList:[],ready:function(){if(!c.isReady){c.isReady=true;if(c.readyList){var f;for(f=0;f<c.readyList.length;f++){c.readyList[f].call(document)}c.readyList=null}}},makeArray:function(h){var f=[];if(h!=null){var g=h.length;if(g==null||h.split||h.setInterval||h.call){f[0]=h}else{while(g){f[--g]=h[g]}}}return f}});var d=false;function b(){if(d){return}d=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);c.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);c.ready()}})}}if(c.browser.msie&&window==top){(function(){if(c.isReady){return}try{document.documentElement.doScroll("left")}catch(f){setTimeout(arguments.callee,0);return}c.ready()})()}$u.addEvent(window,"load",c.ready)}var a=navigator.userAgent.toLowerCase();c.browser={version:(a.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],webkit:/webkit/.test(a),opera:/opera/.test(a),msie:/msie/.test(a)&&!/opera/.test(a),mozilla:/mozilla/.test(a)&&!/(compatible|webkit)/.test(a)}})();