(function(){var b=function(a,c){return new b.selector(a,c)};b.selector=function(a,b){var d;d=typeof a=="string"?Sizzle(a,b):a&&a.Egg?a.get():a;this._isXML=Sizzle.isXML(b);this.get=function(a){var b=a!==void 0;return!d?b?void 0:[]:isNaN(d.length)?(a=[],a.push(d),b?d:a):b?d[a]:d};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.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()),a.length===void 0)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 a=="float"?"cssFloat":a.replace(/-([a-z])/,function(a,b){return b.toUpperCase()})};if(c!==void 0)b.each(this,function(b){b.style[d(a)]=c});else if(typeof a=="string")return this.get(0)&&this.get(0).style[d(a)]||void 0;else 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);a<0&&(a=0);a>1&&(a=1);b.each(this,function(c){b.browser.ie?c.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity="+a*100+")":c.style.opacity=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&&a.eggDisplay!="none")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(a===void 0)return this.get(0).innerHTML;
typeof a=="function"&&(a=a.call(this));b.each(this.get(),function(b){b.innerHTML=a});return this};b.method.outterHtml=function(){if(this.size()===0||!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(a===void 0){if(c=[],b.each(this.get(),function(a){if(a.nodeType!=
3&&a.nodeType!=4)a=a.firstChild;a.nodeType==3||a.nodeType==4?c.push(a.nodeValue):c.push(void 0)}),c.length!==0)return c.length==1?c[0]:c}else return b.each(this.get(),function(b){if(b.nodeType!=3&&b.nodeType!=4)b=b.firstChild;if(b.nodeType==3||b.nodeType==4)typeof a=="function"&&(a=a.call(b)),b.nodeValue=a}),this;else if(a===void 0){if(c=[],b.each(this.get(),function(a){c.push(a.value)}),c.length!==0)return c.length==1?c[0]:c}else return typeof a=="function"&&(a=a.call(this)),b.each(this.get(),function(b){b.value=
a}),this};b.method.attr=function(a,c){if(c!==void 0)b.each(this.get(),function(b){b[a]=c});else if(typeof a=="string"){if(this.get(0))return this.get(0)[a];return}else b.each(this.get(),function(b){for(var c in a)b[c]=a[c]});return this};b.method.removeAttr=function(a){typeof a=="string"&&(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,j=a.clientY+e+10,g=a.clientX+f+10,k=c.attr("offsetWidth"),h=c.attr("offsetHeight");g+k>d.clientWidth+f&&(g-=k+20);j+h>d.clientHeight+e&&(j-=h+20);return{x:g,y:j}}};b.method.tooltip=function(a,
c){(typeof a).inArray(["string","function"])||(c=a,a=void 0);var c=c||{},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){var d=window.event||d,e=b(d.srcElement||d.target),k=b(document.createElement("div")),h="egg_tip"+ ++b.tooltip.counter;e.attr("egg_my_tooltip_id",h);var i="cursor",n="cursor";if(c.position){c.position=c.position.toLowerCase();var q=c.position.split(" ");
q.length==2&&(i=q[1],n=q[0]);i.inArray("cursor,top,center,bottom,before,after".split(","))||(i=parseInt(i,10),isNaN(i)&&(i="cursor"));n.inArray("cursor,left,center,right,before,after".split(","))||(n=parseInt(n,10),isNaN(n)&&(n="cursor"))}if(n=="cursor"||i=="cursor")f=function(a){a=window.event||a;a=b.tooltip._getCursorPos(a,k);n=="cursor"&&k.css("left",a.x+"px");i=="cursor"&&k.css("top",a.y+"px")},e.mousemove(f);k.attr("id",h);!c.className&&!c.css?k.css({border:"solid 1px #b46600","background-color":"#fffad2",
color:"#464646"}):(c.className&&k.attr("className",c.className),c.css&&k.css(c.css));h=a;typeof h=="function"&&(h=h.call(e));if(!h&&(h=e.attr("title")))e.attr("originalTitle",e.attr("title")),e.attr("title","");k.css({"z-index":30,position:"absolute",visibility:"hidden"}).html(h||"").appendTo(document.body);var h=e.pos(),d=b.tooltip._getCursorPos(d,k),p,o;if(typeof i=="string")switch(i){case "top":p=h.y;break;case "center":p=parseInt(h.y+e.attr("offsetHeight")/2-k.attr("offsetHeight")/2,10);break;
case "bottom":p=h.y+e.attr("offsetHeight")-k.attr("offsetHeight");break;case "before":p=h.y-k.attr("offsetHeight");break;case "after":p=h.y+e.attr("offsetHeight");break;case "cursor":p=d.y}else p=i;if(typeof n=="string")switch(n){case "left":o=h.x;break;case "center":o=parseInt(h.x+e.attr("offsetWidth")/2-k.attr("offsetWidth")/2,10);break;case "right":o=h.x+e.attr("offsetWidth")-k.attr("offsetWidth");break;case "before":o=h.x-k.attr("offsetWidth");break;case "after":o=h.x+e.attr("offsetWidth");break;
case "cursor":o=d.x}else o=n;c.offset&&n!="cursor"&&(o+=parseInt(c.offset[0],10));c.offset&&i!="cursor"&&(p+=parseInt(c.offset[1],10));d=function(){k.css({left:o+"px",top:p+"px",visibility:"visible"});c.onShow&&c.onShow.call(e,k)};c.delay&&parseInt(c.delay,10)>0?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){var a="; "+a+"=",b="; "+document.cookie,d=b.indexOf(a,0);if(d==-1)return"";var e=b.indexOf(";",d+1);e==-1&&(e=b.length);return unescape(b.substring(d+a.length,e))},set:function(a,b,d,e,f,j){if(a===void 0||b===void 0)return!1;a=a+"="+escape(b);d&&(a+=";domain="+d);typeof f=="number"?(d=new Date,d.setDate(d.getDate()+f),a+=";expires="+d.toGMTString()):f&&(a+=";expires="+f);e&&(a+=";path="+e);j&&(a+=";secure");document.cookie=a;return!0},
del:function(a,b,d){if(a===void 0)return!1;a+="=";b!==void 0&&(a+=";domain="+b);a+=";expires=Thu, 01-Jan-1970 00:00:01 GMT";d!==void 0&&(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&&a.compatMode=="CSS1Compat"?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(0.7).css({position:"absolute",top:"0px",left:"0px",zIndex:9,backgroundColor:c.maskBgColor||"black",width:f+"px",height:d+"px"});var j;j=c.closeTrigger=="none"?function(){}:typeof c.closeTrigger=="function"?c.closeTrigger:b.lightbox.close;e.click(j);var g=b(document.createElement("div")),k=c.absolute?"absolute":"fixed";b.browser.ie&&(k="absolute",!c.absolute&&!b.browser.ie6&&document.compatMode&&document.compatMode=="CSS1Compat"&&(k="fixed"));
g.attr("id","egg_box").css({position:k,textAlign:"center",zIndex:10,visibility:"hidden"});c.hide&&g.attr("egg-data",c.hide);c.className&&g.attr("className",c.className);c.css&&g.css(c.css);typeof a=="object"?(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=j;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(d.size()!==0){if(a!==void 0){var f=c?b(c):d;typeof a=="object"?(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 j,g;j=d.get(0).offsetWidth;g=d.get(0).offsetHeight;f=Math.floor(e.clientHeight/2-g/2);d.css("position")=="absolute"&&(f+=b.browser.webkit?document.body.scrollTop:e.scrollTop);f+g>d.attr("originalScrollHeight")&&(f=d.attr("originalScrollHeight")-g);f<0&&(f=0);j=Math.floor(e.clientWidth/2-j/2);j<0&&(j=0);d.css({left:j+"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=e.className=="open_win",j="";c&&(j+=f?'<h1 class="open_wintitle"><img src="http://pic.bahamut.com.tw/h1_img.gif">'+c+"</h1>":'<p class="BH-poptitle">'+c+"</p>");typeof a=="object"?a=b(a).outterHtml():a.match&&a.match(/^[#\.][A-Za-z][A-za-z0-9-_:\.]*$/)&&
(a=b(a).html());j+=f?"<div>"+a+"</div>":'<div class="BH-popintxt">'+a+"</div>";var a=[],g,k;for(k in d)a.push(document.createElement("button")),g=a[a.length-1],g.onclick=d[k]||function(){},g.innerHTML=k;e.closeButton=e.closeButton===void 0?!0:e.closeButton;if(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)j+='<p class="'+f+'"></p>';e.className=e.className||
"BH-popup";j=b.lightbox(j,e);j.refresh=b.bahabox.refresh;b("."+f).size()&&b(a).appendTo(b("."+f));return j}};b.bahabox.refresh=function(a){b.lightbox.refresh(a,".BH-popintxt")};b.bahabox.option=function(a,c){if(typeof a=="string"){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(b(".BH-popbtns").size()===0)break;var d=a[e],f,j;for(j in d)f=b(".BH-popbtns button:contains("+
j+")"),f.size()?f.get(0).onclick=d[j]:(f=document.createElement("button"),f.onclick=d[j],f.innerHTML=j,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(!(b("#egg_msgbox").size()>0)){var c=c||b.msgbox.configure||{},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:19,"background-color":"black",width:d.scrollWidth+"px",height:d.scrollHeight+"px"}).appendTo(document.body));var j=c.width||350,g=c.height||22,k=c.absolute?"absolute":"fixed";e=b(document.createElement("div"));b.browser.ie&&(k="absolute",!c.absolute&&!b.browser.ie6&&document.compatMode&&document.compatMode=="CSS1Compat"&&(k="fixed"));e.css({"background-color":"white",position:k,zIndex:20,border:"solid 1px #CCCCCC",
"border-top":"none",width:j+"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"),j=b("#egg_msgbox_title"),h=b("#egg_msgbox_title_text"),i=b("#egg_msgbox_closeButton"),k=b("#egg_msgbox_buttons");d.html(a);h.html(c.title||"\u8a0a\u606f");j.mousedown(b.msgbox._drag);j.css({width:"100%",height:"30px","line-height":"30px","background-image":"url(http://pic.bahamut.com.tw/h1_bg.gif)",
"vertical-align":"middle",color:"#117e96","font-weight":"bold","font-family":"Arial","font-size":"12pt",cursor:"move"});i.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%">';g+='<tr id="egg_msgbox_btn_table"></tr></table>';k.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 n in c.customButtons)k=c.customButtons[n],b.msgbox._createButton(k.label,k.click,k.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:j,content:d};c.onShow&&(ret=c.onShow.call(e));!c.buttons&&!c.customButtons&&!c.onHide?b.msgbox._fadeOutTimer=setTimeout(b.msgbox._fadeOut,2500):f&&f.click(b.msgbox._notify)}};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(a.size()!==0){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:21,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){var a=window.event||a,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=parseFloat(b)==1?0.5:1;a.opacity(b);c<5&&(c++,setTimeout(d,80))};d()};
b.msgbox._fadeOut=function(a){b.browser.ie&&b.msgbox.close();var a=a||30,c=function(){var d=b("#egg_msgbox");if(d.size()!==0){var e=d.attr("eggOpacity");e===void 0&&(e=1);e-=0.2;e=Math.round(e*100)/100;e<0&&(e=0);d.opacity(e);e>0?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);a.css("position")=="absolute"&&(e+=f.scrollTop);e+d>a.attr("originalScrollHeight")&&(e=
a.attr("originalScrollHeight")-d);e<0&&(e=0);c=Math.floor(f.clientWidth/2-c/2);c<0&&(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">';a+='<img style="float:right; margin:9px 5px 0 0;" id="egg_msgbox_closeButton" src="http://pic.bahamut.com.tw/close.gif" />';a+='<img style="float:left; margin-right:5px;" src="http://pic.bahamut.com.tw/h1_img.gif" />';a+=
'<span id="egg_msgbox_title_text"></span>';a+="</div>";a+='<div id="egg_msgbox_content"></div>';a+='<div id="egg_msgbox_buttons"></div>';return a};b.msgbox._createButton=function(a,c,d){var d=d||{},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");typeof c=="function"&&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(c===null)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),c.status==200){if(a.success){var e=c.getResponseHeader("content-type").indexOf("xml")!=-1?c.responseXML:c.responseText;a.success.call(a.context,e,c)}}else a.fail&&a.fail(a.context,c.status,c)}};if(a.param)a.data=a.param;
a.data=a.data||null;a.method=a.method||"GET";if(a.cache===!1)a.data?a.data+="&_="+(new Date).getTime():a.data="_="+(new Date).getTime();a.method=a.method.toUpperCase();if(a.method=="GET"&&a.data)a.url+="?"+a.data,a.data=null;a.username?c.open(a.method,a.url,!0,a.username,a.password):c.open(a.method,a.url,!0);c.setRequestHeader("content-type","application/x-www-form-urlencoded");c.setRequestHeader("X-Requested-With","XMLHttpRequest");c.send(a.data);a.timeout&&a.timeout>0&&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="0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f".split(",");b.sprintf._empty=function(a){return a===void 0||a===null?!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 j=a<0?-a:a,g="";if(j===0)g="0";else for(;j>0;)g=b.sprintf.HDIGITS[j%c]+g,j=b.sprintf._int_(j/c);a<0&&(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(f===void 0){if(parseInt(a,10)!=a)return""+a;f=5}b=Math.pow(10,f);a=""+Math.round(a*b);b=a.length-f;return b===0?"0."+a.substr(b,f):a.substr(0,b)+"."+a.substr(b,f)};b.sprintf._printf_str_=function(a,
b,d,e,f){if(a===void 0)return"(undefined)";if(a===null)return"(null)";if((e-=a.length)>0)if(d=="-")for(;e>0;)a+=b,e--;else for(;e>0;)a=b+a,e--;return f>0?a.substr(0,f):a};b.sprintf._sprintf_=function(a,c,d){var e="",f,j,g;j=a.split("\n");for(f=0;f<j.length;f++){f>0&&(e+="\n");for(a=j[f];g=b.sprintf.FREGEXP.exec(a);){var k="",h=" ";b.sprintf._empty(g[1])||(e+=g[1]);b.sprintf._empty(g[2])||(k=g[2]);b.sprintf._empty(g[3])||(h="0");var i=g[4],n=g[6],q=g[7],a=g[8];if(d>=c.length)e+="[missing parameter for type '"+
q+"']";else switch(g=c[d++],q){case "d":e+=b.sprintf._printf_num_(g,10,h,k,i);break;case "o":e+=b.sprintf._printf_num_(g,8,h,k,i);break;case "x":e+=b.sprintf._printf_num_(g,16,h,k,i);break;case "X":e+=b.sprintf._printf_num_(g,16,h,k,i).toUpperCase();break;case "c":e+=String.fromCharCode(parseInt(g,10));break;case "s":e+=b.sprintf._printf_str_(g,h,k,i,n);break;case "f":e+=b.sprintf._printf_float_(g,h,k,i,n);break;default:e+="[unknown format '"+q+"']"}}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.trim().toLowerCase()==b.trim().toLowerCase():this==b};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 b===null?this.length:this.length+b.length*2};
(function(){function b(a,b,c,d,e,l){for(var e=0,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}if(h.nodeType===1&&!l)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,l){for(var e=0,f=d.length;e<f;e++){var g=d[e];if(g){for(var i=!1,g=g[a];g;){if(g.sizcache===c){i=d[g.sizset];break}if(g.nodeType===1){if(!l)g.sizcache=c,g.sizset=e;if(typeof b!=="string"){if(g===b){i=!0;break}}else if(h.filter(b,
[g]).length>0){i=g;break}}g=g[a]}d[e]=i}}}var c=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,f=!1,j=!0,g=/\\/g,k=/\W/;[0,0].sort(function(){j=!1;return 0});var h=function(a,b,d,s){var d=d||[],w=b=b||document;if(b.nodeType!==1&&b.nodeType!==9)return[];if(!a||typeof a!=="string")return d;var l,g,f,k,j,p=!0,t=h.isXML(b),m=[],q=a;do if(c.exec(""),l=c.exec(q))if(q=l[3],m.push(l[1]),
l[2]){k=l[3];break}while(l);if(m.length>1&&n.exec(a))if(m.length===2&&i.relative[m[0]])g=v(m[0]+m[1],b);else for(g=i.relative[m[0]]?[b]:h(m.shift(),b);m.length;)a=m.shift(),i.relative[a]&&(a+=m.shift()),g=v(a,g);else if(!s&&m.length>1&&b.nodeType===9&&!t&&i.match.ID.test(m[0])&&!i.match.ID.test(m[m.length-1])&&(l=h.find(m.shift(),b,t),b=l.expr?h.filter(l.expr,l.set)[0]:l.set[0]),b){l=s?{expr:m.pop(),set:o(s)}:h.find(m.pop(),m.length===1&&(m[0]==="~"||m[0]==="+")&&b.parentNode?b.parentNode:b,t);g=
l.expr?h.filter(l.expr,l.set):l.set;for(m.length>0?f=o(g):p=!1;m.length;)l=j=m.pop(),i.relative[j]?l=m.pop():j="",l==null&&(l=b),i.relative[j](f,l,t)}else f=[];f||(f=g);f||h.error(j||a);if(e.call(f)==="[object Array]")if(p)if(b&&b.nodeType===1)for(a=0;f[a]!=null;a++)f[a]&&(f[a]===!0||f[a].nodeType===1&&h.contains(b,f[a]))&&d.push(g[a]);else for(a=0;f[a]!=null;a++)f[a]&&f[a].nodeType===1&&d.push(g[a]);else d.push.apply(d,f);else o(f,d);k&&(h(k,w,d,s),h.uniqueSort(d));return d};h.uniqueSort=function(a){if(u&&
(f=j,a.sort(u),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 h(b,null,null,[a]).length>0};h.find=function(a,b,d){var c;if(!a)return[];for(var e=0,l=i.order.length;e<l;e++){var f,h=i.order[e];if(f=i.leftMatch[h].exec(a)){var j=f[1];f.splice(1,1);if(j.substr(j.length-1)!=="\\"&&(f[1]=(f[1]||"").replace(g,""),c=i.find[h](f,b,d),c!=null)){a=a.replace(i.match[h],"");break}}}c||(c=typeof b.getElementsByTagName!==
"undefined"?b.getElementsByTagName("*"):[]);return{set:c,expr:a}};h.filter=function(a,b,c,d){for(var e,l,f=a,g=[],j=b,k=b&&b[0]&&h.isXML(b[0]);a&&b.length;){for(var o in i.filter)if((e=i.leftMatch[o].exec(a))!=null&&e[2]){var n,m,p=i.filter[o];m=e[1];l=!1;e.splice(1,1);if(m.substr(m.length-1)!=="\\"){j===g&&(g=[]);if(i.preFilter[o])if(e=i.preFilter[o](e,j,c,g,d,k)){if(e===!0)continue}else l=n=!0;if(e)for(var q=0;(m=j[q])!=null;q++)if(m){n=p(m,e,q,j);var r=d^!!n;c&&n!=null?r?l=!0:j[q]=!1:r&&(g.push(m),
l=!0)}if(n!==void 0){c||(j=g);a=a.replace(i.match[o],"");if(!l)return[];break}}}if(a===f)if(l==null)h.error(a);else break;f=a}return j};h.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var i=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=
typeof b==="string",d=c&&!k.test(b),c=c&&!d;d&&(b=b.toLowerCase());for(var d=0,e=a.length,f;d<e;d++)if(f=a[d]){for(;(f=f.previousSibling)&&f.nodeType!==1;);a[d]=c||f&&f.nodeName.toLowerCase()===b?f||!1:f===b}c&&h.filter(b,a,!0)},">":function(a,b){var c,d=typeof b==="string",e=0,f=a.length;if(d&&!k.test(b))for(b=b.toLowerCase();e<f;e++){if(c=a[e])c=c.parentNode,a[e]=c.nodeName.toLowerCase()===b?c:!1}else{for(;e<f;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++,l=a;typeof e==="string"&&!k.test(e)&&(g=e=e.toLowerCase(),l=b);l("parentNode",e,h,c,g,f)},"~":function(c,e,f){var g,h=d++,l=a;typeof e==="string"&&!k.test(e)&&(g=e=e.toLowerCase(),l=b);l("previousSibling",e,h,c,g,f)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(a=b.getElementById(a[1]))&&a.parentNode?[a]:[]},NAME:function(a,b){if(typeof b.getElementsByName!=="undefined"){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 c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!=="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(g,"")+" ";if(f)return a;for(var f=0,h;(h=b[f])!=null;f++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[f]=!1));return!1},ID:function(a){return a[1].replace(g,"")},TAG:function(a){return a[1].replace(g,"").toLowerCase()},CHILD:function(a){if(a[1]===
"nth"){a[2]||h.error(a[0]);a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"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&&i.attrMap[b]&&(a[1]=i.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(a[1]==="not")if((c.exec(a[3])||"").length>1||
/^\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(i.match.POS.test(a[0])||i.match.CHILD.test(a[0]))return!0;return a},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){return a.selected===!0},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 a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()===
"input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},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 b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},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=i.filters[e];if(f)return f(a,c,b,d);else if(e==="contains")return(a.textContent||a.innerText||h.getText([a])||"").indexOf(b[3])>=
0;else if(e==="not"){b=b[3];c=0;for(d=b.length;c<d;c++)if(b[c]===a)return!1;return!0}else h.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case "only":case "first":for(;d=d.previousSibling;)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case "last":for(;d=d.nextSibling;)if(d.nodeType===1)return!1;return!0;case "nth":var c=b[2],e=b[3];if(c===1&&e===0)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)if(d.nodeType===
1)d.nodeIndex=++h;g.sizcache=f}d=a.nodeIndex-e;return c===0?d===0:d%c===0&&d/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],c=i.attrHandle[c]?i.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),d=c+"",e=b[2],f=b[4];return c==null?e==="!=":e==="="?d===f:e==="*="?d.indexOf(f)>=
0:e==="~="?(" "+d+" ").indexOf(f)>=0:!f?d&&c!==!1:e==="!="?d!==f:e==="^="?d.indexOf(f)===0:e==="$="?d.substr(d.length-f.length)===f:e==="|="?d===f||d.substr(0,f.length+1)===f+"-":!1},POS:function(a,b,c,d){var e=i.setFilters[b[2]];if(e)return e(a,c,b,d)}}},n=i.match.POS,q=function(a,b){return"\\"+(b-0+1)},p;for(p in i.match)i.match[p]=RegExp(i.match[p].source+/(?![^\[]*\])(?![^\(]*\))/.source),i.leftMatch[p]=RegExp(/(^(?:.|\r|\n)*?)/.source+i.match[p].source.replace(/\\(\d+)/g,q));var o=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)}catch(x){o=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length==="number")for(var f=a.length;c<f;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var u,r;document.documentElement.compareDocumentPosition?u=function(a,b){return a===b?(f=!0,0):!a.compareDocumentPosition||!b.compareDocumentPosition?
a.compareDocumentPosition?-1:1:a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b)return f=!0,0;else 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 r(a,b);else if(c){if(!d)return 1}else 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 r(e[h],g[h]);return h===c?r(a,g[h],-1):r(e[h],b,1)},r=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],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(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);if(document.getElementById(b))i.find.ID=function(a,b,c){if(typeof b.getElementById!==
"undefined"&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||typeof b.getAttributeNode!=="undefined"&&b.getAttributeNode("id").nodeValue===a[1]?[b]:void 0:[]},i.filter.ID=function(a,b){var c=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b};c.removeChild(a);c=a=null})();(function(){var a=document.createElement("div");a.appendChild(document.createComment(""));if(a.getElementsByTagName("*").length>0)i.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);
if(a[1]==="*"){for(var d=[],e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")i.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&&b.querySelectorAll(".TEST").length===0)){h=function(b,c,d,e){c=c||
document;if(!e&&!h.isXML(c)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(f&&(c.nodeType===1||c.nodeType===9))if(f[1])return o(c.getElementsByTagName(b),d);else if(f[2]&&i.find.CLASS&&c.getElementsByClassName)return o(c.getElementsByClassName(f[2]),d);if(c.nodeType===9){if(b==="body"&&c.body)return o([c.body],d);else if(f&&f[3]){var g=c.getElementById(f[3]);if(g&&g.parentNode){if(g.id===f[3])return o([g],d)}else return o([],d)}try{return o(c.querySelectorAll(b),d)}catch(j){}}else if(c.nodeType===
1&&c.nodeName.toLowerCase()!=="object"){var f=c,k=(g=c.getAttribute("id"))||"__sizzle__",n=c.parentNode,m=/^\s*[+~]/.test(b);g?k=k.replace(/'/g,"\\$&"):c.setAttribute("id",k);if(m&&n)c=c.parentNode;try{if(!m||n)return o(c.querySelectorAll("[id='"+k+"'] "+b),d)}catch(p){}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||!i.match.PSEUDO.test(e)&&!/!=/.test(e)){var f=b.call(a,e);if(f||!c||a.document&&a.document.nodeType!==11)return f}}catch(g){}return h(e,null,null,[a]).length>0}}})();(function(){var a=document.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";
if(a.getElementsByClassName&&a.getElementsByClassName("e").length!==0&&(a.lastChild.className="e",a.getElementsByClassName("e").length!==1))i.order.splice(1,0,"CLASS"),i.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!=="undefined"&&!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)?a.nodeName!=="HTML":!1};var v=function(a,b){for(var c,d=[],e="",f=b.nodeType?[b]:b;c=i.match.PSEUDO.exec(a);)e+=c[0],a=a.replace(i.match.PSEUDO,"");a=i.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})();

