User:Galil/GWW Ajaxifier/ajaxifier.js

// AJS={BASE_URL:"",drag_obj:null,drag_elm:null,_drop_zones:[],_cur_pos:null,getScrollTop:function{ var t; if(document.documentElement&&document.documentElement.scrollTop){ t=document.documentElement.scrollTop; }else{ if(document.body){ t=document.body.scrollTop; } } return t; },addClass:function{ var _2=AJS.forceArray(arguments); var _3=_2.pop; var _4=function(o){ if(!new RegExp("(^|\\s)"+_3+"(\\s|$)").test(o.className)){ o.className+=(o.className?" ":"")+_3; } }; AJS.map(_2,function(_6){ _4(_6); }); },setStyle:function{ var _7=AJS.forceArray(arguments); var _8=_7.pop; var _9=_7.pop; AJS.map(_7,function(_a){ _a.style[_9]=AJS.getCssDim(_8); }); },extend:function(_b){ var _c=new this("no_init"); for(k in _b){ var _d=_c[k]; var _e=_b[k]; if(_d&&_d!=_e&&typeof _e=="function"){ _e=this._parentize(_e,_d); } _c[k]=_e; } return new AJS.Class(_c); },log:function(o){ if(window.console){ console.log(o); }else{ var div=AJS.$("ajs_logger"); if(!div){ div=AJS.DIV({id:"ajs_logger","style":"color: green; position: absolute; left: 0"}); div.style.top=AJS.getScrollTop+"px"; AJS.ACN(AJS.getBody,div); } AJS.setHTML(div,""+o); } },setHeight:function{ var _11=AJS.forceArray(arguments); _11.splice(_11.length-1,0,"height"); AJS.setStyle.apply(null,_11); },evalTxt:function(txt){ try{ return eval("("+txt+")"); } catch(e){ return eval(txt); } },_getRealScope:function(fn,_14){ _14=AJS.$A(_14); var _15=fn._cscope||window; return function{ var _16=AJS.$FA(arguments).concat(_14); return fn.apply(_15,_16); }; },getWindowSize:function(doc){ doc=doc||document; var _18,win_h; if(self.innerHeight){ _18=self.innerWidth; win_h=self.innerHeight; }else{ if(doc.documentElement&&doc.documentElement.clientHeight){ _18=doc.documentElement.clientWidth; win_h=doc.documentElement.clientHeight; }else{ if(doc.body){ _18=doc.body.clientWidth; win_h=doc.body.clientHeight; } } } return {"w":_18,"h":win_h}; },_sendXMLHttpRequest:function(req,_1a){ var d=new AJSDeferred(req); var _1c=function{ if(req.readyState==4){ var _1d=""; try{ _1d=req.status; } catch(e){ } if(_1d==200||_1d==304||req.responseText==null){ d.callback; }else{ if(d.errbacks.length==0){ if(AJS.ajaxErrorHandler){ AJS.ajaxErrorHandler(req.responseText,req); } }else{ d.errback; } } } }; req.onreadystatechange=_1c; return d; },flattenList:function(_1e){ var r=[]; var _20=function(r,l){ AJS.map(l,function(o){ if(o==null){ }else{ if(AJS.isArray(o)){ _20(r,o); }else{ r.push(o); } } }); }; _20(r,_1e); return r; },isFunction:function(obj){ return (typeof obj=="function"); },setEventKey:function(e){ e.key=e.keyCode?e.keyCode:e.charCode; if(window.event){ e.ctrl=window.event.ctrlKey; e.shift=window.event.shiftKey; }else{ e.ctrl=e.ctrlKey; e.shift=e.shiftKey; } switch(e.key){ case 63232: e.key=38; break; case 63233: e.key=40; break; case 63235: e.key=39; break; case 63234: e.key=37; break; } },removeElement:function{ var _26=AJS.forceArray(arguments); AJS.map(_26,function(elm){ AJS.swapDOM(elm,null); }); },_unloadListeners:function{ if(AJS.listeners){ AJS.map(AJS.listeners,function(elm,_29,fn){ AJS.REV(elm,_29,fn); }); } AJS.listeners=[]; },getBody:function{ return AJS.$bytc("body")[0]; },getIndex:function(elm,_2c,_2d){ for(var i=0;i<_2c.length;i++){ if(_2d&&_2d(_2c[i])||elm==_2c[i]){ return i; } } return -1; },isIn:function(elm,_30){ var i=AJS.getIndex(elm,_30); if(i!=-1){ return true; }else{ return false; } },isArray:function(obj){ return obj instanceof Array; },setLeft:function{ var _33=AJS.forceArray(arguments); _33.splice(_33.length-1,0,"left"); AJS.setStyle.apply(null,_33); },appendChildNodes:function(elm){ if(arguments.length>=2){ AJS.map(arguments,function(n){ if(AJS.isString(n)){ n=AJS.TN(n); } if(AJS.isDefined(n)){ elm.appendChild(n); } },1); } return elm; },getElementsByTagAndClassName:function(_36,_37,_38,_39){ var _3a=[]; if(!AJS.isDefined(_38)){ _38=document; } if(!AJS.isDefined(_36)){ _36="*"; } var els=_38.getElementsByTagName(_36); var _3c=els.length; var _3d=new RegExp("(^|\\s)"+_37+"(\\s|$)"); for(i=0,j=0;i<_3c;i++){ if(_3d.test(els[i].className)||_37==null){ _3a[j]=els[i]; j++; } } if(_39){ return _3a[0]; }else{ return _3a; } },isOpera:function{ return (navigator.userAgent.toLowerCase.indexOf("opera")!=-1); },isString:function(obj){ return (typeof obj=="string"); },getRequest:function(url,_40,_41){ if(!_41){ _41="POST"; } var req=AJS.getXMLHttpRequest; if(url.match(/^https?:\/\//)==null){ if(AJS.BASE_URL!=""){ if(AJS.BASE_URL.lastIndexOf("/")!=AJS.BASE_URL.length-1){ AJS.BASE_URL+="/"; } url=AJS.BASE_URL+url; } } req.open(_41,url,true); if(_41=="POST"){ req.setRequestHeader("Content-type","application/x-www-form-urlencoded"); } return AJS._sendXMLHttpRequest(req); },hideElement:function(elm){ var _44=AJS.forceArray(arguments); AJS.map(_44,function(elm){ elm.style.display="none"; }); },setOpacity:function(elm,p){ elm.style.opacity=p; elm.style.filter="alpha(opacity="+p*100+")"; },insertBefore:function(elm,_49){ _49.parentNode.insertBefore(elm,_49); return elm; },setWidth:function{ var _4a=AJS.forceArray(arguments); _4a.splice(_4a.length-1,0,"width"); AJS.setStyle.apply(null,_4a); },createArray:function(v){ if(AJS.isArray(v)&&!AJS.isString(v)){ return v; }else{ if(!v){ return []; }else{ return [v]; } } },isDict:function(o){ var _4d=String(o); return _4d.indexOf(" Object")!=-1; },isMozilla:function{ return (navigator.userAgent.toLowerCase.indexOf("gecko")!=-1&&navigator.productSub>=20030210); },removeEventListener:function(elm,_4f,fn,_51){ var _52="ajsl_"+_4f+fn; if(!_51){ _51=false; } fn=elm[_52]||fn; if(elm["on"+_4f]==fn){ elm["on"+_4f]=elm[_52+"old"]; } if(elm.removeEventListener){ elm.removeEventListener(_4f,fn,_51); if(AJS.isOpera){ elm.removeEventListener(_4f,fn,!_51); } }else{ if(elm.detachEvent){ elm.detachEvent("on"+_4f,fn); } } },callLater:function(fn,_54){ var _55=function{ fn; }; window.setTimeout(_55,_54); },setTop:function{ var _56=AJS.forceArray(arguments); _56.splice(_56.length-1,0,"top"); AJS.setStyle.apply(null,_56); },_createDomShortcuts:function{ var _57=["ul","li","td","tr","th","tbody","table","input","span","b","a","div","img","button","h1","h2","h3","h4","h5","h6","br","textarea","form","p","select","option","optgroup","iframe","script","center","dl","dt","dd","small","pre","i"]; var _58=function(elm){ AJS[elm.toUpperCase]=function{ return AJS.createDOM.apply(null,[elm,arguments]); }; }; AJS.map(_57,_58); AJS.TN=function(_5a){ return document.createTextNode(_5a); }; },addCallback:function(fn){ this.callbacks.unshift(fn); },bindMethods:function(_5c){ for(var k in _5c){ var _5e=_5c[k]; if(typeof (_5e)=="function"){ _5c[k]=AJS.$b(_5e,_5c); } } },urlencode:function(str){ return encodeURIComponent(str.toString); },partial:function(fn){ var _61=AJS.$FA(arguments); _61.shift; return function{ _61=_61.concat(AJS.$FA(arguments)); return fn.apply(window,_61); }; },isNumber:function(obj){ return (typeof obj=="number"); },queryArguments:function(_63){ var _64=[]; for(k in _63){ _64.push(k+"="+AJS.urlencode(_63[k])); } return _64.join("&"); },map:function(_65,fn,_67,_68){ var i=0,l=_65.length; if(_67){ i=_67; } if(_68){ l=_68; } for(i;i<l;i++){ var val=fn(_65[i],i); if(val!=undefined){ return val; } } },removeClass:function{ var _6b=AJS.forceArray(arguments); var cls=_6b.pop; var _6d=function(o){ o.className=o.className.replace(new RegExp("\\s?"+cls,"g"),""); }; AJS.map(_6b,function(elm){ _6d(elm); }); },setHTML:function(elm,_71){ elm.innerHTML=_71; return elm; },getCssDim:function(dim){ if(AJS.isString(dim)){ return dim; }else{ return dim+"px"; } },addEventListener:function(elm,_74,fn,_76,_77){ var _78="ajsl_"+_74+fn; if(!_77){ _77=false; } AJS.listeners=AJS.$A(AJS.listeners); if(AJS.isIn(_74,["keypress","keydown","keyup","click"])){ var _79=fn; fn=function(e){ AJS.setEventKey(e); return _79.apply(window,arguments); }; } var _7b=AJS.isIn(_74,["submit","load","scroll","resize"]); var _7c=AJS.$A(elm); AJS.map(_7c,function(_7d){ if(_76){ var _7e=fn; fn=function(e){ AJS.REV(_7d,_74,fn); return _7e.apply(window,arguments); }; } if(_7b){ var _80=_7d["on"+_74]; var _81=function{ if(_80){ fn(arguments); return _80(arguments); }else{ return fn(arguments); } }; _7d[_78]=_81; _7d[_78+"old"]=_80; elm["on"+_74]=_81; }else{ _7d[_78]=fn; if(_7d.attachEvent){ _7d.attachEvent("on"+_74,fn); }else{ if(_7d.addEventListener){ _7d.addEventListener(_74,fn,_77); } } AJS.listeners.push([_7d,_74,fn]); } }); },forceArray:function(_82){ var r=[]; AJS.map(_82,function(elm){ r.push(elm); }); return r; },update:function(l1,l2){ for(var i in l2){ l1[i]=l2[i]; } return l1; },getXMLHttpRequest:function{ var _88=[function{ return new XMLHttpRequest; },function{ return new ActiveXObject("Msxml2.XMLHTTP"); },function{ return new ActiveXObject("Microsoft.XMLHTTP"); },function{ return new ActiveXObject("Msxml2.XMLHTTP.4.0"); },function{ throw "Browser does not support XMLHttpRequest"; }]; for(var i=0;i<_88.length;i++){ var _8a=_88[i]; try{ return _8a; } catch(e){ } } },getElement:function(id){ if(AJS.isString(id)||AJS.isNumber(id)){ return document.getElementById(id); }else{ return id; } },isObject:function(obj){ return (typeof obj=="object"); },showElement:function{ var _8d=AJS.forceArray(arguments); AJS.map(_8d,function(elm){ elm.style.display=""; }); },bind:function(fn,_90,_91){ fn._cscope=_90; return AJS._getRealScope(fn,_91); },createDOM:function(_92,_93){ var i=0,attr; var elm=document.createElement(_92); var _96=_93[0]; if(AJS.isDict(_93[i])){ for(k in _96){ attr=_96[k]; if(k=="style"||k=="s"){ elm.style.cssText=attr; }else{ if(k=="c"||k=="class"||k=="className"){ elm.className=attr; }else{ elm.setAttribute(k,attr); } } } i++; } if(_96==null){ i=1; } for(var j=i;j<_93.length;j++){ var _98=_93[j]; if(_98){ var _99=typeof (_98); if(_99=="string"||_99=="number"){ _98=AJS.TN(_98); } elm.appendChild(_98); } } return elm; },swapDOM:function(_9a,src){ _9a=AJS.getElement(_9a); var _9c=_9a.parentNode; if(src){ src=AJS.getElement(src); _9c.replaceChild(src,_9a); }else{ _9c.removeChild(_9a); } return src; },isDefined:function(o){ return (o!="undefined"&&o!=null); },isElementHidden:function(elm){ return ((elm.style.display=="none")||(elm.style.visibility=="hidden")); }}; AJS.$=AJS.getElement; AJS.$$=AJS.getElements; AJS.$f=AJS.getFormElement; AJS.$p=AJS.partial; AJS.$b=AJS.bind; AJS.$A=AJS.createArray; AJS.DI=AJS.documentInsert; AJS.ACN=AJS.appendChildNodes; AJS.RCN=AJS.replaceChildNodes; AJS.AEV=AJS.addEventListener; AJS.REV=AJS.removeEventListener; AJS.$bytc=AJS.getElementsByTagAndClassName; AJS.$AP=AJS.absolutePosition; AJS.$FA=AJS.forceArray; AJS.addEventListener(window,"unload",AJS._unloadListeners); AJS._createDomShortcuts; AJS.Class=function(_9f){ var fn=function{ if(arguments[0]!="no_init"){ return this.init.apply(this,arguments); } }; fn.prototype=_9f; AJS.update(fn,AJS.Class.prototype); return fn; }; AJS.Class.prototype={extend:function(_a1){ var _a2=new this("no_init"); for(k in _a1){ var _a3=_a2[k]; var cur=_a1[k]; if(_a3&&_a3!=cur&&typeof cur=="function"){ cur=this._parentize(cur,_a3); } _a2[k]=cur; } return new AJS.Class(_a2); },implement:function(_a5){ AJS.update(this.prototype,_a5); },_parentize:function(cur,_a7){ return function{ this.parent=_a7; return cur.apply(this,arguments); }; }}; AJSDeferred=function(req){ this.callbacks=[]; this.errbacks=[]; this.req=req; }; AJSDeferred.prototype={excCallbackSeq:function(req,_aa){ var _ab=req.responseText; while(_aa.length>0){ var fn=_aa.pop; var _ad=fn(_ab,req); if(_ad){ _ab=_ad; } } },callback:function{ this.excCallbackSeq(this.req,this.callbacks); },errback:function{ if(this.errbacks.length==0){ alert("Error encountered:\n"+this.req.responseText); } this.excCallbackSeq(this.req,this.errbacks); },addErrback:function(fn){ this.errbacks.unshift(fn); },addCallback:function(fn){ this.callbacks.unshift(fn); },abort:function{ this.req.abort; },addCallbacks:function(fn1,fn2){ this.addCallback(fn1); this.addErrback(fn2); },sendReq:function(_b2){ if(AJS.isObject(_b2)){ this.req.send(AJS.queryArguments(_b2)); }else{ if(AJS.isDefined(_b2)){ this.req.send(_b2); }else{ this.req.send(""); } } }}; script_loaded=true;

