//OVerlib JS
var olLoaded=0;var pmStart=10000000;var pmUpper=10001000;var pmCount=pmStart+1;var pmt="";var pms=new Array();var olInfo=new Info("4.21",1);var FREPLACE=0;var FBEFORE=1;var FAFTER=2;var FALTERNATE=3;var FCHAIN=4;var olHideForm=0;var olHautoFlag=0;var olVautoFlag=0;var hookPts=new Array(),postParse=new Array(),cmdLine=new Array(),runTime=new Array();registerCommands("donothing,inarray,caparray,sticky,background,noclose,caption,left,right,center,offsetx,offsety,fgcolor,bgcolor,textcolor,capcolor,closecolor,width,border,cellpad,status,autostatus,autostatuscap,height,closetext,snapx,snapy,fixx,fixy,relx,rely,fgbackground,bgbackground,padx,pady,fullhtml,above,below,capicon,textfont,captionfont,closefont,textsize,captionsize,closesize,timeout,function,delay,hauto,vauto,closeclick,wrap,followmouse,mouseoff,closetitle,cssoff,compatmode,cssclass,fgclass,bgclass,textfontclass,captionfontclass,closefontclass");if(typeof ol_fgcolor=="undefined"){var ol_fgcolor="#CCCCFF"}if(typeof ol_bgcolor=="undefined"){var ol_bgcolor="#333399"}if(typeof ol_textcolor=="undefined"){var ol_textcolor="#000000"}if(typeof ol_capcolor=="undefined"){var ol_capcolor="#FFFFFF"}if(typeof ol_closecolor=="undefined"){var ol_closecolor="#9999FF"}if(typeof ol_textfont=="undefined"){var ol_textfont="Verdana,Arial,Helvetica"}if(typeof ol_captionfont=="undefined"){var ol_captionfont="Verdana,Arial,Helvetica"}if(typeof ol_closefont=="undefined"){var ol_closefont="Verdana,Arial,Helvetica"}if(typeof ol_textsize=="undefined"){var ol_textsize="1"}if(typeof ol_captionsize=="undefined"){var ol_captionsize="1"}if(typeof ol_closesize=="undefined"){var ol_closesize="1"}if(typeof ol_width=="undefined"){var ol_width="200"}if(typeof ol_border=="undefined"){var ol_border="1"}if(typeof ol_cellpad=="undefined"){var ol_cellpad=2}if(typeof ol_offsetx=="undefined"){var ol_offsetx=10}if(typeof ol_offsety=="undefined"){var ol_offsety=10}if(typeof ol_text=="undefined"){var ol_text="Default Text"}if(typeof ol_cap=="undefined"){var ol_cap=""}if(typeof ol_sticky=="undefined"){var ol_sticky=0}if(typeof ol_background=="undefined"){var ol_background=""}if(typeof ol_close=="undefined"){var ol_close="Close"}if(typeof ol_hpos=="undefined"){var ol_hpos=RIGHT}if(typeof ol_status=="undefined"){var ol_status=""}if(typeof ol_autostatus=="undefined"){var ol_autostatus=0}if(typeof ol_height=="undefined"){var ol_height=-1}if(typeof ol_snapx=="undefined"){var ol_snapx=0}if(typeof ol_snapy=="undefined"){var ol_snapy=0}if(typeof ol_fixx=="undefined"){var ol_fixx=-1}if(typeof ol_fixy=="undefined"){var ol_fixy=-1}if(typeof ol_relx=="undefined"){var ol_relx=null}if(typeof ol_rely=="undefined"){var ol_rely=null}if(typeof ol_fgbackground=="undefined"){var ol_fgbackground=""}if(typeof ol_bgbackground=="undefined"){var ol_bgbackground=""}if(typeof ol_padxl=="undefined"){var ol_padxl=1}if(typeof ol_padxr=="undefined"){var ol_padxr=1}if(typeof ol_padyt=="undefined"){var ol_padyt=1}if(typeof ol_padyb=="undefined"){var ol_padyb=1}if(typeof ol_fullhtml=="undefined"){var ol_fullhtml=0}if(typeof ol_vpos=="undefined"){var ol_vpos=BELOW}if(typeof ol_aboveheight=="undefined"){var ol_aboveheight=0}if(typeof ol_capicon=="undefined"){var ol_capicon=""}if(typeof ol_frame=="undefined"){var ol_frame=self}if(typeof ol_timeout=="undefined"){var ol_timeout=0}if(typeof ol_function=="undefined"){var ol_function=null}if(typeof ol_delay=="undefined"){var ol_delay=0}if(typeof ol_hauto=="undefined"){var ol_hauto=0}if(typeof ol_vauto=="undefined"){var ol_vauto=0}if(typeof ol_closeclick=="undefined"){var ol_closeclick=0}if(typeof ol_wrap=="undefined"){var ol_wrap=0}if(typeof ol_followmouse=="undefined"){var ol_followmouse=1}if(typeof ol_mouseoff=="undefined"){var ol_mouseoff=0}if(typeof ol_closetitle=="undefined"){var ol_closetitle="Close"}if(typeof ol_compatmode=="undefined"){var ol_compatmode=0}if(typeof ol_css=="undefined"){var ol_css=CSSOFF}if(typeof ol_fgclass=="undefined"){var ol_fgclass=""}if(typeof ol_bgclass=="undefined"){var ol_bgclass=""}if(typeof ol_textfontclass=="undefined"){var ol_textfontclass=""}if(typeof ol_captionfontclass=="undefined"){var ol_captionfontclass=""}if(typeof ol_closefontclass=="undefined"){var ol_closefontclass=""}if(typeof ol_texts=="undefined"){var ol_texts=new Array("Text 0","Text 1")}if(typeof ol_caps=="undefined"){var ol_caps=new Array("Caption 0","Caption 1")}var o3_text="";var o3_cap="";var o3_sticky=0;var o3_background="";var o3_close="Close";var o3_hpos=RIGHT;var o3_offsetx=2;var o3_offsety=2;var o3_fgcolor="";var o3_bgcolor="";var o3_textcolor="";var o3_capcolor="";var o3_closecolor="";var o3_width=100;var o3_border=1;var o3_cellpad=2;var o3_status="";var o3_autostatus=0;var o3_height=-1;var o3_snapx=0;var o3_snapy=0;var o3_fixx=-1;var o3_fixy=-1;var o3_relx=null;var o3_rely=null;var o3_fgbackground="";var o3_bgbackground="";var o3_padxl=0;var o3_padxr=0;var o3_padyt=0;var o3_padyb=0;var o3_fullhtml=0;var o3_vpos=BELOW;var o3_aboveheight=0;var o3_capicon="";var o3_textfont="Verdana,Arial,Helvetica";var o3_captionfont="Verdana,Arial,Helvetica";var o3_closefont="Verdana,Arial,Helvetica";var o3_textsize="1";var o3_captionsize="1";var o3_closesize="1";var o3_frame=self;var o3_timeout=0;var o3_timerid=0;var o3_allowmove=0;var o3_function=null;var o3_delay=0;var o3_delayid=0;var o3_hauto=0;var o3_vauto=0;var o3_closeclick=0;var o3_wrap=0;var o3_followmouse=1;var o3_mouseoff=0;var o3_closetitle="";var o3_compatmode=0;var o3_css=CSSOFF;var o3_fgclass="";var o3_bgclass="";var o3_textfontclass="";var o3_captionfontclass="";var o3_closefontclass="";var o3_x=0;var o3_y=0;var o3_showingsticky=0;var o3_removecounter=0;var over=null;var fnRef,hoveringSwitch=false;var olHideDelay;var isMac=(navigator.userAgent.indexOf("Mac")!=-1);var olOp=(navigator.userAgent.toLowerCase().indexOf("opera")>-1&&document.createTextNode);var olNs4=(navigator.appName=="Netscape"&&parseInt(navigator.appVersion)==4);var olNs6=(document.getElementById)?true:false;var olKq=(olNs6&&/konqueror/i.test(navigator.userAgent));var olIe4=(document.all)?true:false;var olIe5=false;var olIe55=false;var docRoot="document.body";if(olNs4){var oW=window.innerWidth;var oH=window.innerHeight;window.onresize=function(){if(oW!=window.innerWidth||oH!=window.innerHeight){location.reload()}}}if(olIe4){var agent=navigator.userAgent;if(/MSIE/.test(agent)){var versNum=parseFloat(agent.match(/MSIE[ ](\d\.\d+)\.*/i)[1]);if(versNum>=5){olIe5=true;olIe55=(versNum>=5.5&&!olOp)?true:false;if(olNs6){olNs6=false}}}if(olNs6){olIe4=false}}if(document.compatMode&&document.compatMode=="CSS1Compat"){docRoot=((olIe4&&!olOp)?"document.documentElement":docRoot)}if(window.addEventListener){window.addEventListener("load",OLonLoad_handler,false)}else{if(window.attachEvent){window.attachEvent("onload",OLonLoad_handler)}}var capExtent;function overlib(){if(!olLoaded||isExclusive(overlib.arguments)){return true}if(olCheckMouseCapture){olMouseCapture()}if(over){over=(typeof over.id!="string")?o3_frame.document.all.overDiv:over;cClick()}olHideDelay=0;o3_text=ol_text;o3_cap=ol_cap;o3_sticky=ol_sticky;o3_background=ol_background;o3_close=ol_close;o3_hpos=ol_hpos;o3_offsetx=ol_offsetx;o3_offsety=ol_offsety;o3_fgcolor=ol_fgcolor;o3_bgcolor=ol_bgcolor;o3_textcolor=ol_textcolor;o3_capcolor=ol_capcolor;o3_closecolor=ol_closecolor;o3_width=ol_width;o3_border=ol_border;o3_cellpad=ol_cellpad;o3_status=ol_status;o3_autostatus=ol_autostatus;o3_height=ol_height;o3_snapx=ol_snapx;o3_snapy=ol_snapy;o3_fixx=ol_fixx;o3_fixy=ol_fixy;o3_relx=ol_relx;o3_rely=ol_rely;o3_fgbackground=ol_fgbackground;o3_bgbackground=ol_bgbackground;o3_padxl=ol_padxl;o3_padxr=ol_padxr;o3_padyt=ol_padyt;o3_padyb=ol_padyb;o3_fullhtml=ol_fullhtml;o3_vpos=ol_vpos;o3_aboveheight=ol_aboveheight;o3_capicon=ol_capicon;o3_textfont=ol_textfont;o3_captionfont=ol_captionfont;o3_closefont=ol_closefont;o3_textsize=ol_textsize;o3_captionsize=ol_captionsize;o3_closesize=ol_closesize;o3_timeout=ol_timeout;o3_function=ol_function;o3_delay=ol_delay;o3_hauto=ol_hauto;o3_vauto=ol_vauto;o3_closeclick=ol_closeclick;o3_wrap=ol_wrap;o3_followmouse=ol_followmouse;o3_mouseoff=ol_mouseoff;o3_closetitle=ol_closetitle;o3_css=ol_css;o3_compatmode=ol_compatmode;o3_fgclass=ol_fgclass;o3_bgclass=ol_bgclass;o3_textfontclass=ol_textfontclass;o3_captionfontclass=ol_captionfontclass;o3_closefontclass=ol_closefontclass;setRunTimeVariables();fnRef="";o3_frame=ol_frame;if(!(over=createDivContainer())){return false}parseTokens("o3_",overlib.arguments);if(!postParseChecks()){return false}if(o3_delay==0){return runHook("olMain",FREPLACE)}else{o3_delayid=setTimeout("runHook('olMain', FREPLACE)",o3_delay);return false}}function nd(time){if(olLoaded&&!isExclusive()){hideDelay(time);if(o3_removecounter>=1){o3_showingsticky=0}if(o3_showingsticky==0){o3_allowmove=0;if(over!=null&&o3_timerid==0){runHook("hideObject",FREPLACE,over)}}else{o3_removecounter++}}return true}function cClick(){if(olLoaded){runHook("hideObject",FREPLACE,over);o3_showingsticky=0}return false}function overlib_pagedefaults(){parseTokens("ol_",overlib_pagedefaults.arguments)}function olMain(){var layerhtml,styleType;runHook("olMain",FBEFORE);if(o3_background!=""||o3_fullhtml){layerhtml=runHook("ol_content_background",FALTERNATE,o3_css,o3_text,o3_background,o3_fullhtml)}else{styleType=(pms[o3_css-1-pmStart]=="cssoff"||pms[o3_css-1-pmStart]=="cssclass");if(o3_fgbackground!=""){o3_fgbackground='background="'+o3_fgbackground+'"'}if(o3_bgbackground!=""){o3_bgbackground=(styleType?'background="'+o3_bgbackground+'"':o3_bgbackground)}if(o3_fgcolor!=""){o3_fgcolor=(styleType?'bgcolor="'+o3_fgcolor+'"':o3_fgcolor)}if(o3_bgcolor!=""){o3_bgcolor=(styleType?'bgcolor="'+o3_bgcolor+'"':o3_bgcolor)}if(o3_height>0){o3_height=(styleType?'height="'+o3_height+'"':o3_height)}else{o3_height=""}if(o3_cap==""){layerhtml=runHook("ol_content_simple",FALTERNATE,o3_css,o3_text)}else{if(o3_sticky){layerhtml=runHook("ol_content_caption",FALTERNATE,o3_css,o3_text,o3_cap,o3_close)}else{layerhtml=runHook("ol_content_caption",FALTERNATE,o3_css,o3_text,o3_cap,"")}}}if(o3_sticky){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}o3_showingsticky=1;o3_removecounter=0}if(!runHook("createPopup",FREPLACE,layerhtml)){return false}if(o3_autostatus>0){o3_status=o3_text;if(o3_autostatus>1){o3_status=o3_cap}}o3_allowmove=0;if(o3_timeout>0){if(o3_timerid>0){clearTimeout(o3_timerid)}o3_timerid=setTimeout("cClick()",o3_timeout)}runHook("disp",FREPLACE,o3_status);runHook("olMain",FAFTER);return(olOp&&event&&event.type=="mouseover"&&!o3_status)?"":(o3_status!="")}function ol_content_simple(text){var cpIsMultiple=/,/.test(o3_cellpad);var txt='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+" "+o3_height)+'><tr><td><table width="100%" border="0" '+((olNs4||!cpIsMultiple)?'cellpadding="'+o3_cellpad+'" ':"")+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+" "+o3_fgbackground+" "+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">':((!olNs4&&cpIsMultiple)?' style="'+setCellPadStr(o3_cellpad)+'">':">"))+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+text+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"</td></tr></table></td></tr></table>";set_background("");return txt}function ol_content_caption(text,title,close){var nameId,txt,cpIsMultiple=/,/.test(o3_cellpad);var closing,closeevent;closing="";closeevent="onmouseover";if(o3_closeclick==1){closeevent=(o3_closetitle?"title='"+o3_closetitle+"'":"")+" onclick"}if(o3_capicon!=""){nameId=' hspace = "5" align = "middle" alt = ""';if(typeof o3_dragimg!="undefined"&&o3_dragimg){nameId=' hspace="5" name="'+o3_dragimg+'" id="'+o3_dragimg+'" align="middle" alt="Drag Enabled" title="Drag Enabled"'}o3_capicon='<img src="'+o3_capicon+'"'+nameId+" />"}if(close!=""){closing="<td "+(!o3_compatmode&&o3_closefontclass?'class="'+o3_closefontclass:'align="RIGHT')+'"><a href="javascript:return '+fnRef+'cClick();"'+((o3_compatmode&&o3_closefontclass)?' class="'+o3_closefontclass+'" ':" ")+closeevent+'="return '+fnRef+'cClick();">'+(o3_closefontclass?"":wrapStr(0,o3_closesize,"close"))+close+(o3_closefontclass?"":wrapStr(1,o3_closesize,"close"))+"</a></td>"}txt='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+" "+o3_bgbackground+" "+o3_height)+'><tr><td><table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td'+(o3_captionfontclass?' class="'+o3_captionfontclass+'">':">")+(o3_captionfontclass?"":"<b>"+wrapStr(0,o3_captionsize,"caption"))+o3_capicon+title+(o3_captionfontclass?"":wrapStr(1,o3_captionsize)+"</b>")+"</td>"+closing+'</tr></table><table width="100%" border="0" '+((olNs4||!cpIsMultiple)?'cellpadding="'+o3_cellpad+'" ':"")+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+" "+o3_fgbackground+" "+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">':((!olNs4&&cpIsMultiple)?' style="'+setCellPadStr(o3_cellpad)+'">':">"))+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+text+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"</td></tr></table></td></tr></table>";set_background("");return txt}function ol_content_background(text,picture,hasfullhtml){if(hasfullhtml){txt=text}else{txt='<table width="'+o3_width+'" border="0" cellpadding="0" cellspacing="0" height="'+o3_height+'"><tr><td colspan="3" height="'+o3_padyt+'"></td></tr><tr><td width="'+o3_padxl+'"></td><td valign="TOP" width="'+(o3_width-o3_padxl-o3_padxr)+(o3_textfontclass?'" class="'+o3_textfontclass:"")+'">'+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+text+(o3_textfontclass?"":wrapStr(1,o3_textsize))+'</td><td width="'+o3_padxr+'"></td></tr><tr><td colspan="3" height="'+o3_padyb+'"></td></tr></table>'}set_background(picture);return txt}function set_background(pic){if(pic==""){if(olNs4){over.background.src=null}else{if(over.style){over.style.backgroundImage="none"}}}else{if(olNs4){over.background.src=pic}else{if(over.style){over.style.width=o3_width+"px";over.style.backgroundImage="url("+pic+")"}}}}var olShowId=-1;function disp(statustext){runHook("disp",FBEFORE);if(o3_allowmove==0){runHook("placeLayer",FREPLACE);(olNs6&&olShowId<0)?olShowId=setTimeout("runHook('showObject', FREPLACE, over)",1):runHook("showObject",FREPLACE,over);o3_allowmove=(o3_sticky||o3_followmouse==0)?0:1}runHook("disp",FAFTER);if(statustext!=""){self.status=statustext}}function createPopup(lyrContent){runHook("createPopup",FBEFORE);if(o3_wrap){var wd,ww,theObj=(olNs4?over:over.style);theObj.top=theObj.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?"px":0);layerWrite(lyrContent);wd=(olNs4?over.clip.width:over.offsetWidth);if(wd>(ww=windowWidth())){lyrContent=lyrContent.replace(/\&nbsp;/g," ");o3_width=ww;o3_wrap=0}}layerWrite(lyrContent);if(o3_wrap){o3_width=(olNs4?over.clip.width:over.offsetWidth)}runHook("createPopup",FAFTER,lyrContent);return true}function placeLayer(){var placeX,placeY,widthFix=0;if(o3_frame.innerWidth){widthFix=18}iwidth=windowWidth();winoffset=(olIe4)?eval("o3_frame."+docRoot+".scrollLeft"):o3_frame.pageXOffset;placeX=runHook("horizontalPlacement",FCHAIN,iwidth,winoffset,widthFix);if(o3_frame.innerHeight){iheight=o3_frame.innerHeight}else{if(eval("o3_frame."+docRoot)&&eval("typeof o3_frame."+docRoot+".clientHeight=='number'")&&eval("o3_frame."+docRoot+".clientHeight")){iheight=eval("o3_frame."+docRoot+".clientHeight")}}scrolloffset=(olIe4)?eval("o3_frame."+docRoot+".scrollTop"):o3_frame.pageYOffset;placeY=runHook("verticalPlacement",FCHAIN,iheight,scrolloffset);repositionTo(over,placeX,placeY)}function olMouseMove(e){var e=(e)?e:event;if(e.pageX){o3_x=e.pageX;o3_y=e.pageY}else{if(e.clientX){o3_x=eval("e.clientX+o3_frame."+docRoot+".scrollLeft");o3_y=eval("e.clientY+o3_frame."+docRoot+".scrollTop")}}if(o3_allowmove==1){runHook("placeLayer",FREPLACE)}if(hoveringSwitch&&!olNs4&&runHook("cursorOff",FREPLACE)){(olHideDelay?hideDelay(olHideDelay):cClick());hoveringSwitch=!hoveringSwitch}}function no_overlib(){return ver3fix}function olMouseCapture(){capExtent=document;var fN,str="",l,k,f,wMv,sS,mseHandler=olMouseMove;var re=/function[ ]*(\w*)\(/;wMv=(!olIe4&&window.onmousemove);if(document.onmousemove||wMv){if(wMv){capExtent=window}f=capExtent.onmousemove.toString();fN=f.match(re);if(fN==null){str=f+"(e); "}else{if(fN[1]=="anonymous"||fN[1]=="olMouseMove"||(wMv&&fN[1]=="onmousemove")){if(!olOp&&wMv){l=f.indexOf("{")+1;k=f.lastIndexOf("}");sS=f.substring(l,k);if((l=sS.indexOf("("))!=-1){sS=sS.substring(0,l).replace(/^\s+/,"").replace(/\s+$/,"");if(eval("typeof "+sS+" == 'undefined'")){window.onmousemove=null}else{str=sS+"(e);"}}}if(!str){olCheckMouseCapture=false;return}}else{if(fN[1]){str=fN[1]+"(e); "}else{l=f.indexOf("{")+1;k=f.lastIndexOf("}");str=f.substring(l,k)+"\n"}}}str+="olMouseMove(e); ";mseHandler=new Function("e",str)}capExtent.onmousemove=mseHandler;if(olNs4){capExtent.captureEvents(Event.MOUSEMOVE)}}function parseTokens(pf,ar){var v,i,mode=-1,par=(pf!="ol_");var fnMark=(par&&!ar.length?1:0);for(i=0;i<ar.length;i++){if(mode<0){if(typeof ar[i]=="number"&&ar[i]>pmStart&&ar[i]<pmUpper){fnMark=(par?1:0);i--}else{switch(pf){case"ol_":ol_text=ar[i].toString();break;default:o3_text=ar[i].toString()}}mode=0}else{if(ar[i]>=pmCount||ar[i]==DONOTHING){continue}if(ar[i]==INARRAY){fnMark=0;eval(pf+"text=ol_texts["+ar[++i]+"].toString()");continue}if(ar[i]==CAPARRAY){eval(pf+"cap=ol_caps["+ar[++i]+"].toString()");continue}if(ar[i]==STICKY){if(pf!="ol_"){eval(pf+"sticky=1")}continue}if(ar[i]==BACKGROUND){eval(pf+'background="'+ar[++i]+'"');continue}if(ar[i]==NOCLOSE){if(pf!="ol_"){opt_NOCLOSE()}continue}if(ar[i]==CAPTION){eval(pf+"cap='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CENTER||ar[i]==LEFT||ar[i]==RIGHT){eval(pf+"hpos="+ar[i]);if(pf!="ol_"){olHautoFlag=1}continue}if(ar[i]==OFFSETX){eval(pf+"offsetx="+ar[++i]);continue}if(ar[i]==OFFSETY){eval(pf+"offsety="+ar[++i]);continue}if(ar[i]==FGCOLOR){eval(pf+'fgcolor="'+ar[++i]+'"');continue}if(ar[i]==BGCOLOR){eval(pf+'bgcolor="'+ar[++i]+'"');continue}if(ar[i]==TEXTCOLOR){eval(pf+'textcolor="'+ar[++i]+'"');continue}if(ar[i]==CAPCOLOR){eval(pf+'capcolor="'+ar[++i]+'"');continue}if(ar[i]==CLOSECOLOR){eval(pf+'closecolor="'+ar[++i]+'"');continue}if(ar[i]==WIDTH){eval(pf+"width="+ar[++i]);continue}if(ar[i]==BORDER){eval(pf+"border="+ar[++i]);continue}if(ar[i]==CELLPAD){i=opt_MULTIPLEARGS(++i,ar,(pf+"cellpad"));continue}if(ar[i]==STATUS){eval(pf+"status='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==AUTOSTATUS){eval(pf+"autostatus=("+pf+"autostatus == 1) ? 0 : 1");continue}if(ar[i]==AUTOSTATUSCAP){eval(pf+"autostatus=("+pf+"autostatus == 2) ? 0 : 2");continue}if(ar[i]==HEIGHT){eval(pf+"height="+pf+"aboveheight="+ar[++i]);continue}if(ar[i]==CLOSETEXT){eval(pf+"close='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==SNAPX){eval(pf+"snapx="+ar[++i]);continue}if(ar[i]==SNAPY){eval(pf+"snapy="+ar[++i]);continue}if(ar[i]==FIXX){eval(pf+"fixx="+ar[++i]);continue}if(ar[i]==FIXY){eval(pf+"fixy="+ar[++i]);continue}if(ar[i]==RELX){eval(pf+"relx="+ar[++i]);continue}if(ar[i]==RELY){eval(pf+"rely="+ar[++i]);continue}if(ar[i]==FGBACKGROUND){eval(pf+'fgbackground="'+ar[++i]+'"');continue}if(ar[i]==BGBACKGROUND){eval(pf+'bgbackground="'+ar[++i]+'"');continue}if(ar[i]==PADX){eval(pf+"padxl="+ar[++i]);eval(pf+"padxr="+ar[++i]);continue}if(ar[i]==PADY){eval(pf+"padyt="+ar[++i]);eval(pf+"padyb="+ar[++i]);continue}if(ar[i]==FULLHTML){if(pf!="ol_"){eval(pf+"fullhtml=1")}continue}if(ar[i]==BELOW||ar[i]==ABOVE){eval(pf+"vpos="+ar[i]);if(pf!="ol_"){olVautoFlag=1}continue}if(ar[i]==CAPICON){eval(pf+'capicon="'+ar[++i]+'"');continue}if(ar[i]==TEXTFONT){eval(pf+"textfont='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CAPTIONFONT){eval(pf+"captionfont='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CLOSEFONT){eval(pf+"closefont='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==TEXTSIZE){eval(pf+'textsize="'+ar[++i]+'"');continue}if(ar[i]==CAPTIONSIZE){eval(pf+'captionsize="'+ar[++i]+'"');continue}if(ar[i]==CLOSESIZE){eval(pf+'closesize="'+ar[++i]+'"');continue}if(ar[i]==TIMEOUT){eval(pf+"timeout="+ar[++i]);continue}if(ar[i]==FUNCTION){if(pf=="ol_"){if(typeof ar[i+1]!="number"){v=ar[++i];ol_function=(typeof v=="function"?v:null)}}else{fnMark=0;v=null;if(typeof ar[i+1]!="number"){v=ar[++i]}opt_FUNCTION(v)}continue}if(ar[i]==DELAY){eval(pf+"delay="+ar[++i]);continue}if(ar[i]==HAUTO){eval(pf+"hauto=("+pf+"hauto == 0) ? 1 : 0");continue}if(ar[i]==VAUTO){eval(pf+"vauto=("+pf+"vauto == 0) ? 1 : 0");continue}if(ar[i]==CLOSECLICK){eval(pf+"closeclick=("+pf+"closeclick == 0) ? 1 : 0");continue}if(ar[i]==WRAP){eval(pf+"wrap=("+pf+"wrap == 0) ? 1 : 0");continue}if(ar[i]==FOLLOWMOUSE){eval(pf+"followmouse=("+pf+"followmouse == 1) ? 0 : 1");continue}if(ar[i]==MOUSEOFF){eval(pf+"mouseoff=("+pf+"mouseoff==0) ? 1 : 0");v=ar[i+1];if(pf!="ol_"&&eval(pf+"mouseoff")&&typeof v=="number"&&(v<pmStart||v>pmUpper)){olHideDelay=ar[++i]}continue}if(ar[i]==CLOSETITLE){eval(pf+"closetitle='"+escSglQuote(ar[++i])+"'");continue}if(ar[i]==CSSOFF||ar[i]==CSSCLASS){eval(pf+"css="+ar[i]);continue}if(ar[i]==COMPATMODE){eval(pf+"compatmode=("+pf+"compatmode==0) ? 1 : 0");continue}if(ar[i]==FGCLASS){eval(pf+'fgclass="'+ar[++i]+'"');continue}if(ar[i]==BGCLASS){eval(pf+'bgclass="'+ar[++i]+'"');continue}if(ar[i]==TEXTFONTCLASS){eval(pf+'textfontclass="'+ar[++i]+'"');continue}if(ar[i]==CAPTIONFONTCLASS){eval(pf+'captionfontclass="'+ar[++i]+'"');continue}if(ar[i]==CLOSEFONTCLASS){eval(pf+'closefontclass="'+ar[++i]+'"');continue}i=parseCmdLine(pf,i,ar)}}if(fnMark&&o3_function){o3_text=o3_function()}if((pf=="o3_")&&o3_wrap){o3_width=0;var tReg=/<.*\n*>/ig;if(!tReg.test(o3_text)){o3_text=o3_text.replace(/[ ]+/g,"&nbsp;")}if(!tReg.test(o3_cap)){o3_cap=o3_cap.replace(/[ ]+/g,"&nbsp;")}}if((pf=="o3_")&&o3_sticky){if(!o3_close&&(o3_frame!=ol_frame)){o3_close=ol_close}if(o3_mouseoff&&(o3_frame==ol_frame)){opt_NOCLOSE(" ")}}}function layerWrite(txt){txt+="\n";if(olNs4){var lyr=o3_frame.document.layers.overDiv.document;lyr.write(txt);lyr.close()}else{if(typeof over.innerHTML!="undefined"){if(olIe5&&isMac){over.innerHTML=""}over.innerHTML=txt}else{range=o3_frame.document.createRange();range.setStartAfter(over);domfrag=range.createContextualFragment(txt);while(over.hasChildNodes()){over.removeChild(over.lastChild)}over.appendChild(domfrag)}}}function showObject(obj){runHook("showObject",FBEFORE);var theObj=(olNs4?obj:obj.style);theObj.visibility="visible";runHook("showObject",FAFTER)}function hideObject(obj){runHook("hideObject",FBEFORE);var theObj=(olNs4?obj:obj.style);if(olNs6&&olShowId>0){clearTimeout(olShowId);olShowId=0}theObj.visibility="hidden";theObj.top=theObj.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?"px":0);if(o3_timerid>0){clearTimeout(o3_timerid)}if(o3_delayid>0){clearTimeout(o3_delayid)}o3_timerid=0;o3_delayid=0;self.status="";if(obj.onmouseout||obj.onmouseover){if(olNs4){obj.releaseEvents(Event.MOUSEOUT||Event.MOUSEOVER)}obj.onmouseout=obj.onmouseover=null}runHook("hideObject",FAFTER)}function repositionTo(obj,xL,yL){var theObj=(olNs4?obj:obj.style);theObj.left=xL+(!olNs4?"px":0);theObj.top=yL+(!olNs4?"px":0)}function cursorOff(){var left=parseInt(over.style.left);var top=parseInt(over.style.top);var right=left+(over.offsetWidth>=parseInt(o3_width)?over.offsetWidth:parseInt(o3_width));var bottom=top+(over.offsetHeight>=o3_aboveheight?over.offsetHeight:o3_aboveheight);if(o3_x<left||o3_x>right||o3_y<top||o3_y>bottom){return true}return false}function opt_FUNCTION(callme){o3_text=(callme?(typeof callme=="string"?(/.+\(.*\)/.test(callme)?eval(callme):callme):callme()):(o3_function?o3_function():"No Function"));return 0}function opt_NOCLOSE(unused){if(!unused){o3_close=""}if(olNs4){over.captureEvents(Event.MOUSEOUT||Event.MOUSEOVER);over.onmouseover=function(){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}};over.onmouseout=function(e){if(olHideDelay){hideDelay(olHideDelay)}else{cClick(e)}}}else{over.onmouseover=function(){hoveringSwitch=true;if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}}}return 0}function opt_MULTIPLEARGS(i,args,parameter){var k=i,re,pV,str="";for(k=i;k<args.length;k++){if(typeof args[k]=="number"&&args[k]>pmStart){break}str+=args[k]+","}if(str){str=str.substring(0,--str.length)}k--;pV=(olNs4&&/cellpad/i.test(parameter))?str.split(",")[0]:str;eval(parameter+'="'+pV+'"');return k}function nbspCleanup(){if(o3_wrap){o3_text=o3_text.replace(/\&nbsp;/g," ");o3_cap=o3_cap.replace(/\&nbsp;/g," ")}}function escSglQuote(str){return str.toString().replace(/'/g,"\\'")}function OLonLoad_handler(e){var re=/\w+\(.*\)[;\s]+/g,olre=/overlib\(|nd\(|cClick\(/,fn,l,i;if(!olLoaded){olLoaded=1}if(window.removeEventListener&&e.eventPhase==3){window.removeEventListener("load",OLonLoad_handler,false)}else{if(window.detachEvent){window.detachEvent("onload",OLonLoad_handler);var fN=document.body.getAttribute("onload");if(fN){fN=fN.toString().match(re);if(fN&&fN.length){for(i=0;i<fN.length;i++){if(/anonymous/.test(fN[i])){continue}while((l=fN[i].search(/\)[;\s]+/))!=-1){fn=fN[i].substring(0,l+1);fN[i]=fN[i].substring(l+2);if(olre.test(fn)){eval(fn)}}}}}}}}function wrapStr(endWrap,fontSizeStr,whichString){var fontStr,fontColor,isClose=((whichString=="close")?1:0),hasDims=/[%\-a-z]+$/.test(fontSizeStr);fontSizeStr=(olNs4)?(!hasDims?fontSizeStr:"1"):fontSizeStr;if(endWrap){return(hasDims&&!olNs4)?(isClose?"</span>":"</div>"):"</font>"}else{fontStr="o3_"+whichString+"font";fontColor="o3_"+((whichString=="caption")?"cap":whichString)+"color";return(hasDims&&!olNs4)?(isClose?'<span style="font-family: '+quoteMultiNameFonts(eval(fontStr))+"; color: "+eval(fontColor)+"; font-size: "+fontSizeStr+';">':'<div style="font-family: '+quoteMultiNameFonts(eval(fontStr))+"; color: "+eval(fontColor)+"; font-size: "+fontSizeStr+';">'):'<font face="'+eval(fontStr)+'" color="'+eval(fontColor)+'" size="'+(parseInt(fontSizeStr)>7?"7":fontSizeStr)+'">'}}function quoteMultiNameFonts(theFont){var v,pM=theFont.split(",");for(var i=0;i<pM.length;i++){v=pM[i];v=v.replace(/^\s+/,"").replace(/\s+$/,"");if(/\s/.test(v)&&!/['"]/.test(v)){v="'"+v+"'";pM[i]=v}}return pM.join()}function isExclusive(args){return false}function setCellPadStr(parameter){var Str="",j=0,ary=new Array(),top,bottom,left,right;Str+="padding: ";ary=parameter.replace(/\s+/g,"").split(",");switch(ary.length){case 2:top=bottom=ary[j];left=right=ary[++j];break;case 3:top=ary[j];left=right=ary[++j];bottom=ary[++j];break;case 4:top=ary[j];right=ary[++j];bottom=ary[++j];left=ary[++j];break}Str+=((ary.length==1)?ary[0]+"px;":top+"px "+right+"px "+bottom+"px "+left+"px;");return Str}function hideDelay(time){if(time&&!o3_delay){if(o3_timerid>0){clearTimeout(o3_timerid)}o3_timerid=setTimeout("cClick()",(o3_timeout=time))}}function horizontalPlacement(browserWidth,horizontalScrollAmount,widthFix){var placeX,iwidth=browserWidth,winoffset=horizontalScrollAmount;var parsedWidth=parseInt(o3_width);if(o3_fixx>-1||o3_relx!=null){placeX=(o3_relx!=null?(o3_relx<0?winoffset+o3_relx+iwidth-parsedWidth-widthFix:winoffset+o3_relx):o3_fixx)}else{if(o3_hauto==1){if((o3_x-winoffset)>(iwidth/2)){o3_hpos=LEFT}else{o3_hpos=RIGHT}}if(o3_hpos==CENTER){placeX=o3_x+o3_offsetx-(parsedWidth/2);if(placeX<winoffset){placeX=winoffset}}if(o3_hpos==RIGHT){placeX=o3_x+o3_offsetx;if((placeX+parsedWidth)>(winoffset+iwidth-widthFix)){placeX=iwidth+winoffset-parsedWidth-widthFix;if(placeX<0){placeX=0}}}if(o3_hpos==LEFT){placeX=o3_x-o3_offsetx-parsedWidth;if(placeX<winoffset){placeX=winoffset}}if(o3_snapx>1){var snapping=placeX%o3_snapx;if(o3_hpos==LEFT){placeX=placeX-(o3_snapx+snapping)}else{placeX=placeX+(o3_snapx-snapping)}if(placeX<winoffset){placeX=winoffset}}}return placeX}function verticalPlacement(browserHeight,verticalScrollAmount){var placeY,iheight=browserHeight,scrolloffset=verticalScrollAmount;var parsedHeight=(o3_aboveheight?parseInt(o3_aboveheight):(olNs4?over.clip.height:over.offsetHeight));if(o3_fixy>-1||o3_rely!=null){placeY=(o3_rely!=null?(o3_rely<0?scrolloffset+o3_rely+iheight-parsedHeight:scrolloffset+o3_rely):o3_fixy)}else{if(o3_vauto==1){if((o3_y-scrolloffset)>(iheight/2)&&o3_vpos==BELOW&&(o3_y+parsedHeight+o3_offsety-(scrolloffset+iheight)>0)){o3_vpos=ABOVE}else{if(o3_vpos==ABOVE&&(o3_y-(parsedHeight+o3_offsety)-scrolloffset<0)){o3_vpos=BELOW}}}if(o3_vpos==ABOVE){if(o3_aboveheight==0){o3_aboveheight=parsedHeight}placeY=o3_y-(o3_aboveheight+o3_offsety);if(placeY<scrolloffset){placeY=scrolloffset}}else{placeY=o3_y+o3_offsety}if(o3_snapy>1){var snapping=placeY%o3_snapy;if(o3_aboveheight>0&&o3_vpos==ABOVE){placeY=placeY-(o3_snapy+snapping)}else{placeY=placeY+(o3_snapy-snapping)}if(placeY<scrolloffset){placeY=scrolloffset}}}return placeY}function checkPositionFlags(){if(olHautoFlag){olHautoFlag=o3_hauto=0}if(olVautoFlag){olVautoFlag=o3_vauto=0}return true}function windowWidth(){var w;if(o3_frame.innerWidth){w=o3_frame.innerWidth}else{if(eval("o3_frame."+docRoot)&&eval("typeof o3_frame."+docRoot+".clientWidth=='number'")&&eval("o3_frame."+docRoot+".clientWidth")){w=eval("o3_frame."+docRoot+".clientWidth")}}return w}function createDivContainer(id,frm,zValue){id=(id||"overDiv"),frm=(frm||o3_frame),zValue=(zValue||1000);var objRef,divContainer=layerReference(id);if(divContainer==null){if(olNs4){divContainer=frm.document.layers[id]=new Layer(window.innerWidth,frm);objRef=divContainer}else{var body=(olIe4?frm.document.all.tags("BODY")[0]:frm.document.getElementsByTagName("BODY")[0]);if(olIe4&&!document.getElementById){body.insertAdjacentHTML("beforeEnd",'<div id="'+id+'"></div>');divContainer=layerReference(id)}else{divContainer=frm.document.createElement("DIV");divContainer.id=id;body.appendChild(divContainer)}objRef=divContainer.style}objRef.position="absolute";objRef.visibility="hidden";objRef.zIndex=zValue;if(olIe4&&!olOp){objRef.left=objRef.top="0px"}else{objRef.left=objRef.top=-10000+(!olNs4?"px":0)}}return divContainer}function layerReference(id){return(olNs4?o3_frame.document.layers[id]:(document.all?o3_frame.document.all[id]:o3_frame.document.getElementById(id)))}function isFunction(fnRef){var rtn=true;if(typeof fnRef=="object"){for(var i=0;i<fnRef.length;i++){if(typeof fnRef[i]=="function"){continue}rtn=false;break}}else{if(typeof fnRef!="function"){rtn=false}}return rtn}function argToString(array,strtInd,argName){var jS=strtInd,aS="",ar=array;argName=(argName?argName:"ar");if(ar.length>jS){for(var k=jS;k<ar.length;k++){aS+=argName+"["+k+"], "}aS=aS.substring(0,aS.length-2)}return aS}function reOrder(hookPt,fnRef,order){var newPt=new Array(),match,i,j;if(!order||typeof order=="undefined"||typeof order=="number"){return hookPt}if(typeof order=="function"){if(typeof fnRef=="object"){newPt=newPt.concat(fnRef)}else{newPt[newPt.length++]=fnRef}for(i=0;i<hookPt.length;i++){match=false;if(typeof fnRef=="function"&&hookPt[i]==fnRef){continue}else{for(j=0;j<fnRef.length;j++){if(hookPt[i]==fnRef[j]){match=true;break}}}if(!match){newPt[newPt.length++]=hookPt[i]}}newPt[newPt.length++]=order}else{if(typeof order=="object"){if(typeof fnRef=="object"){newPt=newPt.concat(fnRef)}else{newPt[newPt.length++]=fnRef}for(j=0;j<hookPt.length;j++){match=false;if(typeof fnRef=="function"&&hookPt[j]==fnRef){continue}else{for(i=0;i<fnRef.length;i++){if(hookPt[j]==fnRef[i]){match=true;break}}}if(!match){newPt[newPt.length++]=hookPt[j]}}for(i=0;i<newPt.length;i++){hookPt[i]=newPt[i]}newPt.length=0;for(j=0;j<hookPt.length;j++){match=false;for(i=0;i<order.length;i++){if(hookPt[j]==order[i]){match=true;break}}if(!match){newPt[newPt.length++]=hookPt[j]}}newPt=newPt.concat(order)}}hookPt=newPt;return hookPt}function setRunTimeVariables(){if(typeof runTime!="undefined"&&runTime.length){for(var k=0;k<runTime.length;k++){runTime[k]()}}}function parseCmdLine(pf,i,args){if(typeof cmdLine!="undefined"&&cmdLine.length){for(var k=0;k<cmdLine.length;k++){var j=cmdLine[k](pf,i,args);if(j>-1){i=j;break}}}return i}function postParseChecks(pf,args){if(typeof postParse!="undefined"&&postParse.length){for(var k=0;k<postParse.length;k++){if(postParse[k](pf,args)){continue}return false}}return true}function registerCommands(cmdStr){if(typeof cmdStr!="string"){return}var pM=cmdStr.split(",");pms=pms.concat(pM);for(var i=0;i<pM.length;i++){eval(pM[i].toUpperCase()+"="+pmCount++)}}function registerNoParameterCommands(cmdStr){if(!cmdStr&&typeof cmdStr!="string"){return}pmt=(!pmt)?cmdStr:pmt+","+cmdStr}function registerHook(fnHookTo,fnRef,hookType,optPm){var hookPt,last=typeof optPm;if(fnHookTo=="plgIn"||fnHookTo=="postParse"){return}if(typeof hookPts[fnHookTo]=="undefined"){hookPts[fnHookTo]=new FunctionReference()}hookPt=hookPts[fnHookTo];if(hookType!=null){if(hookType==FREPLACE){hookPt.ovload=fnRef;if(fnHookTo.indexOf("ol_content_")>-1){hookPt.alt[pms[CSSOFF-1-pmStart]]=fnRef}}else{if(hookType==FBEFORE||hookType==FAFTER){var hookPt=(hookType==1?hookPt.before:hookPt.after);if(typeof fnRef=="object"){hookPt=hookPt.concat(fnRef)}else{hookPt[hookPt.length++]=fnRef}if(optPm){hookPt=reOrder(hookPt,fnRef,optPm)}}else{if(hookType==FALTERNATE){if(last=="number"){hookPt.alt[pms[optPm-1-pmStart]]=fnRef}}else{if(hookType==FCHAIN){hookPt=hookPt.chain;if(typeof fnRef=="object"){hookPt=hookPt.concat(fnRef)}else{hookPt[hookPt.length++]=fnRef}}}}}return}}function registerRunTimeFunction(fn){if(isFunction(fn)){if(typeof fn=="object"){runTime=runTime.concat(fn)}else{runTime[runTime.length++]=fn}}}function registerCmdLineFunction(fn){if(isFunction(fn)){if(typeof fn=="object"){cmdLine=cmdLine.concat(fn)}else{cmdLine[cmdLine.length++]=fn}}}function registerPostParseFunction(fn){if(isFunction(fn)){if(typeof fn=="object"){postParse=postParse.concat(fn)}else{postParse[postParse.length++]=fn}}}function runHook(fnHookTo,hookType){var l=hookPts[fnHookTo],k,rtnVal=null,optPm,arS,ar=runHook.arguments;if(hookType==FREPLACE){arS=argToString(ar,2);if(typeof l=="undefined"||!(l=l.ovload)){rtnVal=eval(fnHookTo+"("+arS+")")}else{rtnVal=eval("l("+arS+")")}}else{if(hookType==FBEFORE||hookType==FAFTER){if(typeof l!="undefined"){l=(hookType==1?l.before:l.after);if(l.length){arS=argToString(ar,2);for(var k=0;k<l.length;k++){eval("l[k]("+arS+")")}}}}else{if(hookType==FALTERNATE){optPm=ar[2];arS=argToString(ar,3);if(typeof l=="undefined"||(l=l.alt[pms[optPm-1-pmStart]])=="undefined"){rtnVal=eval(fnHookTo+"("+arS+")")}else{rtnVal=eval("l("+arS+")")}}else{if(hookType==FCHAIN){arS=argToString(ar,2);l=l.chain;for(k=l.length;k>0;k--){if((rtnVal=eval("l[k-1]("+arS+")"))!=void (0)){break}}}}}}return rtnVal}function FunctionReference(){this.ovload=null;this.before=new Array();this.after=new Array();this.alt=new Array();this.chain=new Array()}function Info(version,prerelease){this.version=version;this.prerelease=prerelease;this.simpleversion=Math.round(this.version*100);this.major=parseInt(this.simpleversion/100);this.minor=parseInt(this.simpleversion/10)-this.major*10;this.revision=parseInt(this.simpleversion)-this.major*100-this.minor*10;this.meets=meets}function meets(reqdVersion){return(!reqdVersion)?false:this.simpleversion>=Math.round(100*parseFloat(reqdVersion))}registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSOFF);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSOFF);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSOFF);registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSCLASS);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSCLASS);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSCLASS);registerPostParseFunction(checkPositionFlags);registerHook("hideObject",nbspCleanup,FAFTER);registerHook("horizontalPlacement",horizontalPlacement,FCHAIN);registerHook("verticalPlacement",verticalPlacement,FCHAIN);if(olNs4||(olIe5&&isMac)||olKq){olLoaded=1}registerNoParameterCommands("sticky,autostatus,autostatuscap,fullhtml,hauto,vauto,closeclick,wrap,followmouse,mouseoff,compatmode");var olCheckMouseCapture=true;if((olNs4||olNs6||olIe4)){olMouseCapture()}else{overlib=no_overlib;nd=no_overlib;ver3fix=true};
//OLD JS
var speed=10;var pause=1500;var timerID=null;var bannerRunning=false;var ar=new Array();ar[0]="Willkommen bei AfterDark multigamgLAN";ar[1]="Batteflield, Call of Duty, CounterStrike, Flat Out, Need for Speed, World of Warcraft und viele andere";ar[2]="the plays begin...";var message=0;var state="";clearState();function stopBanner(){if(bannerRunning){clearTimeout(timerID);}timerRunning=false;}function startBanner(){stopBanner();showBanner();}function clearState(){state="";for(var i=0;i<ar[message].length;++i){state+="0";}}function showBanner(){if(getString()){message++;if(ar.length<=message){message=0;}clearState();timerID=setTimeout("showBanner()",pause);}else{var str="";for(var j=0;j<state.length;++j){str+=(state.charAt(j)=="1")?ar[message].charAt(j):" ";}window.status=str;timerID=setTimeout("showBanner()",speed);}}function getString(){var full=true;for(var j=0;j<state.length;++j){if(state.charAt(j)==0){full=false;}}if(full){return true;}while(1){var num=getRandom(ar[message].length);if(state.charAt(num)=="0"){break;}}state=state.substring(0,num)+"1"+state.substring(num+1,state.length);return false;}function getRandom(max){var now=new Date();var num=now.getTime()*now.getSeconds()*Math.random();return num%max;}function InsertCode(object,CodeStart,CodeEnd){if(!CodeEnd){CodeEnd="";}if(CodeStart!=""){object.focus();if(document.selection){sel=document.selection.createRange();selected=sel.text;sel.text=CodeStart+selected+CodeEnd;}else{if(object.selectionStart||object.selectionStart=="0"){var startPos=object.selectionStart;var endPos=object.selectionEnd;object.value=object.value.substring(0,startPos)+CodeStart+object.value.substring(startPos,endPos)+CodeEnd+object.value.substring(endPos,object.value.length);}else{object.value+=CodeStart+CodeEnd;}}}}function OpenWindow(url,name){url=url.replace(/\&amp\;/g,"&");Win1=window.open(url,name,"width=600,height=200,left=100,top=100");Win1.focus();}function OpenPreviewWindow(url,obj){text=obj.value.replace(/\n/g,"--NEWLINE--");url+="&text="+text;OpenWindow(url,"Vorschau");}function OpenHelplet(module,helpletid){w=window.open("index.php?mod=helplet&action=helplet&design=base&module="+module+"&helpletid="+helpletid,"neu","width=800, height=500, resizable=yes, scrollbars=yes");}var xmlHttp=false;try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){xmlHttp=false;}}if(!xmlHttp&&typeof XMLHttpRequest!="undefined"){xmlHttp=new XMLHttpRequest();}function loadPage(url){location.href=url;}function LoadingToolTip(text){if(window.event){var scr=TX_getScrollPos();var cordX=window.event.clientX+scr.x;var cordY=window.event.clientY+scr.y;}document.getElementById("LSloading").style.position="absolute";document.getElementById("LSloading").style.left=(cordX+20)+"px";document.getElementById("LSloading").style.top=(cordY+20)+"px";document.getElementById("LSloading").innerHTML=text;document.getElementById("LSloading").style.visibility="visible";}function TextAreaPlusCharsLeft(textarea,counter,maxchar){if(textarea.value.length>maxchar){textarea.value=textarea.value.substr(0,maxchar);textarea.blur();}counter.value=maxchar-textarea.value.length;}function CheckBoxBoxActivate(name,id){if(id){document.getElementById(name).style.display="";}else{document.getElementById(name).style.display="none";}}function DropDownBoxActivate(name,id,list){if(list){var found=false;for(var x=0;x<list.length;x++){if(list[x]==id){found=true;}}if(!found){document.getElementById(name).style.display="none";}else{document.getElementById(name).style.display="";}}else{if(id<=0){document.getElementById(name).style.display="none";}else{document.getElementById(name).style.display="";}var Preisliste=document.getElementsByName("price_id")[0];if(Preisliste){for(z=0;z<Preisliste.length;z++){Preisliste.remove(z);}LoadingToolTip("<b>Loading new pricelist...</b>");if(xmlHttp){xmlHttp.open("GET","index.php?mod=usrmgr&action=pricelist&design=base&party_id="+document.getElementsByName("party_id")[0].value);xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){var Lines=xmlHttp.responseText.split("\r");for(CurLine=0;CurLine<Lines.length;CurLine++){var Row=Lines[CurLine].split("%");if(Row[0]!=""){var Eintrag=document.createElement("option");Eintrag.text=Row[0];Eintrag.value=Row[1];var FolgendeOption=null;if(document.all){FolgendeOption=Auswahlliste.length;}Preisliste.add(Eintrag,FolgendeOption);}}document.getElementById("LSloading").style.visibility="hidden";}};xmlHttp.send(null);}}}}function CheckPasswordSecurity(password,ImgObj){var TestNumberOfChars=false;var TestUppercaseChars=false;var TestLowercaseChars=false;var TestDigits=false;var TestSpecialChars=false;var TestCounter=false;var TestCounter2=false;var TestWhiteSpaces=false;var counter=0;if(password.length>=8){TestNumberOfChars=true;}if(password.match(/[A-Z].*[A-Z]/)){TestUppercaseChars=true;}if(password.match(/[a-z].*[a-z]/)){TestLowercaseChars=true;}if(password.match(/[0-9].*[0-9]/)){TestDigits=true;}var specCharCounter=0;if(password.length>0){characters=password.split("");for(var i=0;i<characters.length;i++){singleChar=characters[i];if(singleChar.match(/[^a-zA-Z0-9]/)){specCharCounter++;}}if(specCharCounter>=2){TestSpecialChars=true;}}if(password.match(/\s/)){TestWhiteSpaces=true;}if(TestUppercaseChars){counter++;}if(TestLowercaseChars){counter++;}if(TestDigits){counter++;}if(TestSpecialChars){counter++;}if((counter>=2)&&(!TestWhiteSpaces)){TestCounter=true;}if((counter>=3)&&!(TestWhiteSpaces)){TestCounter2=true;}var zaehler=0;if(TestCounter){zaehler++;}if(TestCounter2){zaehler++;}if(TestNumberOfChars){zaehler++;}ImgObj.src="design/images/password_bar"+zaehler+".jpg";}function markieren(EintragSpalte){if(typeof(document.getElementsByTagName)!="undefined"){var Spalten=EintragSpalte.getElementsByTagName("td");}else{if(typeof(EintragSpalte.cells)!="undefined"){var Spalten=EintragSpalte.cells;}else{return false;}}for(var c=0;c<Spalten.length;c++){Spalten[c].className="row_value_important";}return true;}function unmarkieren(EintragSpalte){if(typeof(document.getElementsByTagName)!="undefined"){var Spalten=EintragSpalte.getElementsByTagName("td");}else{if(typeof(EintragSpalte.cells)!="undefined"){var Spalten=EintragSpalte.cells;}else{return false;}}for(var c=0;c<Spalten.length;c++){Spalten[c].className="row_value";}return true;}function change_selection(){if(document.ms_result.action_select.value==""){return 0;}else{if(document.ms_result.action_select.value=="select_all"){for(z=0;z<=document.ms_result.length-1;z++){document.ms_result.elements[z].checked=1;}}else{if(document.ms_result.action_select.value=="select_none"){for(z=0;z<=document.ms_result.length-1;z++){document.ms_result.elements[z].checked=0;}}else{if(document.ms_result.action_select.value=="select_invert"){for(z=0;z<=document.ms_result.length-1;z++){if(document.ms_result.elements[z].checked){document.ms_result.elements[z].checked=0;}else{document.ms_result.elements[z].checked=1;}}}else{if(MultiSelectSecurityQuest[document.ms_result.action_select.value]==1){if(!confirm("Wollen Sie die Aktion '"+document.ms_result.action_select.options[document.ms_result.action_select.selectedIndex].text+"' wirklich auf alle ausgewählten Einträge anwenden?")){return 0;}}MultiSelectActions[document.ms_result.action_select.value]=MultiSelectActions[document.ms_result.action_select.value].replace(/&amp;/g,"&");document.ms_result.action=MultiSelectActions[document.ms_result.action_select.value];document.ms_result.submit();}}}}}function SubmitDropDown(FormObj,DropDownObj){FormObj.action=DropDownObj.value;FormObj.submit();}var setdata;var mouseflag=0;function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p){d.MM_p=new Array();}var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++){if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}}function MM_findObj(n,d){var p,i,x;if(!d){d=document;}if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}if(!(x=d[n])&&d.all){x=d.all[n];}for(i=0;!x&&i<d.forms.length;i++){x=d.forms[i][n];}for(i=0;!x&&d.layers&&i<d.layers.length;i++){x=MM_findObj(n,d.layers[i].document);}if(!x&&document.getElementById){x=document.getElementById(n);}return x;}function MM_swapImage(){MM_swapImgRestore();var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3){if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc){x.oSrc=x.src;}x.src=a[i+2];}}}function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++){x.src=x.oSrc;}}function changeImage(id){var i=0;if(mouseflag==1){var StartPos=0;if(CurrentPicture.indexOf("lsthumb_")>0){StartPos=CurrentPicture.indexOf("lsthumb_")+8;}else{StartPos=CurrentPicture.lastIndexOf("/")+1;}img=CurrentPicture.substring(StartPos,CurrentPicture.length-4);if(id!="null"&&document.getElementById(id.id.substring(1,id.id.length)).value!=img){id.style.backgroundImage="url("+CurrentPicture+")";document.getElementById(id.id.substring(1,id.id.length)).value=img;}}}var CurrentPicture="";function UpdateCurrentPicture(file){CurrentPicture=file;document.images["PreviewIcon"].src=file;}function AllselectH(rowid){mouseflag=1;for(var x=0;x<cols;x++){var zahl=x*100+rowid;changeImage(document.getElementById("fcell"+zahl));}mouseflag=0;}function AllselectV(colid){mouseflag=1;for(var x=0;x<rows;x++){var zahl=colid*100+x;changeImage(document.getElementById("fcell"+zahl));}mouseflag=0;}function showseat(id){if(id!="null"&&setdata!=id){data_array=seat[id].split(",");MM_swapImgRestore();document.getElementById("seating").firstChild.nodeValue="Block: "+data_array[4];document.getElementById("name").firstChild.nodeValue=data_array[0];if(data_array[1]||data_array[2]){document.getElementById("name").firstChild.nodeValue+=" ("+data_array[1]+" "+data_array[2]+")";}document.getElementById("clan").firstChild.nodeValue=data_array[3];document.getElementById("ip").firstChild.nodeValue=data_array[7];switch(data_array[6]){case"1":document.getElementById("seating").firstChild.nodeValue+=" [Frei]";MM_swapImage(id,"","ext_inc/auto_images/{default_design}/seat/seat_free_onclick.png",1);break;case"2":document.getElementById("seating").firstChild.nodeValue+=" [Belegt]";MM_swapImage(id,"","ext_inc/auto_images/{default_design}/seat/seat_reserved_onclick.png",1);break;case"3":document.getElementById("seating").firstChild.nodeValue+=" [Vorgemerkt]";MM_swapImage(id,"","ext_inc/auto_images/{default_design}/seat/seat_marked_onclick.png",1);break;case"8":document.getElementById("seating").firstChild.nodeValue+=" [Belegt8]";MM_swapImage(id,"","ext_inc/auto_images/{default_design}/seat/seat_myselfe_onclick.png",1);break;case"9":document.getElementById("seating").firstChild.nodeValue+=" [Belegt9]";MM_swapImage(id,"","ext_inc/auto_images/{default_design}/seat/seat_clanmate_onclick.png",1);break;default:document.getElementById("seating").firstChild.nodeValue+=" [Umgebung]";break;}setdata=id;}}function InitSeating(){MM_preloadImages("ext_inc/auto_images/{default_design}/seat/seat_free_onclick.png");MM_preloadImages("ext_inc/auto_images/{default_design}/seat/seat_reserved_onclick.png");MM_preloadImages("ext_inc/auto_images/{default_design}/seat/seat_marked_onclick.png");MM_preloadImages("ext_inc/auto_images/{default_design}/seat/seat_myselfe_onclick.png");MM_preloadImages("ext_inc/auto_images/{default_design}/seat/seat_clanmate_onclick.png");var flagV=new Array();var flagH=new Array();for(i=0;i<=cols;i++){flagV[i]=false;}for(i=0;i<=rows;i++){flagH[i]=false;}}function setFlag(Ereignis){mouseflag=1;}function resetFlag(Ereignis){mouseflag=0;}function TX_getScrollPos(){if(document.body.scrollTop!=undefined&&navigator.appName.indexOf("Explorer")!=-1){var res=(document.compatMode!="CSS1Compat")?document.body:document.documentElement;return{x:res.scrollLeft,y:res.scrollTop};}else{return{x:window.pageXOffset,y:window.pageYOffset};}}function TX_showToolTip(e,id){if(id!="null"){var scr=TX_getScrollPos();var cordX=e.clientX+scr.x;var cordY=e.clientY+scr.y;var text="<table>";data_array=seat[id].split(",");switch(data_array[6]){case"2":case"3":case"8":case"9":text+='<tr><td style="font-weight: bold;">Block:</td><td>'+data_array[4]+"</td></tr>";text+='<tr><td style="font-weight: bold;">Benutzername:</td><td>'+data_array[0]+"</td></tr>";text+='<tr><td style="font-weight: bold;">Name / Vorname:</td><td>'+data_array[1]+" "+data_array[2]+"</td></tr>";text+='<tr><td style="font-weight: bold;">Clan :</td><td>'+data_array[3]+"</td></tr>";text+='<tr><td style="font-weight: bold;">IP :</td><td>'+data_array[7]+"</td></tr>";break;case"1":text+='<tr><td style="font-weight: bold;">Block :</td><td>'+data_array[4]+" Frei</td></tr>";text+='<tr><td style="font-weight: bold;">IP :</td><td>'+data_array[7]+"</td></tr>";break;case"7":text+='<tr><td style="font-weight: bold;">Block :</td><td>'+data_array[4]+" Gesperrt</td></tr>";text+='<tr><td style="font-weight: bold;">IP :</td><td>'+data_array[7]+"</td></tr>";break;case"80":case"81":text+='<tr><td style="font-weight: bold;">Block :</td><td>'+data_array[4]+"</td></tr>";text+='<tr><td style="font-weight: bold;">Beschreibung :</td><td> WC</td></tr>';break;case"82":text+='<tr><td style="font-weight: bold;">Block :</td><td>'+data_array[4]+"</td></tr>";text+='<tr><td style="font-weight: bold;">Beschreibung :</td><td> Notausgang</td></tr>';break;case"83":text+='<tr><td style="font-weight: bold;">Block :</td><td>'+data_array[4]+"</td></tr>";text+='<tr><td style="font-weight: bold;">Beschreibung :</td><td> Catering</td></tr>';break;default:text="";break;}if(text!=""){text+="</table>";document.getElementById("tooltip").style.position="absolute";document.getElementById("tooltip").style.left=(cordX+20)+"px";document.getElementById("tooltip").style.top=(cordY+20)+"px";document.getElementById("tooltip").innerHTML=text;document.getElementById("tooltip").style.visibility="visible";}}}function TX_hideToolTip(){document.getElementById("tooltip").style.visibility="hidden";document.getElementById("tooltip").innerHTML="false";}function einfuegen(){var allElements=document.shoutbox.elements;var exist=false;for(var i=0;i<allElements.length;i++){if(allElements[i].name=="shoutbox_name"){exist=true;}}if(exist&&document.shoutbox.shoutbox_name.value=="Name"){alert("Bitte geben Sie einen Namen an!");document.shoutbox.shoutbox_name.focus();return false;}else{if(document.shoutbox.shoutbox_text.value=="Text eintragen"){alert("Bitte geben Sie einen Text ein!");document.shoutbox.shoutbox_text.focus();return false;}else{return true;}}}function setsmilie(smilie){if(document.shoutbox.shoutbox_text.value=="Text eintragen"){document.shoutbox.shoutbox_text.value=" "+smilie+" ";document.shoutbox.shoutbox_text.focus();}else{document.shoutbox.shoutbox_text.value+=" "+smilie+" ";document.shoutbox.shoutbox_text.focus();}}function afd_send_twitter_request(){afd_send_twitter_request(false);}function afd_send_twitter_request(now){now=(now)?"&now=true":"";if(xmlHttp){xmlHttp.open("GET","http://www.after-dark.de/afterdark/index.php?mod=misc&action=twitter"+now);xmlHttp.onreadystatechange=function(){if(xmlHttp.readyState==4){if(xmlHttp.responseText=="New entry"){window.location.reload();}}};xmlHttp.send(null);}}
//Mootools + Slimbox
//MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006-2007 Valerio Proietti, <http://mad4milk.net>, MIT Style License.
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!"".replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return"\\w+"};c=1}while(c--){if(k[c]){p=p.replace(new RegExp("\\b"+e(c)+"\\b","g"),k[c])}}return p}("h 6E={6O:'1.11'};7 $3K(O){6(O!=6r)};7 $k(O){c(!$3K(O))6 15;c(O.2C)6'R';h k=33 O;c(k=='23'&&O.70){1D(O.4c){U 1:6'R';U 3:6(/\\S/).1O(O.5N)?'6V':'6W'}}c(k=='23'||k=='7'){1D(O.66){U 1p:6'V';U 3O:6'6U';U 1a:6'4X'}c(33 O.K=='47'){c(O.1F)6'72';c(O.5T)6'J'}}6 k};7 $2u(){h 2Q={};B(h i=0;i<J.K;i++){B(h o 12 J[i]){h 3J=J[i][o];h 3u=2Q[o];c(3u&&$k(3J)=='23'&&$k(3u)=='23')2Q[o]=$2u(3u,3J);P 2Q[o]=3J}}6 2Q};h $M=7(){h N=J;c(!N[1])N=[5,N[0]];B(h o 12 N[1])N[0][o]=N[1][o];6 N[0]};h $2B=7(){B(h i=0,l=J.K;i<l;i++){J[i].M=7(17){B(h 1c 12 17){c(!5.14[1c])5.14[1c]=17[1c];c(!5[1c])5[1c]=$2B.3q(1c)}}}};$2B.3q=7(1c){6 7(G){6 5.14[1c].2y(G,1p.14.6m.1u(J,1))}};$2B(4u,1p,49,6o);7 $2U(O){6!!(O||O===0)};7 $3Z(O,5g){6 $3K(O)?O:5g};7 $3U(2k,1Y){6 1h.7n(1h.3U()*(1Y-2k+1)+2k)};7 $1S(){6 T 7c().7d()};7 $4m(1r){79(1r);77(1r);6 18};h 2l=7(O){O=O||{};O.M=$M;6 O};h 7e=T 2l(t);h 7l=T 2l(I);I.4P=I.3x('4P')[0];t.6v=!!(I.7s);c(t.6J)t.1t=t[t.6T?'6Z':'62']=1b;P c(I.5z&&!I.6Q&&!6G.6D)t.2e=t[t.6v?'7B':'4C']=1b;P c(I.7z!=18)t.4r=1b;t.7A=t.2e;7o.M=$M;c(33 2F=='6r'){h 2F=7(){};c(t.2e)I.61(\"7k\");2F.14=(t.2e)?t[\"[[7v.14]]\"]:{}}2F.14.2C=7(){};c(t.62)4i{I.78(\"7a\",15,1b)}4j(e){};h 1a=7(1G){h 2K=7(){6(J[0]!==18&&5.1A&&$k(5.1A)=='7')?5.1A.2y(5,J):5};$M(2K,5);2K.14=1G;2K.66=1a;6 2K};1a.21=7(){};1a.14={M:7(1G){h 36=T 5(18);B(h o 12 1G){h 60=36[o];36[o]=1a.5Z(60,1G[o])}6 T 1a(36)},5m:7(){B(h i=0,l=J.K;i<l;i++)$M(5.14,J[i])}};1a.5Z=7(25,2h){c(25&&25!=2h){h k=$k(2h);c(k!=$k(25))6 2h;1D(k){U'7':h 4x=7(){5.1N=J.5T.1N;6 2h.2y(5,J)};4x.1N=25;6 4x;U'23':6 $2u(25,2h)}}6 2h};h 5n=T 1a({7w:7(r){5.2b=5.2b||[];5.2b.1f(r);6 5},5C:7(){c(5.2b&&5.2b.K)5.2b.6B().1o(10,5)},6X:7(){5.2b=[]}});h 1E=T 1a({2c:7(k,r){c(r!=1a.21){5.$F=5.$F||{};5.$F[k]=5.$F[k]||[];5.$F[k].4D(r)}6 5},1M:7(k,N,1o){c(5.$F&&5.$F[k]){5.$F[k].1z(7(r){r.1B({'G':5,'1o':1o,'J':N})()},5)}6 5},4H:7(k,r){c(5.$F&&5.$F[k])5.$F[k].2x(r);6 5}});h 5l=T 1a({5F:7(){5.C=$2u.2y(18,[5.C].M(J));c(5.2c){B(h 2I 12 5.C){c($k(5.C[2I]=='7')&&(/^45[A-Z]/).1O(2I))5.2c(2I,5.C[2I])}}6 5}});1p.M({3a:7(r,G){B(h i=0,j=5.K;i<j;i++)r.1u(G,5[i],i,5)},5u:7(r,G){h 2p=[];B(h i=0,j=5.K;i<j;i++){c(r.1u(G,5[i],i,5))2p.1f(5[i])}6 2p},1K:7(r,G){h 2p=[];B(h i=0,j=5.K;i<j;i++)2p[i]=r.1u(G,5[i],i,5);6 2p},35:7(r,G){B(h i=0,j=5.K;i<j;i++){c(!r.1u(G,5[i],i,5))6 15}6 1b},6M:7(r,G){B(h i=0,j=5.K;i<j;i++){c(r.1u(G,5[i],i,5))6 1b}6 15},2n:7(1F,E){h 2r=5.K;B(h i=(E<0)?1h.1Y(0,2r+E):E||0;i<2r;i++){c(5[i]===1F)6 i}6-1},6d:7(1j,K){1j=1j||0;c(1j<0)1j=5.K+1j;K=K||(5.K-1j);h 4o=[];B(h i=0;i<K;i++)4o[i]=5[1j++];6 4o},2x:7(1F){h i=0;h 2r=5.K;5j(i<2r){c(5[i]===1F){5.30(i,1);2r--}P{i++}}6 5},W:7(1F,E){6 5.2n(1F,E)!=-1},6H:7(1d){h O={},K=1h.2k(5.K,1d.K);B(h i=0;i<K;i++)O[1d[i]]=5[i];6 O},M:7(V){B(h i=0,j=V.K;i<j;i++)5.1f(V[i]);6 5},2u:7(V){B(h i=0,l=V.K;i<l;i++)5.4D(V[i]);6 5},4D:7(1F){c(!5.W(1F))5.1f(1F);6 5},6P:7(){6 5[$3U(0,5.K-1)]||18},5o:7(){6 5[5.K-1]||18}});1p.14.1z=1p.14.3a;1p.1z=1p.3a;7 $A(V){6 1p.6d(V)};7 $1z(1V,r,G){c(1V&&33 1V.K=='47'&&$k(1V)!='23'){1p.3a(1V,r,G)}P{B(h 1q 12 1V)r.1u(G||1V,1V[1q],1q)}};1p.14.1O=1p.14.W;49.M({1O:7(2Z,6b){6(($k(2Z)=='1Q')?T 3O(2Z,6b):2Z).1O(5)},3H:7(){6 2P(5,10)},64:7(){6 2H(5)},43:7(){6 5.29(/-\\D/g,7(1L){6 1L.3Y(1).6f()})},5w:7(){6 5.29(/\\w[A-Z]/g,7(1L){6(1L.3Y(0)+'-'+1L.3Y(1).3j())})},4K:7(){6 5.29(/\\b[a-z]/g,7(1L){6 1L.6f()})},6g:7(){6 5.29(/^\\s+|\\s+$/g,'')},4f:7(){6 5.29(/\\s{2,}/g,' ').6g()},3C:7(V){h 1v=5.1L(/\\d{1,3}/g);6(1v)?1v.3C(V):15},3w:7(V){h 2f=5.1L(/^#?(\\w{1,2})(\\w{1,2})(\\w{1,2})$/);6(2f)?2f.6m(1).3w(V):15},W:7(1Q,s){6(s)?(s+5+s).2n(s+1Q+s)>-1:5.2n(1Q)>-1},6I:7(){6 5.29(/([.*+?^${}()|[\\]\\/\\\\])/g,'\\\\$1')}});1p.M({3C:7(V){c(5.K<3)6 15;c(5.K==4&&5[3]==0&&!V)6'6N';h 2f=[];B(h i=0;i<3;i++){h 2A=(5[i]-0).6K(16);2f.1f((2A.K==1)?'0'+2A:2A)}6 V?2f:'#'+2f.1J('')},3w:7(V){c(5.K!=3)6 15;h 1v=[];B(h i=0;i<3;i++){1v.1f(2P((5[i].K==1)?5[i]+5[i]:5[i],16))}6 V?1v:'1v('+1v.1J(',')+')'}});4u.M({1B:7(C){h r=5;C=$2u({'G':r,'q':15,'J':18,'1o':15,'2j':15,'3k':15},C);c($2U(C.J)&&$k(C.J)!='V')C.J=[C.J];6 7(q){h N;c(C.q){q=q||t.q;N=[(C.q===1b)?q:T C.q(q)];c(C.J)N.M(C.J)}P N=C.J||J;h 1P=7(){6 r.2y($3Z(C.G,r),N)};c(C.1o)6 7F(1P,C.1o);c(C.2j)6 75(1P,C.2j);c(C.3k)4i{6 1P()}4j(7q){6 15};6 1P()}},7D:7(N,G){6 5.1B({'J':N,'G':G})},3k:7(N,G){6 5.1B({'J':N,'G':G,'3k':1b})()},G:7(G,N){6 5.1B({'G':G,'J':N})},7E:7(G,N){6 5.1B({'G':G,'q':1b,'J':N})},1o:7(1o,G,N){6 5.1B({'1o':1o,'G':G,'J':N})()},2j:7(5U,G,N){6 5.1B({'2j':5U,'G':G,'J':N})()}});6o.M({3H:7(){6 2P(5)},64:7(){6 2H(5)},7b:7(2k,1Y){6 1h.2k(1Y,1h.1Y(2k,5))},2t:7(2J){2J=1h.76(10,2J||0);6 1h.2t(5*2J)/2J},7m:7(r){B(h i=0;i<5;i++)r(i)}});h u=T 1a({1A:7(m,17){c($k(m)=='1Q'){c(t.1t&&17&&(17.1q||17.k)){h 1q=(17.1q)?' 1q=\"'+17.1q+'\"':'';h k=(17.k)?' k=\"'+17.k+'\"':'';4E 17.1q;4E 17.k;m='<'+m+1q+k+'>'}m=I.61(m)}m=$(m);6(!17||!m)?m:m.2g(17)}});h 2d=T 1a({1A:7(Q){6(Q)?$M(Q,5):5}});2d.M=7(17){B(h 1c 12 17){5.14[1c]=17[1c];5[1c]=$2B.3q(1c)}};7 $(m){c(!m)6 18;c(m.2C)6 1m.2w(m);c([t,I].W(m))6 m;h k=$k(m);c(k=='1Q'){m=I.7j(m);k=(m)?'R':15}c(k!='R')6 18;c(m.2C)6 1m.2w(m);c(['23','7h'].W(m.4S.3j()))6 m;$M(m,u.14);m.2C=7(){};6 1m.2w(m)};I.6n=I.3x;7 $$(){h Q=[];B(h i=0,j=J.K;i<j;i++){h 2z=J[i];1D($k(2z)){U'R':Q.1f(2z);U'7i':1y;U 15:1y;U'1Q':2z=I.6n(2z,1b);4g:Q.M(2z)}}6 $$.44(Q)};$$.44=7(V){h Q=[];B(h i=0,l=V.K;i<l;i++){c(V[i].$3o)6w;h R=$(V[i]);c(R&&!R.$3o){R.$3o=1b;Q.1f(R)}}B(h n=0,d=Q.K;n<d;n++)Q[n].$3o=18;6 T 2d(Q)};2d.3A=7(o){6 7(){h N=J;h 3p=[];h Q=1b;B(h i=0,j=5.K,1P;i<j;i++){1P=5[i][o].2y(5[i],N);c($k(1P)!='R')Q=15;3p.1f(1P)};6(Q)?$$.44(3p):3p}};u.M=7(1G){B(h o 12 1G){2F.14[o]=1G[o];u.14[o]=1G[o];u[o]=$2B.3q(o);h 5A=(1p.14[o])?o+'2d':o;2d.14[5A]=2d.3A(o)}};u.M({2g:7(17){B(h 1c 12 17){h 2R=17[1c];1D(1c){U'71':5.5v(2R);1y;U'F':c(5.4l)5.4l(2R);1y;U'1G':5.5P(2R);1y;4g:5.3E(1c,2R)}}6 5},2o:7(m,58){m=$(m);1D(58){U'4U':m.1W.42(5,m);1y;U'55':h 2L=m.5k();c(!2L)m.1W.3Q(5);P m.1W.42(5,2L);1y;U'3N':h 4h=m.3T;c(4h){m.42(5,4h);1y}4g:m.3Q(5)}6 5},74:7(m){6 5.2o(m,'4U')},7x:7(m){6 5.2o(m,'55')},7C:7(m){6 5.2o(m,'4R')},7g:7(m){6 5.2o(m,'3N')},7f:7(){h Q=[];$1z(J,7(5I){Q=Q.7y(5I)});$$(Q).2o(5);6 5},2x:7(){6 5.1W.5B(5)},7r:7(5O){h m=$(5.7p(5O!==15));c(!m.$F)6 m;m.$F={};B(h k 12 5.$F)m.$F[k]={'1d':$A(5.$F[k].1d),'2i':$A(5.$F[k].2i)};6 m.3l()},7t:7(m){m=$(m);5.1W.7u(m,5);6 m},5D:7(1R){5.3Q(I.6L(1R));6 5},4b:7(1e){6 5.1e.W(1e,' ')},5q:7(1e){c(!5.4b(1e))5.1e=(5.1e+' '+1e).4f();6 5},5p:7(1e){5.1e=5.1e.29(T 3O('(^|\\\\s)'+1e+'(?:\\\\s|$)'),'$1').4f();6 5},6F:7(1e){6 5.4b(1e)?5.5p(1e):5.5q(1e)},3i:7(o,L){1D(o){U'1l':6 5.6a(2H(L));U'73':o=(t.1t)?'6S':'6R'}o=o.43();1D($k(L)){U'47':c(!['6Y','5r'].W(o))L+='2E';1y;U'V':L='1v('+L.1J(',')+')'}5.X[o]=L;6 5},5v:7(1U){1D($k(1U)){U'23':u.3b(5,'3i',1U);1y;U'1Q':5.X.3S=1U}6 5},6a:7(1l){c(1l==0){c(5.X.2V!=\"5t\")5.X.2V=\"5t\"}P{c(5.X.2V!=\"5s\")5.X.2V=\"5s\"}c(!5.3G||!5.3G.7J)5.X.5r=1;c(t.1t)5.X.5u=(1l==1)?'':\"8X(1l=\"+1l*8W+\")\";5.X.1l=5.$1Z.1l=1l;6 5},26:7(o){o=o.43();h Y=5.X[o];c(!$2U(Y)){c(o=='1l')6 5.$1Z.1l;Y=[];B(h X 12 u.24){c(o==X){u.24[X].1z(7(s){h X=5.26(s);Y.1f(2P(X)?X:'4N')},5);c(o=='22'){h 35=Y.35(7(2A){6(2A==Y[0])});6(35)?Y[0]:15}6 Y.1J(' ')}}c(o.W('22')){c(u.24.22.W(o)){6['4M','4B','4J'].1K(7(p){6 5.26(o+p)},5).1J(' ')}P c(u.56.W(o)){6['4Z','5a','59','5b'].1K(7(p){6 5.26('22'+p+o.29('22',''))},5).1J(' ')}}c(I.5x)Y=I.5x.8T(5,18).8U(o.5w());P c(5.3G)Y=5.3G[o]}c(t.1t)Y=u.4W(o,Y,5);c(Y&&o.1O(/3v/i)&&Y.W('1v')){6 Y.5i('1v').30(1,4).1K(7(3v){6 3v.3C()}).1J(' ')}6 Y},8Z:7(){6 u.4e(5,'26',J)},2T:7(3M,1j){3M+='94';h m=(1j)?5[1j]:5[3M];5j(m&&$k(m)!='R')m=m[3M];6 $(m)},93:7(){6 5.2T('25')},5k:7(){6 5.2T('2L')},92:7(){6 5.2T('2L','3T')},5o:7(){6 5.2T('25','90')},91:7(){6 $(5.1W)},8S:7(){6 $$(5.5z)},4q:7(m){6!!$A(5.3x('*')).W(m)},3W:7(o){h 1T=u.3r[o];c(1T)6 5[1T];h 41=u.6p[o]||0;c(!t.1t||41)6 5.8R(o,41);h 3V=5.8I[o];6(3V)?3V.5N:18},8J:7(o){h 1T=u.3r[o];c(1T)5[1T]='';P 5.8H(o);6 5},8G:7(){6 u.4e(5,'3W',J)},3E:7(o,L){h 1T=u.3r[o];c(1T)5[1T]=L;P 5.8E(o,L);6 5},5P:7(1U){6 u.3b(5,'3E',1U)},4V:7(){5.5R=$A(J).1J('');6 5},8K:7(1R){h 1X=5.3X();c(['X','2v'].W(1X)){c(t.1t){c(1X=='X')5.5H.3S=1R;P c(1X=='2v')5.3E('1R',1R);6 5}P{5.5B(5.3T);6 5.5D(1R)}}5[$3K(5.3R)?'3R':'53']=1R;6 5},8L:7(){h 1X=5.3X();c(['X','2v'].W(1X)){c(t.1t){c(1X=='X')6 5.5H.3S;P c(1X=='2v')6 5.3W('1R')}P{6 5.5R}}6($3Z(5.3R,5.53))},3X:7(){6 5.4S.3j()},21:7(){1m.3D(5.3x('*'));6 5.4V('')}});u.4W=7(o,Y,R){c($2U(2P(Y)))6 Y;c(['8Q','3P'].W(o)){h 2i=(o=='3P')?['69','6c']:['3N','4R'];h 3s=0;2i.1z(7(L){3s+=R.26('22-'+L+'-3P').3H()+R.26('4k-'+L).3H()});6 R['8P'+o.4K()]-3s+'2E'}P c(o.1O(/22(.+)4M|5f|4k/)){6'4N'}6 Y};u.24={'22':[],'4k':[],'5f':[]};['4Z','5a','59','5b'].1z(7(5d){B(h X 12 u.24)u.24[X].1f(X+5d)});u.56=['8O','8M','8N'];u.4e=7(m,3B,1d){h Y={};$1z(1d,7(1x){Y[1x]=m[3B](1x)});6 Y};u.3b=7(m,3B,4d){B(h 1x 12 4d)m[3B](1x,4d[1x]);6 m};u.3r=T 2l({'4X':'1e','B':'95','96':'9q','9p':'9o','9m':'9n','9r':'9s','9x':'9w','9v':'9t','9u':'9l','L':'L','6C':'6C','6s':'6s','6A':'6A','6q':'6q'});u.6p={'9k':2,'3I':2};u.20={3t:{2a:7(k,r){c(5.4I)5.4I(k,r,15);P 5.9b('45'+k,r);6 5},6e:7(k,r){c(5.6u)5.6u(k,r,15);P 5.9c('45'+k,r);6 5}}};t.M(u.20.3t);I.M(u.20.3t);u.M(u.20.3t);h 1m={Q:[],2w:7(m){c(!m.$1Z){1m.Q.1f(m);m.$1Z={'1l':1}}6 m},3D:7(Q){B(h i=0,j=Q.K,m;i<j;i++){c(!(m=Q[i])||!m.$1Z)6w;c(m.$F)m.1M('3D').3l();B(h p 12 m.$1Z)m.$1Z[p]=18;B(h d 12 u.14)m[d]=18;1m.Q[1m.Q.2n(m)]=18;m.2C=m.$1Z=m=18}1m.Q.2x(18)},21:7(){1m.2w(t);1m.2w(I);1m.3D(1m.Q)}};t.2a('5X',7(){t.2a('4y',1m.21);c(t.1t)t.2a('4y',97)});h 1w=T 1a({1A:7(q){c(q&&q.$6z)6 q;5.$6z=1b;q=q||t.q;5.q=q;5.k=q.k;5.2m=q.2m||q.98;c(5.2m.4c==3)5.2m=5.2m.1W;5.6B=q.9j;5.9i=q.7G;5.9h=q.9f;5.9g=q.8D;c(['4n','3m'].W(5.k)){5.8C=(q.63)?q.63/80:-(q.81||0)/3}P c(5.k.W('1x')){5.2Y=q.5Y||q.7Z;B(h 1q 12 1w.1d){c(1w.1d[1q]==5.2Y){5.1x=1q;1y}}c(5.k=='67'){h 31=5.2Y-7Y;c(31>0&&31<13)5.1x='f'+31}5.1x=5.1x||49.7X(5.2Y).3j()}P c(5.k.1O(/(68|82|83)/)){5.88={'x':q.4a||q.5V+I.1s.51,'y':q.48||q.5W+I.1s.5c};5.87={'x':q.4a?q.4a-t.5S:q.5V,'y':q.48?q.48-t.57:q.5W};5.86=(q.5Y==3)||(q.84==2);1D(5.k){U'4s':5.1i=q.1i||q.85;1y;U'4t':5.1i=q.1i||q.7V}5.6h()}6 5},2M:7(){6 5.3n().3e()},3n:7(){c(5.q.3n)5.q.3n();P 5.q.7L=1b;6 5},3e:7(){c(5.q.3e)5.q.3e();P 5.q.7M=15;6 5}});1w.3f={1i:7(){c(5.1i&&5.1i.4c==3)5.1i=5.1i.1W},6j:7(){4i{1w.3f.1i.1u(5)}4j(e){5.1i=5.2m}}};1w.14.6h=(t.4r)?1w.3f.6j:1w.3f.1i;1w.1d=T 2l({'7I':13,'7T':38,'89':40,'69':37,'6c':39,'8r':27,'8w':32,'8A':8,'8x':9,'4E':46});u.20.1E={2c:7(k,r){5.$F=5.$F||{};5.$F[k]=5.$F[k]||{'1d':[],'2i':[]};c(5.$F[k].1d.W(r))6 5;5.$F[k].1d.1f(r);h 34=k;h 1k=u.1E[k];c(1k){c(1k.4v)1k.4v.1u(5,r);c(1k.1K)r=1k.1K;c(1k.k)34=1k.k}c(!5.4I)r=r.1B({'G':5,'q':1b});5.$F[k].2i.1f(r);6(u.4p.W(34))?5.2a(34,r):5},4H:7(k,r){c(!5.$F||!5.$F[k])6 5;h 2W=5.$F[k].1d.2n(r);c(2W==-1)6 5;h 1x=5.$F[k].1d.30(2W,1)[0];h L=5.$F[k].2i.30(2W,1)[0];h 1k=u.1E[k];c(1k){c(1k.2x)1k.2x.1u(5,r);c(1k.k)k=1k.k}6(u.4p.W(k))?5.6e(k,L):5},4l:7(1U){6 u.3b(5,'2c',1U)},3l:7(k){c(!5.$F)6 5;c(!k){B(h 3h 12 5.$F)5.3l(3h);5.$F=18}P c(5.$F[k]){5.$F[k].1d.1z(7(r){5.4H(k,r)},5);5.$F[k]=18}6 5},1M:7(k,N,1o){c(5.$F&&5.$F[k]){5.$F[k].1d.1z(7(r){r.1B({'G':5,'1o':1o,'J':N})()},5)}6 5},6l:7(E,k){c(!E.$F)6 5;c(!k){B(h 3h 12 E.$F)5.6l(E,3h)}P c(E.$F[k]){E.$F[k].1d.1z(7(r){5.2c(k,r)},5)}6 5}};t.M(u.20.1E);I.M(u.20.1E);u.M(u.20.1E);u.1E=T 2l({'6k':{k:'4s',1K:7(q){q=T 1w(q);c(q.1i!=5&&!5.4q(q.1i))5.1M('6k',q)}},'6i':{k:'4t',1K:7(q){q=T 1w(q);c(q.1i!=5&&!5.4q(q.1i))5.1M('6i',q)}},'3m':{k:(t.4r)?'4n':'3m'}});u.4p=['68','8o','8f','8g','3m','4n','4s','4t','8e','67','8d','8b','6x','4y','5X','8c','8h','8i','8n','5Q','8m','8l','2O','8j','8k','9y','4Y'];4u.M({8t:7(G,N){6 5.1B({'G':G,'J':N,'q':1w})}});u.1E.4z={4v:7(r){c(t.3F){r.1u(5);6}h 2D=7(){c(t.3F)6;t.3F=1b;t.1r=$4m(t.1r);5.1M('4z')}.G(5);c(I.3L&&t.2e){t.1r=7(){c(['3F','6y'].W(I.3L))2D()}.2j(50)}P c(I.3L&&t.1t){c(!$('4A')){h 3I=(t.8u.7P=='7S:')?'://0':'7O:7K(0)';I.7U('<2v 9d=\"4A\" 99 3I=\"'+3I+'\"><\\/2v>');$('4A').8F=7(){c(5.3L=='6y')2D()}}}P{t.2a(\"6x\",2D);I.2a(\"8Y\",2D)}}};t.7W=7(r){6 5.2c('4z',r)};t.M({4Q:7(){c(5.4C)6 5.8p;c(5.65)6 I.3y.6t;6 I.1s.6t},52:7(){c(5.4C)6 5.8y;c(5.65)6 I.3y.4T;6 I.1s.4T},54:7(){c(5.1t)6 1h.1Y(I.1s.8z,I.1s.4F);c(5.2e)6 I.3y.4F;6 I.1s.4F},5e:7(){c(5.1t)6 1h.1Y(I.1s.8B,I.1s.4G);c(5.2e)6 I.3y.4G;6 I.1s.4G},4O:7(){6 5.5S||I.1s.51},4L:7(){6 5.57||I.1s.5c},8v:7(){6{'3s':{'x':5.4Q(),'y':5.52()},'8q':{'x':5.54(),'y':5.5e()},'4Y':{'x':5.4O(),'y':5.4L()}}},8s:7(){6{'x':0,'y':0}}});h 1g={};1g.2X=T 1a({C:{5M:1a.21,5E:1a.21,5y:1a.21,5G:7(p){6-(1h.8a(1h.7Q*p)-1)/2},4w:7R,1I:'2E',3c:1b,5L:50},1A:7(C){5.R=5.R||18;5.5F(C);c(5.C.1A)5.C.1A.1u(5)},5K:7(){h 1S=$1S();c(1S<5.1S+5.C.4w){5.5J=5.C.5G((1S-5.1S)/5.C.4w);5.3g();5.3d()}P{5.2M(1b);5.2g(5.H);5.1M('5E',5.R,10);5.5C()}},2g:7(H){5.1n=H;5.3d();6 5},3g:7(){5.1n=5.2G(5.E,5.H)},2G:7(E,H){6(H-E)*5.5J+E},1j:7(E,H){c(!5.C.3c)5.2M();P c(5.1r)6 5;5.E=E;5.H=H;5.5Q=5.H-5.E;5.1S=$1S();5.1r=5.5K.2j(1h.2t(7N/5.C.5L),5);5.1M('5M',5.R);6 5},2M:7(3z){c(!5.1r)6 5;5.1r=$4m(5.1r);c(!3z)5.1M('5y',5.R);6 5},1k:7(E,H){6 5.1j(E,H)},7H:7(3z){6 5.2M(3z)}});1g.2X.5m(T 5n,T 1E,T 5l);1g.28={2O:7(o,H){c(o.1O(/3v/i))6 5.4J;h k=$k(H);c((k=='V')||(k=='1Q'&&H.W(' ')))6 5.3A;6 5.5h},1H:7(m,o,2q){c(!2q.1f)2q=[2q];h E=2q[0],H=2q[1];c(!$2U(H)){H=E;E=m.26(o)}h 19=5.2O(o,H);6{'E':19.1H(E),'H':19.1H(H),'19':19}}};1g.28.5h={1H:7(L){6 2H(L)},2N:7(E,H,2s){6 2s.2G(E,H)},2S:7(L,1I,o){c(1I=='2E'&&o!='1l')L=1h.2t(L);6 L+1I}};1g.28.3A={1H:7(L){6 L.1f?L:L.5i(' ').1K(7(v){6 2H(v)})},2N:7(E,H,2s){h 1n=[];B(h i=0;i<E.K;i++)1n[i]=2s.2G(E[i],H[i]);6 1n},2S:7(L,1I,o){c(1I=='2E'&&o!='1l')L=L.1K(1h.2t);6 L.1J(1I+' ')+1I}};1g.28.4J={1H:7(L){6 L.1f?L:L.3w(1b)},2N:7(E,H,2s){h 1n=[];B(h i=0;i<E.K;i++)1n[i]=1h.2t(2s.2G(E[i],H[i]));6 1n},2S:7(L){6'1v('+L.1J(',')+')'}};1g.4B=1g.2X.M({1A:7(m,o,C){5.R=$(m);5.o=o;5.1N(C)},9e:7(){6 5.2g(0)},3g:7(){5.1n=5.19.2N(5.E,5.H,5)},2g:7(H){5.19=1g.28.2O(5.o,H);6 5.1N(5.19.1H(H))},1j:7(E,H){c(5.1r&&5.C.3c)6 5;h 1C=1g.28.1H(5.R,5.o,[E,H]);5.19=1C.19;6 5.1N(1C.E,1C.H)},3d:7(){5.R.3i(5.o,5.19.2S(5.1n,5.C.1I,5.o))}});u.M({9a:7(o,C){6 T 1g.4B(5,o,C)}});1g.24=1g.2X.M({1A:7(m,C){5.R=$(m);5.1N(C)},3g:7(){B(h p 12 5.E)5.1n[p]=5.19[p].2N(5.E[p],5.H[p],5)},2g:7(H){h 1C={};5.19={};B(h p 12 H){5.19[p]=1g.28.2O(p,H[p]);1C[p]=5.19[p].1H(H[p])}6 5.1N(1C)},1j:7(O){c(5.1r&&5.C.3c)6 5;5.1n={};5.19={};h E={},H={};B(h p 12 O){h 1C=1g.28.1H(5.R,p,O[p]);E[p]=1C.E;H[p]=1C.H;5.19[p]=1C.19}6 5.1N(E,H)},3d:7(){B(h p 12 5.1n)5.R.3i(p,5.19[p].2S(5.1n[p],5.C.1I,p))}});u.M({8V:7(C){6 T 1g.24(5,C)}});",62,593,"|||||this|return|function|||||if|||||var|||type||el||property||event|fn||window|Element|||||||for|options||from|events|bind|to|document|arguments|length|value|extend|args|obj|else|elements|element||new|case|array|contains|style|result||||in||prototype|false||props|null|css|Class|true|prop|keys|className|push|Fx|Math|relatedTarget|start|custom|opacity|Garbage|now|delay|Array|name|timer|documentElement|ie|call|rgb|Event|key|break|each|initialize|create|parsed|switch|Events|item|properties|parse|unit|join|map|match|fireEvent|parent|test|returns|string|text|time|index|source|iterable|parentNode|tag|max|tmp|Methods|empty|border|object|Styles|previous|getStyle||CSS|replace|addListener|chains|addEvent|Elements|webkit|hex|set|current|values|periodical|min|Abstract|target|indexOf|inject|results|fromTo|len|fx|round|merge|script|collect|remove|apply|selector|bit|native|htmlElement|domReady|px|HTMLElement|compute|parseFloat|option|precision|klass|next|stop|getNow|select|parseInt|mix|val|getValue|walk|chk|visibility|pos|Base|code|regex|splice|fKey||typeof|realType|every|proto||||forEach|setMany|wait|increase|preventDefault|fix|setNow|evType|setStyle|toLowerCase|attempt|removeEvents|mousewheel|stopPropagation|included|items|generic|Properties|size|Listeners|mp|color|hexToRgb|getElementsByTagName|body|end|Multi|method|rgbToHex|trash|setProperty|loaded|currentStyle|toInt|src|ap|defined|readyState|brother|top|RegExp|width|appendChild|innerText|cssText|firstChild|random|node|getProperty|getTag|charAt|pick||flag|insertBefore|camelCase|unique|on||number|pageY|String|pageX|hasClass|nodeType|pairs|getMany|clean|default|first|try|catch|padding|addEvents|clear|DOMMouseScroll|newArray|NativeEvents|hasChild|gecko|mouseover|mouseout|Function|add|duration|merged|unload|domready|ie_ready|Style|webkit419|include|delete|scrollWidth|scrollHeight|removeEvent|addEventListener|Color|capitalize|getScrollTop|Width|0px|getScrollLeft|head|getWidth|bottom|tagName|clientHeight|before|setHTML|fixStyle|class|scroll|Top||scrollLeft|getHeight|textContent|getScrollWidth|after|borderShort|pageYOffset|where|Bottom|Right|Left|scrollTop|direction|getScrollHeight|margin|picked|Single|split|while|getNext|Options|implement|Chain|getLast|removeClass|addClass|zoom|visible|hidden|filter|setStyles|hyphenate|defaultView|onCancel|childNodes|elementsProperty|removeChild|callChain|appendText|onComplete|setOptions|transition|styleSheet|argument|delta|step|fps|onStart|nodeValue|contents|setProperties|change|innerHTML|pageXOffset|callee|interval|clientX|clientY|beforeunload|which|Merge|pp|createElement|ie6|wheelDelta|toFloat|opera|constructor|keydown|click|left|setOpacity|params|right|copy|removeListener|toUpperCase|trim|fixRelatedTarget|mouseleave|relatedTargetGecko|mouseenter|cloneEvents|slice|getElementsBySelector|Number|PropertiesIFlag|selected|undefined|checked|clientWidth|removeEventListener|xpath|continue|load|complete|extended|multiple|shift|disabled|taintEnabled|MooTools|toggleClass|navigator|associate|escapeRegExp|ActiveXObject|toString|createTextNode|some|transparent|version|getRandom|all|cssFloat|styleFloat|XMLHttpRequest|regexp|textnode|whitespace|clearChain|zIndex|ie7|nodeName|styles|collection|float|injectBefore|setInterval|pow|clearInterval|execCommand|clearTimeout|BackgroundImageCache|limit|Date|getTime|Window|adopt|injectTop|embed|boolean|getElementById|iframe|Document|times|floor|Object|cloneNode|err|clone|evaluate|replaceWith|replaceChild|DOMElement|chain|injectAfter|concat|getBoxObjectFor|khtml|webkit420|injectInside|pass|bindAsEventListener|setTimeout|ctrlKey|clearTimer|enter|hasLayout|void|cancelBubble|returnValue|1000|javascript|protocol|PI|500|https|up|write|toElement|onDomReady|fromCharCode|111|keyCode|120|detail|mouse|menu|button|fromElement|rightClick|client|page|down|cos|keyup|resize|keypress|mousemove|mouseup|mousedown|move|focus|error|abort|reset|submit|blur|dblclick|innerWidth|scrollSize|esc|getPosition|bindWithEvent|location|getSize|space|tab|innerHeight|offsetWidth|backspace|offsetHeight|wheel|metaKey|setAttribute|onreadystatechange|getProperties|removeAttribute|attributes|removeProperty|setText|getText|borderStyle|borderColor|borderWidth|offset|height|getAttribute|getChildren|getComputedStyle|getPropertyValue|effects|100|alpha|DOMContentLoaded|getStyles|lastChild|getParent|getFirst|getPrevious|Sibling|htmlFor|colspan|CollectGarbage|srcElement|defer|effect|attachEvent|detachEvent|id|hide|altKey|meta|alt|control|shiftKey|href|frameBorder|accesskey|accessKey|rowSpan|rowspan|colSpan|tabindex|tabIndex|readOnly|frameborder|readonly|maxLength|maxlength|contextmenu".split("|"),0,{}));var Lightbox={init:function(options){this.options=$extend({resizeDuration:400,resizeTransition:false,initialWidth:250,initialHeight:250,animateCaption:true,showCounter:true},options||{});this.anchors=[];$each(document.links,function(el){if(el.rel&&el.rel.test(/^lightbox/i)){el.onclick=this.click.pass(el,this);this.anchors.push(el)}},this);this.eventKeyDown=this.keyboardListener.bindAsEventListener(this);this.eventPosition=this.position.bind(this);this.overlay=new Element("div",{id:"lbOverlay"}).injectInside(document.body);this.center=new Element("div",{id:"lbCenter",styles:{width:this.options.initialWidth,height:this.options.initialHeight,marginLeft:-(this.options.initialWidth/2),display:"none"}}).injectInside(document.body);this.image=new Element("div",{id:"lbImage"}).injectInside(this.center);this.prevLink=new Element("a",{id:"lbPrevLink",href:"#",styles:{display:"none"}}).injectInside(this.image);this.nextLink=this.prevLink.clone().setProperty("id","lbNextLink").injectInside(this.image);this.prevLink.onclick=this.previous.bind(this);this.nextLink.onclick=this.next.bind(this);this.bottomContainer=new Element("div",{id:"lbBottomContainer",styles:{display:"none"}}).injectInside(document.body);this.bottom=new Element("div",{id:"lbBottom"}).injectInside(this.bottomContainer);new Element("a",{id:"lbCloseLink",href:"#"}).injectInside(this.bottom).onclick=this.overlay.onclick=this.close.bind(this);this.caption=new Element("div",{id:"lbCaption"}).injectInside(this.bottom);this.number=new Element("div",{id:"lbNumber"}).injectInside(this.bottom);new Element("div",{styles:{clear:"both"}}).injectInside(this.bottom);var nextEffect=this.nextEffect.bind(this);this.fx={overlay:this.overlay.effect("opacity",{duration:500}).hide(),resize:this.center.effects($extend({duration:this.options.resizeDuration,onComplete:nextEffect},this.options.resizeTransition?{transition:this.options.resizeTransition}:{})),image:this.image.effect("opacity",{duration:500,onComplete:nextEffect}),bottom:this.bottom.effect("margin-top",{duration:400,onComplete:nextEffect})};this.preloadPrev=new Image();this.preloadNext=new Image()},click:function(link){if(link.rel.length==8){return this.show(link.href,link.title)}var j,imageNum,images=[];this.anchors.each(function(el){if(el.rel==link.rel){for(j=0;j<images.length;j++){if(images[j][0]==el.href){break}}if(j==images.length){images.push([el.href,el.title]);if(el.href==link.href){imageNum=j}}}},this);return this.open(images,imageNum)},show:function(url,title){return this.open([[url,title]],0)},open:function(images,imageNum){this.images=images;this.position();this.setup(true);this.top=window.getScrollTop()+(window.getHeight()/15);this.center.setStyles({top:this.top,display:""});this.fx.overlay.start(0.8);return this.changeImage(imageNum)},position:function(){this.overlay.setStyles({top:window.getScrollTop(),height:window.getHeight()})},setup:function(open){var elements=$A(document.getElementsByTagName("object"));elements.extend(document.getElementsByTagName(window.ie?"select":"embed"));elements.each(function(el){if(open){el.lbBackupStyle=el.style.visibility}el.style.visibility=open?"hidden":el.lbBackupStyle});var fn=open?"addEvent":"removeEvent";window[fn]("scroll",this.eventPosition)[fn]("resize",this.eventPosition);document[fn]("keydown",this.eventKeyDown);this.step=0},keyboardListener:function(event){switch(event.keyCode){case 27:case 88:case 67:this.close();break;case 37:case 80:this.previous();break;case 39:case 78:this.next()}},previous:function(){return this.changeImage(this.activeImage-1)},next:function(){return this.changeImage(this.activeImage+1)},changeImage:function(imageNum){if(this.step||(imageNum<0)||(imageNum>=this.images.length)){return false}this.step=1;this.activeImage=imageNum;this.bottomContainer.style.display=this.prevLink.style.display=this.nextLink.style.display="none";this.fx.image.hide();this.center.className="lbLoading";this.preload=new Image();this.preload.onload=this.nextEffect.bind(this);this.preload.src=this.images[imageNum][0];return false},nextEffect:function(){switch(this.step++){case 1:this.center.className="";this.image.style.backgroundImage="url("+this.images[this.activeImage][0]+")";this.image.style.width=this.bottom.style.width=this.preload.width+"px";this.image.style.height=this.prevLink.style.height=this.nextLink.style.height=this.preload.height+"px";this.caption.setHTML(this.images[this.activeImage][1]||"");this.number.setHTML((!this.options.showCounter||(this.images.length==1))?"":"Bild "+(this.activeImage+1)+" von "+this.images.length);if(this.activeImage){this.preloadPrev.src=this.images[this.activeImage-1][0]}if(this.activeImage!=(this.images.length-1)){this.preloadNext.src=this.images[this.activeImage+1][0]}if(this.center.clientHeight!=this.image.offsetHeight){this.fx.resize.start({height:this.image.offsetHeight});break}this.step++;case 2:if(this.center.clientWidth!=this.image.offsetWidth){this.fx.resize.start({width:this.image.offsetWidth,marginLeft:-this.image.offsetWidth/2});break}this.step++;case 3:this.bottomContainer.setStyles({top:this.top+this.center.clientHeight,height:0,marginLeft:this.center.style.marginLeft,display:""});this.fx.image.start(1);break;case 4:if(this.options.animateCaption){this.fx.bottom.set(-this.bottom.offsetHeight);this.bottomContainer.style.height="";this.fx.bottom.start(0);break}this.bottomContainer.style.height="";case 5:if(this.activeImage){this.prevLink.style.display=""}if(this.activeImage!=(this.images.length-1)){this.nextLink.style.display=""}this.step=0}},close:function(){if(this.step<0){return}this.step=-1;if(this.preload){this.preload.onload=Class.empty;this.preload=null}for(var f in this.fx){this.fx[f].stop()}this.center.style.display=this.bottomContainer.style.display="none";this.fx.overlay.chain(this.setup.pass(false,this)).start(0);return false}};window.addEvent("domready",Lightbox.init.bind(Lightbox));
