var Dom={};Dom.get=function(a){return(typeof a=="object")?a:document.getElementById(a)};Function.prototype.method=function(a,b){this.prototype[a]=b;return this};if(typeof Alpha=="undefined"){var Alpha={}}(function(){Alpha.register=function(a){function b(f){this.elements=[];for(var e=0,c=f.length;e<c;++e){var d=f[e];if(typeof d=="string"){d=document.getElementById(d)}this.elements.push(d)}}b.method(a.each,function(e){for(var d=0,c=this.elements.length;d<c;++d){e.call(this,this.elements[d])}return this}).method(a.on,function(d,c){var e=function(g){var h=d.split(",");for(var f=0;f<h.length;f++){var j=h[f];if(window.addEventListener){g.addEventListener(j,c,false)}else{if(window.attachEvent){g.attachEvent("on"+j,c)}}}};this.each(function(f){e(f)});return this}).method(a.hide,function(){this.each(function(c){if(c===null){return}c.style.display="none"});return this}).method(a.show,function(){this.each(function(c){if(c===null){return}c.style.display="block"});return this}).method(a.toggle,function(){this.each(function(c){if(c.style.display=="none"){c.style.display="block"}else{c.style.display="none"}});return this}).method(a.create,function(d,e,c){var d=document.createElement(d);d.setAttribute("id",e);if(c){c.call(this,d)}return this}).method(a.append,function(c){this.each(function(d){d.appendChild(c)});return this}).method(a.setStyle,function(e,c){var d=function(f){if(f===null){return}f.style[e]=c};this.each(function(f){d(f)});return this}).method(a.setCss,function(c){for(var d in c){if(!c.hasOwnProperty(d)){continue}this.setStyle(d,c[d])}return this});window[a.namespace]=function(){return new b(arguments)};Alpha.extendChain=function(c,d){b.method(c,d)}}})();Alpha.register({namespace:"$",each:"each",on:"on",hide:"hide",show:"show",toggle:"toggle",create:"create",append:"append",setStyle:"setStyle",setCss:"setCss"});var Ylmf={screenWidth:window.screen.width,Browser:{ie:/msie/.test(window.navigator.userAgent.toLowerCase()),ie6:/msie 6.0/.test(window.navigator.userAgent.toLowerCase()),moz:/gecko/.test(window.navigator.userAgent.toLowerCase()),opera:/opera/.test(window.navigator.userAgent.toLowerCase()),safari:/safari/.test(window.navigator.userAgent.toLowerCase())},Cookie:{set:function(b,d,a,e,c){if(typeof a=="undefined"){a=new Date(new Date().getTime()+1000*3600*24*30)}document.cookie=b+"="+escape(d)+((a)?"; expires="+a.toGMTString():"")+((e)?"; path="+e:"; path=/")+((c)?";domain="+c:"")},get:function(b){var a=document.cookie.match(new RegExp("(^| )"+b+"=([^;]*)(;|$)"));if(a!=null){return unescape(a[2])}return null},clear:function(a,c,b){if(this.get(a)){document.cookie=a+"="+((c)?"; path="+c:"; path=/")+((b)?"; domain="+b:"")+";expires=Fri, 02-Jan-1970 00:00:00 GMT"}}},getStyle:function(b,a){if(document.defaultView){return document.defaultView.getComputedStyle(b,null).getPropertyValue(a)}else{a=a.replace(/\-([a-z])([a-z]?)/ig,function(e,d,c){return d.toUpperCase()+c.toLowerCase()});return b.currentStyle[a]}},Ajax:function(c,j){var h;if(typeof XMLHttpRequest!=="undefined"){h=new XMLHttpRequest()}else{var b=["Microsoft.XmlHttp","MSXML2.XmlHttp","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.5.0"];for(var d=0,a=b.length;d<a;d++){try{h=new ActiveXObject(b[d]);break}catch(f){}}}h.onreadystatechange=g;function g(){if(h.readyState<4){return}if(h.status!==200){return}if(h.readyState===4){j(h)}}h.open("GET",c,true);h.send("")},JsLoader:function(d,a,e,c){var b=document.createElement("script");if(c){b.setAttribute("charset",c)}else{b.setAttribute("charset","utf-8")}b.setAttribute("type","text/javascript");b.setAttribute("src",d);b.id=a;document.getElementsByTagName("head")[0].appendChild(b);if(e){if(Ylmf.Browser.ie){b.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyStaate=="complete"){e()}}}else{if(Ylmf.Browser.moz){b.onload=function(){e()}}else{e()}}}},addFav:function(a){if(document.all){window.external.AddFavorite(location.href,a)}else{if(window.sidebar){window.sidebar.addPanel(a,location.href,"")}else{if(window.opera&&window.print){return true}}}},setHomepage:function(a){if(Ylmf.Browser.moz){alert("\u8bbe\u5b9a\u5931\u8d25\uff01\u8be5\u64cd\u4f5c\u4e0d\u652f\u6301FireFox\u6d4f\u89c8\u5668\uff01")}else{a.style.behavior="url(#default#homepage)";a.setHomePage(location.href)}}};