AJS.fx={_shades:{0:"ffffff",1:"ffffee",2:"ffffdd",3:"ffffcc",4:"ffffbb",5:"ffffaa",6:"ffff99"},highlight:function(_1,_2){ var _3=new AJS.fx.Base; _3.elm=AJS.$(_1); _3.options.duration=600; _3.setOptions(_2); AJS.update(_3,{increase:function{ if(this.now==7){ _1.style.backgroundColor="#fff"; }else{ _1.style.backgroundColor="#"+AJS.fx._shades[Math.floor(this.now)]; } }}); return _3.custom(6,0); },fadeIn:function(_4,_5){ _5=_5||{}; if(!_5.from){ _5.from=0; AJS.setOpacity(_4,0); } if(!_5.to){ _5.to=1; } var s=new AJS.fx.Style(_4,"opacity",_5); return s.custom(_5.from,_5.to); },fadeOut:function(_7,_8){ _8=_8||{}; if(!_8.from){ _8.from=1; } if(!_8.to){ _8.to=0; } _8.duration=300; var s=new AJS.fx.Style(_7,"opacity",_8); return s.custom(_8.from,_8.to); },setWidth:function(_a,_b){ var s=new AJS.fx.Style(_a,"width",_b); return s.custom(_b.from,_b.to); },setHeight:function(_d,_e){ var s=new AJS.fx.Style(_d,"height",_e); return s.custom(_e.from,_e.to); }}; AJS.fx.Base=new AJS.Class({init:function(_10){ this.options={onStart:function{ },onComplete:function{ },transition:AJS.fx.Transitions.sineInOut,duration:500,wait:true,fps:50}; AJS.update(this.options,_10); AJS.bindMethods(this); },setOptions:function(_11){ AJS.update(this.options,_11); },step:function{ var _12=new Date.getTime; if(_12<this.time+this.options.duration){ this.cTime=_12-this.time; this.setNow; }else{ setTimeout(AJS.$b(this.options.onComplete,this,[this.elm]),10); this.clearTimer; this.now=this.to; } this.increase; },setNow:function{ this.now=this.compute(this.from,this.to); },compute:function(_13,to){ var _15=to-_13; return this.options.transition(this.cTime,_13,_15,this.options.duration); },clearTimer:function{ clearInterval(this.timer); this.timer=null; return this; },_start:function(_16,to){ if(!this.options.wait){ this.clearTimer; } if(this.timer){ return; } setTimeout(AJS.$p(this.options.onStart,this.elm),10); this.from=_16; this.to=to; this.time=new Date.getTime; this.timer=setInterval(this.step,Math.round(1000/this.options.fps)); return this; },custom:function(_18,to){ return this._start(_18,to); },set:function(to){ this.now=to; this.increase; return this; },setStyle:function(elm,_1c,val){ if(this.property=="opacity"){ AJS.setOpacity(elm,val); }else{ AJS.setStyle(elm,_1c,val); } }}); AJS.fx.Style=AJS.fx.Base.extend({init:function(elm,_1f,_20){ this.parent; this.elm=elm; this.setOptions(_20); this.property=_1f; },increase:function{ this.setStyle(this.elm,this.property,this.now); }}); AJS.fx.Styles=AJS.fx.Base.extend({init:function(elm,_22){ this.parent; this.elm=AJS.$(elm); this.setOptions(_22); this.now={}; },setNow:function{ for(p in this.from){ this.now[p]=this.compute(this.from[p],this.to[p]); } },custom:function(obj){ if(this.timer&&this.options.wait){ return; } var _24={}; var to={}; for(p in obj){ _24[p]=obj[p][0]; to[p]=obj[p][1]; } return this._start(_24,to); },increase:function{ for(var p in this.now){ this.setStyle(this.elm,p,this.now[p]); } }}); AJS.fx.Transitions={linear:function(t,b,c,d){ return c*t/d+b; },sineInOut:function(t,b,c,d){ return -c/2*(Math.cos(Math.PI*t/d)-1)+b; }}; script_loaded=true; script_loaded=true;

