(function(){var b=function(a,c){return new b.selector(a,c)};b.selector=function(a,b){var d;d="string"==typeof a?Sizzle(a,b):a&&a.Egg?a.get():a;this._isXML=Sizzle.isXML(b);this.get=function(a){var b=void 0!==a;return d?isNaN(d.length)?(a=[],a.push(d),b?d:a):b?d[a]:d:b?void 0:[]};this.find=function(a){d=Sizzle(a,this.get(0));return this};this.filter=function(a){d=Sizzle.matches(a,this.get());return this};this.Egg="1.0";return this};b.browser=new function(){var a=navigator.userAgent.toLowerCase();this.chrome=
a.match(/chrome/);this.safari=!a.match(/chrome/)&&a.match(/safari/);this.webkit=a.match(/webkit/);this.opera=window.opera;this.ie5=a.match(/msie 5/);this.ie6=a.match(/msie 6/);this.ie7=a.match(/msie 7/);this.ie8=a.match(/msie 8/);this.ie9=a.match(/msie 9/);this.ie11=a.match(/trident\/.*rv:([0-9]{1,}[.0-9]{0,})/);this.ie=a.match(/msie/);this.kkman=a.match(/kkman/);this.firefox2=a.match(/firefox\/2/);this.firefox3=a.match(/firefox\/3/);this.firefox=a.match(/firefox/)};b.each=function(a,b){if(a)if(a.Egg&&
(a=a.get()),void 0===a.length)b.call(a,a);else for(var d=0,e;e=a[d];d++)b.call(e,e)};b.method=b.selector.prototype;b.method.size=function(){return this.get().length};b.method.each=function(a){b.each(this,a);return this};b.method.css=function(a,c){var d=function(a){return"float"==a?"cssFloat":a.replace(/-([a-z])/,function(a,b){return b.toUpperCase()})};if(void 0!==c)b.each(this,function(b){b.style[d(a)]=c});else{if("string"==typeof a)return this.get(0)&&this.get(0).style[d(a)]||void 0;b.each(this,
function(b){for(var c in a)b.style[d(c)]=a[c]})}return this};b.method.opacity=function(a){a=parseFloat(a);0>a&&(a=0);1<a&&(a=1);b.each(this,function(c){c.style.opacity=a;b.browser.ie&&(c.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+100*a+")")});this.attr("eggOpacity",a);return this};b._displayMap={li:"list-item",table:"table",tr:"table-row",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",col:"table-column",colgroup:"table-column-group",th:"table-cell",
td:"table-cell",caption:"table-caption",button:"inline-block",textarea:"inline-block",input:"inline-block",select:"inline-block"};b._blockTags="html address blockquote body dd div dl dt embed fieldset form frame frameset h1 h2 h3 h4 h5 h6 noframes object ol p ul center dir hr menu pre".split(" ");b.method.show=function(){b.each(this,function(a){if(a.eggDisplay&&"none"!=a.eggDisplay)a.style.display=a.eggDisplay;else{var c=a.tagName.toLowerCase();if(c.inArray(b._blockTags))a.style.display="block";else{var d=
"inline";b._displayMap[c]&&(d=b.browser.ie6||b.browser.ie7?"block":b._displayMap[c]);a.style.display=d}}a.eggDisplay&&a.removeAttribute("eggDisplay")});return this};b.method.hide=function(){b.each(this,function(a){a.eggDisplay=a.style.display;a.style.display="none"});return this};b.method.pos=function(){for(var a=this.get(0),b=a.offsetLeft,d=a.offsetTop;a.offsetParent;)a=a.offsetParent,b+=a.offsetLeft,d+=a.offsetTop;return{x:b,y:d}};b.method.addEvent=function(a,c){b.event.add(this.get(),a,c);return this};
b.method.removeEvent=function(a,c){b.event.remove(this.get(),a,c);return this};b.each("abort beforeunload blur change click contextmenu dblclick error focus keydown keypress keyup load mousedown mousemove mouseout mouseover mouseup reset resize scroll select submit unload".split(" "),function(a){b.method[a]=function(c){c?b.event.add(this.get(),a,c):b.event.trigger(this.get(),a);return this}});b.method.hover=function(a,c){var d=this.get();b.event.add(d,"mouseover",a);b.event.add(d,"mouseout",c);return this};
b.method.html=function(a){if(void 0===a)return this.get(0).innerHTML;"function"==typeof a&&(a=a.call(this));b.each(this.get(),function(b){b.innerHTML=a});return this};b.method.outterHtml=function(){if(0===this.size()||!document.body)return"";var a=document.createElement("div");this.appendTo(a);b(a).attr("id","eggTemp").css({visibility:"hidden",left:"-10000px",top:"-10000px"}).appendTo(document.body);var c=b("#eggTemp").html();document.body.removeChild(a);return c};b.method.val=function(a){var c;if(this._isXML){if(void 0===
a)return c=[],b.each(this.get(),function(a){3!=a.nodeType&&4!=a.nodeType&&(a=a.firstChild);3==a.nodeType||4==a.nodeType?c.push(a.nodeValue):c.push(void 0)}),0===c.length?void 0:1==c.length?c[0]:c;b.each(this.get(),function(b){3!=b.nodeType&&4!=b.nodeType&&(b=b.firstChild);if(3==b.nodeType||4==b.nodeType)"function"==typeof a&&(a=a.call(b)),b.nodeValue=a});return this}if(void 0===a)return c=[],b.each(this.get(),function(a){c.push(a.value)}),0===c.length?void 0:1==c.length?c[0]:c;"function"==typeof a&&
(a=a.call(this));b.each(this.get(),function(b){b.value=a});return this};b.method.attr=function(a,c){if(void 0!==c)b.each(this.get(),function(b){b[a]=c});else{if("string"==typeof a){if(this.get(0))return this.get(0)[a];return}b.each(this.get(),function(b){for(var c in a)b[c]=a[c]})}return this};b.method.removeAttr=function(a){"string"==typeof a&&(a=[a]);b.each(this.get(),function(b){for(var d=0,e=a.length;d<e;d++)b.removeAttribute(a[d])});return this};b.method.appendTo=function(a){a.Egg&&(a=a.get(0));
b.each(this.get(),function(b){try{a.appendChild(b)}catch(d){}});return this};b.method.removeFrom=function(a){a.Egg&&(a=a.get(0));b.each(this.get(),function(b){try{a.removeChild(b)}catch(d){}});return this};b.tooltip={counter:0,_getCursorPos:function(a,c){var d=b.body(),e=b.browser.webkit?document.body.scrollTop:d.scrollTop,f=b.browser.webkit?document.body.scrollLeft:d.scrollLeft,k=a.clientY+e+10,g=a.clientX+f+10,m=c.attr("offsetWidth"),h=c.attr("offsetHeight");g+m>d.clientWidth+f&&(g-=m+20);k+h>d.clientHeight+
e&&(k-=h+20);return{x:g,y:k}}};b.method.tooltip=function(a,c){(typeof a).inArray(["string","function"])||(c=a,a=void 0);c=c||{};var d,e;switch(c.trigger){case "click":d=this.mousedown;e=this.mouseup;break;case "input":d=this.focus,e=this.blur}d=d||this.mouseover;e=e||this.mouseout;var f;d.call(this,function(d){d=window.event||d;var e=b(d.srcElement||d.target),m=b(document.createElement("div")),h="egg_tip"+ ++b.tooltip.counter;e.attr("egg_my_tooltip_id",h);var l="cursor",q="cursor";if(c.position){c.position=
c.position.toLowerCase();var u=c.position.split(" ");2==u.length&&(l=u[1],q=u[0]);l.inArray("cursor top center bottom before after".split(" "))||(l=parseInt(l,10),isNaN(l)&&(l="cursor"));q.inArray("cursor left center right before after".split(" "))||(q=parseInt(q,10),isNaN(q)&&(q="cursor"))}if("cursor"==q||"cursor"==l)f=function(a){a=window.event||a;a=b.tooltip._getCursorPos(a,m);"cursor"==q&&m.css("left",a.x+"px");"cursor"==l&&m.css("top",a.y+"px")},e.mousemove(f);m.attr("id",h);c.className||c.css?
(c.className&&m.attr("className",c.className),c.css&&m.css(c.css)):m.css({border:"solid 1px #b46600","background-color":"#fffad2",color:"#464646"});h=a;"function"==typeof h&&(h=h.call(e));!h&&(h=e.attr("title"))&&(e.attr("originalTitle",e.attr("title")),e.attr("title",""));h=h||"";m.css({"z-index":30,position:"absolute",visibility:"hidden"}).html(h).appendTo(document.body);h=e.pos();d=b.tooltip._getCursorPos(d,m);var t,r;if("string"==typeof l)switch(l){case "top":t=h.y;break;case "center":t=parseInt(h.y+
e.attr("offsetHeight")/2-m.attr("offsetHeight")/2,10);break;case "bottom":t=h.y+e.attr("offsetHeight")-m.attr("offsetHeight");break;case "before":t=h.y-m.attr("offsetHeight");break;case "after":t=h.y+e.attr("offsetHeight");break;case "cursor":t=d.y}else t=l;if("string"==typeof q)switch(q){case "left":r=h.x;break;case "center":r=parseInt(h.x+e.attr("offsetWidth")/2-m.attr("offsetWidth")/2,10);break;case "right":r=h.x+e.attr("offsetWidth")-m.attr("offsetWidth");break;case "before":r=h.x-m.attr("offsetWidth");
break;case "after":r=h.x+e.attr("offsetWidth");break;case "cursor":r=d.x}else r=q;c.offset&&"cursor"!=q&&(r+=parseInt(c.offset[0],10));c.offset&&"cursor"!=l&&(t+=parseInt(c.offset[1],10));d=function(){m.css({left:r+"px",top:t+"px",visibility:"visible"});c.onShow&&c.onShow.call(e,m)};c.delay&&0<parseInt(c.delay,10)?setTimeout(d,c.delay):d()});e.call(this,function(a){a=window.event||a;a=b(a.srcElement||a.target);b("#"+a.attr("egg_my_tooltip_id")).removeFrom(document.body);b.tooltip.counter--;a.attr("title",
a.attr("originalTitle"));a.removeEvent("mousemove",f);c.onHide&&c.onHide.call(a)});return this};b.cookie={get:function(a){a="; "+a+"=";var b="; "+document.cookie,d=b.indexOf(a,0);if(-1==d)return"";var e=b.indexOf(";",d+1);-1==e&&(e=b.length);return unescape(b.substring(d+a.length,e))},set:function(a,b,d,e,f,k){if(void 0===a||void 0===b)return!1;a=a+"="+escape(b);d&&(a+=";domain="+d);"number"==typeof f?(d=new Date,d.setDate(d.getDate()+f),a+=";expires="+d.toGMTString()):f&&(a+=";expires="+f);e&&(a+=
";path="+e);k&&(a+=";secure");document.cookie=a;return!0},del:function(a,b,d){if(void 0===a)return!1;a+="=";void 0!==b&&(a+=";domain="+b);a+=";expires=Thu, 01-Jan-1970 00:00:01 GMT";void 0!==d&&(a+=";path="+d);document.cookie=a;return!0}};b.event={add:function(a,c,d){b.each(a,function(a){try{a.attachEvent?a.attachEvent("on"+c,d):b.browser.opera?a["on"+c]=d:a.addEventListener(c,d,!1)}catch(f){}})},remove:function(a,c,d){b.each(a,function(a){try{a.detachEvent?a.detachEvent("on"+c,d):a.removeEventListener(c,
d,!1)}catch(b){}})},trigger:function(a,c,d){d=d||{};b.each(a,function(){try{if(this.fireEvent)this.fireEvent("on"+c);else{var a=null;switch(c){case "abort":case "change":case "error":case "load":case "reset":case "resize":case "scroll":case "select":case "submit":case "unload":a=document.createEvent("Event");a.initEvent(c,!0,!0);break;case "keydown":case "keypress":case "keyup":a=document.createEvent("KeyboardEvent");a.initKeyEvent(c,!0,!0,window,d.ctrlKey||!1,d.altKey||!1,d.shiftKey||!1,d.metaKey||
!1,d.keyCode||0,d.charCode||0);break;case "click":case "dblclick":case "mousedown":case "mouseup":case "mouseover":case "mousemove":case "mouseout":a=document.createEvent("MouseEvent");a.initMouseEvent(c,!0,!0,window,d.detail||0,d.screenX||0,d.screenY||0,d.clientX||0,d.clientY||0,d.ctrlKey||!1,d.altKey||!1,d.shiftKey||!1,d.metaKey||!1,d.button||0,d.relatedTarget||null);break;case "focus":case "blur":a=document.createEvent("UIEvent");a.initUIEvent(c,!0,!0,window,d.detail||0);break;default:return}this.dispatchEvent(a)}}catch(b){}})},
preventDefault:function(a){a.preventDefault&&a.preventDefault();a.returnValue=!1},stop:function(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=!0}};b.body=function(a){a=a||document;return a.compatMode&&"CSS1Compat"==a.compatMode?a.documentElement:a.body};b.lightbox=function(a,c){c=c||{};if(!c._ajaxCompleted&&a.match&&a.match(/^\/(?:ajax|editor)\/.+$/))b.ajax({url:a,method:c.ajaxMethod||"GET",param:c.ajaxParam||"",success:function(a){c._ajaxCompleted=!0;b.lightbox(a,c)}});else{var d=b.body(),
e=b(document.createElement("div")),f=d.clientWidth>d.scrollWidth?d.clientWidth:d.scrollWidth,d=d.clientHeight>d.scrollHeight?d.clientHeight:d.scrollHeight;e.attr("id","egg_mask").opacity(.7).css({position:"absolute",top:"0px",left:"0px",zIndex:95,backgroundColor:c.maskBgColor||"black",width:f+"px",height:d+"px"});var k;k="none"==c.closeTrigger?function(a){}:"function"==typeof c.closeTrigger?c.closeTrigger:b.lightbox.close;e.click(k);var g=b(document.createElement("div")),m=c.absolute?"absolute":"fixed";
b.browser.ie&&(m="absolute",c.absolute||b.browser.ie6||!document.compatMode||"CSS1Compat"!=document.compatMode||(m="fixed"));g.attr("id","egg_box").css({position:m,textAlign:"center",zIndex:96,visibility:"hidden"});c.hide&&g.attr("egg-data",c.hide);c.className&&g.attr("className",c.className);c.css&&g.css(c.css);"object"==typeof a?(g.html(""),b(a).appendTo(g)):(a.match&&a.match(/^[#\.][A-Za-z][A-za-z0-9-_:\.]*$/)&&(a=b(a).html()),g.html(a));g.attr({originalScrollWidth:f,originalScrollHeight:d});b(c.hide||
"select, object, embed").css("visibility","hidden");e.appendTo(document.body);g.appendTo(document.body);this.refresh=b.lightbox.refresh;this.close=k;this.refresh();g.css("visibility","visible");return this}};b.lightbox.open=b.lightbox;b.lightbox.close=function(){var a=b("#egg_box").attr("egg-data")||"select, object, embed";b(a).css("visibility","visible");b("#egg_mask").removeFrom(document.body);b("#egg_box").removeFrom(document.body)};b.lightbox.refresh=function(a,c){var d=b("#egg_box"),e=b.body();
if(0!==d.size()){if(void 0!==a){var f=c?b(c):d;"object"==typeof a?(f.html(""),b(a).appendTo(f)):(a.match&&a.match(/^[#\.][A-Za-z][A-za-z0-9-_:\.]*$/)&&(a=b(a).html()),f.html(a))}var k,g;k=d.get(0).offsetWidth;g=d.get(0).offsetHeight;f=Math.floor(e.clientHeight/2-g/2);"absolute"==d.css("position")&&(f+=b.browser.webkit?document.body.scrollTop:e.scrollTop);f+g>d.attr("originalScrollHeight")&&(f=d.attr("originalScrollHeight")-g);0>f&&(f=0);k=Math.floor(e.clientWidth/2-k/2);0>k&&(k=0);d.css({left:k+"px",
top:f+"px"});d=e.clientWidth>e.scrollWidth?e.clientWidth:e.scrollWidth;e=e.clientHeight>e.scrollHeight?e.clientHeight:e.scrollHeight;b("#egg_mask").css({width:d+"px",height:e+"px"})}};b.bahabox=function(a,c,d,e){e=e||{};if(!e._ajaxCompleted&&a.match&&a.match(/^\/(?:ajax|editor)\/.+$/))b.ajax({url:a,method:e.ajaxMethod||"GET",param:e.ajaxParam||"",success:function(a){e._ajaxCompleted=!0;b.bahabox(a,c,d,e)}});else{var f="open_win"==e.className,k="";c&&(k+=f?'<h1 class="open_wintitle"><img src="http://i2.bahamut.com.tw/h1_img.gif">'+
c+"</h1>":'<p class="BH-poptitle">'+c+"</p>");"object"==typeof a?a=b(a).outterHtml():a.match&&a.match(/^[#\.][A-Za-z][A-za-z0-9-_:\.]*$/)&&(a=b(a).html());k+=f?"<div>"+a+"</div>":'<div class="BH-popintxt">'+a+"</div>";a=[];var g,m;for(m in d)a.push(document.createElement("button")),g=a[a.length-1],g.onclick=d[m]||function(){},g.innerHTML=m;e.closeButton=void 0===e.closeButton?!0:e.closeButton;e.closeButton&&(a.push(document.createElement("button")),g=a[a.length-1],g.onclick=function(){b.lightbox.close()},
g.innerHTML="\u95dc\u9589");f=f?"open_winbtn":"BH-popbtns";if(d||e.closeButton)k+='<p class="'+f+'"></p>';e.className=e.className||"BH-popup";k=b.lightbox(k,e);k.refresh=b.bahabox.refresh;b("."+f).size()&&b(a).appendTo(b("."+f));return k}};b.bahabox.refresh=function(a){b.lightbox.refresh(a,".BH-popintxt")};b.bahabox.option=function(a,c){if("string"==typeof a){var d={};d[a]=c;a=d}for(var e in a)switch(e){case "css":b("#egg_box").css(a[e]);break;case "width":b("#egg_box").css("width",a[e]);break;case "title":b(".BH-poptitle").html(a[e]);
break;case "buttons":if(0===b(".BH-popbtns").size())break;var d=a[e],f,k;for(k in d)f=b(".BH-popbtns button:contains("+k+")"),f.size()?f.get(0).onclick=d[k]:(f=document.createElement("button"),f.onclick=d[k],f.innerHTML=k,b(f).appendTo(b(".BH-popbtns")))}};b.mutbox=function(a,c,d,e){e=e||{};e.className="open_win";b.bahabox(a,c,d,e)};b.mutbox.refresh=function(a){b.lightbox.refresh(a,".open_win > div:eq(0)")};b.mutbox.option=function(a,c){b.bahabox.option(a,c)};b.msgbox=function(a,c){if(!(0<b("#egg_msgbox").size())){c=
c||b.msgbox.configure||{};var d=b.body(),e,f;c.modeless||(f=b(document.createElement("div")),f.attr("id","egg_msgbox_mask").opacity(0).css({position:"absolute",top:"0px",left:"0px",zIndex:97,"background-color":"black",width:d.scrollWidth+"px",height:d.scrollHeight+"px"}).appendTo(document.body));var k=c.width||350,g=c.height||22,m=c.absolute?"absolute":"fixed";e=b(document.createElement("div"));b.browser.ie&&(m="absolute",c.absolute||b.browser.ie6||!document.compatMode||"CSS1Compat"!=document.compatMode||
(m="fixed"));e.css({"background-color":"white",position:m,zIndex:98,border:"solid 1px #CCCCCC","border-top":"none",width:k+"px",visibility:"hidden"}).html(b.msgbox._getBasicLayout).attr({id:"egg_msgbox",originalScrollWidth:d.scrollWidth,originalScrollHeight:d.scrollHeight}).appendTo(document.body);var d=b("#egg_msgbox_content"),k=b("#egg_msgbox_title"),h=b("#egg_msgbox_title_text"),l=b("#egg_msgbox_closeButton"),m=b("#egg_msgbox_buttons");d.html(a);h.html(c.title||"\u8a0a\u606f");k.mousedown(b.msgbox._drag);
k.css({width:"100%",height:"30px","line-height":"30px","background-image":"url(http://i2.bahamut.com.tw/h1_bg.gif)","vertical-align":"middle",color:"#117e96","font-weight":"bold","font-family":"Arial","font-size":"12pt",cursor:"move"});l.css({cursor:b.browser.ie?"hand":"pointer"}).mousedown(b.msgbox.close).attr("title","\u95dc\u9589");d.css({width:"100%",color:"black",height:g+"px","vertical-align":"middle","line-height":"24px","font-family":"Arial","font-size":"15px",padding:"15px"});g='<table cellspacing="0" cellpadding="0" border="0" width="100%"><tr id="egg_msgbox_btn_table"></tr></table>';
m.css({width:"100%","text-align":"center",padding:"0 10px 10px 10px"}).html(g);g=b("#egg_msgbox_btn_table").get(0);c.buttons&b.msgbox.OK&&b.msgbox._createButton("\u78ba\u5b9a",c.onOk).appendTo(g);c.buttons&b.msgbox.YES&&b.msgbox._createButton("\u662f",c.onYes).appendTo(g);for(var q in c.customButtons)m=c.customButtons[q],b.msgbox._createButton(m.label,m.click,m.config).appendTo(g);c.buttons&b.msgbox.NO&&b.msgbox._createButton("\u5426",c.onNo).appendTo(g);c.buttons&b.msgbox.CANCEL&&b.msgbox._createButton("\u53d6\u6d88",
c.onCancel||b.msgbox.close).appendTo(g);b.msgbox._setMsgBoxPosition(e);e.css("visibility","visible");e={box:e,title:k,content:d};c.onShow&&(ret=c.onShow.call(e));c.buttons||c.customButtons||c.onHide?f&&f.click(b.msgbox._notify):b.msgbox._fadeOutTimer=setTimeout(b.msgbox._fadeOut,2500)}};b.msgbox.OK=1;b.msgbox.CANCEL=2;b.msgbox.YES=4;b.msgbox.NO=8;b.msgbox._isDragging=!1;b.msgbox._fadeOutTimer=0;b.msgbox.configure={};b.msgbox.setConfigure=function(a){b.msgbox.configure=a||{}};b.msgbox.close=function(){clearTimeout(b.msgbox._fadeOutTimer);
var a=b("#egg_msgbox");if(0!==a.size()){var a={box:a,title:b("#egg_msgbox_title"),content:b("#egg_msgbox_content")},c=!0;b.msgbox.configure.onHide&&(c=b.msgbox.configure.onHide.call(a));c&&b("#egg_msgbox,#egg_msgbox_mask").removeFrom(document.body)}};b.msgbox._drag=function(a){a=window.event||a;if(a.button===(b.browser.ie?1:0)){b.msgbox._isDragging=!0;var c=b("#egg_msgbox"),d=b.body(),e=a.clientX+d.scrollLeft,d=a.clientY+d.scrollTop;b(document.createElement("div")).opacity(0).attr({id:"egg_msgbox_cover",
unselectable:"on",eggMsgboxDragLeft:e-c.attr("offsetLeft"),eggMsgboxDragTop:d-c.attr("offsetTop")}).css({backgroundColor:"red",width:"150px",height:"150px",position:"absolute",left:e-75+"px",top:d-75+"px",zIndex:99,cursor:"move"}).mousemove(b.msgbox._dragging).mouseup(b.msgbox._drop).mouseout(b.msgbox._drop).appendTo(document.body);b.event.preventDefault(a)}};b.msgbox._drop=function(a){a=window.event||a;b.msgbox._isDragging=!1;b("#egg_msgbox_cover").removeFrom(document.body);b.event.preventDefault(a)};
b.msgbox._dragging=function(a){if(b.msgbox._isDragging){a=window.event||a;var c=b("#egg_msgbox_cover"),d=b.body(),e=a.clientX+d.scrollLeft,d=a.clientY+d.scrollTop;b("#egg_msgbox").css({left:e-c.attr("eggMsgboxDragLeft")+"px",top:d-c.attr("eggMsgboxDragTop")+"px"});c.css({left:e-75+"px",top:d-75+"px"});b.event.preventDefault(a)}};b.msgbox._notify=function(){var a=b("#egg_msgbox"),c=0,d=function(){var b=a.attr("eggOpacity")||1,b=1==parseFloat(b)?.5:1;a.opacity(b);5>c&&(c++,setTimeout(d,80))};d()};b.msgbox._fadeOut=
function(a){b.browser.ie&&b.msgbox.close();a=a||30;var c=function(){var d=b("#egg_msgbox");if(0!==d.size()){var e=d.attr("eggOpacity");void 0===e&&(e=1);e=Math.round(100*(e-.2))/100;0>e&&(e=0);d.opacity(e);0<e?setTimeout(c,a):b.msgbox.close()}};c()};b.msgbox._setMsgBoxPosition=function(a){var c,d,e,f=b.body();c=a.attr("offsetWidth");d=a.attr("offsetHeight");e=Math.floor(f.clientHeight/2-d/2);"absolute"==a.css("position")&&(e+=f.scrollTop);e+d>a.attr("originalScrollHeight")&&(e=a.attr("originalScrollHeight")-
d);0>e&&(e=0);c=Math.floor(f.clientWidth/2-c/2);0>c&&(c=0);a.css({left:c+"px",top:e+"px"});b("#egg_msgbox_mask").css({width:f.scrollWidth+"px",height:f.scrollHeight+"px"})};b.msgbox._getBasicLayout=function(){var a;a='<div id="egg_msgbox_title"><img style="float:right; margin:9px 5px 0 0;" id="egg_msgbox_closeButton" src="http://i2.bahamut.com.tw/close.gif" />';a+='<img style="float:left; margin-right:5px;" src="http://i2.bahamut.com.tw/h1_img.gif" />';a+='<span id="egg_msgbox_title_text"></span>';
a+="</div>";a+='<div id="egg_msgbox_content"></div>';return a+='<div id="egg_msgbox_buttons"></div>'};b.msgbox._createButton=function(a,c,d){d=d||{};var e=b(document.createElement("td"));e.css({"text-align":"center"});var f=b(document.createElement("input"));f.attr({type:"button",value:a}).css("width","80px");"function"==typeof c&&f.click(c);d.css&&f.css(d.css);d.className&&f.attr("className",d.className);f.appendTo(e.get(0));return e};b._ajaxFunctions={};b.ajaxLoading=function(a){b._ajaxFunctions.loading=
a};b.ajaxLoaded=function(a){b._ajaxFunctions.loaded=a};b.ajaxCompleted=function(a){b._ajaxFunctions.completed=a};b.ajax=function(a){var c=null,d=!1;if(!a.url.match(/^\/(?:ajax|editor)\/.+/))throw"url incorrect";try{c=new window.XMLHttpRequest}catch(e){c=new ActiveXObject("Microsoft.XMLHTTP")}if(null===c)throw"create XmlHttpRequest instance failed!";c.onreadystatechange=function(){switch(c.readyState){case 1:!d&&a.loading&&a.loading.call(a.context,c);!d&&b._ajaxFunctions.loading&&b._ajaxFunctions.loading.call(a.context,
c);break;case 2:a.loaded&&a.loaded.call(a.context,c);b._ajaxFunctions.loaded&&b._ajaxFunctions.loaded.call(a.context,c);break;case 4:if(d=!0,b._ajaxFunctions.completed&&b._ajaxFunctions.completed.call(a.context,c),200==c.status){if(a.success){var e=-1!=c.getResponseHeader("content-type").indexOf("xml")?c.responseXML:c.responseText;a.success.call(a.context,e,c)}}else a.fail&&a.fail(a.context,c.status,c)}};a.param&&(a.data=a.param);a.data=a.data||null;a.method=a.method||"GET";a.async=a.async||"";a.async=
"SYNC"==a.async?!1:!0;!1===a.cache&&(a.data=a.data?a.data+("&_="+(new Date).getTime()):"_="+(new Date).getTime());a.method=a.method.toUpperCase();"GET"==a.method&&a.data&&(a.url+="?"+a.data,a.data=null);a.username?c.open(a.method,a.url,a.async,a.username,a.password):c.open(a.method,a.url,a.async);c.setRequestHeader("content-type","application/x-www-form-urlencoded");c.setRequestHeader("X-Requested-With","XMLHttpRequest");c.send(a.data);a.timeout&&0<a.timeout&&setTimeout(function(){if(c&&!d)throw c.abort(),
"timeout";},a.timeout)};b.get=function(a,c,d,e){b.ajax({method:"GET",url:a,data:c,cache:e,success:d})};b.post=function(a,c,d,e){b.ajax({method:"POST",url:a,data:c,cache:e,success:d})};b.sprintf=function(a){return b.sprintf._sprintf_(a,arguments,1)};b.sprintf.FREGEXP=/^([^%]*)%([-+])?(0)?(\d+)?(\.(\d+))?([doxXcsf])(.*)$/;b.sprintf.HDIGITS="0123456789abcdef".split("");b.sprintf._empty=function(a){return void 0===a||null===a?!0:""===a?!0:!1};b.sprintf._int_=function(a){return Math.floor(a)};b.sprintf._printf_num_=
function(a,c,d,e,f){a=parseInt(a,10);if(isNaN(a))return"NaN";var k=0>a?-a:a,g="";if(0===k)g="0";else for(;0<k;)g=b.sprintf.HDIGITS[k%c]+g,k=b.sprintf._int_(k/c);0>a&&(g="-"+g);"-"==e&&(d=" ");return b.sprintf._printf_str_(g,d,e,f,-1)};b.sprintf._printf_float_=function(a,b,d,e,f){if(void 0===f){if(parseInt(a,10)!=a)return""+a;f=5}a=""+Math.round(a*Math.pow(10,f));b=a.length-f;return 0===b?"0."+a.substr(b,f):a.substr(0,b)+"."+a.substr(b,f)};b.sprintf._printf_str_=function(a,b,d,e,f){if(void 0===a)return"(undefined)";
if(null===a)return"(null)";if(0<(e-=a.length))if("-"==d)for(;0<e;)a+=b,e--;else for(;0<e;)a=b+a,e--;return 0<f?a.substr(0,f):a};b.sprintf._sprintf_=function(a,c,d){var e="",f,k,g;k=a.split("\n");for(f=0;f<k.length;f++){0<f&&(e+="\n");for(a=k[f];g=b.sprintf.FREGEXP.exec(a);){var m="",h=" ";b.sprintf._empty(g[1])||(e+=g[1]);b.sprintf._empty(g[2])||(m=g[2]);b.sprintf._empty(g[3])||(h="0");var l=g[4],q=g[6],u=g[7];a=g[8];if(d>=c.length)e+="[missing parameter for type '"+u+"']";else switch(g=c[d++],u){case "d":e+=
b.sprintf._printf_num_(g,10,h,m,l);break;case "o":e+=b.sprintf._printf_num_(g,8,h,m,l);break;case "x":e+=b.sprintf._printf_num_(g,16,h,m,l);break;case "X":e+=b.sprintf._printf_num_(g,16,h,m,l).toUpperCase();break;case "c":e+=String.fromCharCode(parseInt(g,10));break;case "s":e+=b.sprintf._printf_str_(g,h,m,l,q);break;case "f":e+=b.sprintf._printf_float_(g,h,m,l,q);break;default:e+="[unknown format '"+u+"']"}}e+=a}return e};b.extend=b.selector.prototype;window.egg=window.$=b})();
String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.equals=function(b,a){return a?this==b:this.trim().toLowerCase()==b.trim().toLowerCase()};String.prototype.inArray=function(b,a){var c=this;a&&(c=c.toLowerCase());for(var d=0;d<b.length;d++)if(a&&(b[d]=b[d].toLowerCase()),c==b[d])return!0;return!1};String.prototype.utf8Length=function(){var b=this.match(/[^\x00-\xff]/ig);return null===b?this.length:this.length+2*b.length};
(function(){function b(a,b,c,d,e,n){e=0;for(var f=d.length;e<f;e++){var h=d[e];if(h){for(var g=!1,h=h[a];h;){if(h.sizcache===c){g=d[h.sizset];break}1!==h.nodeType||n||(h.sizcache=c,h.sizset=e);if(h.nodeName.toLowerCase()===b){g=h;break}h=h[a]}d[e]=g}}}function a(a,b,c,d,e,n){e=0;for(var f=d.length;e<f;e++){var g=d[e];if(g){for(var l=!1,g=g[a];g;){if(g.sizcache===c){l=d[g.sizset];break}if(1===g.nodeType)if(n||(g.sizcache=c,g.sizset=e),"string"!==typeof b){if(g===b){l=!0;break}}else if(0<h.filter(b,
[g]).length){l=g;break}g=g[a]}d[e]=l}}}var c=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,f=!1,k=!0,g=/\\/g,m=/\W/;[0,0].sort(function(){k=!1;return 0});var h=function(a,b,d,x){d=d||[];var A=b=b||document;if(1!==b.nodeType&&9!==b.nodeType)return[];if(!a||"string"!==typeof a)return d;var n,g,f,k,m,t=!0,y=h.isXML(b),p=[],u=a;do if(c.exec(""),n=c.exec(u))if(u=n[3],p.push(n[1]),n[2]){k=
n[3];break}while(n);if(1<p.length&&q.exec(a))if(2===p.length&&l.relative[p[0]])g=z(p[0]+p[1],b);else for(g=l.relative[p[0]]?[b]:h(p.shift(),b);p.length;)a=p.shift(),l.relative[a]&&(a+=p.shift()),g=z(a,g);else if(!x&&1<p.length&&9===b.nodeType&&!y&&l.match.ID.test(p[0])&&!l.match.ID.test(p[p.length-1])&&(n=h.find(p.shift(),b,y),b=n.expr?h.filter(n.expr,n.set)[0]:n.set[0]),b)for(n=x?{expr:p.pop(),set:r(x)}:h.find(p.pop(),1!==p.length||"~"!==p[0]&&"+"!==p[0]||!b.parentNode?b:b.parentNode,y),g=n.expr?
h.filter(n.expr,n.set):n.set,0<p.length?f=r(g):t=!1;p.length;)n=m=p.pop(),l.relative[m]?n=p.pop():m="",null==n&&(n=b),l.relative[m](f,n,y);else f=[];f||(f=g);f||h.error(m||a);if("[object Array]"===e.call(f))if(t)if(b&&1===b.nodeType)for(a=0;null!=f[a];a++)f[a]&&(!0===f[a]||1===f[a].nodeType&&h.contains(b,f[a]))&&d.push(g[a]);else for(a=0;null!=f[a];a++)f[a]&&1===f[a].nodeType&&d.push(g[a]);else d.push.apply(d,f);else r(f,d);k&&(h(k,A,d,x),h.uniqueSort(d));return d};h.uniqueSort=function(a){if(w&&
(f=k,a.sort(w),f))for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1);return a};h.matches=function(a,b){return h(a,null,null,b)};h.matchesSelector=function(a,b){return 0<h(b,null,null,[a]).length};h.find=function(a,b,d){var c;if(!a)return[];for(var e=0,n=l.order.length;e<n;e++){var f,h=l.order[e];if(f=l.leftMatch[h].exec(a)){var k=f[1];f.splice(1,1);if("\\"!==k.substr(k.length-1)&&(f[1]=(f[1]||"").replace(g,""),c=l.find[h](f,b,d),null!=c)){a=a.replace(l.match[h],"");break}}}c||(c="undefined"!==
typeof b.getElementsByTagName?b.getElementsByTagName("*"):[]);return{set:c,expr:a}};h.filter=function(a,b,c,d){for(var e,n,f=a,g=[],k=b,m=b&&b[0]&&h.isXML(b[0]);a&&b.length;){for(var r in l.filter)if(null!=(e=l.leftMatch[r].exec(a))&&e[2]){var q,p,t=l.filter[r];p=e[1];n=!1;e.splice(1,1);if("\\"!==p.substr(p.length-1)){k===g&&(g=[]);if(l.preFilter[r])if(e=l.preFilter[r](e,k,c,g,d,m),!e)n=q=!0;else if(!0===e)continue;if(e)for(var u=0;null!=(p=k[u]);u++)if(p){q=t(p,e,u,k);var v=d^!!q;c&&null!=q?v?n=
!0:k[u]=!1:v&&(g.push(p),n=!0)}if(void 0!==q){c||(k=g);a=a.replace(l.match[r],"");if(!n)return[];break}}}if(a===f)if(null==n)h.error(a);else break;f=a}return k};h.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var l=h.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=
"string"===typeof b,d=c&&!m.test(b),c=c&&!d;d&&(b=b.toLowerCase());for(var d=0,e=a.length,n;d<e;d++)if(n=a[d]){for(;(n=n.previousSibling)&&1!==n.nodeType;);a[d]=c||n&&n.nodeName.toLowerCase()===b?n||!1:n===b}c&&h.filter(b,a,!0)},">":function(a,b){var c,d="string"===typeof b,e=0,n=a.length;if(d&&!m.test(b))for(b=b.toLowerCase();e<n;e++){if(c=a[e])c=c.parentNode,a[e]=c.nodeName.toLowerCase()===b?c:!1}else{for(;e<n;e++)(c=a[e])&&(a[e]=d?c.parentNode:c.parentNode===b);d&&h.filter(b,a,!0)}},"":function(c,
e,f){var g,h=d++,n=a;"string"!==typeof e||m.test(e)||(g=e=e.toLowerCase(),n=b);n("parentNode",e,h,c,g,f)},"~":function(c,e,f){var g,h=d++,n=a;"string"!==typeof e||m.test(e)||(g=e=e.toLowerCase(),n=b);n("previousSibling",e,h,c,g,f)}},find:{ID:function(a,b,c){if("undefined"!==typeof b.getElementById&&!c)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if("undefined"!==typeof b.getElementsByName){for(var c=[],d=b.getElementsByName(a[1]),e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===
a[1]&&c.push(d[e]);return 0===c.length?null:c}},TAG:function(a,b){if("undefined"!==typeof b.getElementsByTagName)return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(g,"")+" ";if(f)return a;f=0;for(var h;null!=(h=b[f]);f++)h&&(e^(h.className&&0<=(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a))?c||d.push(h):c&&(b[f]=!1));return!1},ID:function(a){return a[1].replace(g,"")},TAG:function(a,b){return a[1].replace(g,"").toLowerCase()},CHILD:function(a){if("nth"===
a[1]){a[2]||h.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec("even"===a[2]&&"2n"||"odd"===a[2]&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}else a[2]&&h.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){b=a[1]=a[1].replace(g,"");!f&&l.attrMap[b]&&(a[1]=l.attrMap[b]);a[4]=(a[4]||a[5]||"").replace(g,"");"~="===a[2]&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(a,b,d,e,f){if("not"===a[1])if(1<(c.exec(a[3])||"").length||
/^\w/.test(a[3]))a[3]=h(a[3],null,null,b);else return a=h.filter(a[3],b,d,1^f),d||e.push.apply(e,a),!1;else if(l.match.POS.test(a[0])||l.match.CHILD.test(a[0]))return!0;return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return!1===a.disabled&&"hidden"!==a.type},disabled:function(a){return!0===a.disabled},checked:function(a){return!0===a.checked},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return!0===a.selected},parent:function(a){return!!a.firstChild},
empty:function(a){return!a.firstChild},has:function(a,b,c){return!!h(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return"input"===a.nodeName.toLowerCase()&&"text"===c&&(b===c||null===b)},radio:function(a){return"input"===a.nodeName.toLowerCase()&&"radio"===a.type},checkbox:function(a){return"input"===a.nodeName.toLowerCase()&&"checkbox"===a.type},file:function(a){return"input"===a.nodeName.toLowerCase()&&"file"===a.type},
password:function(a){return"input"===a.nodeName.toLowerCase()&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return("input"===b||"button"===b)&&"submit"===a.type},image:function(a){return"input"===a.nodeName.toLowerCase()&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return("input"===b||"button"===b)&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},
focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return 0===b},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return 0===b%2},odd:function(a,b){return 1===b%2},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if("contains"===e)return 0<=(a.textContent||a.innerText||
h.getText([a])||"").indexOf(b[3]);if("not"===e){b=b[3];c=0;for(d=b.length;c<d;c++)if(b[c]===a)return!1;return!0}h.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case "only":case "first":for(;d=d.previousSibling;)if(1===d.nodeType)return!1;if("first"===c)return!0;d=a;case "last":for(;d=d.nextSibling;)if(1===d.nodeType)return!1;return!0;case "nth":var c=b[2],e=b[3];if(1===c&&0===e)return!0;var f=b[0],g=a.parentNode;if(g&&(g.sizcache!==f||!a.nodeIndex)){for(var h=0,d=g.firstChild;d;d=d.nextSibling)1===
d.nodeType&&(d.nodeIndex=++h);g.sizcache=f}d=a.nodeIndex-e;return 0===c?0===d:0===d%c&&0<=d/c}},ID:function(a,b){return 1===a.nodeType&&a.getAttribute("id")===b},TAG:function(a,b){return"*"===b&&1===a.nodeType||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return-1<(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)},ATTR:function(a,b){var c=b[1],c=l.attrHandle[c]?l.attrHandle[c](a):null!=a[c]?a[c]:a.getAttribute(c),d=c+"",e=b[2],f=b[4];return null==c?"!="===e:"="===e?d===f:"*="===e?0<=
d.indexOf(f):"~="===e?0<=(" "+d+" ").indexOf(f):f?"!="===e?d!==f:"^="===e?0===d.indexOf(f):"$="===e?d.substr(d.length-f.length)===f:"|="===e?d===f||d.substr(0,f.length+1)===f+"-":!1:d&&!1!==c},POS:function(a,b,c,d){var e=l.setFilters[b[2]];if(e)return e(a,c,b,d)}}},q=l.match.POS,u=function(a,b){return"\\"+(b-0+1)},t;for(t in l.match)l.match[t]=new RegExp(l.match[t].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[t]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[t].source.replace(/\\(\d+)/g,u));
var r=function(a,b){a=Array.prototype.slice.call(a,0);return b?(b.push.apply(b,a),b):a};try{Array.prototype.slice.call(document.documentElement.childNodes,0)[0].nodeType}catch(B){r=function(a,b){var c=0,d=b||[];if("[object Array]"===e.call(a))Array.prototype.push.apply(d,a);else if("number"===typeof a.length)for(var f=a.length;c<f;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var w,v;document.documentElement.compareDocumentPosition?w=function(a,b){return a===b?(f=!0,0):a.compareDocumentPosition&&
b.compareDocumentPosition?a.compareDocumentPosition(b)&4?-1:1:a.compareDocumentPosition?-1:1}:(w=function(a,b){if(a===b)return f=!0,0;if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],g=[];c=a.parentNode;d=b.parentNode;var h=c;if(c===d)return v(a,b);if(!c)return-1;if(!d)return 1;for(;h;)e.unshift(h),h=h.parentNode;for(h=d;h;)g.unshift(h),h=h.parentNode;c=e.length;d=g.length;for(h=0;h<c&&h<d;h++)if(e[h]!==g[h])return v(e[h],g[h]);return h===c?v(a,g[h],-1):v(e[h],b,1)},
v=function(a,b,c){if(a===b)return c;for(a=a.nextSibling;a;){if(a===b)return-1;a=a.nextSibling}return 1});h.getText=function(a){for(var b="",c,d=0;a[d];d++)c=a[d],3===c.nodeType||4===c.nodeType?b+=c.nodeValue:8!==c.nodeType&&(b+=h.getText(c.childNodes));return b};(function(){var a=document.createElement("div"),b="script"+(new Date).getTime(),c=document.documentElement;a.innerHTML="<a name='"+b+"'/>";c.insertBefore(a,c.firstChild);document.getElementById(b)&&(l.find.ID=function(a,b,c){if("undefined"!==
typeof b.getElementById&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||"undefined"!==typeof b.getAttributeNode&&b.getAttributeNode("id").nodeValue===a[1]?[b]:void 0:[]},l.filter.ID=function(a,b){var c="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id");return 1===a.nodeType&&c&&c.nodeValue===b});c.removeChild(a);c=a=null})();(function(){var a=document.createElement("div");a.appendChild(document.createComment(""));0<a.getElementsByTagName("*").length&&(l.find.TAG=function(a,b){var c=
b.getElementsByTagName(a[1]);if("*"===a[1]){for(var d=[],e=0;c[e];e++)1===c[e].nodeType&&d.push(c[e]);c=d}return c});a.innerHTML="<a href='#'></a>";a.firstChild&&"undefined"!==typeof a.firstChild.getAttribute&&"#"!==a.firstChild.getAttribute("href")&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)});a=null})();document.querySelectorAll&&function(){var a=h,b=document.createElement("div");b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||0!==b.querySelectorAll(".TEST").length){h=
function(b,c,d,e){c=c||document;if(!e&&!h.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(f&&(1===c.nodeType||9===c.nodeType)){if(f[1])return r(c.getElementsByTagName(b),d);if(f[2]&&l.find.CLASS&&c.getElementsByClassName)return r(c.getElementsByClassName(f[2]),d)}if(9===c.nodeType){if("body"===b&&c.body)return r([c.body],d);if(f&&f[3]){var g=c.getElementById(f[3]);if(g&&g.parentNode){if(g.id===f[3])return r([g],d)}else return r([],d)}try{return r(c.querySelectorAll(b),d)}catch(k){}}else if(1===
c.nodeType&&"object"!==c.nodeName.toLowerCase()){var f=c,m=(g=c.getAttribute("id"))||"__sizzle__",q=c.parentNode,t=/^\s*[+~]/.test(b);g?m=m.replace(/'/g,"\\$&"):c.setAttribute("id",m);t&&q&&(c=c.parentNode);try{if(!t||q)return r(c.querySelectorAll("[id='"+m+"'] "+b),d)}catch(k){}finally{g||f.removeAttribute("id")}}}return a(b,c,d,e)};for(var c in a)h[c]=a[c];b=null}}();(function(){var a=document.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;
if(b){var c=!b.call(document.createElement("div"),"div"),d=!1;try{b.call(document.documentElement,"[test!='']:sizzle")}catch(e){d=!0}h.matchesSelector=function(a,e){e=e.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!h.isXML(a))try{if(d||!l.match.PSEUDO.test(e)&&!/!=/.test(e)){var f=b.call(a,e);if(f||!c||a.document&&11!==a.document.nodeType)return f}}catch(g){}return 0<h(e,null,null,[a]).length}}})();(function(){var a=document.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";
a.getElementsByClassName&&0!==a.getElementsByClassName("e").length&&(a.lastChild.className="e",1!==a.getElementsByClassName("e").length&&(l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if("undefined"!==typeof b.getElementsByClassName&&!c)return b.getElementsByClassName(a[1])},a=null))})();h.contains=document.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:document.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&
16)}:function(){return!1};h.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1};var z=function(a,b){for(var c,d=[],e="",f=b.nodeType?[b]:b;c=l.match.PSEUDO.exec(a);)e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;c=0;for(var g=f.length;c<g;c++)h(a,f[c],d);return h.filter(e,d)};window.Sizzle=h})();