var GB_CURRENT=null; var GB_resources={"blank.gif":"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==","indicator.gif":"data:image/gif;base64,R0lGODlhZABkAPQAAP///1VVVbOzs5qamnh4eHx8fJKSkmdnZ2BgYHJycoyMjIeHh6ioqK6urmxsbFVVVaOjo4KCgltbWwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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4sWKkBhOMGidQsOq169gwyIJAgA7"}; GB_hide=function(cb){ GB_CURRENT.hide(cb); }; GB_imagePreloader=new AJS.Class({init:function(_2){ this.image=new Image; this.callback_fns=[]; var me=this; this.image.onload=function(_4){ var _5=me.callback_fns; if(_5!=[]){ AJS.map(_5,function(fn){ fn(me); }); } }; AJS.update(this,_2); },addCallback:function(fn){ if(fn){ this.callback_fns.push(fn); } },load:function(_8){ if(!_8&&this.imageUrl){ _8=this.imageUrl; }else{ if(!_8){ return; } } this.image.src=_8; }}); GreyBox=new AJS.Class({init:function(_9){ this.use_fx=AJS.fx; this.type="page"; this.overlay_click_close=false; this.salt=0; this.callback_fns=[]; this.reload_on_close=false; this.show_loading=true; this.preloader=new GB_imagePreloader; this.preloader.addCallback(AJS.bind(this.imageLoaded,this)); AJS.update(this,_9); },addCallback:function(fn){ if(fn){ this.callback_fns.push(fn); } },show:function(_b){ GB_CURRENT=this; this.url=_b; var _c=[AJS.$bytc("object"),AJS.$bytc("select")]; AJS.map(AJS.flattenList(_c),function(_d){ _d.style.visibility="hidden"; }); this.createElements; return false; },hide:function(cb){ var me=this; AJS.callLater(function{ var _10=me.callback_fns; if(_10!=[]){ AJS.map(_10,function(fn){ fn; }); } me.onHide; if(me.use_fx){ var elm=me.overlay; AJS.fx.fadeOut(me.overlay,{onComplete:function{ AJS.removeElement(elm); elm=null; },duration:300}); AJS.removeElement(me.g_window); }else{ AJS.removeElement(me.g_window,me.overlay); } me.removeFrame; AJS.REV(window,"scroll",_GB_setOverlayDimension); AJS.REV(window,"resize",_GB_update); var _13=[AJS.$bytc("object"),AJS.$bytc("select")]; AJS.map(AJS.flattenList(_13),function(elm){ elm.style.visibility="visible"; }); GB_CURRENT=null; if(me.reload_on_close){ window.location.reload; } if(AJS.isFunction(cb)){ cb; } },10); },update:function{ this.setOverlayDimension; this.setFrameSize; this.setWindowPosition; },createElements:function{ this.initOverlay; this.g_window=AJS.DIV({"id":"GB_window"}); AJS.hideElement(this.g_window); AJS.getBody.insertBefore(this.g_window,this.overlay.nextSibling); this.initFrame; this.initHook; this.update; var me=this; if(this.use_fx){ AJS.fx.fadeIn(this.overlay,{duration:300,to:0.7,onComplete:function{ me.onShow; AJS.showElement(me.g_window); me.startLoading; }}); }else{ AJS.setOpacity(this.overlay,0.7); AJS.showElement(this.g_window); this.onShow; this.startLoading; } AJS.AEV(window,"scroll",_GB_setOverlayDimension); AJS.AEV(window,"resize",_GB_update); },removeFrame:function{ try{ AJS.removeElement(this.frame); } catch(e){ } this.frame=null; },startLoading:function{ if(this.image){ AJS.hideElement(this.image); } if(!AJS.$("GB_loading")){ this.frame.appendChild(AJS.IMG({"id":"GB_loading","src":GB_resources["indicator.gif"]})); } AJS.showElement(this.frame); this.preloader.load(this.url); },setOverlayDimension:function{ var _16=AJS.getWindowSize; if(AJS.isMozilla||AJS.isOpera){ AJS.setWidth(this.overlay,"100%"); }else{ AJS.setWidth(this.overlay,_16.w); } var _17=Math.max(AJS.getScrollTop+_16.h,AJS.getScrollTop+this.height); if(_17<AJS.getScrollTop){ AJS.setHeight(this.overlay,_17); }else{ AJS.setHeight(this.overlay,AJS.getScrollTop+_16.h); } },initOverlay:function{ this.overlay=AJS.DIV({"id":"GB_overlay"}); if(this.overlay_click_close){ AJS.AEV(this.overlay,"click",GB_hide); } AJS.setOpacity(this.overlay,0); AJS.getBody.insertBefore(this.overlay,AJS.getBody.firstChild); },initFrame:function{ if(!this.frame){ this.frame=AJS.DIV({"class":"frame","id":"GB_frame"}); this.middle_cnt=AJS.DIV({"class":"content"},this.frame); this.top_cnt=AJS.DIV; this.bottom_cnt=AJS.DIV; AJS.ACN(this.g_window,this.top_cnt,this.middle_cnt,this.bottom_cnt); } },imageLoaded:function(_18){ if(_18.image.width!=0&&_18.image.height!=0){ if(AJS.$("GB_loading")){ this.frame.removeChild(AJS.$("GB_loading")); } if(this.image){ this.image.src=_18.image.src; }else{ this.image=AJS.IMG({"id":"GB_image","src":_18.image.src}); AJS.hideElement(this.image); this.frame.appendChild(this.image); } this.width=_18.image.width; this.height=_18.image.height; this.setFrameSize; this.setWindowPosition; if(this.use_fx){ AJS.setOpacity(this.image,0); AJS.showElement(this.image); AJS.fx.fadeIn(this.image); }else{ AJS.showElement(this.image); } } },onHide:function{ },onShow:function{ },setFrameSize:function{ },setWindowPosition:function{ },initHook:function{ }}); _GB_update=function{ if(GB_CURRENT){ GB_CURRENT.update; } }; _GB_setOverlayDimension=function{ if(GB_CURRENT){ GB_CURRENT.setOverlayDimension; } }; script_loaded=true; GB_showImage=function(_1,_2,_3){ var _4={width:300,height:300,type:"image",fullscreen:false,center_win:true,caption:_1,callback_fn:_3}; var _5=new GB_Gallery(_4); return _5.show(_2); }; GB_showPage=function(_6,_7,_8){ var _9={type:"page",caption:_6,callback_fn:_8,fullscreen:true,center_win:false}; var _a=new GB_Gallery(_9); return _a.show(_7); }; GB_Gallery=GreyBox.extend({init:function(_b){ this.parent({}); this.img_close=GB_resources["g_close.gif"]; AJS.update(this,_b); this.addCallback(this.callback_fn); },initHook:function{ AJS.addClass(this.g_window,"GB_Gallery"); var _c=AJS.DIV({"class":"inner"}); this.header=AJS.DIV({"class":"GB_header"},_c); AJS.setOpacity(this.header,0); AJS.getBody.insertBefore(this.header,this.overlay.nextSibling); var _d=AJS.TD({"id":"GB_caption","class":"caption","width":"40%"},this.caption); var _e=AJS.TD({"id":"GB_middle","class":"middle","width":"20%"}); var _f=AJS.IMG({"src":this.img_close}); AJS.AEV(_f,"click",GB_hide); var _10=AJS.TD({"class":"close","width":"40%"},_f); var _11=AJS.TBODY(AJS.TR(_d,_e,_10)); var _12=AJS.TABLE({"cellspacing":"0","cellpadding":0,"border":0},_11); AJS.ACN(_c,_12); if(this.fullscreen){ AJS.AEV(window,"scroll",AJS.$b(this.setWindowPosition,this)); }else{ AJS.AEV(window,"scroll",AJS.$b(this._setHeaderPos,this)); } },setFrameSize:function{ var _13=this.overlay.offsetWidth; var _14=AJS.getWindowSize; if(this.fullscreen){ this.width=_13-40; this.height=_14.h-80; } AJS.setWidth(this.frame,this.width); AJS.setHeight(this.frame,this.height); AJS.setWidth(this.header,_13); },_setHeaderPos:function{ AJS.setTop(this.header,AJS.getScrollTop+10); },setWindowPosition:function{ var _15=this.overlay.offsetWidth; var _16=AJS.getWindowSize; AJS.setLeft(this.g_window,((_15-50-this.width)/2)); var _17=AJS.getScrollTop+55; if(!this.center_win){ AJS.setTop(this.g_window,_17); }else{ var fl=((_16.h-this.height)/2)+20+AJS.getScrollTop; if(fl<0){ fl=0; } if(_17>fl){ fl=_17; } AJS.setTop(this.g_window,fl); } this._setHeaderPos; },onHide:function{ AJS.removeElement(this.header); AJS.removeClass(this.g_window,"GB_Gallery"); },onShow:function{ if(this.use_fx){ AJS.fx.fadeIn(this.header,{to:1}); }else{ AJS.setOpacity(this.header,1); } }}); GB_showImageSet=function(_1,_2,_3){ var _4={type:"image",fullscreen:false,center_win:true,width:300,height:300}; var _5=new GB_Sets(_4,_1); _5.addCallback(_3); _5.showSet(_2-1); return false; }; GB_Sets=GB_Gallery.extend({init:function(_6,_7){ this.parent(_6); if(!this.img_next){ this.img_next=GB_resources["next.gif"]; } if(!this.img_prev){ this.img_prev=GB_resources["prev.gif"]; } this.current_set=_7; },showSet:function(_8){ this.current_index=_8; var _9=this.current_set[this.current_index]; this.show(_9.url); this._setCaption(_9.caption); this.btn_prev=AJS.IMG({"class":"left",src:this.img_prev}); this.btn_next=AJS.IMG({"class":"right",src:this.img_next}); AJS.AEV(this.btn_prev,"click",AJS.$b(this.switchPrev,this)); AJS.AEV(this.btn_next,"click",AJS.$b(this.switchNext,this)); GB_STATUS=AJS.SPAN({"class":"GB_navStatus"}); AJS.ACN(AJS.$("GB_middle"),this.btn_prev,GB_STATUS,this.btn_next); this.updateStatus; },updateStatus:function{ AJS.setHTML(GB_STATUS,(this.current_index+1)+" / "+this.current_set.length); if(this.current_index==0){ AJS.addClass(this.btn_prev,"disabled"); }else{ AJS.removeClass(this.btn_prev,"disabled"); } if(this.current_index==this.current_set.length-1){ AJS.addClass(this.btn_next,"disabled"); }else{ AJS.removeClass(this.btn_next,"disabled"); } },_setCaption:function(_a){ AJS.setHTML(AJS.$("GB_caption"),_a); },updateFrame:function{ var _b=this.current_set[this.current_index]; this._setCaption(_b.caption); this.url=_b.url; this.startLoading; },switchPrev:function{ if(this.current_index!=0){ this.current_index--; this.updateFrame; this.updateStatus; } },switchNext:function{ if(this.current_index!=this.current_set.length-1){ this.current_index++; this.updateFrame; this.updateStatus; } }});

var ssheet=" ul#autoCompleteList li { overflow: hidden; padding-left: 4px; padding-right: 4px; "+" white-space: nowrap; cursor: default; } "+" ul#autoCompleteList li:hover { background-color: #f9f9f9; } "+" ul#autoCompleteList li span { font-weight: 900; } "+" ul#autoCompleteList { margin: 0px; padding: 0px; } "+" div#autoComplete { background-color: #ffffff; border: 1px solid #aaaaaa; "+" padding: 1px; position: absolute; z-index: 5; } "+" li#ca-watch a img { margin-right: 4px; } "+" li#ca-unwatch a img { margin-right: 4px; } "+" td.diff-ntitle a img { margin-right: 4px; } "+" #GB_overlay { background-color: #000000; position: absolute; margin: auto; top: 0; left: 0; "+" z-index: 100; } "+" #GB_window { left: 0; top: 0; font-size: 1px; position: absolute; overflow: visible; "+" z-index: 150; } "+" #GB_window .content { width: auto; margin: 0; padding: 0; text-align: center; } "+" #GB_frame #GB_loading { margin-top: 50px; margin-left: auto; margin-right: auto; } "+" #GB_frame { border: 0; margin: 0; padding: 0; overflow: auto; white-space: nowrap; } "+" .GB_Gallery { margin: 0 22px 0 22px; } "+" .GB_Gallery .content { background-color: #fff; border: 3px solid #ddd; } "+" .GB_header { top: 10px; left: 0; margin: 0; z-index: 500; position: absolute; "+" border-bottom: 2px solid #555555; border-top: 2px solid #555555; } "+" .GB_header .inner { background-color: #333333; font-family: Arial, Verdana, sans-serif; "+" padding: 2px 20px 2px 20px; } "+" .GB_header table { background-color: inherit; margin: 0; width: 100%; "+" border-collapse: collapse; } "+" .GB_header .caption { text-align: left; color: #eeeeee; white-space: nowrap; font-size: 20px; } "+" .GB_header .close { text-align: right; } "+" .GB_header .close img { z-index: 500; cursor: pointer; } "+" .GB_header .middle { white-space: nowrap; text-align: center; } "+" #GB_middle { color: #eeeeee; } "+" #GB_middle img { cursor: pointer; vertical-align: middle; } "+" #GB_middle .disabled { cursor: default; } "+" #GB_middle .left { padding-right: 10px; } "+" #GB_middle .right { padding-left: 10px; } "+" .GB_Window .content { background-color: #ffffff; border: 3px solid #cccccc; border-top: none; } "+" .GB_Window .header { border-bottom: 1px solid #aaaaaa; border-top: 1px solid #999999; "+" border-left: 3px solid #cccccc; border-right: 3px solid #cccccc; margin: 0; "+" height: 22px; font-size: 12px; padding: 3px 0; color: #333333; } "+" .GB_Window .caption { font-size: 12px; text-align: left; font-weight: bold; "+" white-space: nowrap; padding-right: 20px; } "+" .GB_Window .close { text-align: right; } "+" .GB_Window .close span { font-size: 12px; cursor: pointer; } "+" .GB_Window .close img { cursor: pointer; padding: 0 3px 0 0; } "+" .GB_Window .on { border-bottom: 1px solid #333333; } "+" .GB_Window .click { border-bottom: 1px solid red; } "; var sstyle=AJS.createDOM("style",{type:"text/css"}); AJS.setHTML(sstyle,ssheet); AJS.$bytc("head",null)[0].appendChild(sstyle); var Resources={HeaderLoadingImage:"data:image/gif;base64,R0lGODlhDAAMAPcaAHl5d66urMXFw3l5dpSUk5WVlKOjoq+vrsbGw6Sko7u7uaWlpbm5t3h4doiIhtLSz4aGhJaWlsbGxNHRzrCwr5SUkqKiobq6uNHRz4eHhf///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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9/YeAyUFtFYmID7+Z+X/9Z2L9/eXj5XVdkUXY/MfEwMDAcGFF/tWTZ29kywlxMCiK8zA8eoIIFQwnwRh3H75a+WvXSSY2VhaeZ68+bMKlAQBOGm9OVewMhgAAAABJRU5ErkJggg==",TangoCrossIcon:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEgAACxIB0t1+/AAAAAd0SU1FB9gBDAMXMoodyaUAAAERSURBVCjPlZG9SgNREIW/mXvd5YY10c0uKCnEwlZRFCwU7H0HsfUNbBXxJUxnKwhBSWOwEyvBRhtNoWAhAdFC0SBjEyHkp8ipZuCcmTNzYES4rnoJmAc+gE8gABtACrz0CgvrIbSOs8wW4vgOKFfiuFYtlWxT5AvI+1aNiRych2C3SWKp948neW7X3luiegOUB9nz06qXzRDsPsvs2XubU30HtoFo2E2LO4VC+9t723POgCowMYwczUTRxUOxaA3nrCliK849AZMD2bHq/lmSWF3ViiJvR87Zlaqlqqc93wRgfFn19RBsVrUFbOWq9V0RWxVpA5V/onSJpoA14BdoAD+dHDKg1smnD9IzhAH9aPgDrrlBOx9lMpwAAAAASUVORK5CYII="}; function findPos(_1){ var _2=curtop=0; if(_1.offsetParent){ _2=_1.offsetLeft; curtop=_1.offsetTop; while(_1=_1.offsetParent){ _2+=_1.offsetLeft; curtop+=_1.offsetTop; } } return [_2,curtop]; } function getElement(_3){ return document.evaluate(_3,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue; } function extend(_4,_5){ for(var i in _5){ _4[i]=_5[i]; } } var SearchBox={initialize:function(_7){ if(_7){ AJS.bindMethods(SearchBox); _7.setAttribute("autocomplete","off"); this.element=_7; this.autoComplete.initialize; this.cache.initialize; AJS.AEV(_7,"blur",this.onElementBlur); AJS.AEV(_7,"focus",this.onElementFocus); AJS.AEV(_7,"keyup",this.onElementKeyUp); } },onElementBlur:function(_8){ if(this.timeout){ window.clearTimeout(this.timeout); this.timeout=null; } this.timeout=window.setTimeout("SearchBox.autoComplete.hide",100); },onElementFocus:function(_9){ if(this.element.value.length>0){ this.autoComplete.display; } },onElementKeyUp:function(_a){ if(this.timeout){ window.clearTimeout(this.timeout); this.timeout=null; } if(_a.keyCode==40){ this.autoComplete.next; this.autoComplete.display; this.element.value=this.autoComplete.selected; }else{ if(_a.keyCode==38){ this.autoComplete.previous; this.autoComplete.display; this.element.value=this.autoComplete.selected; }else{ if(_a.keyCode==13){ this.autoComplete.hide; }else{ if(_a.keyCode==27){ this.autoComplete.hide; }else{ if(this.element.value){ if(this.cache.contains(this.element.value)){ this.autoComplete.populate(this.element.value,this.cache.fetch(this.element.value)); this.autoComplete.display; }else{ this.timeout=window.setTimeout("SearchBox.fetch",1000); } } } } } } },fetch:function{ var _b=this.element.value; if(this.timeout){ this.timeout=null; } if(_b.length>0){ var _c=AJS.getRequest("http://wiki.guildwars.com/api.php?action=opensearch&search="+_b,null,"GET"); _c.addCallback(function(_d,_e){ var _f=AJS.evalTxt(_d); if(_f.length==2){ SearchBox.cache.add(_f[0],_f[1]); SearchBox.autoComplete.populate(_f[0],_f[1]); if(SearchBox.autoComplete.count>0){ SearchBox.autoComplete.display; }else{ SearchBox.autoComplete.hide; } }else{ SearchBox.cache.add(_b,[]); SearchBox.autoComplete.populate(_b,[]); SearchBox.autoComplete.hide; } }); _c.sendReq; } },autoComplete:{initialize:function{ var fn=AJS.bind(function{ AJS.bindMethods(SearchBox.autoComplete); this.current=-1; this.key=""; this.arr=new Array; this.list=AJS.UL({id:"autoCompleteList"}); this.container=AJS.DIV({id:"autoComplete"},this.list); AJS.hideElement(this.container); AJS.getBody.appendChild(this.container); },SearchBox.autoComplete,[]); fn; },clear:function{ while(this.list.hasChildNodes){ this.list.removeChild(this.list.firstChild); } this.arr=new Array; },count:function{ return this.arr.length; },display:function{ if(this.count>0&&!this.visible){ var _11=SearchBox.element; var div=this.container; elem_pos=findPos(_11); AJS.setLeft(div,elem_pos[0]-1); AJS.setTop(div,elem_pos[1]+_11.offsetHeight); AJS.setWidth(div,_11.offsetWidth-4); AJS.showElement(div); } },hide:function{ AJS.hideElement(this.container); },visible:function{ return !(AJS.isElementHidden(this.container)); },next:function{ if(this.current==this.count-1){ this.setCurrent(-1); }else{ this.setCurrent(this.current+1); } },previous:function{ if(this.current==-1){ this.setCurrent(this.count-1); }else{ this.setCurrent(this.current-1); } },reset:function{ if(this.list.childNodes.length>this.current&&this.current!=-1){ this.list.childNodes[this.current].style.backgroundColor=""; this.list.childNodes[this.current].style.color="highlighttext"; } this.current=-1; },populate:function(key,arr){ if(key&&arr){ if(key.length>0){ this.clear; this.key=key; this.arr=arr; this.reset; for(var i in arr){ var li=AJS.LI({id:"autoCompleteLi"+i,childid:i,title:arr[i]},AJS.SPAN({},key),arr[i].substr(key.length)); this.list.appendChild(li); var _17=this; AJS.AEV(li,"click",function(_18){ var _19=_18.target; var i=_19.getAttribute("childid"); _17.setCurrent(i); SearchBox.element.value=_17.selected; _17.hide; }); } if(this.count<=0&&this.visible){ this.hide; } } } },selected:function{ if(this.current!=-1){ return this.arr[this.current]; }else{ return this.key; } },setCurrent:function(id){ if(this.current!=-1){ this.list.childNodes[this.current].style.backgroundColor=""; this.list.childNodes[this.current].style.color=""; } if(id!=-1){ this.list.childNodes[id].style.backgroundColor="highlight"; this.list.childNodes[id].style.color="highlighttext"; } this.current=id; }},cache:{initialize:function{ AJS.bindMethods(SearchBox.cache); SearchBox.cache.cache=new Object; },add:function(key,arr){ this.cache[key]=arr; },contains:function(key){ if(this.cache[key]){ return true; }else{ return false; } },count:function(key){ if(this.cache[key]){ return this.cache[key].length; }else{ return -1; } },fetch:function(key){ return this.cache[key]; },remove:function(key){ if(this.cache[key]){ this.cache[key]=null; } }}}; function AjaxLink(_22){ this.initialize(_22); } extend(AjaxLink.prototype,{initialize:function(_23){ if(!_23){ return; } this.link=_23; this.url=_23.href; this.working=false; this.link.href="javascript:void(0);"; this.image=AJS.IMG({src:Resources.HeaderLoadingImage,alt:"Working"}); AJS.hideElement(this.image); if(this.link.hasChildNodes){ this.link.insertBefore(this.image,this.link.firstChild); }else{ this.link.appendChild(this.image); } var _24=this; this.onLinkClick=AJS.bind(this.onLinkClick,this); this.disable=AJS.bind(this.disable,this); AJS.AEV(this.link,"click",this.onLinkClick); },onLinkClick:function(_25){ this.working=true; var _26=this; var _27=AJS.getRequest(this.url,null,"GET"); _27.addCallback(function(_28,req){ _26.working=false; AJS.hideElement(_26.image); var fn=AJS.bind(_26.onSuccess,_26,[_28]); fn; }); _27.addErrback(function(_2b,req){ _26.working=false; AJS.hideElement(_26.image); var fn=AJS.bind(_26.onError,_26,[_2b]); fn; }); this.image.src=Resources.HeaderLoadingImage; AJS.showElement(this.image); _27.sendReq; },disable:function{ AJS.REV(this.link,"click",this.onLinkClick); },onError:function(_2e){ },onSuccess:function(_2f){ }}); var WatchPage={initialize:function{ AJS.bindMethods(WatchPage); if(AJS.$("ca-watch")){ this.link=new AjaxLink(AJS.$("ca-watch").firstChild); }else{ if(AJS.$("ca-unwatch")){ this.link=new AjaxLink(AJS.$("ca-unwatch").firstChild); }else{ return; } } if(this.link.url.indexOf("action=watch")!=-1){ this.watched=false; }else{ this.watched=true; } this.link.onSuccess=this.toggle; },toggle:function(_30){ var _31=0; var _32=0; this.watched=!(this.watched); if(this.watched){ this.link.url=this.link.url.replace(/action=watch/i,"action=unwatch"); _31=_30.indexOf(""); this.link.link.parentNode.id="ca-unwatch"; var i=this.link.link.title.indexOf(" ["); if(ta){ if(i!=-1){ this.link.link.title=ta["ca-unwatch"][1]+this.link.link.title.substr(i); }else{ this.link.link.title=ta["ca-unwatch"][1]; } } }else{ this.link.url=this.link.url.replace(/action=unwatch/i,"action=watch"); _31=_30.indexOf(""); this.link.link.parentNode.id="ca-watch"; var i=this.link.link.title.indexOf(" ["); if(ta){ if(i!=-1){ this.link.link.title=ta["ca-watch"][1]+this.link.link.title.substr(i); }else{ this.link.link.title=ta["ca-watch"][1]; } } } _31=_30.indexOf(">",_31+40)+1; _32=_30.indexOf("<",_31); this.link.link.lastChild.nodeValue=_30.substr(_31,_32-_31); }}; var PatrolPage={initialize:function{ AJS.bindMethods(PatrolPage); var _35=getElement("//td[@class='diff-ntitle']/a[contains(@href, 'action=markpatrolled')]"); if(!_35){ return; } this.link=new AjaxLink(_35); this.link.onError=this.failed; this.link.onSuccess=this.marked; if(typeof(gwwaAutoPatrol) != 'undefined' && gwwaAutoPatrol){ this.link.onLinkClick; } },marked:function(_36){ var _37=0; var _38=0; _37=_36.indexOf("")+25; _38=_36.indexOf(" ",_37); this.link.link.lastChild.nodeValue=_36.substr(_37,_38-_37); this.link.image.src=Resources.TangoCheckIcon; this.link.image.alt="Success"; AJS.showElement(this.link.image); this.link.disable; },failed:function(_39){ var _3a=0; var _3b=0; _3a=_39.indexOf("")+25; _3b=_39.indexOf(" ",_3a); this.link.link.lastChild.nodeValue=_39.substr(_3a,_3b-_3a); this.link.image.src=Resources.TangoCrossIcon; this.link.image.alt="Failed"; AJS.showElement(this.link.image); }}; var Gallery={initialize:function{ if(wgPageName.indexOf("Image:")==0){ return; } var a=AJS.A({href:"javascript:void(0);",title:"View this page's gallery"},"Gallery"); this.link=AJS.LI({id:"ca-gallery"},a); Gallery.imageList.initialize; Gallery.imageList.populate(AJS.$("bodyContent")); if(Gallery.imageList.count>0){ var _3d=getElement("//div[@id='p-cactions']/div[@class='pBody']/ul"); if(_3d){ _3d.appendChild(this.link); } } AJS.AEV(a,"click",function(_3e){ var fun=AJS.bind(Gallery.activate,Gallery); fun; }); },activate:function{ if(Gallery.imageList.count==1){ GB_showImage(Gallery.imageList.images[0].caption,Gallery.imageList.images[0].url); }else{ if(Gallery.imageList.count>1){ GB_showImageSet(Gallery.imageList.images,1); } } },imageList:{initialize:function{ this.count=0; this.images=new Array; this.minSize=4097; },populate:function(_40){ if(!_40){ return; } var _41=AJS.$bytc("img",null,_40); if(_41){ for(var i=0;i<_41.length;i++){ if(_41[i].width*_41[i].height>=this.minSize){ var img=_41[i]; this.count++; this.images.push({"caption":unescape(img.parentNode.href.substr(img.parentNode.href.indexOf("Image:")).replace(/_/g," ")),"url":img.src.replace(/\/thumb(\/.*?)\/[^\/]*?$/i,"$1")}); } } } }}}; AJS.AEV(window,"load",function{ SearchBox.initialize(AJS.$("searchInput")); WatchPage.initialize; PatrolPage.initialize; Gallery.initialize; }); //