var a,olLoaded=0,pmStart=10000000,pmUpper=10001000,pmCount=pmStart+1,pmt="",pms=[],olInfo=new Info("4.21",1),FREPLACE=0,FBEFORE=1,FAFTER=2,FALTERNATE=3,FCHAIN=4,olHideForm=0,olHautoFlag=0,olVautoFlag=0,hookPts=[],postParse=[],cmdLine=[],runTime=[];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="",o3_cap="",o3_sticky=0,o3_background="",o3_close="Close",o3_hpos=RIGHT,o3_offsetx=2,o3_offsety=2,o3_fgcolor="",o3_bgcolor="",o3_textcolor="",o3_capcolor="",o3_closecolor="",o3_width=100,o3_border=1,o3_cellpad=2,o3_status="",o3_autostatus=0,o3_height=-1,o3_snapx=0,o3_snapy=0,o3_fixx=-1,o3_fixy=-1,o3_relx=null,o3_rely=null,o3_fgbackground="",o3_bgbackground="",o3_padxl=0,o3_padxr=0,o3_padyt=0,o3_padyb=0,o3_fullhtml=0,o3_vpos=BELOW,o3_aboveheight=0,o3_capicon="",o3_textfont="Verdana,Arial,Helvetica",
o3_captionfont="Verdana,Arial,Helvetica",o3_closefont="Verdana,Arial,Helvetica",o3_textsize="1",o3_captionsize="1",o3_closesize="1",o3_frame=self,o3_timeout=0,o3_timerid=0,o3_allowmove=0,o3_function=null,o3_delay=0,o3_delayid=0,o3_hauto=0,o3_vauto=0,o3_closeclick=0,o3_wrap=0,o3_followmouse=1,o3_mouseoff=0,o3_closetitle="",o3_compatmode=0,o3_css=CSSOFF,o3_fgclass="",o3_bgclass="",o3_textfontclass="",o3_captionfontclass="",o3_closefontclass="",o3_x=0,o3_y=0,o3_showingsticky=0,o3_removecounter=0,over=
null,fnRef,hoveringSwitch=false,olHideDelay,isMac=navigator.userAgent.indexOf("Mac")!=-1,olOp=navigator.userAgent.toLowerCase().indexOf("opera")>-1&&document.createTextNode,olNs4=navigator.appName=="Netscape"&&parseInt(navigator.appVersion)==4,olNs6=document.getElementById?true:false,olKq=olNs6&&/konqueror/i.test(navigator.userAgent),olIe4=document.all?true:false,olIe5=false,olIe55=false,docRoot="document.body";
if(olNs4){var oW=window.innerWidth,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 window.attachEvent&&window.attachEvent("onload",OLonLoad_handler);var capExtent;
function overlib(){if(!olLoaded||isExclusive(overlib.arguments))return true;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(b){if(olLoaded&&!isExclusive()){hideDelay(b);if(o3_removecounter>=1)o3_showingsticky=0;if(o3_showingsticky==0){o3_allowmove=0;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 b;runHook("olMain",FBEFORE);if(o3_background!=""||o3_fullhtml)b=runHook("ol_content_background",FALTERNATE,o3_css,o3_text,o3_background,o3_fullhtml);else{b=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=b?'background="'+o3_bgbackground+'"':o3_bgbackground;if(o3_fgcolor!="")o3_fgcolor=b?'bgcolor="'+o3_fgcolor+'"':o3_fgcolor;if(o3_bgcolor!="")o3_bgcolor=
b?'bgcolor="'+o3_bgcolor+'"':o3_bgcolor;o3_height=o3_height>0?b?'height="'+o3_height+'"':o3_height:"";b=o3_cap==""?runHook("ol_content_simple",FALTERNATE,o3_css,o3_text):o3_sticky?runHook("ol_content_caption",FALTERNATE,o3_css,o3_text,o3_cap,o3_close):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,b))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){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(b){var c=/,/.test(o3_cellpad);b='<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||!c?'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&&c?' style="'+setCellPadStr(o3_cellpad)+
'">':">")+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+b+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"</td></tr></table></td></tr></table>";set_background("");return b}
function ol_content_caption(b,c,f){var g,h=/,/.test(o3_cellpad),j,k;j="";k="onmouseover";if(o3_closeclick==1)k=(o3_closetitle?"title='"+o3_closetitle+"'":"")+" onclick";if(o3_capicon!=""){g=' hspace = "5" align = "middle" alt = ""';if(typeof o3_dragimg!="undefined"&&o3_dragimg)g=' hspace="5" name="'+o3_dragimg+'" id="'+o3_dragimg+'" align="middle" alt="Drag Enabled" title="Drag Enabled"';o3_capicon='<img src="'+o3_capicon+'"'+g+" />"}if(f!="")j="<td "+(!o3_compatmode&&o3_closefontclass?'class="'+
o3_closefontclass:'align="RIGHT')+'"><a href="javascript:return '+fnRef+'cClick();"'+(o3_compatmode&&o3_closefontclass?' class="'+o3_closefontclass+'" ':" ")+k+'="return '+fnRef+'cClick();">'+(o3_closefontclass?"":wrapStr(0,o3_closesize,"close"))+f+(o3_closefontclass?"":wrapStr(1,o3_closesize,"close"))+"</a></td>";b='<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+c+(o3_captionfontclass?"":wrapStr(1,o3_captionsize)+"</b>")+"</td>"+j+'</tr></table><table width="100%" border="0" '+(olNs4||!h?'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&&h?' style="'+
setCellPadStr(o3_cellpad)+'">':">")+(o3_textfontclass?"":wrapStr(0,o3_textsize,"text"))+b+(o3_textfontclass?"":wrapStr(1,o3_textsize))+"</td></tr></table></td></tr></table>";set_background("");return b}
function ol_content_background(b,c,f){txt=f?b:'<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"))+b+(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(c);return txt}function set_background(b){if(b=="")if(olNs4)over.background.src=null;else{if(over.style)over.style.backgroundImage="none"}else if(olNs4)over.background.src=b;else if(over.style){over.style.width=o3_width+"px";over.style.backgroundImage="url("+b+")"}}var olShowId=-1;
function disp(b){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(b!="")self.status=b}
function createPopup(b){runHook("createPopup",FBEFORE);if(o3_wrap){var c;c=olNs4?over:over.style;c.top=c.left=(olIe4&&!olOp?0:-10000)+(!olNs4?"px":0);layerWrite(b);c=olNs4?over.clip.width:over.offsetWidth;if(c>(c=windowWidth())){b=b.replace(/\&nbsp;/g," ");o3_width=c;o3_wrap=0}}layerWrite(b);if(o3_wrap)o3_width=olNs4?over.clip.width:over.offsetWidth;runHook("createPopup",FAFTER,b);return true}
function placeLayer(){var b,c;b=0;if(o3_frame.innerWidth)b=18;iwidth=windowWidth();winoffset=olIe4?eval("o3_frame."+docRoot+".scrollLeft"):o3_frame.pageXOffset;b=runHook("horizontalPlacement",FCHAIN,iwidth,winoffset,b);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;c=runHook("verticalPlacement",FCHAIN,iheight,scrolloffset);repositionTo(over,b,c)}
function olMouseMove(b){b=b?b:event;if(!(typeof b=="undefined"||!b)){if(b.pageX){o3_x=b.pageX;o3_y=b.pageY}else if(b.clientX){o3_x=eval("try{e.clientX+o3_frame."+docRoot+".scrollLeft}catch(e){};");o3_y=eval("try{e.clientY+o3_frame."+docRoot+".scrollTop}catch(e){};")}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 b,c="",f,g;g=olMouseMove;b=/function[ ]*(\w*)\(/;f=!olIe4&&window.onmousemove;if(document.onmousemove||f){if(f)capExtent=window;g=capExtent.onmousemove.toString();b=g.match(b);if(b==null)c=g+"(e); ";else if(b[1]=="anonymous"||b[1]=="olMouseMove"||f&&b[1]=="onmousemove"){if(!olOp&&f){f=g.indexOf("{")+1;b=g.lastIndexOf("}");g=g.substring(f,b);if((f=g.indexOf("("))!=-1){g=g.substring(0,f).replace(/^\s+/,"").replace(/\s+$/,"");if(eval("typeof "+g+" == 'undefined'"))window.onmousemove=
null;else c=g+"(e);"}}if(!c){olCheckMouseCapture=false;return}}else if(b[1])c=b[1]+"(e); ";else{f=g.indexOf("{")+1;b=g.lastIndexOf("}");c=g.substring(f,b)+"\n"}c+="olMouseMove(e); ";g=new Function("e",c)}capExtent.onmousemove=g;olNs4&&capExtent.captureEvents(Event.MOUSEMOVE)}
function parseTokens(b,c){var f,g,h=-1,j=b!="ol_",k=j&&!c.length?1:0;for(g=0;g<c.length;g++)if(h<0){if(typeof c[g]=="number"&&c[g]>pmStart&&c[g]<pmUpper){k=j?1:0;g--}else switch(b){case "ol_":ol_text=c[g].toString();break;default:o3_text=c[g].toString()}h=0}else if(!(c[g]>=pmCount||c[g]==DONOTHING))if(c[g]==INARRAY){k=0;eval(b+"text=ol_texts["+c[++g]+"].toString()")}else if(c[g]==CAPARRAY)eval(b+"cap=ol_caps["+c[++g]+"].toString()");else if(c[g]==STICKY)b!="ol_"&&eval(b+"sticky=1");else if(c[g]==
BACKGROUND)eval(b+'background="'+c[++g]+'"');else if(c[g]==NOCLOSE)b!="ol_"&&opt_NOCLOSE();else if(c[g]==CAPTION)eval(b+"cap='"+escSglQuote(c[++g])+"'");else if(c[g]==CENTER||c[g]==LEFT||c[g]==RIGHT){eval(b+"hpos="+c[g]);if(b!="ol_")olHautoFlag=1}else if(c[g]==OFFSETX)eval(b+"offsetx="+c[++g]);else if(c[g]==OFFSETY)eval(b+"offsety="+c[++g]);else if(c[g]==FGCOLOR)eval(b+'fgcolor="'+c[++g]+'"');else if(c[g]==BGCOLOR)eval(b+'bgcolor="'+c[++g]+'"');else if(c[g]==TEXTCOLOR)eval(b+'textcolor="'+c[++g]+
'"');else if(c[g]==CAPCOLOR)eval(b+'capcolor="'+c[++g]+'"');else if(c[g]==CLOSECOLOR)eval(b+'closecolor="'+c[++g]+'"');else if(c[g]==WIDTH)eval(b+"width="+c[++g]);else if(c[g]==BORDER)eval(b+"border="+c[++g]);else if(c[g]==CELLPAD)g=opt_MULTIPLEARGS(++g,c,b+"cellpad");else if(c[g]==STATUS)eval(b+"status='"+escSglQuote(c[++g])+"'");else if(c[g]==AUTOSTATUS)eval(b+"autostatus=("+b+"autostatus == 1) ? 0 : 1");else if(c[g]==AUTOSTATUSCAP)eval(b+"autostatus=("+b+"autostatus == 2) ? 0 : 2");else if(c[g]==
HEIGHT)eval(b+"height="+b+"aboveheight="+c[++g]);else if(c[g]==CLOSETEXT)eval(b+"close='"+escSglQuote(c[++g])+"'");else if(c[g]==SNAPX)eval(b+"snapx="+c[++g]);else if(c[g]==SNAPY)eval(b+"snapy="+c[++g]);else if(c[g]==FIXX)eval(b+"fixx="+c[++g]);else if(c[g]==FIXY)eval(b+"fixy="+c[++g]);else if(c[g]==RELX)eval(b+"relx="+c[++g]);else if(c[g]==RELY)eval(b+"rely="+c[++g]);else if(c[g]==FGBACKGROUND)eval(b+'fgbackground="'+c[++g]+'"');else if(c[g]==BGBACKGROUND)eval(b+'bgbackground="'+c[++g]+'"');else if(c[g]==
PADX){eval(b+"padxl="+c[++g]);eval(b+"padxr="+c[++g])}else if(c[g]==PADY){eval(b+"padyt="+c[++g]);eval(b+"padyb="+c[++g])}else if(c[g]==FULLHTML)b!="ol_"&&eval(b+"fullhtml=1");else if(c[g]==BELOW||c[g]==ABOVE){eval(b+"vpos="+c[g]);if(b!="ol_")olVautoFlag=1}else if(c[g]==CAPICON)eval(b+'capicon="'+c[++g]+'"');else if(c[g]==TEXTFONT)eval(b+"textfont='"+escSglQuote(c[++g])+"'");else if(c[g]==CAPTIONFONT)eval(b+"captionfont='"+escSglQuote(c[++g])+"'");else if(c[g]==CLOSEFONT)eval(b+"closefont='"+escSglQuote(c[++g])+
"'");else if(c[g]==TEXTSIZE)eval(b+'textsize="'+c[++g]+'"');else if(c[g]==CAPTIONSIZE)eval(b+'captionsize="'+c[++g]+'"');else if(c[g]==CLOSESIZE)eval(b+'closesize="'+c[++g]+'"');else if(c[g]==TIMEOUT)eval(b+"timeout="+c[++g]);else if(c[g]==FUNCTION)if(b=="ol_"){if(typeof c[g+1]!="number"){f=c[++g];ol_function=typeof f=="function"?f:null}}else{k=0;f=null;if(typeof c[g+1]!="number")f=c[++g];opt_FUNCTION(f)}else if(c[g]==DELAY)eval(b+"delay="+c[++g]);else if(c[g]==HAUTO)eval(b+"hauto=("+b+"hauto == 0) ? 1 : 0");
else if(c[g]==VAUTO)eval(b+"vauto=("+b+"vauto == 0) ? 1 : 0");else if(c[g]==CLOSECLICK)eval(b+"closeclick=("+b+"closeclick == 0) ? 1 : 0");else if(c[g]==WRAP)eval(b+"wrap=("+b+"wrap == 0) ? 1 : 0");else if(c[g]==FOLLOWMOUSE)eval(b+"followmouse=("+b+"followmouse == 1) ? 0 : 1");else if(c[g]==MOUSEOFF){eval(b+"mouseoff=("+b+"mouseoff==0) ? 1 : 0");f=c[g+1];if(b!="ol_"&&eval(b+"mouseoff")&&typeof f=="number"&&(f<pmStart||f>pmUpper))olHideDelay=c[++g]}else if(c[g]==CLOSETITLE)eval(b+"closetitle='"+escSglQuote(c[++g])+
"'");else if(c[g]==CSSOFF||c[g]==CSSCLASS)eval(b+"css="+c[g]);else if(c[g]==COMPATMODE)eval(b+"compatmode=("+b+"compatmode==0) ? 1 : 0");else if(c[g]==FGCLASS)eval(b+'fgclass="'+c[++g]+'"');else if(c[g]==BGCLASS)eval(b+'bgclass="'+c[++g]+'"');else if(c[g]==TEXTFONTCLASS)eval(b+'textfontclass="'+c[++g]+'"');else if(c[g]==CAPTIONFONTCLASS)eval(b+'captionfontclass="'+c[++g]+'"');else if(c[g]==CLOSEFONTCLASS)eval(b+'closefontclass="'+c[++g]+'"');else g=parseCmdLine(b,g,c);if(k&&o3_function)o3_text=o3_function();
if(b=="o3_"&&o3_wrap){o3_width=0;c=/<.*\n*>/ig;c.test(o3_text)||(o3_text=o3_text.replace(/[ ]+/g,"&nbsp;"));c.test(o3_cap)||(o3_cap=o3_cap.replace(/[ ]+/g,"&nbsp;"))}if(b=="o3_"&&o3_sticky){if(!o3_close&&o3_frame!=ol_frame)o3_close=ol_close;o3_mouseoff&&o3_frame==ol_frame&&opt_NOCLOSE(" ")}}
function layerWrite(b){b+="\n";if(olNs4){var c=o3_frame.document.layers.overDiv.document;c.write(b);c.close()}else if(typeof over.innerHTML!="undefined"){if(olIe5&&isMac)over.innerHTML="";over.innerHTML=b}else{range=o3_frame.document.createRange();range.setStartAfter(over);for(domfrag=range.createContextualFragment(b);over.hasChildNodes();)over.removeChild(over.lastChild);over.appendChild(domfrag)}}
function showObject(b){runHook("showObject",FBEFORE);b=olNs4?b:b.style;b.visibility="visible";runHook("showObject",FAFTER)}
function hideObject(b){runHook("hideObject",FBEFORE);var c=olNs4?b:b.style;if(olNs6&&olShowId>0){clearTimeout(olShowId);olShowId=0}c.visibility="hidden";c.top=c.left=(olIe4&&!olOp?0:-10000)+(!olNs4?"px":0);o3_timerid>0&&clearTimeout(o3_timerid);o3_delayid>0&&clearTimeout(o3_delayid);o3_delayid=o3_timerid=0;self.status="";if(b.onmouseout||b.onmouseover){if(olNs4)b.releaseEvents(Event.MOUSEOUT||Event.MOUSEOVER);b.onmouseout=b.onmouseover=null}runHook("hideObject",FAFTER)}
function repositionTo(b,c,f){b=olNs4?b:b.style;b.left=c+(!olNs4?"px":0);b.top=f+(!olNs4?"px":0)}function cursorOff(){var b=parseInt(over.style.left),c=parseInt(over.style.top),f=b+(over.offsetWidth>=parseInt(o3_width)?over.offsetWidth:parseInt(o3_width)),g=c+(over.offsetHeight>=o3_aboveheight?over.offsetHeight:o3_aboveheight);if(o3_x<b||o3_x>f||o3_y<c||o3_y>g)return true;return false}
function opt_FUNCTION(b){o3_text=b?typeof b=="string"?/.+\(.*\)/.test(b)?eval(b):b:b():o3_function?o3_function():"No Function";return 0}
function opt_NOCLOSE(b){b||(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(c){olHideDelay?hideDelay(olHideDelay):cClick(c)}}else over.onmouseover=function(){hoveringSwitch=true;if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0}};return 0}
function opt_MULTIPLEARGS(b,c,f){var g=b,h="";for(g=b;g<c.length;g++){if(typeof c[g]=="number"&&c[g]>pmStart)break;h+=c[g]+","}if(h)h=h.substring(0,--h.length);g--;b=olNs4&&/cellpad/i.test(f)?h.split(",")[0]:h;eval(f+'="'+b+'"');return g}function nbspCleanup(){if(o3_wrap){o3_text=o3_text.replace(/\&nbsp;/g," ");o3_cap=o3_cap.replace(/\&nbsp;/g," ")}}function escSglQuote(b){return b.toString().replace(/'/g,"\\'")}
function OLonLoad_handler(b){var c=/\w+\(.*\)[;\s]+/g,f=/overlib\(|nd\(|cClick\(/,g,h;olLoaded||(olLoaded=1);if(window.removeEventListener&&b.eventPhase==3)window.removeEventListener("load",OLonLoad_handler,false);else if(window.detachEvent){window.detachEvent("onload",OLonLoad_handler);if(b=document.body.getAttribute("onload"))if((b=b.toString().match(c))&&b.length)for(h=0;h<b.length;h++)if(!/anonymous/.test(b[h]))for(;(g=b[h].search(/\)[;\s]+/))!=-1;){c=b[h].substring(0,g+1);b[h]=b[h].substring(g+
2);f.test(c)&&eval(c)}}}
function wrapStr(b,c,f){var g=f=="close"?1:0,h=/[%\-a-z]+$/.test(c);c=olNs4?!h?c:"1":c;if(b)return h&&!olNs4?g?"</span>":"</div>":"</font>";else{b="o3_"+f+"font";f="o3_"+(f=="caption"?"cap":f)+"color";return h&&!olNs4?g?'<span style="font-family: '+quoteMultiNameFonts(eval(b))+"; color: "+eval(f)+"; font-size: "+c+';">':'<div style="font-family: '+quoteMultiNameFonts(eval(b))+"; color: "+eval(f)+"; font-size: "+c+';">':'<font face="'+eval(b)+'" color="'+eval(f)+'" size="'+(parseInt(c)>7?"7":c)+'">'}}
function quoteMultiNameFonts(b){for(var c=b.split(","),f=0;f<c.length;f++){b=c[f];b=b.replace(/^\s+/,"").replace(/\s+$/,"");if(/\s/.test(b)&&!/['"]/.test(b)){b="'"+b+"'";c[f]=b}}return c.join()}function isExclusive(){return false}
function setCellPadStr(b){var c="",f=0,g=[],h,j,k,m;c+="padding: ";g=b.replace(/\s+/g,"").split(",");switch(g.length){case 2:h=j=g[f];k=m=g[++f];break;case 3:h=g[f];k=m=g[++f];j=g[++f];break;case 4:h=g[f];m=g[++f];j=g[++f];k=g[++f];break}c+=g.length==1?g[0]+"px;":h+"px "+m+"px "+j+"px "+k+"px;";return c}function hideDelay(b){if(b&&!o3_delay){o3_timerid>0&&clearTimeout(o3_timerid);o3_timerid=setTimeout("cClick()",o3_timeout=b)}}
function horizontalPlacement(b,c,f){var g;b=b;c=c;var h=parseInt(o3_width);if(o3_fixx>-1||o3_relx!=null)g=o3_relx!=null?o3_relx<0?c+o3_relx+b-h-f:c+o3_relx:o3_fixx;else{if(o3_hauto==1)o3_hpos=o3_x-c>b/2?LEFT:RIGHT;if(o3_hpos==CENTER){g=o3_x+o3_offsetx-h/2;if(g<c)g=c}if(o3_hpos==RIGHT){g=o3_x+o3_offsetx;if(g+h>c+b-f){g=b+c-h-f;if(g<0)g=0}}if(o3_hpos==LEFT){g=o3_x-o3_offsetx-h;if(g<c)g=c}if(o3_snapx>1){f=g%o3_snapx;if(o3_hpos==LEFT)g-=o3_snapx+f;else g+=o3_snapx-f;if(g<c)g=c}}return g}
function verticalPlacement(b,c){b=b;c=c;var f=o3_aboveheight?parseInt(o3_aboveheight):olNs4?over.clip.height:over.offsetHeight;if(o3_fixy>-1||o3_rely!=null)b=o3_rely!=null?o3_rely<0?c+o3_rely+b-f:c+o3_rely:o3_fixy;else{if(o3_vauto==1)if(o3_y-c>b/2&&o3_vpos==BELOW&&o3_y+f+o3_offsety-(c+b)>0)o3_vpos=ABOVE;else if(o3_vpos==ABOVE&&o3_y-(f+o3_offsety)-c<0)o3_vpos=BELOW;if(o3_vpos==ABOVE){if(o3_aboveheight==0)o3_aboveheight=f;b=o3_y-(o3_aboveheight+o3_offsety);if(b<c)b=c}else b=o3_y+o3_offsety;if(o3_snapy>
1){f=b%o3_snapy;if(o3_aboveheight>0&&o3_vpos==ABOVE)b-=o3_snapy+f;else b+=o3_snapy-f;if(b<c)b=c}}return b}function checkPositionFlags(){if(olHautoFlag)olHautoFlag=o3_hauto=0;if(olVautoFlag)olVautoFlag=o3_vauto=0;return true}function windowWidth(){var b;if(o3_frame.innerWidth)b=o3_frame.innerWidth;else if(eval("o3_frame."+docRoot)&&eval("typeof o3_frame."+docRoot+".clientWidth=='number'")&&eval("o3_frame."+docRoot+".clientWidth"))b=eval("o3_frame."+docRoot+".clientWidth");return b}
function createDivContainer(b,c,f){b=b||"overDiv";c=c||o3_frame;f=f||1000;var g=layerReference(b);if(g==null){if(olNs4)b=g=c.document.layers[b]=new Layer(window.innerWidth,c);else{var h=olIe4?c.document.all.tags("BODY")[0]:c.document.getElementsByTagName("BODY")[0];if(olIe4&&!document.getElementById){h.insertAdjacentHTML("beforeEnd",'<div id="'+b+'"></div>');g=layerReference(b)}else{g=c.document.createElement("DIV");g.id=b;h.appendChild(g)}b=g.style}b.position="absolute";b.visibility="hidden";b.zIndex=
f;b.left=olIe4&&!olOp?(b.top="0px"):(b.top=-10000+(!olNs4?"px":0))}return g}function layerReference(b){return olNs4?o3_frame.document.layers[b]:document.all?o3_frame.document.all[b]:o3_frame.document.getElementById(b)}function isFunction(b){var c=true;if(typeof b=="object")for(var f=0;f<b.length;f++){if(typeof b[f]!="function"){c=false;break}}else if(typeof b!="function")c=false;return c}
function argToString(b,c,f){var g=c;c="";b=b;f=f?f:"ar";if(b.length>g){for(g=g;g<b.length;g++)c+=f+"["+g+"], ";c=c.substring(0,c.length-2)}return c}
function reOrder(b,c,f){var g=[],h,j,k;if(!f||typeof f=="undefined"||typeof f=="number")return b;if(typeof f=="function"){if(typeof c=="object")g=g.concat(c);else g[g.length++]=c;for(j=0;j<b.length;j++){h=false;if(!(typeof c=="function"&&b[j]==c)){for(k=0;k<c.length;k++)if(b[j]==c[k]){h=true;break}h||(g[g.length++]=b[j])}}g[g.length++]=f}else if(typeof f=="object"){if(typeof c=="object")g=g.concat(c);else g[g.length++]=c;for(k=0;k<b.length;k++){h=false;if(!(typeof c=="function"&&b[k]==c)){for(j=0;j<
c.length;j++)if(b[k]==c[j]){h=true;break}h||(g[g.length++]=b[k])}}for(j=0;j<g.length;j++)b[j]=g[j];for(k=g.length=0;k<b.length;k++){h=false;for(j=0;j<f.length;j++)if(b[k]==f[j]){h=true;break}h||(g[g.length++]=b[k])}g=g.concat(f)}return b=g}function setRunTimeVariables(){if(typeof runTime!="undefined"&&runTime.length)for(var b=0;b<runTime.length;b++)runTime[b]()}
function parseCmdLine(b,c,f){if(typeof cmdLine!="undefined"&&cmdLine.length)for(var g=0;g<cmdLine.length;g++){var h=cmdLine[g](b,c,f);if(h>-1){c=h;break}}return c}function postParseChecks(b,c){if(typeof postParse!="undefined"&&postParse.length)for(var f=0;f<postParse.length;f++)if(!postParse[f](b,c))return false;return true}function registerCommands(b){if(typeof b=="string"){b=b.split(",");pms=pms.concat(b);for(var c=0;c<b.length;c++)eval(b[c].toUpperCase()+"="+pmCount++)}}
function registerNoParameterCommands(b){!b&&typeof b!="string"||(pmt=!pmt?b:pmt+","+b)}
function registerHook(b,c,f,g){var h,j=typeof g;if(!(b=="plgIn"||b=="postParse")){if(typeof hookPts[b]=="undefined")hookPts[b]=new FunctionReference;h=hookPts[b];if(f!=null)if(f==FREPLACE){h.ovload=c;if(b.indexOf("ol_content_")>-1)h.alt[pms[CSSOFF-1-pmStart]]=c}else if(f==FBEFORE||f==FAFTER){h=f==1?h.before:h.after;if(typeof c=="object")h=h.concat(c);else h[h.length++]=c;if(g)h=reOrder(h,c,g)}else if(f==FALTERNATE){if(j=="number")h.alt[pms[g-1-pmStart]]=c}else if(f==FCHAIN){h=h.chain;if(typeof c==
"object")h=h.concat(c);else h[h.length++]=c}}}function registerRunTimeFunction(b){if(isFunction(b))if(typeof b=="object")runTime=runTime.concat(b);else runTime[runTime.length++]=b}function registerCmdLineFunction(b){if(isFunction(b))if(typeof b=="object")cmdLine=cmdLine.concat(b);else cmdLine[cmdLine.length++]=b}function registerPostParseFunction(b){if(isFunction(b))if(typeof b=="object")postParse=postParse.concat(b);else postParse[postParse.length++]=b}
function runHook(b,c){var f=hookPts[b],g=null,h;h=runHook.arguments;if(c==FREPLACE){h=argToString(h,2);g=typeof f=="undefined"||!(f=f.ovload)?eval(b+"("+h+")"):eval("l("+h+")")}else if(c==FBEFORE||c==FAFTER){if(typeof f!="undefined"){f=c==1?f.before:f.after;if(f.length){h=argToString(h,2);for(b=0;b<f.length;b++)eval("l[k]("+h+")")}}}else if(c==FALTERNATE){g=h[2];h=argToString(h,3);g=typeof f=="undefined"||(f=f.alt[pms[g-1-pmStart]])=="undefined"?eval(b+"("+h+")"):eval("l("+h+")")}else if(c==FCHAIN){h=
argToString(h,2);f=f.chain;for(b=f.length;b>0;b--)if((g=eval("l[k-1]("+h+")"))!=void 0)break}return g}function FunctionReference(){this.ovload=null;this.before=[];this.after=[];this.alt=[];this.chain=[]}function Info(b,c){this.version=b;this.prerelease=c;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(b){return!b?false:this.simpleversion>=Math.round(100*parseFloat(b))}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{nd=overlib=no_overlib;ver3fix=true}function Helper(){}a=Helper.prototype;
a.moveTo=function(b,c,f,g,h){try{var j;if((j=document.getElementById(b)?document.getElementById(b):b)||j.style){if(c!=null){if(typeof c=="number"||c.indexOf("px")<0||c.indexOf("em")<0||c.indexOf("pt")<0)c+="px";if(g){j.style.left="";j.style.right=c}else{j.style.left=c;j.style.right=""}}if(f!=null){if(typeof f=="number"||f.indexOf("px")<0||f.indexOf("em")<0||f.indexOf("pt")<0)f+="px";if(h){j.style.top="";j.style.bottom=f}else{j.style.top=f;j.style.bottom=""}}}}catch(k){}};
a.moveBy=function(b,c,f,g,h){var j=new Helper;if(b=document.getElementById(b)?document.getElementById(b):b){j=j.getRealCoordinates(b);if(c!=null){if(f.replace){c.replace(/px/,"");c.replace(/em/,"");c.replace(/pt/,"");c=parseInt(c)}c+=j[0];if(g){b.style.left="";b.style.right=c+"px"}else{b.style.left=c+"px";b.style.right=""}}if(f!=null){if(f.replace){f.replace(/px/,"");f.replace(/em/,"");f.replace(/pt/,"");f=parseInt(f)}f+=j[1];if(h){b.style.top="";b.style.bottom=f+"px"}else{b.style.top=f+"px";b.style.bottom=
""}}}};a.resizeTo=function(b,c,f){if(b=document.getElementById(b)?document.getElementById(b):b){if(c!=null){if(typeof c=="number"||c.indexOf("px")<0||c.indexOf("em")<0||c.indexOf("pt")<0)c+="px";try{b.style.width=c}catch(g){b.style.width="0px"}}if(f!=null){if(typeof f=="number"||f.indexOf("px")<0||f.indexOf("em")<0||f.indexOf("pt")<0)f+="px";try{b.style.height=f}catch(h){b.style.height="0px"}}}};
a.getCoordinates=function(b,c){var f;f=document.getElementById(b)?document.getElementById(b):b;if(!f)return new Array(0,0);b=f.style.left;f=f.style.top;if(c)return new Array(b,f);return new Array(parseFloat(b.substring(0,b.length-2)),parseFloat(f.substring(0,f.length-2)))};a.getRealCoordinates=function(b){var c;c=document.getElementById(b)?document.getElementById(b):b;if(!c)return new Array(0,0);b=c.offsetLeft;c=c.offsetTop;return new Array(b,c)};
a.getAbsoluteCoordinates=function(b,c,f,g){var h=new Helper;b=document.getElementById(b)?document.getElementById(b):b;if(!b)return new Array(0,0);for(var j=new Array(0,0),k=b.parentNode;k;){if(k.tagName&&k.tagName.toString().toLowerCase()=="body")break;if(k.scrollLeft)j[0]+=k.scrollLeft;if(k.scrollTop)j[1]+=k.scrollTop;k=k.parentNode}return new Array(h.abs_left(b,c,f)-j[0],h.abs_top(b,c,g)-j[1])};
a.abs_top=function(b,c,f){var g=new Helper;if(c)if(c==f)return b.offsetTop;else{f++;return b.offsetTop+g.abs_top(b.offsetParent,c,f)}return b.offsetParent?b.offsetTop+g.abs_top(b.offsetParent,c,f):b.offsetTop};a.abs_left=function(b,c,f){var g=new Helper;if(c)if(c==f)return b.offsetLeft;else{f++;return b.offsetLeft+g.abs_left(b.offsetParent,c,f)}return b.offsetParent?b.offsetLeft+g.abs_left(b.offsetParent,c,f):b.offsetLeft};
a.getDimension=function(b,c){var f;f=document.getElementById(b)?document.getElementById(b):b;if(!f)return new Array(0,0);b=f.style.width;f=f.style.height;if(c)return new Array(b,f);return new Array(parseFloat(b.substring(0,b.length-2)),parseFloat(f.substring(0,f.length-2)))};
a.getRealDimension=function(b){b=document.getElementById(b)?document.getElementById(b):b;if(!b)return new Array(0,0);if(b.tagName&&b.tagName.toLowerCase()=="div"){var c=b.style.position;b.style.position="relative";var f=document.createElement("div");f.style.position="absolute";f.style.display="block";f.style.top="0px";f.style.left="0px";f.style.bottom="0px";f.style.right="0px";f.style.backgroundColor="#A00";b.appendChild(f);var g=f.offsetWidth,h=f.offsetHeight;b.removeChild(f);b.style.position=c;
return new Array(g,h)}return new Array(parseInt(b.offsetWidth),parseInt(b.offsetHeight))};
a.getScrollDimension=function(){var b=new Helper,c,f;f=c=0;try{c=document.body.scrollHeight;f=document.body.offsetHeight}catch(g){}b=b.getInnerDimension();if(c>f){c=document.body.scrollWidth;f=document.body.scrollHeight}else{c=document.body.offsetWidth;f=document.body.offsetHeight}if(c<b[0])c=b[0];if(f<b[1])f=b[1];if(document.documentElement&&document.documentElement.scrollHeight){if(document.documentElement.scrollWidth>c)c=document.documentElement.scrollWidth;if(document.documentElement.scrollHeight>
f)f=document.documentElement.scrollHeight}return new Array(c,f)};a.getRealScrollDimension=function(b){b=document.getElementById(b)?document.getElementById(b):b;if(!b)return new Array(0,0);return b.scrollHeight?new Array(b.scrollWidth,b.scrollHeight):b.offsetHeight?new Array(b.offsetWidth,b.offsetHeight):new Array(0,0)};
a.getInnerDimension=function(){var b,c;if(window.innerHeight){b=window.innerWidth;c=window.innerHeight}else if(document.documentElement&&document.documentElement.clientHeight){b=document.documentElement.clientWidth;c=document.documentElement.clientHeight}else if(document.body){b=document.body.clientWidth;c=document.body.clientHeight}return new Array(b,c)};
a.getBorders=function(b){var c=new Array(0,0,0,0);if(!b)return c;b=document.getElementById(b)?document.getElementById(b):b;if(!b)return c;if(b.style.borders&&b.style.borders.indexOf("px")>0){c=parseInt(b.style.borders.replace(/px/,""));c=new Array(c,c,c,c)}if(b.style.borderLeft&&b.style.borderLeft.indexOf("px")>0)c[0]=parseInt(b.style.borderLeft.replace(/px/,""));if(b.style.borderRight&&b.style.borderRight.indexOf("px")>0)c[1]=parseInt(b.style.borderRight.replace(/px/,""));if(b.style.borderTop&&b.style.borderTop.indexOf("px")>
0)c[2]=parseInt(b.style.borderTop.replace(/px/,""));if(b.style.borderBottom&&b.style.borderBottom.indexOf("px")>0)c[3]=parseInt(b.style.borderBottom.replace(/px/,""));return c};a.isIE=function(){if(document.all&&window.offscreenBuffering)if(!window.XMLHttpRequest)return true;return false};a.isIE7=function(){if(document.all&&window.offscreenBuffering)if(window.XMLHttpRequest)return true;return false};
a.isIE8=function(){var b=-1;if(navigator.appName=="Microsoft Internet Explorer"){var c=navigator.userAgent,f=/MSIE ([0-9]{1,}[.0-9]{0,})/;if(f.exec(c)!=null)b=parseFloat(RegExp.$1)}return b>=8};a.isSafari=function(){return navigator.userAgent.toLowerCase().indexOf("safari")!=-1};a.isNetscape=function(){if(navigator.appName.indexOf("Netscape")!=-1)return true;return false};a.isOpera=function(){return navigator.userAgent.toLowerCase().indexOf("opera")!=-1};
a.incOpacity=function(b,c){var f=new Helper;b=document.getElementById(b)?document.getElementById(b):b;if(f.isIE()||f.isIE7()||f.isIE8())try{if(typeof b.filters=="undefined"||typeof b.filters.alpha=="undefined")b.style.filter="Alpha(opacity=100)";var g=typeof b.filters.alpha.opacity!="undefined"?(parseFloat(b.filters.alpha.opacity/100)+c)*100:c*100;b.filters.alpha.opacity=g}catch(h){}else if(!(!b||!b.style||!b.style.opacity)){g=parseFloat(b.style.opacity)+c;b.style.opacity=g;if(b.style.MozOpacity!=
g){g=parseFloat(b.style.MozOpacity)+c;b.style.MozOpacity=g}}};a.setOpacity=function(b,c){var f=new Helper;b=document.getElementById(b)?document.getElementById(b):b;if(f.isIE()||f.isIE7()){c=c*100;if(b.style.filter)b.filters.alpha.opacity=parseInt(c);else b.style.filter="Alpha(opacity="+parseInt(c)+")"}else{b.style.opacity=c;if(b.style.MozOpacity)if(b.style.MozOpacity!=c)b.style.MozOpacity=c}};a.switchImage=function(b,c){document.getElementById(b).src=c};
a.addEvent=function(b,c,f,g){var h,j=new Helper;h=document.getElementById(b)?document.getElementById(b):b;if(!h)return false;if(typeof Event!="undefined"&&j.isIE()){Event.observe(h,c,f,g);return true}if(h.addEventListener)h.addEventListener(c,f,false);else if(h.attachEvent){h["e"+c+f]=f;h[c+f]=function(){h["e"+c+f](window.event)};h.attachEvent("on"+c,h[c+f])}return true};
a.removeEvent=function(b,c,f){var g=new Helper;b=document.getElementById(b)?document.getElementById(b):b;if(!b)return false;if(g.isIE()||g.isIE7()){Event.stopObserving(b,c,f);return true}if(b.removeEventListener)b.removeEventListener(c,f,false);else if(b.detachEvent){b.detachEvent("on"+c,b[c+f]);b[c+f]=null;b["e"+c+f]=null}return true};
a.getBodyScrollPosition=function(){var b,c;if(typeof window.pageYOffset!="undefined"){b=window.pageXOffset;c=window.pageYOffset}else if(typeof document.compatMode!="undefined"&&document.compatMode!="BackCompat"){b=document.documentElement.scrollLeft;c=document.documentElement.scrollTop}else if(typeof document.body!="undefined"){b=document.body.scrollLeft;c=document.body.scrollTop}return new Array(b,c)};
a.getScrollPosition=function(b){var c;c=document.getElementById(b)?document.getElementById(b):b;if(!c)return new Array(0,0);if(c.pageXOffset){b=c.pageXOffset;c=c.pageYOffset}else{b=c.scrollLeft;c=c.scrollTop}b||(b=0);c||(c=0);return new Array(b,c)};
a.getAllScrollPositions=function(b){var c=this,f;f=document.getElementById(b)?document.getElementById(b):b;if(!f)return new Array(0,0);f=c.getScrollPosition(b);var g=null;if(b.parentNode)g=c.getAllScrollPositions(b.parentNode);return b.parentNode?new Array(f[0]+g[0],f[1]+g[1]):f};
a.scrollToBottom=function(b,c){var f=new Helper;dim_obj=f.getRealDimension(b)[1];dim_parent=f.getRealDimension(c)[1];coord_obj=f.getCoordinates(b)[1];coord_parent=f.getCoordinates(c)[1];dim_obj<dim_parent?f.moveTo(b,null,0):f.moveTo(b,null,dim_parent-dim_obj)};a.scrollToElement=function(b,c,f){b=document.getElementById(b)?document.getElementById(b):b;c=c||0;f=f||0;if(b){b=document.helper.getAbsoluteCoordinates(b);window.scrollTo(b[0]+c,b[1]+f)}};
a.scrollToElementAni=function(b,c,f,g,h){b=document.getElementById(b)?document.getElementById(b):b;var j=c||0,k=f||0;g=g||0;h=h||[];var m=this;if(b){var n=document.helper.getAbsoluteCoordinates(b),t=document.helper.getBodyScrollPosition();if(g==0)h=new Array((n[0]-t[0]+j)/20,(n[1]-t[1]+k)/20);if(g<19){g++;window.scrollTo(t[0]+h[0],t[1]+h[1]);window.setTimeout(function(){m.scrollToElementAni(b,c,f,g,h)},30)}else window.scrollTo(n[0]+j,n[1]+k)}};
a.replace=function(b,c,f){for(output=""+b;output.indexOf(c)>-1;){pos=output.indexOf(c);output=""+(output.substring(0,pos)+f+output.substring(pos+c.length,output.length))}return output};a.findImageSources=function(b){if(!b)return[];imgs=[];b=b.toLowerCase().split("<img ");for(var c=0;c<b.length;c++){var f=b[c].indexOf('src="')+5,g=b[c].indexOf('"',f);b[c].substring(f,g).length>4&&imgs.push(b[c].substring(f,g))}return imgs};
a.preloadImages=function(b){if(!document.pics)document.pics=[];completed=true;for(i in b){if(!document.pics[i]){document.pics[i]=new Image;document.pics[i].src=b[i]}document.pics[i].complete||(completed=false)}if(completed)document.pics=null;return completed};a.hexToDec=function(b){b=parseInt(b,16);return isNaN(b)?false:b};
a.decToHex=function(b){hex="0123456789ABCDEF";olddec=b;b=parseInt(b);out="";if(isNaN(b))return"00";if(b==0)return"00";for(var c=0;b!=0;){c++;out=hex.charAt(b%16)+out;b>>=4;if(c>1000)break}if(out.length%2!=0)out="0"+out;return out};
a.toHexColor=function(b){var c=new Helper;if(typeof b=="Array"&&b.length==3)return c.decToHex(b[0])+c.decToHex(b[1])+c.decToHex(b[2]);else if(b.substring(0,1)=="#"&&(b.length==7||b.length==4)||b.length==7)return b=b.replace("#","");else if(b.substring(0,4)=="rgb("){b=b.replace(/rgb\(/,"");b=b.replace(")","");b=b.replace(" ","");b=b.split(",",3);return c.decToHex(b[0])+c.decToHex(b[1])+c.decToHex(b[2])}return"0"};
a.fadeIn=function(b,c,f,g){var h,j=new Helper;h=document.getElementById(b)?document.getElementById(b):b;if(!(!h||typeof h.style=="undefined")){j.isSafari();if(!f||f==0){f=0;j.setOpacity(b,0);h.style.display="";h.style.visibility="visible"}if(f<9){f++;j.incOpacity(b,0.1);j=this;window.setTimeout(function(){j.fadeIn(b,c,f)},50)}else{j.incOpacity(b,0.1);c&&c()}if(g){j=this;window.setTimeout(function(){j.fadeOut(b,true)},g)}}};
a.fadeOut=function(b,c,f,g){var h,j=new Helper;h=document.getElementById(b)?document.getElementById(b):b;if(!h||typeof h.style=="undefined")return false;if(!g||g==0){g=0;j.setOpacity(b,1)}if(g<9){g++;j.incOpacity(b,-0.1);j=this;window.setTimeout(function(){j.fadeOut(b,c,f,g)},50)}else{j.setOpacity(b,0);if(c==true)h.style.display="none";h.style.visibility="hidden";f&&f()}};
a.isBodyLoaded=function(){return typeof document!="undefined"&&typeof document.body!="undefined"&&document.body&&document.body_loaded&&document.body_loaded==1};a.waitForBody=function(b,c){var f=this;typeof document!="undefined"&&typeof document.body!="undefined"&&document.body&&document.body_loaded&&document.body_loaded==1?b(c):window.setTimeout(function(){f.waitForBody(b,c)},100)};
a.execJS2=function(b){var c=navigator.userAgent.indexOf("Safari")!=-1,f=navigator.userAgent.indexOf("Opera")!=-1,g=navigator.appName=="Netscape";b=b.getElementsByTagName("script");for(var h,j=0;j<b.length;j++){h=c?b[j].innerHTML:f?b[j].text:g?b[j].textContent:b[j].text;try{eval(h)}catch(k){alert(k)}}};a.execJS=function(b){b=b.getElementsByTagName("script");for(i=0;i<b.length;i++)if(b[i].getAttribute("type",false)=="text/javascript")try{eval(b[i].innerHTML)}catch(c){}};
a.execJSCount=function(b,c){b=b.getElementsByTagName("script");var f="",g=b.length;if(c&&g>c)g=c;for(i=0;i<g;i++)if(b[i].getAttribute("type",false)=="text/javascript")f+=b[i].innerHTML;eval(f)};
a.serialize=function(b){if(b==null||b==undefined||b.constructor==Function)return"N;";var c=new Helper;switch(b.constructor){case String:return"s:"+b.length+':"'+b+'";';case Number:return(b%1?"d:":"i:")+b+";";case Boolean:return"b:"+(b?"1":"0")+";";case Date:return c.serialize(b.getTime());case RegExp:return c.serialize(b.toSource());case Error:return c.serialize(b.message);case Array:case Object:var f="",g=0;for(var h in b){f+=c.serialize(h)+c.serialize(b[h]);g++}return"a:"+g+":{"+f+"}";default:return c.serialize(b.toString())}};
a.getElementsByName=function(b,c,f){c=c||document;for(var g=[],h=f||new Array("div","span","table","tr","td","form","input","textarea","select","option","a"),j=0;j<h.length;j++)for(var k=c.getElementsByTagName(h[j]),m=0;m<k.length;m++)k[m].getAttribute("name",false)==b&&g.push(k[m]);return g};
a.getElementsByClassName=function(b,c,f){c=c||document;for(var g=[],h=f||new Array("*"),j=0;j<h.length;j++)for(var k=c.getElementsByTagName(h[j]),m=0;m<k.length;m++)if(!(!k[m]||!k[m].getAttribute("class",false)&&!k[m].className))try{if(k[m].className.indexOf(" "+b)>-1||k[m].className.indexOf(b+" ")>-1||k[m].className==b||k[m].getAttribute("class",false)&&k[m].getAttribute("class",false).indexOf(" "+b)>-1||k[m].getAttribute("class",false).indexOf(b+" ")>-1||k[m].getAttribute("class",false)==b)g.push(k[m])}catch(n){}return g};
a.moveRelativeTo=function(b,c,f,g,h,j){var k,m=this;h=h||0;j=j||0;b=document.getElementById(b)?document.getElementById(b):b;k=document.getElementById(c)?document.getElementById(c):c;if(b&&k){c=m.getAbsoluteCoordinates(k);k=m.getRealDimension(k);g=g?k[0]+c[0]:c[0];f=f?k[1]+c[1]:c[1];g+=h;f+=j;m.moveTo(b,g,f)}};
a.expandUnexpand=function(b,c,f){b=document.getElementById(b)?document.getElementById(b):b;var g=this;if(b&&b.style){if(b.style.display=="none"){if(f)b.style.display="";else g.fadeIn(b,c);return true}else if(f)b.style.display="none";else g.fadeOut(b,true,c);return false}};a.expandUnexpandByClassname=function(b){var c=this;b=c.getElementsByClassName(b);for(var f=false,g=0;g<b.length;g++)f=c.expandUnexpand(b[g]);return f};
a.closeByClassname=function(b,c){var f=this;b=f.getElementsByClassName(b);for(f=0;f<b.length;f++)if(b[f]&&b[f].id!=c)b[f].style.display="none"};a.openByClassname=function(b,c){var f=this;b=f.getElementsByClassName(b);for(f=0;f<b.length;f++)if(b[f]&&b[f].id!=c)b[f].style.display=""};a.openCloseByClassname=function(b,c){var f=this;b=f.getElementsByClassName(b);for(f=0;f<b.length;f++)if(b[f]&&b[f].id!=c)b[f].style.display=b[f].style.display!="none"?"none":""};
a.numeralsOnly=function(b){b=b?b:event;b=b.charCode?b.charCode:b.keyCode?b.keyCode:b.which?b.which:0;if(b>31&&(b<48||b>57)&&(b<96||b>105)&&b!=46&&b!=188&&b!=190)return false;return true};a.noSubmit=function(b){b=b?b:event;b=b.charCode?b.charCode:b.keyCode?b.keyCode:b.which?b.which:0;return b!=13};a.insertRowAfter=function(b,c){b.getElementsByTagName("tbody")[0].appendChild(c)};a.fckEditorFix=function(){for(i=0;i<parent.frames.length;++i)parent.frames[i].FCK&&parent.frames[i].FCK.UpdateLinkedField()};
a.multiselect_changed=function(b,c,f,g,h,j,k,m){k||(k="-1");if(h||b.value==k){if(h){b=document.helper.getElementsByName(j,null,new Array("select"));b=b[f];if(b.value==k){m&&m();return}b.value=k}h=document.helper.getElementsByName(b.name,null,new Array("select"));for(j=j=f;j<h.length-1;j++)h[j].value=h[j+1].value;h[h.length-1].value=k;for(j=1;j<g;j++){f=document.getElementById("multiselect_"+c+"_"+j);b=document.getElementById("multiselect_"+c+"_"+(j+1));for(var n=false,t=j-1;t>-1;t--)if(h[t]&&h[t].value==
k){n=true;break}if((!b||b.style.display=="none")&&n){document.helper.fadeOut(f,true);break}else if(!n)if(document.getElementById("multiselect_delete_"+c+"_"+j))document.getElementById("multiselect_delete_"+c+"_"+j).style.display="none"}for(j=0;j<h.length-1;j++)if(h[j].value==k){if(document.getElementById("multiselect_delete_"+c+"_"+j))document.getElementById("multiselect_delete_"+c+"_"+j).style.display="none"}else if(document.getElementById("multiselect_delete_"+c+"_"+j))document.getElementById("multiselect_delete_"+
c+"_"+j).style.display=""}else{h=document.helper.getElementsByName(b.name,null,new Array("select"));for(j=0;j<h.length;j++){if(h[j].value==k){if(document.getElementById("multiselect_delete_"+c+"_"+j))document.getElementById("multiselect_delete_"+c+"_"+j).style.display="none"}else if(document.getElementById("multiselect_delete_"+c+"_"+j))document.getElementById("multiselect_delete_"+c+"_"+j).style.display="";if(j!=f)if(h[j].value==b.value){b.value=k;m&&m();return}}if(b.value==k){for(j=0;j<g;j++)(f=
document.getElementById("multiselect_"+c+"_"+j))&&j>0&&f.style.display!="none"&&document.helper.fadeOut(f,true);h=document.helper.getElementsByName(b.name,null,new Array("select"));for(j=0;j<h.length;j++)h[j].value=k;(f=document.getElementById("multiselect_"+c+"_0"))&&f.style.display=="none"&&document.helper.fadeIn(f,null,null,null,true)}else{document.getElementById("multiselect_"+c+"_"+(f+1))&&document.getElementById("multiselect_"+c+"_"+(f+1)).style.display=="none"&&document.helper.fadeIn("multiselect_"+
c+"_"+(f+1),null,null,null,true);h=document.helper.getElementsByName(b.name,null,new Array("select"));for(j=0;j<h.length;j++)if(h[j].value==k){if(document.getElementById("multiselect_delete_"+c+"_"+j))document.getElementById("multiselect_delete_"+c+"_"+j).style.display="none"}else if(document.getElementById("multiselect_delete_"+c+"_"+j))document.getElementById("multiselect_delete_"+c+"_"+j).style.display=""}}m&&m()};
a.reset_multiselect=function(b,c){idAppend=c||"";for(var f=0;f<b.length;f++){var g=b[f];f++;for(var h=b[f],j=document.helper.getElementsByName(g+"[]",null,new Array("select")),k=false,m=0;m<j.length;m++)for(var n=0;n<h;n++)if(document.getElementById("multiselect_"+g+"_"+n+idAppend)){var t=document.getElementById("multiselect_"+g+"_"+n+idAppend).getElementsByTagName("select")[0];if(t.value=="-1"){if(document.getElementById("multiselect_delete_"+g+"_"+n+idAppend))document.getElementById("multiselect_delete_"+
g+"_"+n+idAppend).style.display="none";if(document.getElementById("multiselect_"+g+"_"+n+idAppend))document.getElementById("multiselect_"+g+"_"+n+idAppend).style.display="none"}else{if(document.getElementById("multiselect_delete_"+g+"_"+n+idAppend))document.getElementById("multiselect_delete_"+g+"_"+n+idAppend).style.display="";if(document.getElementById("multiselect_"+g+"_"+n+idAppend))document.getElementById("multiselect_"+g+"_"+n+idAppend).style.display=""}}if(!k){if(document.getElementById("multiselect_delete_"+
g+"_0"+idAppend))document.getElementById("multiselect_delete_"+g+"_0"+idAppend).style.display="";if(document.getElementById("multiselect_"+g+"_0"+idAppend))document.getElementById("multiselect_"+g+"_0"+idAppend).style.display=""}}};
a.throwElementTo=function(b,c,f,g){b=document.getElementById(b)?document.getElementById(b):b;c=document.getElementById(c)?document.getElementById(c):c;var h=this;if(!(!b||!c||!b.innerHTML||typeof b.innerHTML=="undefined")){var j=document.createElement("div");if(!f)j.innerHTML=b.innerHTML;f=h.getRealDimension(b);var k=h.getRealDimension(c);b=h.getAbsoluteCoordinates(b);c=h.getAbsoluteCoordinates(c);document.body.insertBefore(j,document.body.firstChild);j.style.position="absolute";j.style.overflow=
"hidden";h.setOpacity(j,0.7);h.resizeTo(j,f[0],f[1]);try{j.style.left=b[0]+"px"}catch(m){}try{j.style.top=b[1]+"px"}catch(n){}j.style.zIndex=h.MAX_ZINDEX;h.throwElementTo_ani(j,f,k,b,c,g)}};a.MAX_ZINDEX=2147483547;
a.throwElementTo_ani=function(b,c,f,g,h,j,k){var m=20,n=this;if(k)k++;else k=1;var t=new Array((c[0]-f[0])/(m-0),(c[1]-f[1])/(m-0)),u=new Array((g[0]-h[0])/m,(g[1]-h[1])/m),B=n.getRealDimension(b),w=n.getAbsoluteCoordinates(b);if(k<21){m-k<5&&n.incOpacity(b,-0.1);n.moveTo(b,w[0]-u[0],w[1]-u[1]);n.resizeTo(b,B[0]-t[0],B[1]-t[1]);window.setTimeout(function(){n.throwElementTo_ani(b,c,f,g,h,j,k)},25)}else{b.style.display="none";j&&j()}};
a.checkTextarealengthInterval=function(b,c,f){if((f=document.getElementById(f))&&b){var g=b.value.length;if(g>c){b.value=b.value.substring(0,c);g=c}if(f)f.innerHTML=c-g}};a.jsInclude=function(){};
a.checkTextarealength=function(b,c,f){if(b){b.my_containerId=f;b.onfocus=function(){window.setInterval(function(){this.mytimer=document.helper.checkTextarealengthInterval(b,c,this.my_containerId)},500)};b.onblur=function(){this.mytimer&&window.clearInterval(this.mytimer)};window.setTimeout(function(){document.helper.checkTextarealengthInterval(b,c,f)},100)}};
a.centeredPopup=function(b,c,f){var g=screen.availWidth/2-c/2,h=screen.availHeight/2-f/2;pop=window.open("","","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=yes,resizable=1,fullscreen=0,width="+c+",height="+f+",top="+h+",left="+g);pop.resizeTo(c,f);pop.moveTo(g,h);pop.location=b;return pop};
a.moveElementByPath=function(b,c,f,g,h){h=h||0;var j=this;f=f||0;g=g||function(){};if(!b){elemet=document.getElementById(b);if(!b)return false}if(!(h>=c.length)){var k=h+1;j.driveElementTo(b,c[h][0],c[h][1],function(){g();window.setTimeout(function(){j.moveElementByPath(b,c,f,g,k)},f)})}};
a.driveElementTo=function(b,c,f,g,h,j,k){h=h||0;j=j||0;k=k||0;var m=this,n=m.getAbsoluteCoordinates(b);if(h==0){j=(c-n[0])/50;k=(f-n[1])/50}if(h<49){m.moveTo(b,n[0]+j,n[1]+k);m.scrollToElementAni(b,-100,-100);h++;window.setTimeout(function(){m.driveElementTo(b,c,f,g,h,j,k)},25)}else{m.moveTo(b,c,f);g&&g()}};
a.htmlentities=function(b,c){if(typeof b=="undefined")b="";if(typeof c!="number")c=3;c=Math.max(0,Math.min(3,parseInt(c)));var f=[];f[38]="&amp;";f[60]="&lt;";f[62]="&gt;";if(c==1||c==3)f[39]="&#039;";if(c==2||c==3)f[34]="&quot;";for(var g in f)if(!(String.fromCharCode(g).length<1))if(parseInt(g))b=b.replace(String.fromCharCode(g),f[g]);c=new Array("&nbsp;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&not;","&shy;","&reg;","&macr;","&deg;",
"&plusmn;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;","&szlig;","&agrave;","&aacute;",
"&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;");for(g in c)if(!(String.fromCharCode(g).length<1))if(parseInt(g))b=b.replace(String.fromCharCode(g*1+160),c[g]);return b};
a.html_entity_decode=function(b,c){if(typeof b=="undefined")b="";if(typeof c!="number")c=3;c=Math.max(0,Math.min(3,parseInt(c)));var f=[];f[38]="&amp;";f[60]="&lt;";f[62]="&gt;";if(c==1||c==3)f[39]="&#039;";if(c==2||c==3)f[34]="&quot;";for(var g in f)if(!(String.fromCharCode(g).length<1))if(parseInt(g)){String.fromCharCode(g);b=b.replace(f[g],String.fromCharCode(g))}c=new Array("&nbsp;","&iexcl;","&cent;","&pound;","&curren;","&yen;","&brvbar;","&sect;","&uml;","&copy;","&ordf;","&laquo;","&not;",
"&shy;","&reg;","&macr;","&deg;","&plusmn;","&sup2;","&sup3;","&acute;","&micro;","&para;","&middot;","&cedil;","&sup1;","&ordm;","&raquo;","&frac14;","&frac12;","&frac34;","&iquest;","&Agrave;","&Aacute;","&Acirc;","&Atilde;","&Auml;","&Aring;","&AElig;","&Ccedil;","&Egrave;","&Eacute;","&Ecirc;","&Euml;","&Igrave;","&Iacute;","&Icirc;","&Iuml;","&ETH;","&Ntilde;","&Ograve;","&Oacute;","&Ocirc;","&Otilde;","&Ouml;","&times;","&Oslash;","&Ugrave;","&Uacute;","&Ucirc;","&Uuml;","&Yacute;","&THORN;",
"&szlig;","&agrave;","&aacute;","&acirc;","&atilde;","&auml;","&aring;","&aelig;","&ccedil;","&egrave;","&eacute;","&ecirc;","&euml;","&igrave;","&iacute;","&icirc;","&iuml;","&eth;","&ntilde;","&ograve;","&oacute;","&ocirc;","&otilde;","&ouml;","&divide;","&oslash;","&ugrave;","&uacute;","&ucirc;","&uuml;","&yacute;","&thorn;","&yuml;");for(g in c)if(!(String.fromCharCode(g).length<1))if(parseInt(g))b=b.replace(c[g],String.fromCharCode(g*1+160));return b};
a.loadJavascript=function(b){var c=document.createElement("script");c.setAttribute("type","text/javascript");c.setAttribute("charset","utf-8");c.setAttribute("src",b);document.getElementsByTagName("head")[0]&&document.getElementsByTagName("head")[0].appendChild(c)};
a.loadCss=function(b,c){var f=document.createElement("link");f.setAttribute("rel","stylesheet");f.setAttribute("href",b);if(!c&&document.getElementsByTagName("head")[0])document.getElementsByTagName("head")[0].appendChild(f);else if(c&&document.getElementsByTagName("head")[0])document.getElementsByTagName("head")[0].firstChild?document.getElementsByTagName("head")[0].insertBefore(f,document.getElementsByTagName("head")[0].firstChild):document.getElementsByTagName("head")[0].appendChild(f)};
a.getHeighestZIndex=function(b){var c=this,f=1;b=b||top.document.body;if(b.style&&b.style.zIndex&&b.style.zIndex>f)f=b.style.zIndex;if(b.hasChildNodes())for(var g=0,h=0;h<b.childNodes.length;h++){g=c.getHeighestZIndex(b.childNodes[h]);if(g>f)f=g}return f};a.downloadFile=function(b){var c=document.createElement("iframe");c.style.visibility="hidden";c.style.height="0px";c.style.width="0px";c.src=b;b=this;b.waitForBody(function(){document.body.appendChild(c)})};
a.copyNodeToTop=function(b,c,f){var g=this,h=b.cloneNode(false);h.style.position="absolute";h.style.zIndex=g.getHeighestZIndex()+1;modalcontainer=document.createElement("div");h.innerHTML=b.innerHTML;f&&f(h,modalcontainer);if(c){with(modalcontainer.style){display="block";zIndex=g.getHeighestZIndex()-1;position="absolute";left=top="0px";backgroundColor="#000";width=document.helper.getScrollDimension()[0]+"px";height=document.helper.getScrollDimension()[1]+"px"}g.setOpacity(modalcontainer,0.4);document.body.insertBefore(modalcontainer,
document.body.firstChild);modalcontainer.onclick=function(){window.setTimeout(function(){try{modalcontainer&&document.body.removeChild(modalcontainer);h&&document.body.removeChild(h)}catch(j){}},100)}}document.body.insertBefore(h,document.body.firstChild);c=g.getRealDimension(h);f=g.getInnerDimension();b=(f[0]-c[0])/2;c=(f[1]-c[1])/2;f=document.helper.getBodyScrollPosition();g.moveTo(h,b+f[0],c+f[1])};
a.moveElementToMouseCursor=function(b,c){var f=document.all?window.event.clientX:b.pageX;b=document.all?window.event.clientY:b.pageY;c=document.getElementById(c)||c;var g=this;if(c){try{document.body.insertBefore(c,document.body.firstChild)}catch(h){}var j=new Array(0,0);if(Gojen.is_ie)j=document.helper.getBodyScrollPosition();try{g.moveTo(c,f+j[0],b+j[1])}catch(k){}}};
a.raiseEvent=function(b,c){c=document.getElementById(c);if(document.createEvent){var f=document.createEvent("Events");f.initEvent(b,true,true);c.dispatchEvent(f)}else if(document.createEventObject){f=document.createEventObject();c.fireEvent("on"+b,f)}};
function unserialize(b){function c(j,k,m,n){throw new this.window[j](k,m,n);}function f(j,k,m){for(var n=[],t=j.slice(k,k+1),u=2;t!=m;){u+k>j.length&&c("Error","Invalid");n.push(t);t=j.slice(k+(u-1),k+u);u+=1}return[n.length,n.join("")]}function g(j,k,m){var n;n=[];for(var t=0;t<m;t++){var u=j.slice(k+(t-1),k+t);n.push(u)}return[n.length,n.join("")]}function h(j,k){var m,n=0,t;k||(k=0);var u=j.slice(k,k+1).toLowerCase(),B=k+2,w=new Function("x","return x");switch(u){case "i":w=function(q){return parseInt(q,
10)};j=f(j,B,";");n=j[0];m=j[1];B+=n+1;break;case "b":w=function(q){return parseInt(q,10)!==0};j=f(j,B,";");n=j[0];m=j[1];B+=n+1;break;case "d":w=function(q){return parseFloat(q)};j=f(j,B,";");n=j[0];m=j[1];B+=n+1;break;case "n":m=null;break;case "s":m=f(j,B,":");n=m[0];t=m[1];B+=n+2;j=g(j,B+1,parseInt(t,10));n=j[0];m=j[1];B+=n+2;n!=parseInt(t,10)&&n!=m.length&&c("SyntaxError","String length mismatch");break;case "a":m={};t=f(j,B,":");n=t[0];t=t[1];B+=n+2;for(n=0;n<parseInt(t,10);n++){var E=h(j,B),
C=E[1];E=E[2];B+=C;var I=h(j,B);C=I[1];I=I[2];B+=C;m[E]=I}B+=1;break;default:c("SyntaxError","Unknown / Unhandled data type(s): "+u);break}return[u,B-k,w(m)]}return h(b+"",0)[2]}
Helper.prototype.rotate=function(b,c){var f=null;f=document.getElementById(b)?document.getElementById(b):b;if(!f||!f.style)return false;var g,h;try{g=f.style.MozTransform.indexOf("rotate");if(g>=0){h=f.style.MozTransform.indexOf(")",g);if(h>g)f.style.MozTransform=f.style.MozTransform.substring(0,g)+f.style.MozTransform.substring(h+1)}f.style.MozTransform+="rotate("+c+"deg)"}catch(j){}try{g=f.style.WebkitTransform.indexOf("rotate");if(g>=0){h=f.style.WebkitTransform.indexOf(")",g);if(h>g)f.style.WebkitTransform=
f.style.WebkitTransform.substring(0,g)+f.style.WebkitTransform.substring(h+1)}f.style.WebkitTransform+="rotate("+c+"deg)"}catch(k){}try{g=f.style.transform.indexOf("rotate");if(g>=0){h=f.style.transform.indexOf(")",g);if(h>g)f.style.transform=f.style.transform.substring(0,g)+f.style.transform.substring(h+1)}f.style.transform+="rotate("+c+"deg)"}catch(m){}};
Helper.prototype.skew=function(b,c,f){var g=null;f=typeof f=="undefined"?0:f;g=document.getElementById(b)?document.getElementById(b):b;if(!g||!g.style)return false;var h,j;try{h=g.style.MozTransform.indexOf("skew");if(h>=0){j=g.style.MozTransform.indexOf(")",h);if(j>h)g.style.MozTransform=g.style.MozTransform.substring(0,h)+g.style.MozTransform.substring(j+1)}g.style.MozTransform+="skew("+c+"deg,"+f+"deg)"}catch(k){}try{h=g.style.WebkitTransform.indexOf("skew");if(h>=0){j=g.style.WebkitTransform.indexOf(")",
h);if(j>h)g.style.WebkitTransform=g.style.WebkitTransform.substring(0,h)+g.style.WebkitTransform.substring(j+1)}g.style.WebkitTransform+="skew("+c+"deg,"+f+"deg)"}catch(m){}try{h=g.style.transform.indexOf("skew");if(h>=0){j=g.style.transform.indexOf(")",h);if(j>h)g.style.transform=g.style.transform.substring(0,h)+g.style.transform.substring(j+1)}g.style.transform+="skew("+c+"deg,"+f+"deg)"}catch(n){}};
Helper.prototype.scale=function(b,c,f){var g=null;f=typeof f=="undefined"?c:f;g=document.getElementById(b)?document.getElementById(b):b;if(!g||!g.style)return false;var h,j;try{h=g.style.MozTransform.indexOf("scale");if(h>=0){j=g.style.MozTransform.indexOf(")",h);if(j>h)g.style.MozTransform=g.style.MozTransform.substring(0,h)+g.style.MozTransform.substring(j+1)}g.style.MozTransform+="scale("+c+","+f+")"}catch(k){}try{h=g.style.WebkitTransform.indexOf("scale");if(h>=0){j=g.style.WebkitTransform.indexOf(")",
h);if(j>h)g.style.WebkitTransform=g.style.WebkitTransform.substring(0,h)+g.style.WebkitTransform.substring(j+1)}g.style.WebkitTransform+="scale("+c+","+f+")"}catch(m){}try{h=g.style.transform.indexOf("scale");if(h>=0){j=g.style.transform.indexOf(")",h);if(j>h)g.style.transform=g.style.transform.substring(0,h)+g.style.transform.substring(j+1)}g.style.transform+="scale("+c+","+f+")"}catch(n){}};
Helper.prototype.getElementsByClassName=function(b,c,f){c=c||document;if(b&&typeof c.getElementsByClassName!="undefined")return c.getElementsByClassName(b);for(var g=[],h=f||new Array("div","span","table","tr","td","form","input","textarea","select","option","a"),j=0;j<h.length;j++)for(var k=c.getElementsByTagName(h[j]),m=0;m<k.length;m++)if(!(!k[m]||!k[m].getAttribute("class",false)&&!k[m].className))try{if(k[m].className.indexOf(" "+b)>-1||k[m].className.indexOf(b+" ")>-1||k[m].className==b||k[m].getAttribute("class",
false)&&k[m].getAttribute("class",false).indexOf(" "+b)>-1||k[m].getAttribute("class",false).indexOf(b+" ")>-1||k[m].getAttribute("class",false)==b)g.push(k[m])}catch(n){}return g};document.client=window.location.href.indexOf("/admin/")>0?0:1;document.backend=window.location.href.indexOf("/admin/")>0?1:0;document.helper=new Helper;document.helper.addEvent(window,"load",function(){document.body_loaded=1},false);
function positionFixed(b,c,f,g,h){if(document.helper.isIE())if(b=document.getElementById(b)?document.getElementById(b):b)if(b.style){b.style.position="absolute";document.positionFixedElements.push(new Array(b,c,f,g,h));positionFixedCheck()}}
function positionFixedCheck(){var b,c,f,g,h,j,k,m,n;m=document.helper.getScrollDimension();n=document.helper.getInnerDimension();for(var t=0;t<document.positionFixedElements.length;t++){b=document.positionFixedElements[t][0];g=document.positionFixedElements[t][1];h=document.positionFixedElements[t][2];j=document.positionFixedElements[t][3];k=document.positionFixedElements[t][4];c=document.body.scrollLeft||0;f=document.body.scrollTop||0;if(g){c+=g;b.style.left=c+"px"}else if(h||h==0){c=h+(m[0]-n[0]-
c);b.style.right=c+"px"}if(j){f+=j;b.style.top=f+"px"}else if(k){f=k+(m[1]-n[1]-f);b.style.bottom=f+"px"}}}document.positionFixedElements=[];document.helper.isIE()&&window.setInterval(positionFixedCheck,100);
function $gojen(){this.ajax=function(g,h){return new GojenAjax(g,h)};this.loadJavascript=function(g){if(Gojen.is_safari){var h=document.createElement("script");h.type="text/javascript";h.src=g}else{h=document.createElement("script");h.setAttribute("type","text/javascript");h.setAttribute("src",g)}document.getElementsByTagName("head")[0]&&document.getElementsByTagName("head")[0].appendChild(h)};this.load=function(g){Gojen.externalLibraries[g]||(Gojen.externalLibraries[g]=true)};this.each=function(g,
h){if(typeof f!="undefined"&&f)if((typeof g).toString().toLowerCase()=="function")for(var j=0;j<f.length;j++)g(f[j],h,j);c=this};this.element=function(g){g=g||0;if(typeof f!="undefined"&&f)return f[g];return{}};this.last_element=function(){if(typeof f!="undefined"&&f&&f.length>0)return f[f.length-1];return{}};this.elements=function(){return f};this.get=function(){var g=[],h;if(typeof f!="undefined"&&f)for(var j=0;j<f.length;j++){h=b.getObjects(arguments,f[j]);for(var k=0;k<h.length;k++)g.push(h[k])}return new $gojen(g)};
this.push=function(){var g=(new $gojen).ajax(5),h="/ajax/gojen.ajax.php",j="task=push&backend="+document.backend;if(Gojen.is_logged_in)j+="&was_logged_in=1";var k=new Array("push");g.request_post(h,j,function(m){if(m)try{eval(m)}catch(n){}},k,false,false)};this.setCookie=function(g,h,j){var k=new Date;k=new Date(k.getTime()+1000*j);document.cookie=g+"="+h+"; expires="+k.toGMTString()+"; path=/;"};this.is_visible=function(){if(!(typeof f!="undefined"&&f&&f.length>0))return false;for(var g=f[0];g;){if(g.style&&
(g.style.display=="none"||g.style.visibility=="hidden"))return false;try{g=g.parentNode}catch(h){g=null}}return true};this.on_visible=function(g){if(typeof f!="undefined"&&f)if((typeof g).toString().toLowerCase()=="function")for(var h=0;h<f.length;h++){var j=f[h];$gojen(j).is_visible()?g():window.setTimeout(function(){$gojen(j).on_visible(g)},100)}};this.submit=function(){var g,h="https:"==document.location.protocol?"https://":"http://";h=h+top.document.domain;if(typeof f!="undefined"&&f)for(var j=
0;j<f.length;j++){g=f[j];var k=$(g).serialize(),m=(new $gojen).ajax(20),n=g.action;if(document.relative_path&&n.indexOf(h)>=0)n=document.relative_path+n.replace(h,"");k="?"+k+"&backend="+document.backend;g=new Array(g);m.request_post(n,k,function(t){try{eval(t)}catch(u){}},g,false,false)}else return true;return false};this.buildSeoLink=function(g){return GojenAjax.getFile("/ajax/gojen.ajax.php?task=buildSeoLink&url="+encodeURIComponent(g))};this.convertFromSeoLink=function(g){return GojenAjax.getFile("/ajax/gojen.ajax.php?task=convertFromSeoLink&url="+
encodeURIComponent(g))};this.historyManager={register:function(g){if(g){if(typeof Gojen.ajaxUrlObserverCallbacks=="undefined")Gojen.ajaxUrlObserverCallbacks=[];Gojen.ajaxUrlObserverCallbacks.push(g)}},add:function(g){this.set($gojen().buildSeoLink(g))},set:function(g){if(typeof g!="undefined"){if(g=="")g="/";Gojen.lastLocationHash=g;location.hash=g;if(Gojen.is_ie&&window.ActiveXObject){if(typeof Gojen.historyManagerFrame=="undefined"){Gojen.historyManagerFrame=document.createElement("iframe");Gojen.historyManagerFrame.src=
"blank.html";Gojen.historyManagerFrame.name="historyManagerFrame";Gojen.historyManagerFrame.style.display="none";document.body.appendChild(Gojen.historyManagerFrame)}try{var h=Gojen.historyManagerFrame.contentWindow.document;h.open();h.write('<html><body id="hash">'+g+"</body></html>");h.close()}catch(j){}}}},get:function(g){var h="";if(Gojen.is_ie&&window.ActiveXObject)if(!Gojen.historyManagerFrame)return"";h=location.hash.slice(1);if(!g)return h;g=$gojen().convertFromSeoLink(h);h=g.replace("?",
"").split("&");for(var j={},k,m=0;m<h.length;m++)if(!(h[m].indexOf("=")<0)){k=h[m].split("=");j[k[0]]=k[1]}return{noSeoHash:g,decoded:j}}};this.GojenUI=function(g){var h=this;g=g||0;if(typeof jQuery=="undefined"||typeof jQuery.ui=="undefined"){if(g==4){$gojen().on_document_ready(function(){$gojen().loadJavascript(Gojen.protocol+"ajax.googleapis.com/ajax/libs/prototype/1/prototype.js")});$gojen().on_document_ready(function(){$gojen().loadJavascript(Gojen.protocol+"ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js")});
$gojen().on_document_ready(function(){$gojen().loadJavascript(Gojen.protocol+"ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js")})}if(g>10)return;return window.setTimeout(function(){h.GojenUI(++g)},500)}$gojen(".gojen-tabs").each(function(j){jQuery(function(){jQuery(j).tabs();j.className=j.className.replace("gojen-tabs","")})});$gojen(".gojen-accordion").each(function(j){$gojen(j).on_visible(function(){for(var k=j.className.indexOf("no_autoheight")<0,m=j.className.indexOf("clearStyle")>=
0,n=null,t=j.className.split(" "),u=0;u<t.length;u++)if(!(t[u].indexOf("=")<1)){var B=t[u].split("=");switch(B[0]){case "changestart":break}}jQuery(function(){try{jQuery(j).accordion({collapsible:true,autoHeight:k,clearStyle:m,changestart:n})}catch(w){alert(w)}j.className=j.className.replace("gojen-accordion","")})})});$gojen(".gojen-datepicker").each(function(j){jQuery(function(){jQuery(j).datepicker({firstDay:1,dayNamesMin:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNames:["Sunday","Monday",
"Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","June","July","August","September","October","November","December"],yearRange:"-100:+100",showButtonPanel:true,closeText:"close",currentText:"today",changeYear:true,dateFormat:"yy-mm-dd"});j.className=j.className.replace("gojen-datepicker","")})});$gojen(".gojen-checkbox").each(function(j){for(var k=
j;k;){if(k.tagName&&k.tagName.toLowerCase()=="form")break;k=k.parentNode}if(k){j.style.display="none";var m=document.createElement("img"),n=document.createElement("img");m.src="/media/images/icon_checkbox.png";n.src="/media/images/icon_checkbox_checked.png";m.style.verticalAlign="bottom";n.style.verticalAlign="bottom";m.style.display=j.checked?"none":"";n.style.display=j.checked?"":"none";m.style.cursor="pointer";n.style.cursor="pointer";m.onclick=function(){j.checked=true;$gojen(m).hide();$gojen(n).show()};
n.onclick=function(){j.checked=false;$gojen(m).show();$gojen(n).hide()};k.onreset=function(){if(j.checked){$gojen(m).hide();$gojen(n).show()}else{$gojen(m).show();$gojen(n).hide()}};j.parentNode.insertBefore(m,j);j.parentNode.insertBefore(n,j);j.className=j.className.replace("gojen-checkbox","")}})};this.css3effects=function(){var g=Gojen.loadFunction("gojen","css3effects");try{eval(g)}catch(h){return this}return c};this.hide=function(){b.each(function(g){g.style.display="none"});return this};this.show=
function(){b.each(function(g){g.style.display="";g.style.visibility="";document.helper.setOpacity(g,1)});return this};this.showOrHide=function(){b.each(function(g){g.style.display=="none"?$gojen(g).show():$gojen(g).hide()});return this};this.fadeIn=function(){b.each(function(g,h){if(Gojen.is_ie){$gojen(g).show();h&&h()}else document.helper.fadeIn(g,h)});return this};this.fadeOut=function(g,h){b.each(function(j,k){if(j.style.display!="none"&&!Gojen.is_ie)document.helper.fadeOut(j,k.display_none,k.cb_func);
else if(Gojen.is_ie&&k.display_none){$gojen(j).hide();k.cb_func&&k.cb_func()}},{display_none:g,cb_func:h});return this};this.setFocus=function(){b.each(function(g){g.focus()});return this};this.opacity=function(g){b.each(function(h,j){document.helper.setOpacity(h,j)},g);return this};this.value=function(g){b.each(function(h){h.value=g});return this};this.checked=function(g){b.each(function(h){h.checked=g});return this};this.className=function(g){if(typeof f!="undefined"&&f)for(var h=0;h<f.length;h++)if(typeof f[h].className!=
"undefined")f[h].className=g};this.innerHTML=function(g,h){if(typeof f!="undefined"&&f)for(var j=0;j<f.length;j++)switch(h){case "before":f[j].innerHTML=g+f[j].innerHTML;break;case "after":f[j].innerHTML+=g;break;default:f[j].innerHTML=g}};this.visibility=function(g){b.each(function(h,j){h.style.visibility=j},g);return this};this.center=function(){document.helper.getBodyScrollPosition();var g=document.helper.getInnerDimension(),h=[];if(typeof f!="undefined"&&f)for(var j=0;j<f.length;j++){h=document.helper.getRealDimension(f[j]);
f[j].style.left=g[0]/2-h[0]/2+"px";f[j].style.top=g[1]/2-h[1]/2+"px";if(g[1]/2-h[1]/2<0)f[j].style.top="0px"}};this.login=function(g,h,j,k,m){g=g||"";h=h||"";j=j?"on":"";g=GojenAjax.getFile("/ajax/gojen.ajax.php?task=login&username="+encodeURIComponent(g)+"&passwd="+encodeURIComponent(h)+"&autologin="+j+"&backend="+document.backend);if(g=="1"){Gojen.is_logged_in=true;k&&k()}else{Gojen.is_logged_in=false;m&&m()}};this.GoWindow=function(g,h,j){var k=j.width||640,m=j.height||480,n=j.modal||false,t=j.delete_on_close||
true;j=j.no_fade||false;var u=new WindowControl(Base64.encode(g),document.body,false,"");u.set("dimension",k,m);u.set("titlebarDimension",k,20);u.set("title",g);u.set("content",h.replace(/____WINDOWCONTROLID____/g,u.get("id")));u.set("position",WindowControl.POSITION.CENTER);u.set("modal",n);u.set("delete_on_close",t);u.set("no_fade",j);u.set("in_effect",function(B){$gojen(B).opacity(1);new Effect.Grow(B,{duration:0.5})});u.set("out_effect",function(B){new Effect.Shrink(B,0.5)});u.show()};this.on_document_ready=
function(g){var h=this;if(typeof document.helper=="undefined")return window.setTimeout(function(){h.on_document_ready(g)},100);document.helper.waitForBody(g)};this.addEvent=function(g,h,j){j=j||false;var k=this;if(typeof Gojen=="undefined")return window.setTimeout(function(){k.addEvent(g,h,j)},50);if(typeof f!="undefined"&&f)for(var m=0;m<f.length;m++){var n=f[m];if(n)if(typeof Event!="undefined"&&Gojen.is_ie6)Event.observe(n,g,h,j);else if(n.addEventListener)n.addEventListener(g,h,false);else if(n.attachEvent){n["e"+
g+h]=h;n[g+h]=function(){n["e"+g+h](window.event)};n.attachEvent("on"+g,n[g+h])}}return true};this.removeEvent=function(g,h,j){j=j||false;if(typeof f!="undefined"&&f)for(j=0;j<f.length;j++){if(Gojen.is_Ie){Event.stopObserving(f[j],g,h);return true}if(f[j].removeEventListener)f[j].removeEventListener(g,h,false);else if(f[j].detachEvent){f[j].detachEvent("on"+g,f[j][g+h]);f[j][g+h]=null;f[j]["e"+g+h]=null}}return true};this.getObjects=function(g,h){h=h||document;for(var j=[],k=0;k<g.length;k++)switch((typeof g[k]).toString().toLowerCase()){case "string":if(g[k].charAt(0)==
".")for(var m=document.helper.getElementsByClassName(g[k].substring(1),h),n=0;n<m.length;n++)j.push(m[n]);else if(g[k].charAt(0)=="<"){m=h.getElementsByTagName(g[k].replace(/</g,"").replace(/>/g,""));for(n=0;n<m.length;n++)j.push(m[n])}else if(g[k].charAt(0)=="@"){var t=g[k].replace("@","").toLowerCase();m=h.getElementsByTagName("*");for(n=0;n<m.length;n++)m[n]&&m[n].getAttribute("name")&&m[n].getAttribute("name").toLowerCase()==t&&j.push(m[n])}else{g[k]=g[k].charAt(0)=="#"?g[k].substring(1):g[k];
document.getElementById(g[k])&&j.push(document.getElementById(g[k]))}break;case "object":if(g[k].parentNode||g[k].getElementById)j.push(g[k]);else for(n in g[k]){m=b.getObjects(new Array(g[k][n]),h);for(t=0;t<m.length;t++)j.push(m[t])}break;case "function":case "undefined":continue;default:if(g[k].parentNode||g[k].getElementById)j.push(g[k])}return j};var b=this,c=this,f=this.getObjects(arguments);return this}var Gojen={};Gojen.JSLibraries={};Gojen.Postloads={};
Gojen.loadFunction=function(b,c){if(typeof Gojen.Postloads[c]=="undefined")Gojen.Postloads[c]=GojenAjax.getFile("/ajax/javascript."+b+".php?func="+c);return Gojen.Postloads[c]};Gojen.loadLibrary=function(b){if(!Gojen.lib_ready(b)){var c=GojenAjax.getFile(Gojen.JSLibraries[b]);try{eval(c)}catch(f){alert(b+" not loaded: "+f);return false}if(!Gojen.lib_ready(b)){alert(b+" not loaded");return false}}return true};Gojen.lib_ready=function(b){eval("var check = (typeof "+b+" != 'undefined');");return check};
Gojen.libs_ready=function(){for(i in Gojen.JSLibraries)if(!Gojen.lib_ready(i))return false;return true};Gojen.is_ie6=document.all&&window.offscreenBuffering&&!window.XMLHttpRequest;Gojen.is_ie7=document.all&&window.offscreenBuffering&&window.XMLHttpRequest&&parseFloat(navigator.appVersion)==7;Gojen.is_ie8=window.navigator.userAgent.indexOf("MSIE ")>-1&&parseFloat(navigator.appVersion)==8;Gojen.is_ie=Gojen.is_ie6||Gojen.is_ie7||Gojen.is_ie8||window.navigator.userAgent.indexOf("MSIE ")>-1;
Gojen.is_safari=navigator.userAgent.toLowerCase().indexOf("safari")!=-1;Gojen.is_netscape=navigator.appName.indexOf("Netscape")!=-1;Gojen.is_opera=navigator.userAgent.toLowerCase().indexOf("opera")!=-1;Gojen.protocol="https:"==document.location.protocol?"https://":"http://";Gojen.key={};Gojen.key.down={};Gojen.key.up={};Gojen.key.press={};$gojen(document).addEvent("keydown",function(b){Gojen.key_observer(b,"down")});$gojen(document).addEvent("keyup",function(b){Gojen.key_observer(b,"up")});
$gojen(document).addEvent("keypress",function(b){Gojen.key_observer(b,"press")});
Gojen.key_observer=function(b,c){b=b?b:event;var f=b.charCode?b.charCode:b.keyCode?b.keyCode:b.which?b.which:0;Gojen.key.down={};Gojen.key.up={};Gojen.key.press={};Gojen.key[c].charcode=f;switch(f){case 17:case 91:case 224:Gojen.key[c].keyname="CTRL";break;default:Gojen.key[c].keyname=""}Gojen.key[c].is_ctrl=Gojen.key[c].keyname=="CTRL"||b.ctrlKey;Gojen.key[c].is_alt=Gojen.key[c].keyname=="ALT"||b.altKey;Gojen.key[c].is_shift=Gojen.key[c].keyname=="SHIFT"||b.shiftKey;return true};
Gojen.JSLibraries.CSS3Effects="/frontend/javascript/css3effects.js";Gojen.externalLibraries={};Gojen.pushInterval=window.setInterval(function(){$gojen().push()},10000);$gojen().on_document_ready(function(){if(typeof GojenAjax=="undefined")return false;var b=GojenAjax.getFile("/ajax/gojen.ajax.php?task=is_logged_in&backend="+document.backend);Gojen.is_logged_in=b=="1"?true:false});$gojen().on_document_ready(function(){$gojen().GojenUI()});
if(typeof jQuery=="undefined"||!jQuery.noConflict||typeof Prototype=="undefined")var jqueryConflictInterval=window.setInterval(function(){if(!(typeof jQuery=="undefined"||!jQuery.noConflict||typeof Prototype=="undefined")){jQuery.noConflict();$gojen().loadJavascript("/frontend/javascript/jquery.lazyload.js");if(jqueryConflictInterval==null){window.clearInterval(jqueryConflictInterval);jqueryConflictInterval=null}}},1);else{jQuery.noConflict();$gojen().loadJavascript("/frontend/javascript/jquery.lazyload.js")}
window.setInterval(function(){var b=$gojen().historyManager.get();if(Gojen.lastLocationHash!=b){Gojen.lastLocationHash=b;for(var c=$gojen().convertFromSeoLink(b),f=c.replace("?","").split("&"),g={},h,j=0;j<f.length;j++)if(!(f[j].indexOf("=")<0)){h=f[j].split("=");g[h[0]]=h[1]}if(typeof Gojen.ajaxUrlObserverCallbacks!="undefined")for(f=0;f<Gojen.ajaxUrlObserverCallbacks.length;f++)try{Gojen.ajaxUrlObserverCallbacks[f](b,{noSeoHash:c,decoded:g})}catch(k){}}},100);
var Scriptaculous={Version:"1.8.3",require:function(b){try{document.write('<script type="text/javascript" src="'+b+'"><\/script>')}catch(c){var f=document.createElement("script");f.type="text/javascript";f.src=b;document.getElementsByTagName("head")[0].appendChild(f)}},REQUIRED_PROTOTYPE:"1.6.0.3",load:function(){function b(c){var f=c.replace(/_.*|\./g,"");f=parseInt(f+"0".times(4-f.length));return c.indexOf("_")>-1?f-1:f}if(typeof Prototype=="undefined"||typeof Element=="undefined"||typeof Element.Methods==
"undefined"||b(Prototype.Version)<b(Scriptaculous.REQUIRED_PROTOTYPE))throw"script.aculo.us requires the Prototype JavaScript framework >= "+Scriptaculous.REQUIRED_PROTOTYPE;}};Scriptaculous.load();
var Builder={NODEMAP:{AREA:"map",CAPTION:"table",COL:"table",COLGROUP:"table",LEGEND:"fieldset",OPTGROUP:"select",OPTION:"select",PARAM:"object",TBODY:"table",TD:"table",TFOOT:"table",TH:"table",THEAD:"table",TR:"table"},node:function(b,c,f){b=b.toUpperCase();var g=this.NODEMAP[b]||"div";g=document.createElement(g);try{g.innerHTML="<"+b+"></"+b+">"}catch(h){}var j=g.firstChild||null;if(j&&j.tagName.toUpperCase()!=b)j=j.getElementsByTagName(b)[0];j||(j=document.createElement(b));if(j){if(c)if(this._isStringOrNumber(c)||
c instanceof Array||c.tagName)this._children(j,c);else{var k=this._attributes(c);if(k.length){try{g.innerHTML="<"+b+" "+k+"></"+b+">"}catch(m){}j=g.firstChild||null;if(!j){j=document.createElement(b);for(attr in c)j[attr=="class"?"className":attr]=c[attr]}if(j.tagName.toUpperCase()!=b)j=g.getElementsByTagName(b)[0]}}f&&this._children(j,f);return $(j)}},_text:function(b){return document.createTextNode(b)},ATTR_MAP:{className:"class",htmlFor:"for"},_attributes:function(b){var c=[];for(attribute in b)c.push((attribute in
this.ATTR_MAP?this.ATTR_MAP[attribute]:attribute)+'="'+b[attribute].toString().escapeHTML().gsub(/"/,"&quot;")+'"');return c.join(" ")},_children:function(b,c){if(c.tagName)b.appendChild(c);else if(typeof c=="object")c.flatten().each(function(f){if(typeof f=="object")b.appendChild(f);else Builder._isStringOrNumber(f)&&b.appendChild(Builder._text(f))});else Builder._isStringOrNumber(c)&&b.appendChild(Builder._text(c))},_isStringOrNumber:function(b){return typeof b=="string"||typeof b=="number"},build:function(b){var c=
this.node("div");$(c).update(b.strip());return c.down()},dump:function(b){if(typeof b!="object"&&typeof b!="function")b=window;var c="A ABBR ACRONYM ADDRESS APPLET AREA B BASE BASEFONT BDO BIG BLOCKQUOTE BODY BR BUTTON CAPTION CENTER CITE CODE COL COLGROUP DD DEL DFN DIR DIV DL DT EM FIELDSET FONT FORM FRAME FRAMESET H1 H2 H3 H4 H5 H6 HEAD HR HTML I IFRAME IMG INPUT INS ISINDEX KBD LABEL LEGEND LI LINK MAP MENU META NOFRAMES NOSCRIPT OBJECT OL OPTGROUP OPTION P PARAM PRE Q S SAMP SCRIPT SELECT SMALL SPAN STRIKE STRONG STYLE SUB SUP TABLE TBODY TD TEXTAREA TFOOT TH THEAD TITLE TR TT U UL VAR".split(/\s+/);
c.each(function(f){b[f]=function(){return Builder.node.apply(Builder,[f].concat($A(arguments)))}})}};String.prototype.parseColor=function(b){var c="#";if(this.slice(0,4)=="rgb("){var f=this.slice(4,this.length-1).split(","),g=0;do c+=parseInt(f[g]).toColorPart();while(++g<3)}else if(this.slice(0,1)=="#"){if(this.length==4)for(g=1;g<4;g++)c+=(this.charAt(g)+this.charAt(g)).toLowerCase();if(this.length==7)c=this.toLowerCase()}return c.length==7?c:b||this};
Element.collectTextNodes=function(b){return $A($(b).childNodes).collect(function(c){return c.nodeType==3?c.nodeValue:c.hasChildNodes()?Element.collectTextNodes(c):""}).flatten().join("")};Element.collectTextNodesIgnoreClass=function(b,c){return $A($(b).childNodes).collect(function(f){return f.nodeType==3?f.nodeValue:f.hasChildNodes()&&!Element.hasClassName(f,c)?Element.collectTextNodesIgnoreClass(f,c):""}).flatten().join("")};
Element.setContentZoom=function(b,c){b=$(b);b.setStyle({fontSize:c/100+"em"});Prototype.Browser.WebKit&&window.scrollBy(0,0);return b};Element.getInlineOpacity=function(b){return $(b).style.opacity||""};Element.forceRerendering=function(b){try{b=$(b);var c=document.createTextNode(" ");b.appendChild(c);b.removeChild(c)}catch(f){}};
var Effect={_elementDoesNotExistError:{name:"ElementDoesNotExistError",message:"The specified DOM element does not exist, but is required for this effect to operate"},Transitions:{linear:Prototype.K,sinoidal:function(b){return-Math.cos(b*Math.PI)/2+0.5},reverse:function(b){return 1-b},flicker:function(b){b=-Math.cos(b*Math.PI)/4+0.75+Math.random()/4;return b>1?1:b},wobble:function(b){return-Math.cos(b*Math.PI*9*b)/2+0.5},pulse:function(b,c){return-Math.cos(b*((c||5)-0.5)*2*Math.PI)/2+0.5},spring:function(b){return 1-
Math.cos(b*4.5*Math.PI)*Math.exp(-b*6)},none:function(){return 0},full:function(){return 1}},DefaultOptions:{duration:1,fps:100,sync:false,from:0,to:1,delay:0,queue:"parallel"},tagifyText:function(b){var c="position:relative";if(Prototype.Browser.IE)c+=";zoom:1";b=$(b);$A(b.childNodes).each(function(f){if(f.nodeType==3){f.nodeValue.toArray().each(function(g){b.insertBefore((new Element("span",{style:c})).update(g==" "?String.fromCharCode(160):g),f)});Element.remove(f)}})},multiple:function(b,c,f){b=
(typeof b=="object"||Object.isFunction(b))&&b.length?b:$(b).childNodes;var g=Object.extend({speed:0.1,delay:0},f||{}),h=g.delay;$A(b).each(function(j,k){new c(j,Object.extend(g,{delay:k*g.speed+h}))})},PAIRS:{slide:["SlideDown","SlideUp"],blind:["BlindDown","BlindUp"],appear:["Appear","Fade"]},toggle:function(b,c,f){b=$(b);c=(c||"appear").toLowerCase();return Effect[Effect.PAIRS[c][b.visible()?1:0]](b,Object.extend({queue:{position:"end",scope:b.id||"global",limit:1}},f||{}))}};
Effect.DefaultOptions.transition=Effect.Transitions.sinoidal;
Effect.ScopedQueue=Class.create(Enumerable,{initialize:function(){this.effects=[];this.interval=null},_each:function(b){this.effects._each(b)},add:function(b){var c=(new Date).getTime(),f=Object.isString(b.options.queue)?b.options.queue:b.options.queue.position;switch(f){case "front":this.effects.findAll(function(g){return g.state=="idle"}).each(function(g){g.startOn+=b.finishOn;g.finishOn+=b.finishOn});break;case "with-last":c=this.effects.pluck("startOn").max()||c;break;case "end":c=this.effects.pluck("finishOn").max()||
c;break}b.startOn+=c;b.finishOn+=c;if(!b.options.queue.limit||this.effects.length<b.options.queue.limit)this.effects.push(b);if(!this.interval)this.interval=setInterval(this.loop.bind(this),15)},remove:function(b){this.effects=this.effects.reject(function(c){return c==b});if(this.effects.length==0){clearInterval(this.interval);this.interval=null}},loop:function(){for(var b=(new Date).getTime(),c=0,f=this.effects.length;c<f;c++)this.effects[c]&&this.effects[c].loop(b)}});
Effect.Queues={instances:$H(),get:function(b){if(!Object.isString(b))return b;return this.instances.get(b)||this.instances.set(b,new Effect.ScopedQueue)}};Effect.Queue=Effect.Queues.get("global");
Effect.Base=Class.create({position:null,start:function(b){if(b&&b.transition===false)b.transition=Effect.Transitions.linear;this.options=Object.extend(Object.extend({},Effect.DefaultOptions),b||{});this.currentFrame=0;this.state="idle";this.startOn=this.options.delay*1000;this.finishOn=this.startOn+this.options.duration*1000;this.fromToDelta=this.options.to-this.options.from;this.totalTime=this.finishOn-this.startOn;this.totalFrames=this.options.fps*this.options.duration;this.render=function(){function c(f,
g){f.options[g+"Internal"]&&f.options[g+"Internal"](f);f.options[g]&&f.options[g](f)}return function(f){if(this.state==="idle"){this.state="running";c(this,"beforeSetup");this.setup&&this.setup();c(this,"afterSetup")}if(this.state==="running"){this.position=f=this.options.transition(f)*this.fromToDelta+this.options.from;c(this,"beforeUpdate");this.update&&this.update(f);c(this,"afterUpdate")}}}();this.event("beforeStart");this.options.sync||Effect.Queues.get(Object.isString(this.options.queue)?"global":
this.options.queue.scope).add(this)},loop:function(b){if(b>=this.startOn)if(b>=this.finishOn){this.render(1);this.cancel();this.event("beforeFinish");this.finish&&this.finish();this.event("afterFinish")}else{b=(b-this.startOn)/this.totalTime;var c=(b*this.totalFrames).round();if(c>this.currentFrame){this.render(b);this.currentFrame=c}}},cancel:function(){this.options.sync||Effect.Queues.get(Object.isString(this.options.queue)?"global":this.options.queue.scope).remove(this);this.state="finished"},
event:function(b){this.options[b+"Internal"]&&this.options[b+"Internal"](this);this.options[b]&&this.options[b](this)},inspect:function(){var b=$H();for(property in this)Object.isFunction(this[property])||b.set(property,this[property]);return"#<Effect:"+b.inspect()+",options:"+$H(this.options).inspect()+">"}});
Effect.Parallel=Class.create(Effect.Base,{initialize:function(b,c){this.effects=b||[];this.start(c)},update:function(b){this.effects.invoke("render",b)},finish:function(b){this.effects.each(function(c){c.render(1);c.cancel();c.event("beforeFinish");c.finish&&c.finish(b);c.event("afterFinish")})}});
Effect.Tween=Class.create(Effect.Base,{initialize:function(b,c,f){b=Object.isString(b)?$(b):b;var g=$A(arguments),h=g.last();g=g.length==5?g[3]:null;this.method=Object.isFunction(h)?h.bind(b):Object.isFunction(b[h])?b[h].bind(b):function(j){b[h]=j};this.start(Object.extend({from:c,to:f},g||{}))},update:function(b){this.method(b)}});Effect.Event=Class.create(Effect.Base,{initialize:function(b){this.start(Object.extend({duration:0},b||{}))},update:Prototype.emptyFunction});
Effect.Opacity=Class.create(Effect.Base,{initialize:function(b,c){this.element=$(b);if(!this.element)throw Effect._elementDoesNotExistError;Prototype.Browser.IE&&!this.element.currentStyle.hasLayout&&this.element.setStyle({zoom:1});b=Object.extend({from:this.element.getOpacity()||0,to:1},c||{});this.start(b)},update:function(b){this.element.setOpacity(b)}});
Effect.Move=Class.create(Effect.Base,{initialize:function(b,c){this.element=$(b);if(!this.element)throw Effect._elementDoesNotExistError;b=Object.extend({x:0,y:0,mode:"relative"},c||{});this.start(b)},setup:function(){this.element.makePositioned();this.originalLeft=parseFloat(this.element.getStyle("left")||"0");this.originalTop=parseFloat(this.element.getStyle("top")||"0");if(this.options.mode=="absolute"){this.options.x-=this.originalLeft;this.options.y-=this.originalTop}},update:function(b){this.element.setStyle({left:(this.options.x*
b+this.originalLeft).round()+"px",top:(this.options.y*b+this.originalTop).round()+"px"})}});Effect.MoveBy=function(b,c,f,g){return new Effect.Move(b,Object.extend({x:f,y:c},g||{}))};
Effect.Scale=Class.create(Effect.Base,{initialize:function(b,c,f){this.element=$(b);if(!this.element)throw Effect._elementDoesNotExistError;b=Object.extend({scaleX:true,scaleY:true,scaleContent:true,scaleFromCenter:false,scaleMode:"box",scaleFrom:100,scaleTo:c},f||{});this.start(b)},setup:function(){this.restoreAfterFinish=this.options.restoreAfterFinish||false;this.elementPositioning=this.element.getStyle("position");this.originalStyle={};["top","left","width","height","fontSize"].each(function(c){this.originalStyle[c]=
this.element.style[c]}.bind(this));this.originalTop=this.element.offsetTop;this.originalLeft=this.element.offsetLeft;var b=this.element.getStyle("font-size")||"100%";["em","px","%","pt"].each(function(c){if(b.indexOf(c)>0){this.fontSize=parseFloat(b);this.fontSizeType=c}}.bind(this));this.factor=(this.options.scaleTo-this.options.scaleFrom)/100;this.dims=null;if(this.options.scaleMode=="box")this.dims=[this.element.offsetHeight,this.element.offsetWidth];if(/^content/.test(this.options.scaleMode))this.dims=
[this.element.scrollHeight,this.element.scrollWidth];if(!this.dims)this.dims=[this.options.scaleMode.originalHeight,this.options.scaleMode.originalWidth]},update:function(b){b=this.options.scaleFrom/100+this.factor*b;this.options.scaleContent&&this.fontSize&&this.element.setStyle({fontSize:this.fontSize*b+this.fontSizeType});this.setDimensions(this.dims[0]*b,this.dims[1]*b)},finish:function(){this.restoreAfterFinish&&this.element.setStyle(this.originalStyle)},setDimensions:function(b,c){var f={};
if(this.options.scaleX)f.width=c.round()+"px";if(this.options.scaleY)f.height=b.round()+"px";if(this.options.scaleFromCenter){b=(b-this.dims[0])/2;c=(c-this.dims[1])/2;if(this.elementPositioning=="absolute"){if(this.options.scaleY)f.top=this.originalTop-b+"px";if(this.options.scaleX)f.left=this.originalLeft-c+"px"}else{if(this.options.scaleY)f.top=-b+"px";if(this.options.scaleX)f.left=-c+"px"}}this.element.setStyle(f)}});
Effect.Highlight=Class.create(Effect.Base,{initialize:function(b,c){this.element=$(b);if(!this.element)throw Effect._elementDoesNotExistError;b=Object.extend({startcolor:"#ffff99"},c||{});this.start(b)},setup:function(){if(this.element.getStyle("display")=="none")this.cancel();else{this.oldStyle={};if(!this.options.keepBackgroundImage){this.oldStyle.backgroundImage=this.element.getStyle("background-image");this.element.setStyle({backgroundImage:"none"})}if(!this.options.endcolor)this.options.endcolor=
this.element.getStyle("background-color").parseColor("#ffffff");if(!this.options.restorecolor)this.options.restorecolor=this.element.getStyle("background-color");this._base=$R(0,2).map(function(b){return parseInt(this.options.startcolor.slice(b*2+1,b*2+3),16)}.bind(this));this._delta=$R(0,2).map(function(b){return parseInt(this.options.endcolor.slice(b*2+1,b*2+3),16)-this._base[b]}.bind(this))}},update:function(b){this.element.setStyle({backgroundColor:$R(0,2).inject("#",function(c,f,g){return c+
(this._base[g]+this._delta[g]*b).round().toColorPart()}.bind(this))})},finish:function(){this.element.setStyle(Object.extend(this.oldStyle,{backgroundColor:this.options.restorecolor}))}});Effect.ScrollTo=function(b,c){c=c||{};var f=document.viewport.getScrollOffsets();b=$(b).cumulativeOffset();if(c.offset)b[1]+=c.offset;return new Effect.Tween(null,f.top,b[1],c,function(g){scrollTo(f.left,g.round())})};
Effect.Fade=function(b,c){b=$(b);var f=b.getInlineOpacity();c=Object.extend({from:b.getOpacity()||1,to:0,afterFinishInternal:function(g){g.options.to==0&&g.element.hide().setStyle({opacity:f})}},c||{});return new Effect.Opacity(b,c)};
Effect.Appear=function(b,c){b=$(b);c=Object.extend({from:b.getStyle("display")=="none"?0:b.getOpacity()||0,to:1,afterFinishInternal:function(f){f.element.forceRerendering()},beforeSetup:function(f){f.element.setOpacity(f.options.from).show()}},c||{});return new Effect.Opacity(b,c)};
Effect.Puff=function(b,c){b=$(b);var f={opacity:b.getInlineOpacity(),position:b.getStyle("position"),top:b.style.top,left:b.style.left,width:b.style.width,height:b.style.height};return new Effect.Parallel([new Effect.Scale(b,200,{sync:true,scaleFromCenter:true,scaleContent:true,restoreAfterFinish:true}),new Effect.Opacity(b,{sync:true,to:0})],Object.extend({duration:1,beforeSetupInternal:function(g){Position.absolutize(g.effects[0].element)},afterFinishInternal:function(g){g.effects[0].element.hide().setStyle(f)}},
c||{}))};Effect.BlindUp=function(b,c){b=$(b);b.makeClipping();return new Effect.Scale(b,0,Object.extend({scaleContent:false,scaleX:false,restoreAfterFinish:true,afterFinishInternal:function(f){f.element.hide().undoClipping()}},c||{}))};
Effect.BlindDown=function(b,c){b=$(b);var f=b.getDimensions();return new Effect.Scale(b,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:0,scaleMode:{originalHeight:f.height,originalWidth:f.width},restoreAfterFinish:true,afterSetup:function(g){g.element.makeClipping().setStyle({height:"0px"}).show()},afterFinishInternal:function(g){g.element.undoClipping()}},c||{}))};
Effect.SwitchOff=function(b,c){b=$(b);var f=b.getInlineOpacity();return new Effect.Appear(b,Object.extend({duration:0.4,from:0,transition:Effect.Transitions.flicker,afterFinishInternal:function(g){new Effect.Scale(g.element,1,{duration:0.3,scaleFromCenter:true,scaleX:false,scaleContent:false,restoreAfterFinish:true,beforeSetup:function(h){h.element.makePositioned().makeClipping()},afterFinishInternal:function(h){h.element.hide().undoClipping().undoPositioned().setStyle({opacity:f})}})}},c||{}))};
Effect.DropOut=function(b,c){b=$(b);var f={top:b.getStyle("top"),left:b.getStyle("left"),opacity:b.getInlineOpacity()};return new Effect.Parallel([new Effect.Move(b,{x:0,y:100,sync:true}),new Effect.Opacity(b,{sync:true,to:0})],Object.extend({duration:0.5,beforeSetup:function(g){g.effects[0].element.makePositioned()},afterFinishInternal:function(g){g.effects[0].element.hide().undoPositioned().setStyle(f)}},c||{}))};
Effect.Shake=function(b,c){b=$(b);c=Object.extend({distance:20,duration:0.5},c||{});var f=parseFloat(c.distance),g=parseFloat(c.duration)/10,h={top:b.getStyle("top"),left:b.getStyle("left")};return new Effect.Move(b,{x:f,y:0,duration:g,afterFinishInternal:function(j){new Effect.Move(j.element,{x:-f*2,y:0,duration:g*2,afterFinishInternal:function(k){new Effect.Move(k.element,{x:f*2,y:0,duration:g*2,afterFinishInternal:function(m){new Effect.Move(m.element,{x:-f*2,y:0,duration:g*2,afterFinishInternal:function(n){new Effect.Move(n.element,
{x:f*2,y:0,duration:g*2,afterFinishInternal:function(t){new Effect.Move(t.element,{x:-f,y:0,duration:g,afterFinishInternal:function(u){u.element.undoPositioned().setStyle(h)}})}})}})}})}})}})};
Effect.SlideDown=function(b,c){b=$(b).cleanWhitespace();var f=b.down().getStyle("bottom"),g=b.getDimensions();return new Effect.Scale(b,100,Object.extend({scaleContent:false,scaleX:false,scaleFrom:window.opera?0:1,scaleMode:{originalHeight:g.height,originalWidth:g.width},restoreAfterFinish:true,afterSetup:function(h){h.element.makePositioned();h.element.down().makePositioned();window.opera&&h.element.setStyle({top:""});h.element.makeClipping().setStyle({height:"0px"}).show()},afterUpdateInternal:function(h){h.element.down().setStyle({bottom:h.dims[0]-
h.element.clientHeight+"px"})},afterFinishInternal:function(h){h.element.undoClipping().undoPositioned();h.element.down().undoPositioned().setStyle({bottom:f})}},c||{}))};
Effect.SlideUp=function(b,c){b=$(b).cleanWhitespace();var f=b.down().getStyle("bottom"),g=b.getDimensions();return new Effect.Scale(b,window.opera?0:1,Object.extend({scaleContent:false,scaleX:false,scaleMode:"box",scaleFrom:100,scaleMode:{originalHeight:g.height,originalWidth:g.width},restoreAfterFinish:true,afterSetup:function(h){h.element.makePositioned();h.element.down().makePositioned();window.opera&&h.element.setStyle({top:""});h.element.makeClipping().show()},afterUpdateInternal:function(h){h.element.down().setStyle({bottom:h.dims[0]-
h.element.clientHeight+"px"})},afterFinishInternal:function(h){h.element.hide().undoClipping().undoPositioned();h.element.down().undoPositioned().setStyle({bottom:f})}},c||{}))};Effect.Squish=function(b){return new Effect.Scale(b,window.opera?1:0,{restoreAfterFinish:true,beforeSetup:function(c){c.element.makeClipping()},afterFinishInternal:function(c){c.element.hide().undoClipping()}})};
Effect.Grow=function(b,c){b=$(b);var f=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.full},c||{}),g={top:b.style.top,left:b.style.left,height:b.style.height,width:b.style.width,opacity:b.getInlineOpacity()},h=b.getDimensions(),j,k,m,n;switch(f.direction){case "top-left":j=k=m=n=0;break;case "top-right":j=h.width;k=n=0;m=-h.width;break;case "bottom-left":j=m=0;k=h.height;n=-h.height;break;
case "bottom-right":j=h.width;k=h.height;m=-h.width;n=-h.height;break;case "center":j=h.width/2;k=h.height/2;m=-h.width/2;n=-h.height/2;break}return new Effect.Move(b,{x:j,y:k,duration:0.01,beforeSetup:function(t){t.element.hide().makeClipping().makePositioned()},afterFinishInternal:function(t){new Effect.Parallel([new Effect.Opacity(t.element,{sync:true,to:1,from:0,transition:f.opacityTransition}),new Effect.Move(t.element,{x:m,y:n,sync:true,transition:f.moveTransition}),new Effect.Scale(t.element,
100,{scaleMode:{originalHeight:h.height,originalWidth:h.width},sync:true,scaleFrom:window.opera?1:0,transition:f.scaleTransition,restoreAfterFinish:true})],Object.extend({beforeSetup:function(u){u.effects[0].element.setStyle({height:"0px"}).show()},afterFinishInternal:function(u){u.effects[0].element.undoClipping().undoPositioned().setStyle(g)}},f))}})};
Effect.Shrink=function(b,c){b=$(b);c=Object.extend({direction:"center",moveTransition:Effect.Transitions.sinoidal,scaleTransition:Effect.Transitions.sinoidal,opacityTransition:Effect.Transitions.none},c||{});var f={top:b.style.top,left:b.style.left,height:b.style.height,width:b.style.width,opacity:b.getInlineOpacity()},g=b.getDimensions(),h,j;switch(c.direction){case "top-left":h=j=0;break;case "top-right":h=g.width;j=0;break;case "bottom-left":h=0;j=g.height;break;case "bottom-right":h=g.width;j=
g.height;break;case "center":h=g.width/2;j=g.height/2;break}return new Effect.Parallel([new Effect.Opacity(b,{sync:true,to:0,from:1,transition:c.opacityTransition}),new Effect.Scale(b,window.opera?1:0,{sync:true,transition:c.scaleTransition,restoreAfterFinish:true}),new Effect.Move(b,{x:h,y:j,sync:true,transition:c.moveTransition})],Object.extend({beforeStartInternal:function(k){k.effects[0].element.makePositioned().makeClipping()},afterFinishInternal:function(k){k.effects[0].element.hide().undoClipping().undoPositioned().setStyle(f)}},
c))};Effect.Pulsate=function(b,c){b=$(b);var f=c||{},g=b.getInlineOpacity(),h=f.transition||Effect.Transitions.linear;function j(k){return 1-h(-Math.cos(k*(f.pulses||5)*2*Math.PI)/2+0.5)}return new Effect.Opacity(b,Object.extend(Object.extend({duration:2,from:0,afterFinishInternal:function(k){k.element.setStyle({opacity:g})}},f),{transition:j}))};
Effect.Fold=function(b,c){b=$(b);var f={top:b.style.top,left:b.style.left,width:b.style.width,height:b.style.height};b.makeClipping();return new Effect.Scale(b,5,Object.extend({scaleContent:false,scaleX:false,afterFinishInternal:function(){new Effect.Scale(b,1,{scaleContent:false,scaleY:false,afterFinishInternal:function(g){g.element.hide().undoClipping().setStyle(f)}})}},c||{}))};
Effect.Morph=Class.create(Effect.Base,{initialize:function(b,c){this.element=$(b);if(!this.element)throw Effect._elementDoesNotExistError;b=Object.extend({style:{}},c||{});if(Object.isString(b.style))if(b.style.include(":"))this.style=b.style.parseStyle();else{this.element.addClassName(b.style);this.style=$H(this.element.getStyles());this.element.removeClassName(b.style);var f=this.element.getStyles();this.style=this.style.reject(function(g){return g.value==f[g.key]});b.afterFinishInternal=function(g){g.element.addClassName(g.options.style);
g.transforms.each(function(h){g.element.style[h.style]=""})}}else this.style=$H(b.style);this.start(b)},setup:function(){function b(c){if(!c||["rgba(0, 0, 0, 0)","transparent"].include(c))c="#ffffff";c=c.parseColor();return $R(0,2).map(function(f){return parseInt(c.slice(f*2+1,f*2+3),16)})}this.transforms=this.style.map(function(c){var f=c[0];c=c[1];var g=null;if(c.parseColor("#zzzzzz")!="#zzzzzz"){c=c.parseColor();g="color"}else if(f=="opacity"){c=parseFloat(c);Prototype.Browser.IE&&!this.element.currentStyle.hasLayout&&
this.element.setStyle({zoom:1})}else if(Element.CSS_LENGTH.test(c)){g=c.match(/^([\+\-]?[0-9\.]+)(.*)$/);c=parseFloat(g[1]);g=g.length==3?g[2]:null}var h=this.element.getStyle(f);return{style:f.camelize(),originalValue:g=="color"?b(h):parseFloat(h||0),targetValue:g=="color"?b(c):c,unit:g}}.bind(this)).reject(function(c){return c.originalValue==c.targetValue||c.unit!="color"&&(isNaN(c.originalValue)||isNaN(c.targetValue))})},update:function(b){for(var c={},f,g=this.transforms.length;g--;)c[(f=this.transforms[g]).style]=
f.unit=="color"?"#"+Math.round(f.originalValue[0]+(f.targetValue[0]-f.originalValue[0])*b).toColorPart()+Math.round(f.originalValue[1]+(f.targetValue[1]-f.originalValue[1])*b).toColorPart()+Math.round(f.originalValue[2]+(f.targetValue[2]-f.originalValue[2])*b).toColorPart():(f.originalValue+(f.targetValue-f.originalValue)*b).toFixed(3)+(f.unit===null?"":f.unit);this.element.setStyle(c,true)}});
Effect.Transform=Class.create({initialize:function(b,c){this.tracks=[];this.options=c||{};this.addTracks(b)},addTracks:function(b){b.each(function(c){c=$H(c);var f=c.values().first();this.tracks.push($H({ids:c.keys().first(),effect:Effect.Morph,options:{style:f}}))}.bind(this));return this},play:function(){return new Effect.Parallel(this.tracks.map(function(b){var c=b.get("ids"),f=b.get("effect"),g=b.get("options");b=[$(c)||$$(c)].flatten();return b.map(function(h){return new f(h,Object.extend({sync:true},
g))})}).flatten(),this.options)}});Element.CSS_PROPERTIES=$w("backgroundColor backgroundPosition borderBottomColor borderBottomStyle borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderSpacing borderTopColor borderTopStyle borderTopWidth bottom clip color fontSize fontWeight height left letterSpacing lineHeight marginBottom marginLeft marginRight marginTop markerOffset maxHeight maxWidth minHeight minWidth opacity outlineColor outlineOffset outlineWidth paddingBottom paddingLeft paddingRight paddingTop right textIndent top width wordSpacing zIndex");
Element.CSS_LENGTH=/^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/;String.__parseStyleElement=document.createElement("div");
String.prototype.parseStyle=function(){var b,c=$H();if(Prototype.Browser.WebKit)b=(new Element("div",{style:this})).style;else{String.__parseStyleElement.innerHTML='<div style="'+this+'"></div>';b=String.__parseStyleElement.childNodes[0].style}Element.CSS_PROPERTIES.each(function(f){b[f]&&c.set(f,b[f])});Prototype.Browser.IE&&this.include("opacity")&&c.set("opacity",this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]);return c};
Element.getStyles=document.defaultView&&document.defaultView.getComputedStyle?function(b){var c=document.defaultView.getComputedStyle($(b),null);return Element.CSS_PROPERTIES.inject({},function(f,g){f[g]=c[g];return f})}:function(b){b=$(b);var c=b.currentStyle,f;f=Element.CSS_PROPERTIES.inject({},function(g,h){g[h]=c[h];return g});if(!f.opacity)f.opacity=b.getOpacity();return f};
Effect.Methods={morph:function(b,c,f){b=$(b);new Effect.Morph(b,Object.extend({style:c},f||{}));return b},visualEffect:function(b,c,f){b=$(b);c=c.dasherize().camelize();c=c.charAt(0).toUpperCase()+c.substring(1);new Effect[c](b,f);return b},highlight:function(b,c){b=$(b);new Effect.Highlight(b,c);return b}};
$w("fade appear grow shrink fold blindUp blindDown slideUp slideDown pulsate shake puff squish switchOff dropOut").each(function(b){Effect.Methods[b]=function(c,f){c=$(c);Effect[b.charAt(0).toUpperCase()+b.substring(1)](c,f);return c}});$w("getInlineOpacity forceRerendering setContentZoom collectTextNodes collectTextNodesIgnoreClass getStyles").each(function(b){Effect.Methods[b]=Element[b]});Element.addMethods(Effect.Methods);
if(Object.isUndefined(Effect))throw"dragdrop.js requires including script.aculo.us' effects.js library";
var Droppables={drops:[],remove:function(b){this.drops=this.drops.reject(function(c){return c.element==$(b)})},add:function(b,c){b=$(b);var f=Object.extend({greedy:true,hoverclass:null,tree:false},c||{});if(f.containment){f._containers=[];c=f.containment;Object.isArray(c)?c.each(function(g){f._containers.push($(g))}):f._containers.push($(c))}if(f.accept)f.accept=[f.accept].flatten();Element.makePositioned(b);f.element=b;this.drops.push(f)},findDeepestChild:function(b){deepest=b[0];for(i=1;i<b.length;++i)if(Element.isParent(b[i].element,
deepest.element))deepest=b[i];return deepest},isContained:function(b,c){var f;f=c.tree?b.treeNode:b.parentNode;return c._containers.detect(function(g){return f==g})},isAffected:function(b,c,f){return f.element!=c&&(!f._containers||this.isContained(c,f))&&(!f.accept||Element.classNames(c).detect(function(g){return f.accept.include(g)}))&&Position.within(f.element,b[0],b[1])},deactivate:function(b){b.hoverclass&&Element.removeClassName(b.element,b.hoverclass);this.last_active=null},activate:function(b){b.hoverclass&&
Element.addClassName(b.element,b.hoverclass);this.last_active=b},show:function(b,c){if(this.drops.length){var f,g=[];this.drops.each(function(h){Droppables.isAffected(b,c,h)&&g.push(h)});if(g.length>0)f=Droppables.findDeepestChild(g);this.last_active&&this.last_active!=f&&this.deactivate(this.last_active);if(f){Position.within(f.element,b[0],b[1]);f.onHover&&f.onHover(c,f.element,Position.overlap(f.overlap,f.element));f!=this.last_active&&Droppables.activate(f)}}},fire:function(b,c){if(this.last_active){Position.prepare();
if(this.isAffected([Event.pointerX(b),Event.pointerY(b)],c,this.last_active))if(this.last_active.onDrop){this.last_active.onDrop(c,this.last_active.element,b);return true}}},reset:function(){this.last_active&&this.deactivate(this.last_active)}},Draggables={drags:[],observers:[],register:function(b){if(this.drags.length==0){this.eventMouseUp=this.endDrag.bindAsEventListener(this);this.eventMouseMove=this.updateDrag.bindAsEventListener(this);this.eventKeypress=this.keyPress.bindAsEventListener(this);
Event.observe(document,"mouseup",this.eventMouseUp);Event.observe(document,"mousemove",this.eventMouseMove);Event.observe(document,"keypress",this.eventKeypress)}this.drags.push(b)},unregister:function(b){this.drags=this.drags.reject(function(c){return c==b});if(this.drags.length==0){Event.stopObserving(document,"mouseup",this.eventMouseUp);Event.stopObserving(document,"mousemove",this.eventMouseMove);Event.stopObserving(document,"keypress",this.eventKeypress)}},activate:function(b){if(b.options.delay)this._timeout=
setTimeout(function(){Draggables._timeout=null;window.focus();Draggables.activeDraggable=b}.bind(this),b.options.delay);else{window.focus();this.activeDraggable=b}},deactivate:function(){this.activeDraggable=null},updateDrag:function(b){if(this.activeDraggable){var c=[Event.pointerX(b),Event.pointerY(b)];if(!(this._lastPointer&&this._lastPointer.inspect()==c.inspect())){this._lastPointer=c;this.activeDraggable.updateDrag(b,c)}}},endDrag:function(b){if(this._timeout){clearTimeout(this._timeout);this._timeout=
null}if(this.activeDraggable){this._lastPointer=null;this.activeDraggable.endDrag(b);this.activeDraggable=null}},keyPress:function(b){this.activeDraggable&&this.activeDraggable.keyPress(b)},addObserver:function(b){this.observers.push(b);this._cacheObserverCallbacks()},removeObserver:function(b){this.observers=this.observers.reject(function(c){return c.element==b});this._cacheObserverCallbacks()},notify:function(b,c,f){this[b+"Count"]>0&&this.observers.each(function(g){g[b]&&g[b](b,c,f)});c.options[b]&&
c.options[b](c,f)},_cacheObserverCallbacks:function(){["onStart","onEnd","onDrag"].each(function(b){Draggables[b+"Count"]=Draggables.observers.select(function(c){return c[b]}).length})}},Draggable=Class.create({initialize:function(b,c){var f={handle:false,reverteffect:function(g,h,j){var k=Math.sqrt(Math.abs(h^2)+Math.abs(j^2))*0.02;new Effect.Move(g,{x:-j,y:-h,duration:k,queue:{scope:"_draggable",position:"end"}})},endeffect:function(g){var h=Object.isNumber(g._opacity)?g._opacity:1;new Effect.Opacity(g,
{duration:0.2,from:0.7,to:h,queue:{scope:"_draggable",position:"end"},afterFinish:function(){Draggable._dragging[g]=false}})},zindex:1000,revert:false,quiet:false,scroll:false,scrollSensitivity:20,scrollSpeed:15,snap:false,delay:0};if(!c||Object.isUndefined(c.endeffect))Object.extend(f,{starteffect:function(g){g._opacity=Element.getOpacity(g);Draggable._dragging[g]=true;new Effect.Opacity(g,{duration:0.2,from:g._opacity,to:0.7})}});c=Object.extend(f,c||{});this.element=$(b);if(c.handle&&Object.isString(c.handle))this.handle=
this.element.down("."+c.handle,0);if(!this.handle)this.handle=$(c.handle);if(!this.handle)this.handle=this.element;if(c.scroll&&!c.scroll.scrollTo&&!c.scroll.outerHTML){c.scroll=$(c.scroll);this._isScrollChild=Element.childOf(this.element,c.scroll)}Element.makePositioned(this.element);this.options=c;this.dragging=false;this.eventMouseDown=this.initDrag.bindAsEventListener(this);Event.observe(this.handle,"mousedown",this.eventMouseDown);Draggables.register(this)},destroy:function(){Event.stopObserving(this.handle,
"mousedown",this.eventMouseDown);Draggables.unregister(this)},currentDelta:function(){return[parseInt(Element.getStyle(this.element,"left")||"0"),parseInt(Element.getStyle(this.element,"top")||"0")]},initDrag:function(b){if(!(!Object.isUndefined(Draggable._dragging[this.element])&&Draggable._dragging[this.element]))if(Event.isLeftClick(b)){var c=Event.element(b);if(!((tag_name=c.tagName.toUpperCase())&&(tag_name=="INPUT"||tag_name=="SELECT"||tag_name=="OPTION"||tag_name=="BUTTON"||tag_name=="TEXTAREA"))){var f=
[Event.pointerX(b),Event.pointerY(b)],g=this.element.cumulativeOffset();this.offset=[0,1].map(function(h){return f[h]-g[h]});Draggables.activate(this);Event.stop(b)}}},startDrag:function(b){this.dragging=true;if(!this.delta)this.delta=this.currentDelta();if(this.options.zindex){this.originalZ=parseInt(Element.getStyle(this.element,"z-index")||0);this.element.style.zIndex=this.options.zindex}if(this.options.ghosting){this._clone=this.element.cloneNode(true);(this._originallyAbsolute=this.element.getStyle("position")==
"absolute")||Position.absolutize(this.element);this.element.parentNode.insertBefore(this._clone,this.element)}if(this.options.scroll)if(this.options.scroll==window){var c=this._getWindowScroll(this.options.scroll);this.originalScrollLeft=c.left;this.originalScrollTop=c.top}else{this.originalScrollLeft=this.options.scroll.scrollLeft;this.originalScrollTop=this.options.scroll.scrollTop}Draggables.notify("onStart",this,b);this.options.starteffect&&this.options.starteffect(this.element)},updateDrag:function(b,
c){this.dragging||this.startDrag(b);if(!this.options.quiet){Position.prepare();Droppables.show(c,this.element)}Draggables.notify("onDrag",this,b);this.draw(c);this.options.change&&this.options.change(this);if(this.options.scroll){this.stopScrolling();var f;if(this.options.scroll==window)with(this._getWindowScroll(this.options.scroll))f=[left,top,left+width,top+height];else{f=Position.page(this.options.scroll);f[0]+=this.options.scroll.scrollLeft+Position.deltaX;f[1]+=this.options.scroll.scrollTop+
Position.deltaY;f.push(f[0]+this.options.scroll.offsetWidth);f.push(f[1]+this.options.scroll.offsetHeight)}var g=[0,0];if(c[0]<f[0]+this.options.scrollSensitivity)g[0]=c[0]-(f[0]+this.options.scrollSensitivity);if(c[1]<f[1]+this.options.scrollSensitivity)g[1]=c[1]-(f[1]+this.options.scrollSensitivity);if(c[0]>f[2]-this.options.scrollSensitivity)g[0]=c[0]-(f[2]-this.options.scrollSensitivity);if(c[1]>f[3]-this.options.scrollSensitivity)g[1]=c[1]-(f[3]-this.options.scrollSensitivity);this.startScrolling(g)}Prototype.Browser.WebKit&&
window.scrollBy(0,0);Event.stop(b)},finishDrag:function(b,c){this.dragging=false;if(this.options.quiet){Position.prepare();var f=[Event.pointerX(b),Event.pointerY(b)];Droppables.show(f,this.element)}if(this.options.ghosting){this._originallyAbsolute||Position.relativize(this.element);delete this._originallyAbsolute;Element.remove(this._clone);this._clone=null}f=false;if(c)(f=Droppables.fire(b,this.element))||(f=false);f&&this.options.onDropped&&this.options.onDropped(this.element);Draggables.notify("onEnd",
this,b);if((b=this.options.revert)&&Object.isFunction(b))b=b(this.element);c=this.currentDelta();if(b&&this.options.reverteffect){if(f==0||b!="failure")this.options.reverteffect(this.element,c[1]-this.delta[1],c[0]-this.delta[0])}else this.delta=c;if(this.options.zindex)this.element.style.zIndex=this.originalZ;this.options.endeffect&&this.options.endeffect(this.element);Draggables.deactivate(this);Droppables.reset()},keyPress:function(b){if(b.keyCode==Event.KEY_ESC){this.finishDrag(b,false);Event.stop(b)}},
endDrag:function(b){if(this.dragging){this.stopScrolling();this.finishDrag(b,true);Event.stop(b)}},draw:function(b){var c=this.element.cumulativeOffset();if(this.options.ghosting){var f=Position.realOffset(this.element);c[0]+=f[0]-Position.deltaX;c[1]+=f[1]-Position.deltaY}f=this.currentDelta();c[0]-=f[0];c[1]-=f[1];if(this.options.scroll&&this.options.scroll!=window&&this._isScrollChild){c[0]-=this.options.scroll.scrollLeft-this.originalScrollLeft;c[1]-=this.options.scroll.scrollTop-this.originalScrollTop}f=
[0,1].map(function(h){return b[h]-c[h]-this.offset[h]}.bind(this));if(this.options.snap)f=Object.isFunction(this.options.snap)?this.options.snap(f[0],f[1],this):Object.isArray(this.options.snap)?f.map(function(h,j){return(h/this.options.snap[j]).round()*this.options.snap[j]}.bind(this)):f.map(function(h){return(h/this.options.snap).round()*this.options.snap}.bind(this));var g=this.element.style;if(!this.options.constraint||this.options.constraint=="horizontal")g.left=f[0]+"px";if(!this.options.constraint||
this.options.constraint=="vertical")g.top=f[1]+"px";if(g.visibility=="hidden")g.visibility=""},stopScrolling:function(){if(this.scrollInterval){clearInterval(this.scrollInterval);this.scrollInterval=null;Draggables._lastScrollPointer=null}},startScrolling:function(b){if(b[0]||b[1]){this.scrollSpeed=[b[0]*this.options.scrollSpeed,b[1]*this.options.scrollSpeed];this.lastScrolled=new Date;this.scrollInterval=setInterval(this.scroll.bind(this),10)}},scroll:function(){var b=new Date,c=b-this.lastScrolled;
this.lastScrolled=b;if(this.options.scroll==window)with(this._getWindowScroll(this.options.scroll)){if(this.scrollSpeed[0]||this.scrollSpeed[1]){b=c/1000;this.options.scroll.scrollTo(left+b*this.scrollSpeed[0],top+b*this.scrollSpeed[1])}}else{this.options.scroll.scrollLeft+=this.scrollSpeed[0]*c/1000;this.options.scroll.scrollTop+=this.scrollSpeed[1]*c/1000}Position.prepare();Droppables.show(Draggables._lastPointer,this.element);Draggables.notify("onDrag",this);if(this._isScrollChild){Draggables._lastScrollPointer=
Draggables._lastScrollPointer||$A(Draggables._lastPointer);Draggables._lastScrollPointer[0]+=this.scrollSpeed[0]*c/1000;Draggables._lastScrollPointer[1]+=this.scrollSpeed[1]*c/1000;if(Draggables._lastScrollPointer[0]<0)Draggables._lastScrollPointer[0]=0;if(Draggables._lastScrollPointer[1]<0)Draggables._lastScrollPointer[1]=0;this.draw(Draggables._lastScrollPointer)}this.options.change&&this.options.change(this)},_getWindowScroll:function(b){var c,f,g;with(b.document){if(b.document.documentElement&&
documentElement.scrollTop){c=documentElement.scrollTop;f=documentElement.scrollLeft}else if(b.document.body){c=body.scrollTop;f=body.scrollLeft}if(b.innerWidth){g=b.innerWidth;b=b.innerHeight}else if(b.document.documentElement&&documentElement.clientWidth){g=documentElement.clientWidth;b=documentElement.clientHeight}else{g=body.offsetWidth;b=body.offsetHeight}}return{top:c,left:f,width:g,height:b}}});Draggable._dragging={};
var SortableObserver=Class.create({initialize:function(b,c){this.element=$(b);this.observer=c;this.lastValue=Sortable.serialize(this.element)},onStart:function(){this.lastValue=Sortable.serialize(this.element)},onEnd:function(){Sortable.unmark();this.lastValue!=Sortable.serialize(this.element)&&this.observer(this.element)}}),Sortable={SERIALIZE_RULE:/^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/,sortables:{},_findRootElement:function(b){for(;b.tagName.toUpperCase()!="BODY";){if(b.id&&Sortable.sortables[b.id])return b;
b=b.parentNode}},options:function(b){if(b=Sortable._findRootElement($(b)))return Sortable.sortables[b.id]},destroy:function(b){b=$(b);if(b=Sortable.sortables[b.id]){Draggables.removeObserver(b.element);b.droppables.each(function(c){Droppables.remove(c)});b.draggables.invoke("destroy");delete Sortable.sortables[b.element.id]}},create:function(b,c){b=$(b);var f=Object.extend({element:b,tag:"li",dropOnEmpty:false,tree:false,treeTag:"ul",overlap:"vertical",constraint:"vertical",containment:b,handle:false,
only:false,delay:0,hoverclass:null,ghosting:false,quiet:false,scroll:false,scrollSensitivity:20,scrollSpeed:15,format:this.SERIALIZE_RULE,elements:false,handles:false,onChange:Prototype.emptyFunction,onUpdate:Prototype.emptyFunction},c||{});this.destroy(b);var g={revert:true,quiet:f.quiet,scroll:f.scroll,scrollSpeed:f.scrollSpeed,scrollSensitivity:f.scrollSensitivity,delay:f.delay,ghosting:f.ghosting,constraint:f.constraint,handle:f.handle};if(f.starteffect)g.starteffect=f.starteffect;if(f.reverteffect)g.reverteffect=
f.reverteffect;else if(f.ghosting)g.reverteffect=function(k){k.style.top=0;k.style.left=0};if(f.endeffect)g.endeffect=f.endeffect;if(f.zindex)g.zindex=f.zindex;var h={overlap:f.overlap,containment:f.containment,tree:f.tree,hoverclass:f.hoverclass,onHover:Sortable.onHover},j={onHover:Sortable.onEmptyHover,overlap:f.overlap,containment:f.containment,hoverclass:f.hoverclass};Element.cleanWhitespace(b);f.draggables=[];f.droppables=[];if(f.dropOnEmpty||f.tree){Droppables.add(b,j);f.droppables.push(b)}(f.elements||
this.findElements(b,f)||[]).each(function(k,m){m=f.handles?$(f.handles[m]):f.handle?$(k).select("."+f.handle)[0]:k;f.draggables.push(new Draggable(k,Object.extend(g,{handle:m})));Droppables.add(k,h);if(f.tree)k.treeNode=b;f.droppables.push(k)});if(f.tree)(Sortable.findTreeElements(b,f)||[]).each(function(k){Droppables.add(k,j);k.treeNode=b;f.droppables.push(k)});this.sortables[b.identify()]=f;Draggables.addObserver(new SortableObserver(b,f.onUpdate))},findElements:function(b,c){return Element.findChildren(b,
c.only,c.tree?true:false,c.tag)},findTreeElements:function(b,c){return Element.findChildren(b,c.only,c.tree?true:false,c.treeTag)},onHover:function(b,c,f){if(!Element.isParent(c,b))if(!(f>0.33&&f<0.66&&Sortable.options(c).tree))if(f>0.5){Sortable.mark(c,"before");if(c.previousSibling!=b){f=b.parentNode;b.style.visibility="hidden";c.parentNode.insertBefore(b,c);c.parentNode!=f&&Sortable.options(f).onChange(b);Sortable.options(c.parentNode).onChange(b)}}else{Sortable.mark(c,"after");var g=c.nextSibling||
null;if(g!=b){f=b.parentNode;b.style.visibility="hidden";c.parentNode.insertBefore(b,g);c.parentNode!=f&&Sortable.options(f).onChange(b);Sortable.options(c.parentNode).onChange(b)}}},onEmptyHover:function(b,c,f){var g=b.parentNode,h=Sortable.options(c);if(!Element.isParent(c,b)){var j=Sortable.findElements(c,{tag:h.tag,only:h.only}),k=null;if(j){var m=Element.offsetSize(c,h.overlap)*(1-f);for(f=0;f<j.length;f+=1)if(m-Element.offsetSize(j[f],h.overlap)>=0)m-=Element.offsetSize(j[f],h.overlap);else{k=
m-Element.offsetSize(j[f],h.overlap)/2>=0?f+1<j.length?j[f+1]:null:j[f];break}}c.insertBefore(b,k);Sortable.options(g).onChange(b);h.onChange(b)}},unmark:function(){Sortable._marker&&Sortable._marker.hide()},mark:function(b,c){var f=Sortable.options(b.parentNode);if(!(f&&!f.ghosting)){if(!Sortable._marker){Sortable._marker=($("dropmarker")||Element.extend(document.createElement("DIV"))).hide().addClassName("dropmarker").setStyle({position:"absolute"});document.getElementsByTagName("body").item(0).appendChild(Sortable._marker)}var g=
b.cumulativeOffset();Sortable._marker.setStyle({left:g[0]+"px",top:g[1]+"px"});if(c=="after")f.overlap=="horizontal"?Sortable._marker.setStyle({left:g[0]+b.clientWidth+"px"}):Sortable._marker.setStyle({top:g[1]+b.clientHeight+"px"});Sortable._marker.show()}},_tree:function(b,c,f){for(var g=Sortable.findElements(b,c)||[],h=0;h<g.length;++h){var j=g[h].id.match(c.format);if(j){j={id:encodeURIComponent(j?j[1]:null),element:b,parent:f,children:[],position:f.children.length,container:$(g[h]).down(c.treeTag)};
j.container&&this._tree(j.container,c,j);f.children.push(j)}}return f},tree:function(b,c){b=$(b);var f=this.options(b);c=Object.extend({tag:f.tag,treeTag:f.treeTag,only:f.only,name:b.id,format:f.format},c||{});f={id:null,parent:null,children:[],container:b,position:0};return Sortable._tree(b,c,f)},_constructIndex:function(b){var c="";do if(b.id)c="["+b.position+"]"+c;while((b=b.parent)!=null);return c},sequence:function(b,c){b=$(b);var f=Object.extend(this.options(b),c||{});return $(this.findElements(b,
f)||[]).map(function(g){return g.id.match(f.format)?g.id.match(f.format)[1]:""})},setSequence:function(b,c,f){b=$(b);var g=Object.extend(this.options(b),f||{}),h={};this.findElements(b,g).each(function(j){if(j.id.match(g.format))h[j.id.match(g.format)[1]]=[j,j.parentNode];j.parentNode.removeChild(j)});c.each(function(j){var k=h[j];if(k){k[1].appendChild(k[0]);delete h[j]}})},serialize:function(b,c){b=$(b);var f=Object.extend(Sortable.options(b),c||{}),g=encodeURIComponent(c&&c.name?c.name:b.id);return f.tree?
Sortable.tree(b,c).children.map(function(h){return[g+Sortable._constructIndex(h)+"[id]="+encodeURIComponent(h.id)].concat(h.children.map(arguments.callee))}).flatten().join("&"):Sortable.sequence(b,c).map(function(h){return g+"[]="+encodeURIComponent(h)}).join("&")}};Element.isParent=function(b,c){if(!b.parentNode||b==c)return false;if(b.parentNode==c)return true;return Element.isParent(b.parentNode,c)};
Element.findChildren=function(b,c,f,g){if(!b.hasChildNodes())return null;g=g.toUpperCase();if(c)c=[c].flatten();var h=[];$A(b.childNodes).each(function(j){if(j.tagName&&j.tagName.toUpperCase()==g&&(!c||Element.classNames(j).detect(function(k){return c.include(k)})))h.push(j);if(f)(j=Element.findChildren(j,c,f,g))&&h.push(j)});return h.length>0?h.flatten():[]};Element.offsetSize=function(b,c){return b["offset"+(c=="vertical"||c=="height"?"Height":"Width")]};
if(typeof Effect=="undefined")throw"controls.js requires including script.aculo.us' effects.js library";var Autocompleter={};
Autocompleter.Base=Class.create({baseInitialize:function(b,c,f){this.element=b=$(b);this.update=$(c);this.active=this.changed=this.hasFocus=false;this.entryCount=this.index=0;this.oldElementValue=this.element.value;if(this.setOptions)this.setOptions(f);else this.options=f||{};this.options.paramName=this.options.paramName||this.element.name;this.options.tokens=this.options.tokens||[];this.options.frequency=this.options.frequency||0.4;this.options.minChars=this.options.minChars||1;this.options.onShow=
this.options.onShow||function(g,h){if(!h.style.position||h.style.position=="absolute"){h.style.position="absolute";Position.clone(g,h,{setHeight:false,offsetTop:g.offsetHeight})}Effect.Appear(h,{duration:0.15})};this.options.onHide=this.options.onHide||function(g,h){new Effect.Fade(h,{duration:0.15})};if(typeof this.options.tokens=="string")this.options.tokens=new Array(this.options.tokens);this.options.tokens.include("\n")||this.options.tokens.push("\n");this.observer=null;this.element.setAttribute("autocomplete",
"off");Element.hide(this.update);Event.observe(this.element,"blur",this.onBlur.bindAsEventListener(this));Event.observe(this.element,"keydown",this.onKeyPress.bindAsEventListener(this))},show:function(){Element.getStyle(this.update,"display")=="none"&&this.options.onShow(this.element,this.update);if(!this.iefix&&Prototype.Browser.IE&&Element.getStyle(this.update,"position")=="absolute"){new Insertion.After(this.update,'<iframe id="'+this.update.id+'_iefix" style="display:none;position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);" src="javascript:false;" frameborder="0" scrolling="no"></iframe>');
this.iefix=$(this.update.id+"_iefix")}this.iefix&&setTimeout(this.fixIEOverlapping.bind(this),50)},fixIEOverlapping:function(){Position.clone(this.update,this.iefix,{setTop:!this.update.style.height});this.iefix.style.zIndex=1;this.update.style.zIndex=2;Element.show(this.iefix)},hide:function(){this.stopIndicator();Element.getStyle(this.update,"display")!="none"&&this.options.onHide(this.element,this.update);this.iefix&&Element.hide(this.iefix)},startIndicator:function(){this.options.indicator&&Element.show(this.options.indicator)},
stopIndicator:function(){this.options.indicator&&Element.hide(this.options.indicator)},onKeyPress:function(b){if(this.active)switch(b.keyCode){case Event.KEY_TAB:case Event.KEY_RETURN:this.selectEntry();Event.stop(b);case Event.KEY_ESC:this.hide();this.active=false;Event.stop(b);return;case Event.KEY_LEFT:case Event.KEY_RIGHT:return;case Event.KEY_UP:this.markPrevious();this.render();Event.stop(b);return;case Event.KEY_DOWN:this.markNext();this.render();Event.stop(b);return}else if(b.keyCode==Event.KEY_TAB||
b.keyCode==Event.KEY_RETURN||Prototype.Browser.WebKit>0&&b.keyCode==0)return;this.hasFocus=this.changed=true;this.observer&&clearTimeout(this.observer);this.observer=setTimeout(this.onObserverEvent.bind(this),this.options.frequency*1000)},activate:function(){this.changed=false;this.hasFocus=true;this.getUpdatedChoices()},onHover:function(b){var c=Event.findElement(b,"LI");if(this.index!=c.autocompleteIndex){this.index=c.autocompleteIndex;this.render()}Event.stop(b)},onClick:function(b){b=Event.findElement(b,
"LI");this.index=b.autocompleteIndex;this.selectEntry();this.hide()},onBlur:function(){setTimeout(this.hide.bind(this),250);this.active=this.hasFocus=false},render:function(){if(this.entryCount>0){for(var b=0;b<this.entryCount;b++)this.index==b?Element.addClassName(this.getEntry(b),"selected"):Element.removeClassName(this.getEntry(b),"selected");if(this.hasFocus){this.show();this.active=true}}else{this.active=false;this.hide()}},markPrevious:function(){if(this.index>0)this.index--;else this.index=
this.entryCount-1;this.getEntry(this.index).scrollIntoView(true)},markNext:function(){if(this.index<this.entryCount-1)this.index++;else this.index=0;this.getEntry(this.index).scrollIntoView(false)},getEntry:function(b){return this.update.firstChild.childNodes[b]},getCurrentEntry:function(){return this.getEntry(this.index)},selectEntry:function(){this.active=false;this.updateElement(this.getCurrentEntry())},updateElement:function(b){if(this.options.updateElement)this.options.updateElement(b);else{var c=
"";if(this.options.select){var f=$(b).select("."+this.options.select)||[];if(f.length>0)c=Element.collectTextNodes(f[0],this.options.select)}else c=Element.collectTextNodesIgnoreClass(b,"informal");f=this.getTokenBounds();if(f[0]!=-1){var g=this.element.value.substr(0,f[0]),h=this.element.value.substr(f[0]).match(/^\s+/);if(h)g+=h[0];this.element.value=g+c+this.element.value.substr(f[1])}else this.element.value=c;this.oldElementValue=this.element.value;this.element.focus();this.options.afterUpdateElement&&
this.options.afterUpdateElement(this.element,b)}},updateChoices:function(b){if(!this.changed&&this.hasFocus){this.update.innerHTML=b;Element.cleanWhitespace(this.update);Element.cleanWhitespace(this.update.down());if(this.update.firstChild&&this.update.down().childNodes){this.entryCount=this.update.down().childNodes.length;for(b=0;b<this.entryCount;b++){var c=this.getEntry(b);c.autocompleteIndex=b;this.addObservers(c)}}else this.entryCount=0;this.stopIndicator();this.index=0;if(this.entryCount==1&&
this.options.autoSelect){this.selectEntry();this.hide()}else this.render()}},addObservers:function(b){Event.observe(b,"mouseover",this.onHover.bindAsEventListener(this));Event.observe(b,"click",this.onClick.bindAsEventListener(this))},onObserverEvent:function(){this.changed=false;this.tokenBounds=null;if(this.getToken().length>=this.options.minChars)this.getUpdatedChoices();else{this.active=false;this.hide()}this.oldElementValue=this.element.value},getToken:function(){var b=this.getTokenBounds();
return this.element.value.substring(b[0],b[1]).strip()},getTokenBounds:function(){if(null!=this.tokenBounds)return this.tokenBounds;var b=this.element.value;if(b.strip().empty())return[-1,0];for(var c=arguments.callee.getFirstDifferencePos(b,this.oldElementValue),f=c==this.oldElementValue.length?1:0,g=-1,h=b.length,j,k=0,m=this.options.tokens.length;k<m;++k){j=b.lastIndexOf(this.options.tokens[k],c+f-1);if(j>g)g=j;j=b.indexOf(this.options.tokens[k],c+f);if(-1!=j&&j<h)h=j}return this.tokenBounds=[g+
1,h]}});Autocompleter.Base.prototype.getTokenBounds.getFirstDifferencePos=function(b,c){for(var f=Math.min(b.length,c.length),g=0;g<f;++g)if(b[g]!=c[g])return g;return f};
Ajax.Autocompleter=Class.create(Autocompleter.Base,{initialize:function(b,c,f,g){this.baseInitialize(b,c,g);this.options.asynchronous=true;this.options.onComplete=this.onComplete.bind(this);this.options.defaultParams=this.options.parameters||null;this.url=f},getUpdatedChoices:function(){this.startIndicator();var b=encodeURIComponent(this.options.paramName)+"="+encodeURIComponent(this.getToken());this.options.parameters=this.options.callback?this.options.callback(this.element,b):b;if(this.options.defaultParams)this.options.parameters+=
"&"+this.options.defaultParams;new Ajax.Request(this.url,this.options)},onComplete:function(b){this.updateChoices(b.responseText)}});
Autocompleter.Local=Class.create(Autocompleter.Base,{initialize:function(b,c,f,g){this.baseInitialize(b,c,g);this.options.array=f},getUpdatedChoices:function(){this.updateChoices(this.options.selector(this))},setOptions:function(b){this.options=Object.extend({choices:10,partialSearch:true,partialChars:2,ignoreCase:true,fullSearch:false,selector:function(c){for(var f=[],g=[],h=c.getToken(),j=0;j<c.options.array.length&&f.length<c.options.choices;j++)for(var k=c.options.array[j],m=c.options.ignoreCase?
k.toLowerCase().indexOf(h.toLowerCase()):k.indexOf(h);m!=-1;){if(m==0&&k.length!=h.length){f.push("<li><strong>"+k.substr(0,h.length)+"</strong>"+k.substr(h.length)+"</li>");break}else if(h.length>=c.options.partialChars&&c.options.partialSearch&&m!=-1)if(c.options.fullSearch||/\s/.test(k.substr(m-1,1))){g.push("<li>"+k.substr(0,m)+"<strong>"+k.substr(m,h.length)+"</strong>"+k.substr(m+h.length)+"</li>");break}m=c.options.ignoreCase?k.toLowerCase().indexOf(h.toLowerCase(),m+1):k.indexOf(h,m+1)}if(g.length)f=
f.concat(g.slice(0,c.options.choices-f.length));return"<ul>"+f.join("")+"</ul>"}},b||{})}});Field.scrollFreeActivate=function(b){setTimeout(function(){Field.activate(b)},1)};
Ajax.InPlaceEditor=Class.create({initialize:function(b,c,f){this.url=c;this.element=b=$(b);this.prepareOptions();this._controls={};arguments.callee.dealWithDeprecatedOptions(f);Object.extend(this.options,f||{});if(!this.options.formId&&this.element.id){this.options.formId=this.element.id+"-inplaceeditor";if($(this.options.formId))this.options.formId=""}if(this.options.externalControl)this.options.externalControl=$(this.options.externalControl);if(!this.options.externalControl)this.options.externalControlOnly=
false;this._originalBackground=this.element.getStyle("background-color")||"transparent";this.element.title=this.options.clickToEditText;this._boundCancelHandler=this.handleFormCancellation.bind(this);this._boundComplete=(this.options.onComplete||Prototype.emptyFunction).bind(this);this._boundFailureHandler=this.handleAJAXFailure.bind(this);this._boundSubmitHandler=this.handleFormSubmission.bind(this);this._boundWrapperHandler=this.wrapUp.bind(this);this.registerListeners()},checkForEscapeOrReturn:function(b){if(!(!this._editing||
b.ctrlKey||b.altKey||b.shiftKey))if(Event.KEY_ESC==b.keyCode)this.handleFormCancellation(b);else Event.KEY_RETURN==b.keyCode&&this.handleFormSubmission(b)},createControl:function(b,c,f){var g=this.options[b+"Control"];c=this.options[b+"Text"];if("button"==g){f=document.createElement("input");f.type="submit";f.value=c;f.className="editor_"+b+"_button";if("cancel"==b)f.onclick=this._boundCancelHandler;this._form.appendChild(f);this._controls[b]=f}else if("link"==g){g=document.createElement("a");g.href=
"#";g.appendChild(document.createTextNode(c));g.onclick="cancel"==b?this._boundCancelHandler:this._boundSubmitHandler;g.className="editor_"+b+"_link";if(f)g.className+=" "+f;this._form.appendChild(g);this._controls[b]=g}},createEditField:function(){var b=this.options.loadTextURL?this.options.loadingText:this.getText(),c;if(1>=this.options.rows&&!/\r|\n/.test(this.getText())){c=document.createElement("input");c.type="text";var f=this.options.size||this.options.cols||0;if(0<f)c.size=f}else{c=document.createElement("textarea");
c.rows=1>=this.options.rows?this.options.autoRows:this.options.rows;c.cols=this.options.cols||40}c.name=this.options.paramName;c.value=b;c.className="editor_field";if(this.options.submitOnBlur)c.onblur=this._boundSubmitHandler;this._controls.editor=c;this.options.loadTextURL&&this.loadExternalText();this._form.appendChild(this._controls.editor)},createForm:function(){var b=this;function c(f,g){f=b.options["text"+f+"Controls"];!f||g===false||b._form.appendChild(document.createTextNode(f))}this._form=
$(document.createElement("form"));this._form.id=this.options.formId;this._form.addClassName(this.options.formClassName);this._form.onsubmit=this._boundSubmitHandler;this.createEditField();"textarea"==this._controls.editor.tagName.toLowerCase()&&this._form.appendChild(document.createElement("br"));this.options.onFormCustomization&&this.options.onFormCustomization(this,this._form);c("Before",this.options.okControl||this.options.cancelControl);this.createControl("ok",this._boundSubmitHandler);c("Between",
this.options.okControl&&this.options.cancelControl);this.createControl("cancel",this._boundCancelHandler,"editor_cancel");c("After",this.options.okControl||this.options.cancelControl)},destroy:function(){if(this._oldInnerHTML)this.element.innerHTML=this._oldInnerHTML;this.leaveEditMode();this.unregisterListeners()},enterEditMode:function(b){if(!(this._saving||this._editing)){this._editing=true;this.triggerCallback("onEnterEditMode");this.options.externalControl&&this.options.externalControl.hide();
this.element.hide();this.createForm();this.element.parentNode.insertBefore(this._form,this.element);this.options.loadTextURL||this.postProcessEditField();b&&Event.stop(b)}},enterHover:function(){this.options.hoverClassName&&this.element.addClassName(this.options.hoverClassName);this._saving||this.triggerCallback("onEnterHover")},getText:function(){return this.element.innerHTML.unescapeHTML()},handleAJAXFailure:function(b){this.triggerCallback("onFailure",b);if(this._oldInnerHTML){this.element.innerHTML=
this._oldInnerHTML;this._oldInnerHTML=null}},handleFormCancellation:function(b){this.wrapUp();b&&Event.stop(b)},handleFormSubmission:function(b){var c=this._form,f=$F(this._controls.editor);this.prepareSubmission();c=this.options.callback(c,f)||"";if(Object.isString(c))c=c.toQueryParams();c.editorId=this.element.id;if(this.options.htmlResponse){f=Object.extend({evalScripts:true},this.options.ajaxOptions);Object.extend(f,{parameters:c,onComplete:this._boundWrapperHandler,onFailure:this._boundFailureHandler});
new Ajax.Updater({success:this.element},this.url,f)}else{f=Object.extend({method:"get"},this.options.ajaxOptions);Object.extend(f,{parameters:c,onComplete:this._boundWrapperHandler,onFailure:this._boundFailureHandler});new Ajax.Request(this.url,f)}b&&Event.stop(b)},leaveEditMode:function(){this.element.removeClassName(this.options.savingClassName);this.removeForm();this.leaveHover();this.element.style.backgroundColor=this._originalBackground;this.element.show();this.options.externalControl&&this.options.externalControl.show();
this._editing=this._saving=false;this._oldInnerHTML=null;this.triggerCallback("onLeaveEditMode")},leaveHover:function(){this.options.hoverClassName&&this.element.removeClassName(this.options.hoverClassName);this._saving||this.triggerCallback("onLeaveHover")},loadExternalText:function(){this._form.addClassName(this.options.loadingClassName);this._controls.editor.disabled=true;var b=Object.extend({method:"get"},this.options.ajaxOptions);Object.extend(b,{parameters:"editorId="+encodeURIComponent(this.element.id),
onComplete:Prototype.emptyFunction,onSuccess:function(c){this._form.removeClassName(this.options.loadingClassName);c=c.responseText;if(this.options.stripLoadedTextTags)c=c.stripTags();this._controls.editor.value=c;this._controls.editor.disabled=false;this.postProcessEditField()}.bind(this),onFailure:this._boundFailureHandler});new Ajax.Request(this.options.loadTextURL,b)},postProcessEditField:function(){var b=this.options.fieldPostCreation;if(b)$(this._controls.editor)["focus"==b?"focus":"activate"]()},
prepareOptions:function(){this.options=Object.clone(Ajax.InPlaceEditor.DefaultOptions);Object.extend(this.options,Ajax.InPlaceEditor.DefaultCallbacks);[this._extraDefaultOptions].flatten().compact().each(function(b){Object.extend(this.options,b)}.bind(this))},prepareSubmission:function(){this._saving=true;this.removeForm();this.leaveHover();this.showSaving()},registerListeners:function(){this._listeners={};var b;$H(Ajax.InPlaceEditor.Listeners).each(function(c){b=this[c.value].bind(this);this._listeners[c.key]=
b;this.options.externalControlOnly||this.element.observe(c.key,b);this.options.externalControl&&this.options.externalControl.observe(c.key,b)}.bind(this))},removeForm:function(){if(this._form){this._form.remove();this._form=null;this._controls={}}},showSaving:function(){this._oldInnerHTML=this.element.innerHTML;this.element.innerHTML=this.options.savingText;this.element.addClassName(this.options.savingClassName);this.element.style.backgroundColor=this._originalBackground;this.element.show()},triggerCallback:function(b,
c){"function"==typeof this.options[b]&&this.options[b](this,c)},unregisterListeners:function(){$H(this._listeners).each(function(b){this.options.externalControlOnly||this.element.stopObserving(b.key,b.value);this.options.externalControl&&this.options.externalControl.stopObserving(b.key,b.value)}.bind(this))},wrapUp:function(b){this.leaveEditMode();this._boundComplete(b,this.element)}});Object.extend(Ajax.InPlaceEditor.prototype,{dispose:Ajax.InPlaceEditor.prototype.destroy});
Ajax.InPlaceCollectionEditor=Class.create(Ajax.InPlaceEditor,{initialize:function(b,c,f,g){this._extraDefaultOptions=Ajax.InPlaceCollectionEditor.DefaultOptions;b(c,f,g)},createEditField:function(){var b=document.createElement("select");b.name=this.options.paramName;b.size=1;this._controls.editor=b;this._collection=this.options.collection||[];this.options.loadCollectionURL?this.loadCollection():this.checkForExternalText();this._form.appendChild(this._controls.editor)},loadCollection:function(){this._form.addClassName(this.options.loadingClassName);
this.showLoadingText(this.options.loadingCollectionText);var b=Object.extend({method:"get"},this.options.ajaxOptions);Object.extend(b,{parameters:"editorId="+encodeURIComponent(this.element.id),onComplete:Prototype.emptyFunction,onSuccess:function(c){c=c.responseText.strip();if(!/^\[.*\]$/.test(c))throw"Server returned an invalid collection representation.";this._collection=eval(c);this.checkForExternalText()}.bind(this),onFailure:this.onFailure});new Ajax.Request(this.options.loadCollectionURL,b)},
showLoadingText:function(b){this._controls.editor.disabled=true;var c=this._controls.editor.firstChild;if(!c){c=document.createElement("option");c.value="";this._controls.editor.appendChild(c);c.selected=true}c.update((b||"").stripScripts().stripTags())},checkForExternalText:function(){this._text=this.getText();this.options.loadTextURL?this.loadExternalText():this.buildOptionList()},loadExternalText:function(){this.showLoadingText(this.options.loadingText);var b=Object.extend({method:"get"},this.options.ajaxOptions);
Object.extend(b,{parameters:"editorId="+encodeURIComponent(this.element.id),onComplete:Prototype.emptyFunction,onSuccess:function(c){this._text=c.responseText.strip();this.buildOptionList()}.bind(this),onFailure:this.onFailure});new Ajax.Request(this.options.loadTextURL,b)},buildOptionList:function(){this._form.removeClassName(this.options.loadingClassName);this._collection=this._collection.map(function(g){return 2===g.length?g:[g,g].flatten()});var b="value"in this.options?this.options.value:this._text,
c=this._collection.any(function(g){return g[0]==b}.bind(this));this._controls.editor.update("");var f;this._collection.each(function(g,h){f=document.createElement("option");f.value=g[0];f.selected=c?g[0]==b:0==h;f.appendChild(document.createTextNode(g[1]));this._controls.editor.appendChild(f)}.bind(this));this._controls.editor.disabled=false;Field.scrollFreeActivate(this._controls.editor)}});
Ajax.InPlaceEditor.prototype.initialize.dealWithDeprecatedOptions=function(b){if(b){function c(f,g){f in b||g===undefined||(b[f]=g)}c("cancelControl",b.cancelLink?"link":b.cancelButton?"button":b.cancelLink==b.cancelButton==false?false:undefined);c("okControl",b.okLink?"link":b.okButton?"button":b.okLink==b.okButton==false?false:undefined);c("highlightColor",b.highlightcolor);c("highlightEndColor",b.highlightendcolor)}};
Object.extend(Ajax.InPlaceEditor,{DefaultOptions:{ajaxOptions:{},autoRows:3,cancelControl:"link",cancelText:"cancel",clickToEditText:"Click to edit",externalControl:null,externalControlOnly:false,fieldPostCreation:"activate",formClassName:"inplaceeditor-form",formId:null,highlightColor:"#ffff99",highlightEndColor:"#ffffff",hoverClassName:"",htmlResponse:true,loadingClassName:"inplaceeditor-loading",loadingText:"Loading...",okControl:"button",okText:"ok",paramName:"value",rows:1,savingClassName:"inplaceeditor-saving",
savingText:"Saving...",size:0,stripLoadedTextTags:false,submitOnBlur:false,textAfterControls:"",textBeforeControls:"",textBetweenControls:""},DefaultCallbacks:{callback:function(b){return Form.serialize(b)},onComplete:function(b,c){new Effect.Highlight(c,{startcolor:this.options.highlightColor,keepBackgroundImage:true})},onEnterEditMode:null,onEnterHover:function(b){b.element.style.backgroundColor=b.options.highlightColor;b._effect&&b._effect.cancel()},onFailure:function(b){alert("Error communication with the server: "+
b.responseText.stripTags())},onFormCustomization:null,onLeaveEditMode:null,onLeaveHover:function(b){b._effect=new Effect.Highlight(b.element,{startcolor:b.options.highlightColor,endcolor:b.options.highlightEndColor,restorecolor:b._originalBackground,keepBackgroundImage:true})}},Listeners:{click:"enterEditMode",keydown:"checkForEscapeOrReturn",mouseover:"enterHover",mouseout:"leaveHover"}});Ajax.InPlaceCollectionEditor.DefaultOptions={loadingCollectionText:"Loading options..."};
Form.Element.DelayedObserver=Class.create({initialize:function(b,c,f){this.delay=c||0.5;this.element=$(b);this.callback=f;this.timer=null;this.lastValue=$F(this.element);Event.observe(this.element,"keyup",this.delayedListener.bindAsEventListener(this))},delayedListener:function(){if(this.lastValue!=$F(this.element)){this.timer&&clearTimeout(this.timer);this.timer=setTimeout(this.onTimerEvent.bind(this),this.delay*1000);this.lastValue=$F(this.element)}},onTimerEvent:function(){this.timer=null;this.callback(this.element,
$F(this.element))}});if(!Control)var Control={};
Control.Slider=Class.create({initialize:function(b,c,f){var g=this;this.handles=Object.isArray(b)?b.collect(function(h){return $(h)}):[$(b)];this.track=$(c);this.options=f||{};this.axis=this.options.axis||"horizontal";this.increment=this.options.increment||1;this.step=parseInt(this.options.step||"1");this.range=this.options.range||$R(0,1);this.value=0;this.values=this.handles.map(function(){return 0});this.spans=this.options.spans?this.options.spans.map(function(h){return $(h)}):false;this.options.startSpan=
$(this.options.startSpan||null);this.options.endSpan=$(this.options.endSpan||null);this.restricted=this.options.restricted||false;this.maximum=this.options.maximum||this.range.end;this.minimum=this.options.minimum||this.range.start;this.alignX=parseInt(this.options.alignX||"0");this.alignY=parseInt(this.options.alignY||"0");this.trackLength=this.maximumOffset()-this.minimumOffset();this.handleLength=this.isVertical()?this.handles[0].offsetHeight!=0?this.handles[0].offsetHeight:this.handles[0].style.height.replace(/px$/,
""):this.handles[0].offsetWidth!=0?this.handles[0].offsetWidth:this.handles[0].style.width.replace(/px$/,"");this.disabled=this.dragging=this.active=false;this.options.disabled&&this.setDisabled();if(this.allowedValues=this.options.values?this.options.values.sortBy(Prototype.K):false){this.minimum=this.allowedValues.min();this.maximum=this.allowedValues.max()}this.eventMouseDown=this.startDrag.bindAsEventListener(this);this.eventMouseUp=this.endDrag.bindAsEventListener(this);this.eventMouseMove=this.update.bindAsEventListener(this);
this.handles.each(function(h,j){j=g.handles.length-1-j;g.setValue(parseFloat((Object.isArray(g.options.sliderValue)?g.options.sliderValue[j]:g.options.sliderValue)||g.range.start),j);h.makePositioned().observe("mousedown",g.eventMouseDown)});this.track.observe("mousedown",this.eventMouseDown);document.observe("mouseup",this.eventMouseUp);document.observe("mousemove",this.eventMouseMove);this.initialized=true},dispose:function(){var b=this;Event.stopObserving(this.track,"mousedown",this.eventMouseDown);
Event.stopObserving(document,"mouseup",this.eventMouseUp);Event.stopObserving(document,"mousemove",this.eventMouseMove);this.handles.each(function(c){Event.stopObserving(c,"mousedown",b.eventMouseDown)})},setDisabled:function(){this.disabled=true},setEnabled:function(){this.disabled=false},getNearestValue:function(b){if(this.allowedValues){if(b>=this.allowedValues.max())return this.allowedValues.max();if(b<=this.allowedValues.min())return this.allowedValues.min();var c=Math.abs(this.allowedValues[0]-
b),f=this.allowedValues[0];this.allowedValues.each(function(g){var h=Math.abs(g-b);if(h<=c){f=g;c=h}});return f}if(b>this.range.end)return this.range.end;if(b<this.range.start)return this.range.start;return b},setValue:function(b,c){if(!this.active){this.activeHandleIdx=c||0;this.activeHandle=this.handles[this.activeHandleIdx];this.updateStyles()}c=c||this.activeHandleIdx||0;if(this.initialized&&this.restricted){if(c>0&&b<this.values[c-1])b=this.values[c-1];if(c<this.handles.length-1&&b>this.values[c+
1])b=this.values[c+1]}b=this.getNearestValue(b);this.values[c]=b;this.value=this.values[0];this.handles[c].style[this.isVertical()?"top":"left"]=this.translateToPx(b);this.drawSpans();if(!this.dragging||!this.event)this.updateFinished()},setValueBy:function(b,c){this.setValue(this.values[c||this.activeHandleIdx||0]+b,c||this.activeHandleIdx||0)},translateToPx:function(b){return Math.round((this.trackLength-this.handleLength)/(this.range.end-this.range.start)*(b-this.range.start))+"px"},translateToValue:function(b){return b/
(this.trackLength-this.handleLength)*(this.range.end-this.range.start)+this.range.start},getRange:function(b){var c=this.values.sortBy(Prototype.K);b=b||0;return $R(c[b],c[b+1])},minimumOffset:function(){return this.isVertical()?this.alignY:this.alignX},maximumOffset:function(){return this.isVertical()?(this.track.offsetHeight!=0?this.track.offsetHeight:this.track.style.height.replace(/px$/,""))-this.alignY:(this.track.offsetWidth!=0?this.track.offsetWidth:this.track.style.width.replace(/px$/,""))-
this.alignX},isVertical:function(){return this.axis=="vertical"},drawSpans:function(){var b=this;this.spans&&$R(0,this.spans.length-1).each(function(c){b.setSpan(b.spans[c],b.getRange(c))});if(this.options.startSpan)this.setSpan(this.options.startSpan,$R(0,this.values.length>1?this.getRange(0).min():this.value));if(this.options.endSpan)this.setSpan(this.options.endSpan,$R(this.values.length>1?this.getRange(this.spans.length-1).max():this.value,this.maximum))},setSpan:function(b,c){if(this.isVertical()){b.style.top=
this.translateToPx(c.start);b.style.height=this.translateToPx(c.end-c.start+this.range.start)}else{b.style.left=this.translateToPx(c.start);b.style.width=this.translateToPx(c.end-c.start+this.range.start)}},updateStyles:function(){this.handles.each(function(b){Element.removeClassName(b,"selected")});Element.addClassName(this.activeHandle,"selected")},startDrag:function(b){if(Event.isLeftClick(b)){if(!this.disabled){this.active=true;var c=Event.element(b),f=[Event.pointerX(b),Event.pointerY(b)],g=
c;if(g==this.track){c=this.track.cumulativeOffset();this.event=b;this.setValue(this.translateToValue((this.isVertical()?f[1]-c[1]:f[0]-c[0])-this.handleLength/2));c=this.activeHandle.cumulativeOffset();this.offsetX=f[0]-c[0];this.offsetY=f[1]-c[1]}else{for(;this.handles.indexOf(c)==-1&&c.parentNode;)c=c.parentNode;if(this.handles.indexOf(c)!=-1){this.activeHandle=c;this.activeHandleIdx=this.handles.indexOf(this.activeHandle);this.updateStyles();c=this.activeHandle.cumulativeOffset();this.offsetX=
f[0]-c[0];this.offsetY=f[1]-c[1]}}}Event.stop(b)}},update:function(b){if(this.active){if(!this.dragging)this.dragging=true;this.draw(b);Prototype.Browser.WebKit&&window.scrollBy(0,0);Event.stop(b)}},draw:function(b){var c=[Event.pointerX(b),Event.pointerY(b)],f=this.track.cumulativeOffset();c[0]-=this.offsetX+f[0];c[1]-=this.offsetY+f[1];this.event=b;this.setValue(this.translateToValue(this.isVertical()?c[1]:c[0]));if(this.initialized&&this.options.onSlide)this.options.onSlide(this.values.length>
1?this.values:this.value,this)},endDrag:function(b){if(this.active&&this.dragging){this.finishDrag(b,true);Event.stop(b)}this.dragging=this.active=false},finishDrag:function(){this.dragging=this.active=false;this.updateFinished()},updateFinished:function(){if(this.initialized&&this.options.onChange)this.options.onChange(this.values.length>1?this.values:this.value,this);this.event=null}});
Sound={tracks:{},_enabled:true,template:new Template('<embed style="height:0" id="sound_#{track}_#{id}" src="#{url}" loop="false" autostart="true" hidden="true"/>'),enable:function(){Sound._enabled=true},disable:function(){Sound._enabled=false},play:function(b,c){if(Sound._enabled){var f=Object.extend({track:"global",url:b,replace:false},c||{});if(f.replace&&this.tracks[f.track]){$R(0,this.tracks[f.track].id).each(function(g){g=$("sound_"+f.track+"_"+g);g.Stop&&g.Stop();g.remove()});this.tracks[f.track]=
null}if(this.tracks[f.track])this.tracks[f.track].id++;else this.tracks[f.track]={id:0};f.id=this.tracks[f.track].id;$$("body")[0].insert(Prototype.Browser.IE?new Element("bgsound",{id:"sound_"+f.track+"_"+f.id,src:f.url,loop:1,autostart:true}):Sound.template.evaluate(f))}}};
if(Prototype.Browser.Gecko&&navigator.userAgent.indexOf("Win")>0)if(navigator.plugins&&$A(navigator.plugins).detect(function(b){return b.name.indexOf("QuickTime")!=-1}))Sound.template=new Template('<object id="sound_#{track}_#{id}" width="0" height="0" type="audio/mpeg" data="#{url}"/>');else if(navigator.plugins&&$A(navigator.plugins).detect(function(b){return b.name.indexOf("Windows Media")!=-1}))Sound.template=new Template('<object id="sound_#{track}_#{id}" type="application/x-mplayer2" data="#{url}"></object>');
else if(navigator.plugins&&$A(navigator.plugins).detect(function(b){return b.name.indexOf("RealPlayer")!=-1}))Sound.template=new Template('<embed type="audio/x-pn-realaudio-plugin" style="height:0" id="sound_#{track}_#{id}" src="#{url}" loop="false" autostart="true" hidden="true"/>');else Sound.play=function(){};
function EventNotification(){var b=[],c=this,f=null,g="top";this.addNote=function(h,j,k){for(var m=0;m<b.length;m++)if(b[m].key==h)return true;m={};var n=n||3000;k=k||{};if(k.valign)g=k.valign;m.key=h;m.innerHTML=j;m.interval=k.interval||3000;m.is_confirmation=k.is_confirmation;b.push(m)};this.clearNotes=function(){b=[]};this.notify=function(h,j,k){if(!(c.timeout&&!k)){h=h||0;var m=true;j=j||3000;if(c.mouse_in&&b[h]&&!b[h].is_confirmation){window.clearTimeout(c.timeout);c.timeout=window.setTimeout(function(){c.notify(h,
j,k)},j)}else if(h>=b.length){switch(g){case "middle":if(Effect)new Effect.Shrink(f,{duration:0.5});else $gojen(f).hide();break;default:f.style.top="0px";if(Effect)new Effect.SlideUp(f,{duration:0.5});else $gojen(f).hide()}this.timeout=null;c.clearNotes()}else if(document.body_loaded){if(f.style.display=="none"){var n=c.getMaxDimension(),t=document.helper.getRealDimension(document.body),u=document.helper.getInnerDimension();f.style.visibility="hidden";f.style.display="";f.style.left=t[0]/2-n[0]/2+
"px";f.style.width=n[0]+"px";f.style.height=n[1]+"px";m=false;document.helper.isIE()&&positionFixed(f,t[0]/2-n[0]/2,null,0,null);f.style.visibility="visible";f.style.display="";switch(g){case "middle":f.style.top=u[1]/2-n[1]/2+"px";if(Effect)new Effect.Grow(f,{duration:0.5});else $gojen(f).show();break;default:f.style.top="0px";f.style.visibility="hidden";if(Effect)new Effect.SlideDown(f,{duration:0.5});else $gojen(f).show();window.setTimeout(function(){f.style.visibility=""},50)}}n=document.helper.getElementsByClassName("eventnotifybox1",
f,new Array("div"))[0];t=document.helper.getElementsByClassName("eventnotifybox2",f,new Array("div"))[0];u=document.createElement("div");u.innerHTML='<div style="text-align: center; margin-top: 1em;"><input type="button" name="button" value="OK" /></div>';var B=u.getElementsByTagName("input")[0];$gojen(B).className("eventnotification-okbutton");var w=null;if(h%2==1){t.innerHTML=b[h].innerHTML;w=t;m&&c.fadeOver(n,t)}else{n.innerHTML=b[h].innerHTML;w=n;m&&c.fadeOver(t,n)}if(b[h].is_confirmation){w.appendChild(u);
B.onclick=function(){c.notify(++h)}}else c.timeout=window.setTimeout(function(){c.notify(++h,null,true)},b[h].interval)}else document.helper.waitForBody(function(){c.notify(h)})}};this.fadeOver=function(h,j){document.helper.fadeOut(h,true,function(){document.helper.fadeIn(j)})};this.getMaxDimension=function(){f.style.visibility="hidden";f.style.display="block";f.style.width="auto";f.style.height="auto";for(var h=new Array(0,0),j=0;j<b.length;j++){var k=document.helper.getElementsByClassName("eventnotifybox1",
f,new Array("div"))[0];k.innerHTML=b[j].innerHTML;k=document.helper.getRealDimension(f);if(b[j].is_confirmation)k[1]+=30;if(h[0]<k[0])h[0]=k[0];if(h[1]<k[1])h[1]=k[1]}return h};this.finish=function(){f=document.createElement("div");f.style.position="fixed";f.className="eventnotification";f.style.display="none";f.style.zIndex="99999999";f.innerHTML='<div class="eventnotifybox1" style="position: relative;"></div><div class="eventnotifybox2" style="position: relative; display: none;"></div>';var h=document.helper.getElementsByClassName("eventnotifybox1",
f,new Array("div"))[0],j=document.helper.getElementsByClassName("eventnotifybox2",f,new Array("div"))[0];h.onmouseover=function(){c.mouse_in=true};h.onmouseout=function(){c.mouse_in=false};j.onmouseover=function(){c.mouse_in=true};j.onmouseout=function(){c.mouse_in=false};document.body.appendChild(f)};document.helper.waitForBody(c.finish)}document.eventnotification=new EventNotification;
function saveArticleOrder(){var b="/ajax/article.ajax.php";if(document.relative_path)b=document.relative_path+b;params="?task=saveOrder";func_param=new Array("saveOrder");for(var c=document.getElementsByName("articleEditForm"),f=0;f<c.length;f++){c[f].reset();if(c[f].article_id.value){params+="&articleOrder[]="+c[f].article_id.value;try{eval("if (typeof document.goeditor_articlecontent_"+c[f].article_id.value+' != "undefined") document.goeditor_articlecontent_'+c[f].article_id.value+".rebuildIframe();")}catch(g){}}}params+=
+"&backend="+document.backend;c=(new $gojen).ajax(10);c.request_post(b,params,article_callback,func_param,false,false)}function article_delete(b){var c="/ajax/article.ajax.php";if(document.relative_path)c=document.relative_path+c;params="?task=delete&itemid="+b;func_param=new Array("delete",b);params+=+"&backend="+document.backend;b=(new $gojen).ajax(10);b.request_post(c,params,article_callback,func_param,false,false)}
function article_changeState(b,c){var f="/ajax/article.ajax.php";if(document.relative_path)f=document.relative_path+f;params="?task=changeState&itemid="+b+"&state="+c;func_param=new Array("changeState",b,c);params+=+"&backend="+document.backend;b=(new $gojen).ajax(10);b.request_post(f,params,article_callback,func_param,false,false)}
function article_callback(b,c){if(b=="login")window.location.reload();else if(b){var f=b.indexOf(" ");f=new Array(b.substring(0,f),b.substring(f+1));switch(c[0]){case "saveOrder":if(f[0]=="SUCCESSFUL"){document.eventnotification.addNote("articleSuccess",f[1],2000);document.eventnotification.notify()}else alert(b);break;case "changeState":if(f[0]=="SUCCESSFUL"){document.eventnotification.addNote("articleSuccess",f[1],2000);document.eventnotification.notify();if(c[2]=="1"){document.getElementById("article_icon_deactivate_"+
c[1]).style.display="";document.getElementById("article_icon_activate_"+c[1]).style.display="none";if(document.getElementById("article_"+c[1]).className)document.getElementById("article_"+c[1]).className=document.getElementById("article_"+c[1]).className.replace(/inactive_item/,"")}else{document.getElementById("article_icon_activate_"+c[1]).style.display="";document.getElementById("article_icon_deactivate_"+c[1]).style.display="none";if(document.getElementById("article_"+c[1]).className)document.getElementById("article_"+
c[1]).className+=" inactive_item"}}else alert(b);break;case "delete":if(f[0]=="SUCCESSFUL"){document.eventnotification.addNote("articleSuccess",f[1],2000);document.eventnotification.notify();var g=document.getElementById("article_"+c[1]);document.helper.fadeOut(g,true,function(){g.parentNode.removeChild(g)});if(g.nextSibling&&g.nextSibling.style.display!="none"){var h=g.nextSibling;document.helper.fadeOut(h,true,function(){h.parentNode.removeChild(h)})}}else alert(b);break}}else alert("Das System antwortet nicht. Bitte versuchen Sie es sp\u00e4ter erneut")}
function modules_savePosition(b){var c=document.getElementById("pageeditor_modules_"+b);if(c){var f="ajax/modules.ajax.php";if(document.relative_path)f=document.relative_path+f;params="?task=saveOrder&pos="+b;func_param=new Array("saveOrder");b=document.helper.getElementsByClassName("module",c);for(var g=c=0;g<b.length;g++)if(b[g].getAttribute("id",false)){c++;params+="&module_id[]="+b[g].getAttribute("id",false).replace(/module_/,"")}if(!(c<1)){b=(new $gojen).ajax(10);b.request_post(f,params,modules_callback,
func_param,false,false)}}}function module_hideModule(b){if(confirm("Wollen Sie dieses Modul wirklich dauerhaft ausblenden?")){var c="ajax/modules.ajax.php";if(document.relative_path)c=document.relative_path+c;params="?task=hideModule&id="+b;func_param=new Array("hideModule");b=(new $gojen).ajax(10);b.request_post(c,params,modules_callback,func_param,false,false)}}
function modules_resetOrder(){var b="ajax/modules.ajax.php";if(document.relative_path)b=document.relative_path+b;params="?task=resetOrder";func_param=new Array("resetOrder");var c=(new $gojen).ajax(10);c.request_post(b,params,modules_callback,func_param,false,false)}
function modules_callback(b,c){if(b){var f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+1));switch(c[0]){case "saveOrder":if(b[1].length>1){document.eventnotification.addNote("moduleSavedOrderSuccessful",b[1],5000);document.eventnotification.notify()}break;case "resetOrder":default:try{eval(b[1])}catch(g){}break}}else{document.eventnotification.addNote("moduleError","Der Server reagiert nicht. Bitte sp\u00e4ter erneut versuchen",1500);document.eventnotification.notify()}}
function GojenAjax(b,c){var f,g,h=false;this.asynchron=true;this.is_cacher=c||false;this.force_nocache=this.get_cache=this.precache=false;var j=[];if(!GojenAjax.instances)GojenAjax.instances=0;if(!GojenAjax.precache)GojenAjax.precache=[];GojenAjax.instances++;var k=0,m=1,n=2,t=3,u=null,B=b?b:5,w=this;this.getCache=function(){this.get_cache=true};this.is_cached=function(q,r,v,F,z,D,x){if(this.force_nocache)return false;if(this.is_cacher)return false;for(var y=0;y<GojenAjax.precache.length;y++){var A=
GojenAjax.precache[y];if(A.src_file==q&&A.params==r&&!A.GojenAjax.get_cache){this.precache||A.GojenAjax.getCache();return true}}if(!this.precache)return false;y=new GojenAjax(B*4,true);A={};A.GojenAjax=y;A.src_file=q;A.params=r;A.request_func=v;A.func_param=F;A.use_loader=z;A.xml=D;A.request_type=x;GojenAjax.precache.push(A);y=y.request_get;switch(x){case "REQUEST_POST":break;case "REQUEST_HEAD":break;case "REQUEST_XML":break}y(q,r,v,F,z,D);return true};this.request_get=function(q,r,v,F,z,D){h=D;
use_GojenAjax_loader_div=false;f=v;r=r?r.replace(/&amp;/g,"&"):"";var x=this.precache;if(!w.is_cached(q,r,v,F,z,D,k)){this.precache=false;if(!x)return w.request(q,r,k,F)}};this.request_post=function(q,r,v,F,z,D){h=D;use_GojenAjax_loader_div=false;f=v;r=r?r.replace(/&amp;/g,"&"):"";var x=this.precache;if(!w.is_cached(q,r,v,F,z,D,n)){this.precache=false;if(!x)return w.request(q,r,n,F)}};this.request_head=function(q,r,v,F,z,D){h=D;use_GojenAjax_loader_div=false;f=v;r=r?r.replace(/&amp;/g,"&"):"";var x=
this.precache;if(!w.is_cached(q,r,v,F,z,D,m)){this.precache=false;if(!x)return w.request(q,r,m,F)}};this.request_xml=function(q,r,v,F,z){h=true;use_GojenAjax_loader_div=false;f=v;r=r?r.replace(/&amp;/g,"&"):"";var D=this.precache;if(!w.is_cached(q,r,v,F,z,xml,t)){this.precache=false;if(!D)return w.request(q,r,t,F)}};function E(){if(window.XMLHttpRequest){g=new XMLHttpRequest;h&&g.overrideMimeType&&g.overrideMimeType("text/xml")}else if(window.ActiveXObject)try{g=new ActiveXObject("MSXML4.XMLHTTP")}catch(q){try{g=
new ActiveXObject("Microsoft.XMLHTTP")}catch(r){g=false}}}this.request=function(q,r,v,F){r||(r="");if(isNaN(v))v=k;g&&C();g||E();u&&clearTimeout(u);u=setTimeout(function(){w.handle_timeout(F)},B*1000);if(v!=m&&(r&&r.substr(0,1)=="&"||r.substr(0,1)=="?"))r=r.substring(1,r.length);var z=r?r:q;switch(v){case t:r="xml="+r;case n:g.open("POST",q,this.asynchron);g.setRequestHeader("Pragma","no-cache");g.setRequestHeader("Cache-Control","must-revalidate");g.setRequestHeader("If-Modified-Since",document.lastModified);
g.setRequestHeader("Content-Type","application/x-www-form-urlencoded");g.setRequestHeader("Content-length",r.length);break;case m:g.open("HEAD",q,this.asynchron);r=null;break;default:q=q+(r?"?"+r:"");g.open("GET",q,this.asynchron);r=null}if(!this.asynchron){g.send(null);j={};j.responseXML=g.responseXML;j.responseText=g.responseText;I(F);return j.responseText}g.onreadystatechange=function(){w.process_response(F)};try{g.send(r)}catch(D){}return z};this.process_response=function(q){switch(g.readyState){case 0:case 1:case 2:case 3:break;
case 4:this.waitForCacheRequest(q)}};this.waitForCacheRequest=function(q){if(j.length<1)try{if(g.status==200){clearTimeout(u);j={};j.responseXML=g.responseXML;j.responseText=g.responseText}else{clearTimeout(u);C();j={};j.responseXML=false;j.responseText=false}}catch(r){}var v=this;this.is_cacher&&!this.get_cache?window.setTimeout(function(){v.waitForCacheRequest(q)},50):I(q)};this.handle_timeout=function(q){f&&f(false,q);C()};function C(){if(g){try{g.abort()}catch(q){}g=false}}this.abortRequest=function(){C()};
function I(q){try{$gojen.GojenUI(0);typeof layout_nonstopFixes!="undefined"&&layout_nonstopFixes()}catch(r){}if(h)f&&f(j.responseXML,q);else f&&f(j.responseText,q);C();j=[]}}GojenAjax.getFile=function(b){var c;if(c=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")){c.open("GET",b,false);c.send(null);return c.responseText}else return false};
function Resizer(){var b=null,c=null,f=[],g=false,h=this,j=5,k,m,n,t,u,B,w,E,C,I,q="XP",r,v,F,z,D=new Helper;this.add=function(x,y,A){var o=document.getElementById(x)?document.getElementById(x):x,l=document.getElementById(y)?document.getElementById(y):y,G=f.length;f.push(A);D.addEvent(o,"mousedown",function(){h.prepare(l,G,o)},false);D.addEvent(o,"mousemove",function(){h.prepareCursor(l,o)},false);D.addEvent(o,"mouseout",function(){h.resetCursor(l)},false)};this.prepare=function(x,y,A){if(!(b!=null||
g)){b=x;dimension=D.getRealDimension(A);obj_dims=D.getRealDimension(b);obj_coords=D.getAbsoluteCoordinates(A);w=obj_coords[0];E=obj_coords[1];r=k>w+dimension[0]-j;v=m>E+dimension[1]-j;F=k<w+j;z=m<E+j;C=k-w;I=m-E;obj_coords=D.getAbsoluteCoordinates(b);C=obj_dims[0]-dimension[0];I=obj_dims[1]-dimension[1];if(r||v||F||z){n=k;t=m;u=dimension[0];B=dimension[1];c=y;if(q=="OSX"&&!(v&&r))b=null}else b=null}};this.prepareCursor=function(x,y){if(!(b!=null||g)){dimension=D.getRealDimension(y);obj_coords=D.getAbsoluteCoordinates(y);
w=obj_coords[0];E=obj_coords[1];r=k>w+dimension[0]-j;v=m>E+dimension[1]-j;F=k<=w+j;z=m<=E+j;document.body.style.cursor=q=="OSX"&&!(v&&r)?"default":z&&F?"nw-resize":v&&r?"se-resize":v&&F?"sw-resize":z&&r?"ne-resize":z?"n-resize":r?"e-resize":v?"s-resize":F?"w-resize":"default"}};this.resetCursor=function(){document.body.style.cursor="default"};this.start_move=function(x){if(!g){k=document.all?window.event.clientX:x.pageX;m=document.all?window.event.clientY:x.pageY;if(b!=null){x=u;var y=B;if(r){x=u+
(k-n+C);if(x<40)x=40;D.resizeTo(b,x,null)}if(v){y=B+(m-t+I);if(y<40)y=40;D.resizeTo(b,null,y)}if(F){x=u+(n-k+C);if(x<40){x=40;D.resizeTo(b,x,null);return}D.resizeTo(b,x,null);D.moveTo(b,k-C/2,null)}if(z){y=B+(t-m+I);if(y<40){y=40;D.resizeTo(b,null,y);return}D.resizeTo(b,null,y);D.moveTo(b,null,m-I/2)}f[c]&&f[c](new Array(x,y))}}};this.stop_move=function(){if(!g)if(b!=null){var x=D.getRealDimension(b),y=D.getAbsoluteCoordinates(b),A=x[0],o=x[1];if(x[0]<40){b.style.width="40px";A=40}if(x[1]<10){b.style.height=
"10px";o=10}if(y[0]<0)b.style.left="0px";if(y[1]<0)b.style.top="0px";f[c]&&f[c](new Array(A,o),true);c=b=null;t=n=m=k=0;document.body.style.cursor="default"}};this.disable=function(){g=true};this.enable=function(){g=false};D.addEvent(document,"mousemove",h.start_move,false);D.addEvent(document,"mouseup",h.stop_move,false);this.addEvent=function(x,y,A,o){D.addEvent(x,y,A,o)}}
function WindowControl(b,c){var f=this,g={},h={},j=null,k=(new $gojen).ajax(30),m=false,n=false;g.window={};g.window.position=WindowControl.POSITION.CENTER;g.window.position_offset=new Array(0,0);g.window.dimension=new Array(100,100);g.window.border=new Array(0,0,0,0);g.titlebar={};g.titlebar.dimension=new Array(100,25);g.titlebar.border=new Array(0,0,0,0);g.toolbar={};g.toolbar.dimension=new Array(100,0);g.toolbar.border=new Array(0,0,0,0);g.content={};g.content.dimension=new Array(100,75);g.content.border=
new Array(0,0,0,0);g.basic={};g.basic.name=b||"windowcontrol";g.basic.id=g.basic.name;g.basic.title=g.basic.name;g.basic.content="";g.basic.toolbar="";g.basic.closebutton='<img src="/media/images/icon_close.png" alt="X" vspace="1" border="0" />';g.basic.parent=c||document.body;g.basic.finished=false;top.document.WindowControl.windows[g.basic.id]=f;this.focus=function(){var t=0;if(!n){for(i in top.document.WindowControl.windows){var u=top.document.WindowControl.windows[i].blur();if(u>t)t=u}h.container.className=
"windowcontrol windowcontrol-active";h.container.style.zIndex=t+1}};this.blur=function(){h.container.className="windowcontrol";if(!n)return parseInt(h.container.style.zIndex);return parseInt(h.container.style.zIndex)};this.set=function(t,u,B){if(g.basic.finished){switch(t){case "position":var w=false;for(t in WindowControl.POSITION)if(WindowControl.POSITION[t]==u){g.window.position=u;f.reposition();w=true}w||f.raiseError("Unbekannte WindowControl.POSITION");if((typeof B).toString().toLowerCase()==
"object")g.window.position_offset=B;break;case "title":g.basic.title="<div>"+u+"</div>"||"";f.resetInnerHtml(h.titlebar,g.basic.title);break;case "content":g.basic.content=u||"";f.resetInnerHtml(h.content,g.basic.content);break;case "toolbar":g.basic.toolbar="<div>"+u+"</div>"||"";f.resetInnerHtml(h.toolbar,g.basic.toolbar);break;case "contentfile":params=B?B+"&id="+g.basic.id+"&window="+h.content.getAttribute("id",false):"?&id="+g.basic.id+"&window="+h.content.getAttribute("id",false);k.request_post(u,
params,f.ajaxCallback,new Array("contentfile",u,params),false,false);h.content.innerHTML='<div style="text-align: center; margin-top: 2em;"><img src="media/images/loading.gif" width="16" alt="" border="0" style="vertical-align: bottom;" /> Bitte warten...</div>';break;case "modal":g.window.modal=u||false;break;case "delete_on_close":g.basic.delete_on_close=u||false;break;case "no_fade":g.basic.no_fade=u||false;break;case "in_effect":g.basic.in_effect=u||null;break;case "out_effect":g.basic.out_effect=
u||null;break;case "dimension":g.content.dimension[0]=parseInt(u)||100;g.content.dimension[1]=parseInt(B)||100;if(document.helper.isIE())g.content.dimension[1]+=2;g.window.dimension[0]=g.content.dimension[0];g.window.dimension[1]=g.content.dimension[1]+g.titlebar.dimension[1]+g.toolbar.dimension[1];f.repaint();break;case "titlebarDimension":g.titlebar.dimension[0]=parseInt(u);g.titlebar.dimension[1]=parseInt(B);g.window.dimension[0]=g.content.dimension[0];g.window.dimension[1]=g.content.dimension[1]+
g.titlebar.dimension[1]+g.toolbar.dimension[1];f.repaint();break;case "toolbarDimension":g.toolbar.dimension[0]=parseInt(u)||100;g.toolbar.dimension[1]=parseInt(B)||0;g.window.dimension[0]=g.content.dimension[0];g.window.dimension[1]=g.content.dimension[1]+g.titlebar.dimension[1]+g.toolbar.dimension[1];f.repaint();break;case "closebutton":g.basic.closebutton=u;f.resetInnerHtml(h.closebutton,g.basic.closebutton);break;case "onclose":g.basic.onclose=u||null;break}f.repaint()}else window.setTimeout(function(){f.set(t,
u,B)},200)};this.ajaxCallback=function(t,u){switch(u[0]){case "contentfile":if(t){if(t=="false")return k.request_post(u[1],u[2],f.ajaxCallback,new Array("contentfile",u[1],u[2]),false,false);g.basic.content=t}else g.basic.content="Failed to get content!";f.resetInnerHtml(h.content,g.basic.content);break}};this.resetInnerHtml=function(t,u){if(g.basic.finished){if(t&&typeof u!="undefined"){t.innerHTML=u;document.helper.execJS(t)}}else window.setTimeout(function(){f.resetInnerHtml(t,u)},200)};this.resetTitle=
function(){if(g.basic.finished)h.titlebar.innerHTML=g.basic.title;else window.setTimeout(f.resetTitle,200)};this.resetContent=function(){if(g.basic.finished)h.content.innerHTML=g.basic.content;else window.setTimeout(f.resetContent,200)};this.get=function(t){switch(t){case "id":return g.basic.id;case "title":return title;case "content":return content;case "contentcontainer":return h.content;case "instance":return f;case "containerdimension":return g.window.dimension;case "titlebardimension":return g.titlebar.dimension;
case "toolbardimension":return g.toolbar.dimension;case "contentdimension":return g.content.dimension}};this.finish=function(){h.container=document.createElement("div");h.titlebar=document.createElement("div");h.toolbar=document.createElement("div");h.content=document.createElement("div");h.modalcontainer=document.createElement("div");h.maximizebutton=document.createElement("div");h.closebutton=document.createElement("div");with(h.container){id=g.basic.id;className="windowcontrol";with(style){position=
"absolute";display="none";zIndex=WindowControl.ZINDEX;left=top="0px"}onmousedown=f.focus}with(h.titlebar){className="titlebar";style.position="relative"}with(h.toolbar){className="toolbar";style.position="relative"}with(h.content){className="content";id=g.basic.id+"_content";with(style){position="relative";overflow="auto";padding="0px";margin="0px;"}}with(h.closebutton){className="closebutton";style.position="absolute";style.zIndex="1";innerHTML=g.basic.closebutton}document.helper.addEvent(h.closebutton,
"click",function(){f.close()},false);with(h.modalcontainer.style){display="none";zIndex=WindowControl.ZINDEX-1;position="absolute";bottom=right=left=top="0px";backgroundColor="#000";width=document.helper.getScrollDimension()[0]+"px";height=document.helper.getScrollDimension()[1]+"px"}h.container.appendChild(h.closebutton);h.container.appendChild(h.titlebar);h.container.appendChild(h.content);h.container.appendChild(h.toolbar);document.helper.setOpacity(h.container,0);document.helper.setOpacity(h.modalcontainer,
0);g.basic.parent.appendChild(h.modalcontainer);g.basic.parent.appendChild(h.container);g.basic.finished=true;try{j=new DragNDrop;j.add(h.titlebar,h.container,null)}catch(t){}f.repaint();f.reposition()};this.reposition=function(){if(g.basic.finished){var t=null,u=new Array(0,0);if(g.basic.parent!=document.body){t=document.helper.getRealDimension(g.basic.parent);document.helper.getRealCoordinates(g.basic.parent)}else t=document.helper.getInnerDimension();var B=new Array(0,0);if(g.basic.parent==document.body)B=
document.helper.getBodyScrollPosition();if(g.window.position)switch(g.window.position){case WindowControl.POSITION.CENTER:u=(t[0]-f.get("containerdimension")[0])/2;t=(t[1]-f.get("containerdimension")[1])/2;u=new Array(u,t);break;case WindowControl.POSITION.N:u=(t[0]-f.get("containerdimension")[0])/2;t=0;u=new Array(u,t);break;case WindowControl.POSITION.NE:t=0;u=new Array(document.helper.getRealCoordinates(h.container)[0],t);break;case WindowControl.POSITION.E:t=(t[1]-f.get("containerdimension")[1])/
2;u=new Array(document.helper.getRealCoordinates(h.container)[0],t);break;case WindowControl.POSITION.SE:u=new Array(document.helper.getRealCoordinates(h.container)[0],document.helper.getRealCoordinates(h.container)[1]);break;case WindowControl.POSITION.S:u=(t[0]-f.get("containerdimension")[0])/2;u=new Array(u,document.helper.getRealCoordinates(h.container)[1]);break;case WindowControl.POSITION.SW:u=0;u=new Array(u,document.helper.getRealCoordinates(h.container)[1]);break;case WindowControl.POSITION.W:u=
0;t=(t[1]-f.get("containerdimension")[1])/2;u=new Array(u,t);break;case WindowControl.POSITION.NW:default:t=u=0;u=new Array(u,t);break}if(u[0]<0){document.helper.moveTo(h.container,g.window.position_offset[0]+B[0],null);u[0]=0}else document.helper.moveTo(h.container,u[0]+g.window.position_offset[0]+B[0],null);if(u[1]<0){document.helper.moveTo(h.container,null,g.window.position_offset[1]+B[1]);u[1]=0}else document.helper.moveTo(h.container,null,u[1]+g.window.position_offset[1]+B[1])}else window.setTimeout(f.reposition,
200)};this.repaint=function(){if(g.basic.finished){document.helper.resizeTo(h.container,f.get("containerdimension")[0],f.get("containerdimension")[1]);document.helper.resizeTo(h.titlebar,f.get("titlebardimension")[0],f.get("titlebardimension")[1]);document.helper.resizeTo(h.content,f.get("contentdimension")[0],f.get("contentdimension")[1]);document.helper.resizeTo(h.toolbar,f.get("toolbardimension")[0],f.get("toolbardimension")[1]);if(h.toolbar.innerHTML.length<1)h.toolbar.style.display="none"}else window.setTimeout(f.repaint,
200)};this.show=function(){if(g.basic.finished){if(!m){m=true;f.reposition()}f.focus();h.content.style.display="";document.body.appendChild(h.container);h.container.zIndex=document.helper.getHeighestZIndex()+5;h.modalcontainer.zIndex=document.helper.getHeighestZIndex()+3;if(g.basic.no_fade){h.container.style.display="block";h.container.style.visibility="visible";document.helper.setOpacity(h.container,1)}else if(g.basic.in_effect){g.basic.in_effect(h.container);document.helper.setOpacity(h.container,
1)}else document.helper.fadeIn(h.container);if(g.window.modal){h.modalcontainer.style.display="";h.modalcontainer.style.visibility="visible";document.helper.setOpacity(h.modalcontainer,0);if(g.basic.no_fade){document.helper.setOpacity(h.modalcontainer,0.4);h.modalcontainer.style.display=""}else document.helper.fadeIn(h.modalcontainer,null,6)}}else window.setTimeout(f.show,200)};this.close=function(){h.content.style.display="none";if(g.basic.no_fade)h.container.style.display="none";else g.basic.out_effect?
g.basic.out_effect(h.container,function(){h.content.style.display="none"}):document.helper.fadeOut(h.container,true);if(g.window.modal)if(g.basic.no_fade)h.modalcontainer.style.display="none";else document.helper.fadeOut(h.modalcontainer,true,null,6);if(g.basic.delete_on_close){h.content.innerHTML="";h.content.parentNode&&h.content.parentNode.removeChild(h.content)}g.basic.onclose&&g.basic.onclose()};this.raiseError=function(t){alert("WindowControl ("+g.basic.name+"): "+t)};document.helper.waitForBody(f.finish)}
if(typeof top.document.WindowControl=="undefined"){top.document.WindowControl={};top.document.WindowControl.windows={};top.document.WindowControl.counter=0}WindowControl.POSITION={};WindowControl.POSITION.NW=1;WindowControl.POSITION.N=2;WindowControl.POSITION.NE=3;WindowControl.POSITION.E=4;WindowControl.POSITION.SE=5;WindowControl.POSITION.S=6;WindowControl.POSITION.SW=7;WindowControl.POSITION.CENTER=8;WindowControl.POSITION.W=9;WindowControl.ZINDEX={};WindowControl.ZINDEX="10000";
document.langedit_active_element=null;
function langedit_deactivate_links(){var b=document.getElementsByTagName("a");if(!document.langedit_links_saved)document.langedit_links_backup=new Array(b.length);for(i=0;i<b.length;i++){if(!document.langedit_links_saved){document.langedit_links_backup[i]=new Array(6);if(b[i].getAttribute("id",false)=="langedit_freeze_page_link")continue;document.langedit_links_backup[i][0]=b[i].getAttribute("href",false);document.langedit_links_backup[i][1]=b[i].getAttribute("onclick",false);document.langedit_links_backup[i][2]=
b[i].getAttribute("id",false);document.langedit_links_backup[i][3]=b[i].getAttribute("onmouseover",false);document.langedit_links_backup[i][4]=b[i].getAttribute("onmouseout",false);document.langedit_links_backup[i][5]=b[i].cursor}b[i].removeAttribute("href",false);b[i].removeAttribute("onclick",false);b[i].onclick=""}document.langedit_links_saved=true}
function langedit_reactivate_links(){var b=document.getElementsByTagName("a");for(i=0;i<b.length;i++)if(document.langedit_links_backup[i])if(b[i].getAttribute("id",false)!="langedit_freeze_page_link"){current_link=b[i];b[i].setAttribute("href",document.langedit_links_backup[i][0],false);if(document.langedit_links_backup[i][1])document.langedit_helper.isIE()?eval("links[i].onclick = function(){"+document.langedit_links_backup[i][1]+";};"):b[i].setAttribute("onclick",document.langedit_links_backup[i][1],
false);else b[i].onclick="";document.langedit_links_backup[i][2]?b[i].setAttribute("id",document.langedit_links_backup[i][2],false):b[i].removeAttribute("id",false);if(document.langedit_links_backup[i][3])eval("links[i].onmouseover = function () { "+document.langedit_links_backup[i][3]+"; };");else b[i].onmouseover="";if(document.langedit_links_backup[i][4])eval("links[i].onmouseout = function () { "+document.langedit_links_backup[i][4]+"; };");else b[i].onmouseout="";b[i].style.cursor=document.langedit_links_backup[i][5]?
document.langedit_links_backup[i][5]:"pointer"}}
function langedit_make_editable(){try{if(!document.langedit_tags_saved)document.langedit_tags_backup=new Array(document.langedit_search_tags.length);for(tagid=0;tagid<document.langedit_search_tags.length;tagid++){var b=document.getElementsByTagName(document.langedit_search_tags[tagid]);document.langedit_tags_saved||(document.langedit_tags_backup[tagid]=new Array(b.length));for(i=0;i<b.length;i++){var c=b[i];if(!(typeof c=="undefined"||!c||!c.getAttribute))if(!(langedit_getAttribute(c,"lang_key").length<
1||langedit_getAttribute(c,"lang").length<1)){if(!document.langedit_tags_saved){document.langedit_tags_backup[tagid][i]=new Array(5);if(document.langedit_search_tags[tagid]!="a"){document.langedit_tags_backup[tagid][i][0]=c.getAttribute("id",false);document.langedit_tags_backup[tagid][i][1]=c.getAttribute("onclick",false);document.langedit_tags_backup[tagid][i][2]=c.getAttribute("onmouseover",false);document.langedit_tags_backup[tagid][i][3]=c.getAttribute("onmouseout",false);document.langedit_tags_backup[tagid][i][4]=
c.style.cursor}}if(c.getAttribute("id",false)!="langedit_freeze_page_link"){c.setAttribute("onclick","langedit_edit(this.id, event);",false);c.onmouseover=function(){this.style.border="1px solid #000"};c.onmouseout=function(){this.style.border="0px"};c.style.cursor="pointer";c.setAttribute("tagid_1",tagid,false);c.setAttribute("tagid_2",i,false)}}}}document.langedit_tags_saved=true}catch(f){alert(f)}}
function langedit_make_uneditable(){try{for(tagid=0;tagid<document.langedit_search_tags.length;tagid++){var b=document.getElementsByTagName(document.langedit_search_tags[tagid]);for(i=0;i<b.length;i++){var c=b[i];if(!(langedit_getAttribute(c,"lang_key").length<1||langedit_getAttribute(c,"lang").length<1))if(document.langedit_tags_backup[tagid])if(c.getAttribute("id",false)!="langedit_freeze_page_link"){if(document.langedit_search_tags[tagid]!="a"){document.langedit_tags_backup[tagid][i][0]?c.setAttribute("id",
document.langedit_tags_backup[tagid][i][0],false):c.removeAttribute("id",false);if(document.langedit_tags_backup[tagid][i][1])if(document.langedit_helper.isIE())eval('document.langedit_helper.addEvent(current_tag, "click", function () { '+document.langedit_tags_backup[tagid][i][1]+"; }, false);");else c.onclick=document.langedit_tags_backup[tagid][i][1];else c.onclick="";if(document.langedit_tags_backup[tagid][i][2])eval("current_tag.onmouseover = function () { "+document.langedit_links_backup[i][2]+
"; };");else c.onmouseover="";if(document.langedit_tags_backup[tagid][i][3])eval("current_tag.onmouseout = function () { "+document.langedit_links_backup[i][3]+"; };");else c.onmouseout="";c.style.cursor=document.langedit_tags_backup[tagid][i][4]?document.langedit_tags_backup[tagid][i][4]:"";document.langedit_tags_backup[tagid][i][5]?c.setAttribute("href",document.langedit_tags_backup[tagid][i][5],false):c.removeAttribute("href",false)}c.removeAttribute("tagid_1",false);c.removeAttribute("tagid_2",
false)}}}}catch(f){}}function langedit_freeze_page(b){try{if(!b){langedit_deactivate_links();var c=document.getElementById("langedit_freeze_page_link");if(c){c.onclick=function(){langedit_unfreeze_page();return false};c.style.cursor="pointer";c.innerHTML="unfreeze"}}langedit_make_editable()}catch(f){}return false}
function langedit_unfreeze_page(){try{langedit_save();var b=document.getElementById("langedit_freeze_page_link");if(b){b.onclick=function(){langedit_freeze_page();return false};b.style.cursor="pointer";b.innerHTML="Freeze"}langedit_make_uneditable();langedit_reactivate_links()}catch(c){}return false}
function langedit_edit(b,c){langedit_save(true);if(b=document.getElementById(b)){var f=document.langedit_helper,g=document.langedit_editform_div,h=f.getAbsoluteCoordinates(b),j=f.getRealDimension(b),k=0,m=0;if(c){k=document.all?window.event.clientX:c.pageX;m=document.all?window.event.clientY:c.pageY}c=h[0]>k?h[0]-k:k-h[0];c=h[1]>m?h[1]-m:m-h[1];f.moveTo(g,h[0]-1,h[1]-1);f.resizeTo(g.getElementsByTagName("input")[0],j[0],j[1]);g.style.display="block";f.setOpacity(g,1);g.getElementsByTagName("input")[0].select();
g.getElementsByTagName("input")[0].focus();document.langedit_active_element=b;f=b.innerHTML;if(b.getAttribute("type",false)=="submit"||b.getAttribute("type",false)=="button"||b.getAttribute("type",false)=="text")f=b.value;g.getElementsByTagName("input")[0].value=f}}
function langedit_save(b){if(document.langedit_active_element){b="ajax/langedit.ajax.php";if(document.relative_path)b=document.relative_path+b;var c=document.fb?1:0,f=document.langedit_language_id?document.langedit_language_id:langedit_getAttribute(document.langedit_active_element,"lang");c="?action=save_data&lang_key="+langedit_getAttribute(document.langedit_active_element,"lang_key")+"&lang="+f+"&val="+encodeURI(document.langedit_editform_div.getElementsByTagName("input")[0].value)+"&fb="+c;f=new Array("save_data",
document.langedit_active_element);document.langedit_ajax.request_post(b,c,langedit_callback,f,false,false);document.langedit_editform_div.style.display="none";document.langedit_helper.setOpacity(document.langedit_editform_div,0);document.langedit_active_element=null}}function langedit_edit_key(b,c){alert(b);alert(c)}function language_loadSection(b,c){eval(c+" = new Object();");document.helper.waitForBody(function(){language_reallyloadSection(b,c)})}
function language_reallyloadSection(b,c){var f=(new $gojen).ajax(5),g="ajax/langedit.ajax.php";if(document.relative_path)g=document.relative_path+g;var h=document.fb?1:0;b="?action=loadSection&section="+encodeURI(b)+"&fb="+h;c=new Array("loadSection",c);f.request_post(g,b,langedit_callback,c,false,false)}
function langedit_callback(b,c){var f=c[0];c=c[1];if(b)switch(f){case "save_data":f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+1));switch(b[0]){case "SUCCESSFUL":if(c.getAttribute("type",false)=="submit"||c.getAttribute("type",false)=="button"||c.getAttribute("type",false)=="text")c.value=b[1];else c.innerHTML=b[1];langedit_refresh_others(langedit_getAttribute(c,"lang_key"),b[1]);break;case "ERROR":alert(b[1]);break}break;case "loadSection":try{eval(b)&&eval(c+" = languageObject;")}catch(g){eval(c+
" = new Object();")}break}}
function langedit_refresh_others(b,c){for(tagid=0;tagid<document.langedit_search_tags.length;tagid++){var f=document.getElementsByTagName(document.langedit_search_tags[tagid]);for(i=0;i<f.length;i++){var g=f[i];if(!(langedit_getAttribute(g,"lang_key").length<1||langedit_getAttribute(g,"lang").length<1))if(langedit_getAttribute(g,"lang_key")==b)if(g.getAttribute("type",false)=="submit"||g.getAttribute("type",false)=="button"||g.getAttribute("type",false)=="text")g.value=c;else g.innerHTML=c}}}
function langedit_finish(){document.body.appendChild(document.langedit_editform_div)}
function langedit_getAttribute(b,c){if(b.getAttribute(c,false)&&b.getAttribute(c,false).length>0)return b.getAttribute(c);if(!b.getAttribute("id",false))return"";var f=b.getAttribute("id",false).indexOf("langtoken_");if(f<0||f>0)return"";var g=b.getAttribute("id",false).substring(10);f=g.indexOf("_");if(f<0)return"";b=g.substring(f+1);g=g.substring(0,f);f=b.indexOf("_");if(f<0)return"";g=b.substring(f+1);b=b.substring(0,f);switch(c){case "lang":return b;case "lang_key":return g}return""}
document.langedit_helper=new Helper;document.langedit_ajax=(new $gojen).ajax(5);document.langedit_search_tags=new Array("a","span","td","div","input");var langeditform;langeditform='<form onsubmit="langedit_save(); return false;">';langeditform+='<input type="text" name="val" onblur="langedit_save();" style="border: 1px solid #000;" />';langeditform+="</form>";document.langedit_editform_div=document.createElement("div");
with(document.langedit_editform_div){setAttribute("id","langedit_editform_div",false);setAttribute("class","langedit_editform_div",false);style.display="none";style.position="absolute";style.width="auto";style.height="auto";style.top="-1000";style.left="-1000";style.overflow="auto";style.backgroundColor="#369";style.zIndex="3000000";innerHTML=langeditform}
function showlangeditcontrol(b){var c="index.php",f="?openlangeditcontrol="+b+"&ext=nothing";document.langedit_ajax.request_get(c,f,null,null,false,false);if(b=="false"){document.getElementById("langeditclosebutton").style.display="none";document.getElementById("langeditopenbutton").style.display=""}}function openlangeditcontrol(b){if(b==1){document.langedit_window.show();showlangeditcontrol("true")}else document.langedit_window.close()}
document.langedit_helper.setOpacity(document.langedit_editform_div,0);document.langedit_helper.waitForBody(langedit_finish);document.langedit_language_id=null;
function DragNDrop(){var b=null,c=null,f=null,g=null,h=[],j=true,k=this,m=false,n=5,t,u,B,w,E=new Helper;this.add=function(C,I,q){var r=document.getElementById(C)?document.getElementById(C):C,v=document.getElementById(I)?document.getElementById(I):I,F=v.style.position,z=h.length;E.addEvent(r,"mousedown",function(){k.prepare(v,z,r,F)},false);h.push(q)};this.prepare=function(C,I,q,r){if(!m){b=C;c=q;f=I;g=r;B=t-b.offsetLeft;w=u-b.offsetTop;document.body.onselectstart=function(){return false}}};this.prepareCursor=
function(C){var I=E.getAbsoluteCoordinates(C);C=E.getRealDimension(C);if(t>I[0]+n&&t<I[0]+C[0]-n&&u>I[1]+n&&u<I[1]+C[1]-n)document.body.style.cursor="move"};this.resetCursor=function(){document.body.style.cursor="default"};this.start_move=function(C){t=document.all?window.event.clientX:C.pageX;u=document.all?window.event.clientY:C.pageY;if(b!=null){document.helper.isIE()||document.helper.isIE7()?document.selection.empty():window.getSelection().removeAllRanges();b.style.position="absolute";C=E.getRealCoordinates(c);
var I=E.getRealDimension(c);if(j||t>C[0]+n&&t<C[0]+I[0]-n&&u>C[1]+n&&u<C[1]+I[1]-n){C=t-B>0?t-B:0;I=u-w>0?u-w:0;E.moveTo(b,C,I);j=true;h[f]&&h[f](new Array(C,I))}else b=null}};this.stop_move=function(){if(b!=null){var C=parseInt(b.style.left.substring(0,b.style.left.length-2)),I=parseInt(b.style.top.substring(0,b.style.top.length-2));if(C<0){b.style.left="0px";C=0}if(I<0){b.style.top="0px";I=0}b.style.position=g;h[f]&&h[f](new Array(C,I),true);f=c=b=null;document.body.onselectstart=function(){return true}}};
this.disable=function(){m=true};this.enable=function(){m=false};E.addEvent(document,"mousemove",function(C){k.start_move(C)},false);E.addEvent(document,"mouseup",function(){k.stop_move()},false)}document.dragndrop=new DragNDrop;if(use_popups==undefined)var use_popups=false;
function launchTellFriend(){if(use_popups==false)window.location.href="index.php?ext=recommend";else{var b=screen.width/2-140,c=screen.height/2-140;b="width=340,height=210,left="+b+",top="+c+",copyhistory=no,directories=no,menubar=no,location=no,resizable=yes,scrollbars=yes";window.open("index.php?ext=recommend","tellfriend",b)}}
function users_setStartpage(){var b=(new $gojen).ajax(20),c="/ajax/users.ajax.php";if(document.relative_path)c=document.relative_path+c;var f="?action=setStartpage&startpage="+Base64.encode(top.location.href)+"&backend="+document.backend,g=new Array("setStartpage");b.request_post(c,f,function(h,j){eval(h)},g,false,false)}
function users_resetStartpage(){var b=(new $gojen).ajax(20),c="/ajax/users.ajax.php";if(document.relative_path)c=document.relative_path+c;var f="?action=resetStartpage&backend="+document.backend,g=new Array("resetStartpage");b.request_post(c,f,function(h,j){eval(h)},g,false,false)}if(typeof deconcept=="undefined")var deconcept={};if(typeof deconcept.util=="undefined")deconcept.util={};if(typeof deconcept.SWFObjectUtil=="undefined")deconcept.SWFObjectUtil={};
deconcept.SWFObject=function(b,c,f,g,h,j,k,m,n,t){if(document.getElementById){this.DETECT_KEY=t?t:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params={};this.variables={};this.attributes=[];b&&this.setAttribute("swf",b);c&&this.setAttribute("id",c);f&&this.setAttribute("width",f);g&&this.setAttribute("height",g);h&&this.setAttribute("version",new deconcept.PlayerVersion(h.toString().split(".")));this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
if(!window.opera&&document.all&&this.installedVer.major>7)if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true}j&&this.addParam("bgcolor",j);b=k?k:"high";this.addParam("quality",b);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",
false);m=m?m:window.location;this.setAttribute("xiRedirectUrl",m);this.setAttribute("redirectUrl","");n&&this.setAttribute("redirectUrl",n)}};
deconcept.SWFObject.prototype={useExpressInstall:function(b){this.xiSWFPath=!b?"expressinstall.swf":b;this.setAttribute("useExpressInstall",true)},setAttribute:function(b,c){this.attributes[b]=c},getAttribute:function(b){return this.attributes[b]||""},addParam:function(b,c){this.params[b]=c},getParams:function(){return this.params},addVariable:function(b,c){this.variables[b]=c},getVariable:function(b){return this.variables[b]||""},getVariables:function(){return this.variables},getVariablePairs:function(){var b=
[],c,f=this.getVariables();for(c in f)b[b.length]=c+"="+f[c];return b},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'" style="'+(this.getAttribute("style")||"")+
'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var c=this.getParams();for(var f in c)b+=[f]+'="'+c[f]+'" ';c=this.getVariablePairs().join("&");if(c.length>0)b+='flashvars="'+c+'"';b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+
'" style="'+(this.getAttribute("style")||"")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';c=this.getParams();for(f in c)b+='<param name="'+f+'" value="'+c[f]+'" />';c=this.getVariablePairs().join("&");if(c.length>0)b+='<param name="flashvars" value="'+c+'" />';b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var c=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(c)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",
true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){b=typeof b=="string"?document.getElementById(b):b;b.innerHTML=this.getSWFHTML();return true}else this.getAttribute("redirectUrl")!=""&&document.location.replace(this.getAttribute("redirectUrl"));
return false}};
deconcept.SWFObjectUtil.getPlayerVersion=function(){var b=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var c=navigator.plugins["Shockwave Flash"];if(c&&c.description)b=new deconcept.PlayerVersion(c.description.replace(/([a-zA-Z]|s)+/,"").replace(/(s+r|s+b[0-9]+)/,".").split("."))}else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){c=1;for(var f=3;c;)try{f++;c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+f);b=new deconcept.PlayerVersion([f,0,
0])}catch(g){c=null}}else{try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(h){try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=new deconcept.PlayerVersion([6,0,21]);c.AllowScriptAccess="always"}catch(j){if(b.major==6)return b}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(k){}}if(c!=null)b=new deconcept.PlayerVersion(c.GetVariable("$version").split(" ")[1].split(","))}return b};
deconcept.PlayerVersion=function(b){this.major=b[0]!=null?parseInt(b[0]):0;this.minor=b[1]!=null?parseInt(b[1]):0;this.rev=b[2]!=null?parseInt(b[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(b){if(this.major<b.major)return false;if(this.major>b.major)return true;if(this.minor<b.minor)return false;if(this.minor>b.minor)return true;if(this.rev<b.rev)return false;return true};
deconcept.util={getRequestParameter:function(b){var c=document.location.search||document.location.hash;if(b==null)return c;if(c){c=c.substring(1).split("&");for(var f=0;f<c.length;f++)if(c[f].substring(0,c[f].indexOf("="))==b)return c[f].substring(c[f].indexOf("=")+1)}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){for(var b=document.getElementsByTagName("OBJECT"),c=b.length-1;c>=0;c--){b[c].style.display="none";for(var f in b[c])if(typeof b[c][f]=="function")b[c][f]=function(){}}};
if(!document.getElementById&&document.all)document.getElementById=function(b){return document.all[b]};var getQueryParamValue=deconcept.util.getRequestParameter,FlashObject=deconcept.SWFObject,SWFObject=deconcept.SWFObject;
function DragController(b,c){var f,g=this,h=c.trigger||null,j=c.callbackFunction||null;f=c.offsetX||0;c=c.offsetY||0;if(h){h.ondragstart=function(){return false};h.setAttribute("ondragstart","return false;");h.setAttribute("onselectstart","return false;");h=h.getElementsByTagName("img");for(c=0;c<h.length;c++)h[c].setAttribute("ondragstart","return false;")}for(c=0;c<DragControllerObjects.length;c++)if(DragControllerObjects[c]==b)return true;DragControllerObjects.push(b);this.getInnerNodes=function(q){var r=
[];if(!q.hasChildNodes())return r;for(q=q.firstChild;q;){r.push(q);for(var v=q.firstChild;v;){for(var F=g.getInnerNodes(v),z=0;z<F.length;z++)r.push(F[z]);v=v.nextSibling}q=q.nextSibling}return r};this.mouseUp=function(q){if(B){I=true;b.style.visibility="";B.parentNode.removeChild(B);B=null;document.getElementById("dragcontroller_firstSpace")&&m.removeChild(document.getElementById("dragcontroller_firstSpace"));for(q=n.length-1;q>=0;q--){b.nextSibling?b.parentNode.insertBefore(n[q],b.nextSibling):
b.parentNode.appendChild(n[q]);n[q].style.visibility=""}if(typeof Effect!="undefined")if(typeof format_content_table!="undefined")if(t)new Effect.Pulsate(b,{pulses:1,duration:1,afterFinish:format_content_table});else new Effect.Shake(b,{duration:0.25,distance:5,afterFinish:format_content_table});else if(t)new Effect.Pulsate(b,{pulses:1,duration:1});else new Effect.Shake(b,{duration:0.25,distance:5});j&&j();window.setTimeout(g.afterFinish,300)}};this.afterFinish=function(){for(var q=[],r=0;r<DragControllerObjects.length;r++)DragControllerObjects[r]!=
b&&q.push(DragControllerObjects[r]);DragControllerObjects=q};this.mouseMove=function(q){if(!(!B||I)){I=true;q=dc_mouseY;dc_IE?document.selection.empty():window.getSelection().removeAllRanges();var r=document.helper.getAbsoluteCoordinates(k),v=document.helper.getRealCoordinates(B);r=r[1]-q;v=document.helper.getBodyScrollPosition();B.style.top=dc_IE?q+C+v[1]+"px":q+C+"px";r=document.helper.getAbsoluteCoordinates(B);r=document.helper.getRealDimension(B);for(r=t?k.firstChild.firstChild:k.firstChild;r;){if(!(r==
b||r.className&&(r.className.indexOf("dragappend")>=0||r.className.indexOf("nodrag")>=0)))if(!(t&&r.getElementsByTagName("th").length>0)){var F=document.helper.getAbsoluteCoordinates(r),z=document.helper.getRealDimension(r);if(dc_IE)F[1]-=v[1];if(E>q&&z[1]>50&&F[1]<=q&&F[1]+z[1]/3>=q||E<q&&z[1]>50&&F[1]+z[1]/8<=q&&F[1]+z[1]/2>=q||z[1]<=50&&F[1]<=q&&F[1]+z[1]>=q){if(E<q)if(r.nextSibling)if(r.nextSibling.className&&r.nextSibling.className.indexOf("dragappend")<0){v=r.nextSibling;for(F=r.previousSibling;F&&
F!=F.parentNode.firstChild&&F.className&&F.className.indexOf("nodrag")>=0;){F.parentNode.insertBefore(r,F);F=F.previousSibling}r.parentNode.insertBefore(b,v)}else{r=r.nextSibling;for(v=false;r;){if(r.className&&r.className.indexOf("dragappend")>=0)r=r.nextSibling;else{r.parentNode.insertBefore(b,r);break}v||m.appendChild(b)}}else m.appendChild(b);else{r.parentNode.insertBefore(b,r);if(r.nextSibling)for(F=r.nextSibling;F&&F.className&&F.className.indexOf("nodrag")>=0;){F.nextSibling?F.parentNode.insertBefore(r,
F.nextSibling):m.appendChild(r);F=F.nextSibling}}E=q;I=false;return}}r=r.nextSibling}E=q;I=false}};b=b;var k=b.parentNode,m=b.parentNode;j=j;var n=[],t=k.tagName.toString().toLowerCase()=="tbody";if(t)k=k.parentNode;h=document.helper.getRealDimension(k);c=document.helper.getAbsoluteCoordinates(k);c=document.helper.getRealCoordinates(k);c=document.helper.getRealDimension(b);var u=document.helper.getAbsoluteCoordinates(b),B=k.cloneNode(false);u=b.cloneNode(true);var w=0;for(w=b.nextSibling;w;){if(w.className&&
w.className.indexOf("dragappend")>=0)n.push(w);else break;w=w.nextSibling}if(k){b.style.visibility="hidden";B.style.position="absolute";B.style.zIndex="100000";B.className="dragcontroller_container";B.style.width=h[0]+"px";if(t){B.width=h[0];h=document.createElement("tbody");h.appendChild(u);B.appendChild(h);u=k.getElementsByTagName("td")[0].parentNode.getElementsByTagName("td");h=[];for(c=0;c<u.length;c++)h.push(document.helper.getRealDimension(u[c]));u=B.getElementsByTagName("tr")[0].getElementsByTagName("td");
for(c=0;c<u.length;c++)document.helper.resizeTo(u[c],h[c][0],null)}else{h=new Array(new Array(0,0));B.appendChild(u);B.style.height=c[1]+"px"}for(c=0;c<n.length;c++){t?B.getElementsByTagName("tbody")[0].appendChild(n[c].cloneNode(true)):B.appendChild(n[c].cloneNode(true));n[c].style.visibility="hidden"}k.parentNode.insertBefore(B,k);document.helper.addEvent(document,"mouseup",g.mouseUp,false);document.helper.addEvent(document,"mousemove",g.mouseMove,false);var E=dc_mouseY;c=document.helper.getAbsoluteCoordinates(B);
h=document.helper.getRealCoordinates(B);c=c[1]-E;c=document.helper.getBodyScrollPosition();u=document.helper.getRealCoordinates(b);B.style.top=u[1]+"px";B.style.left=h[0]+f+"px";var C=document.helper.getRealCoordinates(B);C=C[1]-E;if(dc_IE)C-=c[1];var I=false;return false}else alert("DragController: no parentNode found!")}function dragControllerTrackMouse(b){dc_mouseY=dc_IE?window.event.clientY:b.pageY}
function initDragController(){document.helper.addEvent(document,"mousemove",function(b){dragControllerTrackMouse(b)},false)}var dc_IE=document.all&&!window.opera,dc_DOM=document.getElementById&&!dc_IE,dc_mouseY=0,DragControllerObjects=[];document.helper.waitForBody(initDragController);
function Pagination(b,c,f,g,h,j,k,m,n,t){var u=b,B=null,w=c,E=j?j:"Erste",C=k?k:"Letzte",I=h,q=f,r=g;b=new Helper;var v=(new $gojen).ajax(15),F=this,z=m||0,D=document.createElement("div"),x=n,y=t;if(document.getElementById("pagination_"+u)){D=document.getElementById("pagination_"+u);D.className="pagination";this.buildPageContainer=function(){if(!(r<=q)){if(document.getElementById("pagination_nonajax_"+u))document.getElementById("pagination_nonajax_"+u).style.display="none";if(B==null)B=document.getElementById(u);
var A="";E="&laquo;";C="&raquo;";var o=z!=0?"visible":"hidden";A+='<a class="paginate_first" onfocus="this.blur();" href="javascript:void(0);" style="visibility: '+o+'" onclick="document.pagination_'+u+'.onclick(0);">'+E+"</a>";o=z-q>=0?"visible":"hidden";A+='<a class="paginate_first" onfocus="this.blur();" href="javascript:void(0);" style="visibility: '+o+'" onclick="document.pagination_'+u+".onclick("+(z-q)+');">&lsaquo;</a>';o=1;var l=0,G=Math.ceil(r/q);if(G<11)for(;l<r;l+=q)A+=l!=z?'<a class="paginate_middle" onfocus="this.blur();" href="javascript:void(0);" onclick="document.pagination_'+
u+".onclick("+l+');">'+o++ +"</a>":'<span class="current"><strong>'+o++ +"</strong></span>";else{cPage=Math.ceil(z/q)+1;for(G=Math.ceil(r/q);l<r;l+=q){if(cPage<=5){if(o>11){o++;continue}}else if(cPage>5&&cPage+5<=G){if(o<cPage-5||o>cPage+5){o++;continue}}else if(o+10<G){o++;continue}A+=l!=z?'<a class="paginate_middle" onfocus="this.blur();" href="javascript:void(0);" onclick="document.pagination_'+u+".onclick("+l+');">'+o+"</a>":'<span class="current"><strong>'+o+"</strong></span>";o++}}o=z!=l-q?
"visible":"hidden";A+='<a  class="paginate_last" onfocus="this.blur();" href="javascript:void(0);" style="visibility: '+o+'" onclick="document.pagination_'+u+".onclick("+(z+q)+');">&rsaquo;</a>';o=z!=l-q?"visible":"hidden";A+='<a  class="paginate_last" onfocus="this.blur();" href="javascript:void(0);" style="visibility: '+o+'" onclick="document.pagination_'+u+".onclick("+(l-q)+');">'+C+"</a>";D.innerHTML=A}};this.onclick=function(A){if(A!=z){var o=w;x&&window.scrollTo(0,0);if(document.relative_path)o=
document.relative_path+o;params="?pageIndex="+A+"&numberPerPage="+q+"&numberTotal="+r+"&"+I;func_param=new Array("switch",A);B.innerHTML='<table border="0" width="100%" height="100%"><tr><td style="text-align: center; vertical-align: middle;"><img src="media/images/loading.gif" width="25"></td></tr></table>';v.request_post(o,params,F.callback,func_param,false,false)}};this.setCurrent=function(A){z=A;F.buildPageContainer()};this.callback=function(A,o){var l=o[0];if(A)switch(l){case "switch":l=A.indexOf(" ");
A=new Array(A.substring(0,l),A.substring(l+1));switch(A[0]){case "SUCCESSFUL":z=o[1];B.innerHTML=A[1];y&&window.setTimeout(function(){document.helper.execJS(B)},500);F.buildPageContainer();break;case "ERROR":alert(A[1]);break;default:alert(A[1])}break}};b.waitForBody(F.buildPageContainer)}else alert("falsch")}
var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(b){var c="",f,g,h,j,k,m,n=0;for(b=Base64._utf8_encode(b);n<b.length;){f=b.charCodeAt(n++);g=b.charCodeAt(n++);h=b.charCodeAt(n++);j=f>>2;f=(f&3)<<4|g>>4;k=(g&15)<<2|h>>6;m=h&63;if(isNaN(g))k=m=64;else if(isNaN(h))m=64;c=c+this._keyStr.charAt(j)+this._keyStr.charAt(f)+this._keyStr.charAt(k)+this._keyStr.charAt(m)}return c},decode:function(b){var c="",f,g,h,j,k,m=0;if(!b)return b;for(b=b.replace(/[^A-Za-z0-9\+\/\=]/g,
"");m<b.length;){f=this._keyStr.indexOf(b.charAt(m++));g=this._keyStr.indexOf(b.charAt(m++));j=this._keyStr.indexOf(b.charAt(m++));k=this._keyStr.indexOf(b.charAt(m++));f=f<<2|g>>4;g=(g&15)<<4|j>>2;h=(j&3)<<6|k;c+=String.fromCharCode(f);if(j!=64)c+=String.fromCharCode(g);if(k!=64)c+=String.fromCharCode(h)}return c=Base64._utf8_decode(c)},_utf8_encode:function(b){b=b.replace(/\r\n/g,"\n");for(var c="",f=0;f<b.length;f++){var g=b.charCodeAt(f);if(g<128)c+=String.fromCharCode(g);else{if(g>127&&g<2048)c+=
String.fromCharCode(g>>6|192);else{c+=String.fromCharCode(g>>12|224);c+=String.fromCharCode(g>>6&63|128)}c+=String.fromCharCode(g&63|128)}}return c},_utf8_decode:function(b){for(var c="",f=0,g=c1=c2=0;f<b.length;){g=b.charCodeAt(f);if(g<128){c+=String.fromCharCode(g);f++}else if(g>191&&g<224){c2=b.charCodeAt(f+1);c+=String.fromCharCode((g&31)<<6|c2&63);f+=2}else{c2=b.charCodeAt(f+1);c3=b.charCodeAt(f+2);c+=String.fromCharCode((g&15)<<12|(c2&63)<<6|c3&63);f+=3}}return c}};
function AlertControl(b,c,f,g){if(b)if(WindowControl){c||(c="Achtung");document.alertcontrolcounter++;var h=document.createElement("div");if(!document.alertcontrol_windows)document.alertcontrol_windows={};document.alertcontrol_windows[document.alertcontrolcounter]=new WindowControl(c,document.body,false);var j=document.alertcontrol_windows[document.alertcontrolcounter];h.style.visibility="hidden";h.style.position="absolute";b=b+'<br /><br /><input type="button" value="OK" onclick="document.WindowControl[\'windows\'][\''+
j.get("id")+"'].close();\">";h.innerHTML='<div style="padding: 5px;">'+b+"</div>";document.body.appendChild(h);var k=document.helper.getRealDimension(h);if(f)if(k[0]>f){h.style.width=f+"px";k=document.helper.getRealDimension(h)}with(j){set("position",WindowControl.POSITION.CENTER);set("dimension",k[0],k[1]);set("titlebarDimension",k[0],20);set("toolbarDimension",k[0],15);set("title",c);set("toolbar","Hinweisfenster");g?set("contentfile",b):set("content",h.innerHTML.replace(/_ACID_/,"alertcontrol"+
document.alertcontrolcounter));set("modal",true);show()}}}document.alertcontrolcounter=0;
function picviewer_init(b,c,f,g,h,j,k,m,n){if(b)if(f){n&&picviewer_resizeModalContainer();var t=document.helper.getBodyScrollPosition(),u=document.helper.getRealDimension(b),B=document.helper.getAbsoluteCoordinates(b);if(!document.picviewer_lastScrolling)document.picviewer_lastScrolling=t;f=new Array(f,u[1]/u[0]*f);var w=document.helper.getInnerDimension(),E=(w[0]-f[0])/2+t[0];w=(w[1]-f[1])/2+t[1];E=new Array(E,w);if(g){document.picviewerDescriptions[b]&&document.body.removeChild(document.picviewerDescriptions[b]);
h.src=b.src;E[1]-=t[1]-document.picviewer_lastScrolling[1]}else{h=b.cloneNode(true);h.removeAttribute("class");h.className="picviewer_container";h.style.display="";h.style.position="absolute";h.style.zIndex=document.helper.getHeighestZIndex()+2;document.body.appendChild(h);document.helper.moveTo(h,B[0],B[1]);document.helper.resizeTo(h,u[0],u[1])}w=g?-20:20;var C=new Array((f[0]-u[0])/w,(f[1]-u[1])/w),I=new Array((E[0]-B[0])/w,(E[1]-B[1])/w);w=20;picviewer_slide(b,h,c,u,B,f,E,w,C,I,0,g,j,k,m,n);document.picviewer_lastScrolling=
t}}
function picviewer_slide(b,c,f,g,h,j,k,m,n,t,u,B,w,E,C,I){if(u==0){document.picviewer_modalContainer&&document.picviewer_modalContainer.style.display!="none"&&document.helper.fadeOut(document.picviewer_modalContainer,true,null,6);if(document.picviewer_modalContainer&&document.picviewer_modalContainer.style.display=="none"&&I&&!B){document.picviewer_modalContainerwidth=document.helper.getScrollDimension()[0]+"px";document.picviewer_modalContainerheight=document.helper.getScrollDimension()[1]+"px";document.picviewer_modalContainer.onclick=
function(){picviewer_init(b,f,j[0],true,c,w,E,C,I)};document.helper.setOpacity(document.picviewer_modalContainer,0);document.picviewer_modalContainer.style.visibility="";document.picviewer_modalContainer.style.display="block";document.helper.fadeIn(document.picviewer_modalContainer,null,6)}}if(u<m){b.style.visibility="hidden";var q=document.helper.getAbsoluteCoordinates(c),r=document.helper.getRealDimension(c);document.helper.moveTo(c,q[0]+t[0],q[1]+t[1]);document.helper.resizeTo(c,r[0]+n[0],r[1]+
n[1]);u++;window.setTimeout(function(){picviewer_slide(b,c,f,g,h,j,k,m,n,t,u,B,w,E,C,I)},20)}else if(B){c.style.display="none";b.style.visibility="";if(C)C.style.display="none";if(E)E.style.display="";w&&w();if(I)document.picviewer_modalContainer.style.display="none"}else{c.src=f;c.onclick=function(){picviewer_init(b,f,j[0],true,c,w,E,C,I)};if(C){C.onclick=function(){picviewer_init(b,f,j[0],true,c,w,E,C,I)};C.style.display=""}if(E)E.style.display="none";if(document.picviewerDescriptions[b]){q=document.helper.getRealDimension(c);
r=document.helper.getAbsoluteCoordinates(c);document.picviewerDescriptions[b].className="picviewer_description";document.body.appendChild(document.picviewerDescriptions[b]);document.picviewerDescriptions[b].style.width=q[0]+"px";var v=document.helper.getRealDimension(document.picviewerDescriptions[b]);document.picviewerDescriptions[b].style.top=r[1]+q[1]-v[1]/2+"px";document.picviewerDescriptions[b].style.left=r[0]+"px";document.picviewerDescriptions[b].style.display="none";new Effect.Move(c,{x:0,
y:-v[1]/2,mode:"relative"});new Effect.BlindDown(document.picviewerDescriptions[b])}}}function picviewer(b,c,f,g,h,j,k){document.helper.waitForBody(function(){picviewer_init(b,c,f,null,null,g,h,j,k)})}function picviewer_finish(){picviewer_resizeModalContainer()}
function picviewer_resizeModalContainer(){with(document.picviewer_modalContainer.style){display="none";zIndex=10;position="absolute";left=top="0px";backgroundColor="#000";width=document.helper.getScrollDimension()[0]-15+"px";height=document.helper.getScrollDimension()[1]+"px"}document.body.appendChild(document.picviewer_modalContainer)}
function picviewer_mediafile(b,c){var f=document.createElement("div"),g=new Image;g.src="/image.php?type=mediafile&id="+b+"&maxwidth=100";f.style.width="1px";f.style.height="1px";f.style.overflow="hidden";f.style.position="fixed";f.style.left="50%";f.style.top="50%";document.body.appendChild(f);f.appendChild(g);$gojen(f).opacity(0);g.onload=function(){if(c&&c.length>0){document.picviewerDescriptions[f.getElementsByTagName("img")[0]]=document.createElement("div");document.picviewerDescriptions[f.getElementsByTagName("img")[0]].innerHTML=
c}picviewer(f.getElementsByTagName("img")[0],"/image.php?type=mediafile&id="+b+"&maxwidth=400",400,null,null,null,true)}}document.picviewer_modalContainer=document.createElement("div");document.helper.waitForBody(picviewer_finish);document.picviewerDescriptions={};
function layout_nonstopFixes(){if(document.lastInnerHTMLLength!=document.body.innerHTML.length){document.lastInnerHTMLLength=document.body.innerHTML.length;$gojen(".mediafile_goeditor").each(function(b){var c=b.className.split(" ")[1],f=b.className.split(" ")[2],g=b;if(f&&f.length>2){try{b.href="javascript:;"}catch(h){}if(c=="picture"){$gojen(g).addEvent("click",function(){picviewer(g,"/image.php?type=mediafile&id="+f+"&maxwidth=500",500,null,null,null,true)});$gojen(b).className("")}if(c=="video"){var j=
b.className.split(" ")[3],k=b.className.split(" ")[4],m=b.className.split(" ")[5];c=b.tagName&&b.tagName.toString().toLowerCase()=="img"?b:b.getElementsByTagName("img")[0];$gojen(g).addEvent("click",function(){mediathek_showVideo(f,Base64.decode(m),j,k)});$gojen(c).className("video_detail_videobox_image")}b.style.cursor="pointer"}})}}document.helper.waitForBody(function(){window.setInterval(layout_nonstopFixes,1500)});document.lastInnerHTMLLength=0;
function comments_addComment(b){var c="ajax/comments.ajax.php",f=encodeURIComponent(b.content.value),g=encodeURIComponent(b.captchacode.value),h=encodeURIComponent(b.type.value),j=encodeURIComponent(b.mediaid_1.value),k=encodeURIComponent(b.mediaid_2.value),m=encodeURIComponent(b.mediaid_3.value);if(document.relative_path)c=document.relative_path+c;params="?task=addComment&related_id="+b.related_id.value+"&content="+f+"&captchacode="+g+"&type="+h+"&mediaid_1="+j+"&mediaid_2="+k+"&mediaid_3="+m;func_param=
new Array("addComment",b.related_id.value);document.comments_ajax.request_post(c,params,comments_callback,func_param,false,false);return false}function comments_deleteComment(b,c){var f="ajax/comments.ajax.php";if(document.relative_path)f=document.relative_path+f;params="?task=deleteComment&id="+b+"&related_id="+c;func_param=new Array("deleteComment",b,c);document.comments_ajax.request_post(f,params,comments_callback,func_param,false,false)}
function comments_callback(b,c){switch(c[0]){case "addComment":var f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+1));switch(b[0]){case "SUCCESSFUL":document.getElementById("comments_comments_"+c[1]).innerHTML=b[1];if(f=document.getElementById("comments_comments_count_"+c[1]))f.innerHTML=parseInt(f.innerHTML)+1;break;case "ERROR":if(b[1]=="notloggedin")top.location=window.location.search;else alert(b[1]);break}break;case "deleteComment":f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+
1));switch(b[0]){case "SUCCESSFUL":f=document.getElementById("comments_comments_count_"+c[2]);if(!f){document.helper.fadeOut("comments_comment_"+c[1],true);return}f.innerHTML=parseInt(f.innerHTML)-1;if(f.innerHTML=="0")document.getElementById("comments_comments_"+c[2]).innerHTML=b[1];else document.helper.fadeOut("comments_comment_"+c[1],true);break;case "ERROR":if(b[1]=="notloggedin")top.location=window.location.search;else alert(b[1]);break}break}}document.comments_ajax=(new $gojen).ajax(5);
function mediathek_searchuser(b,c){var f=(new $gojen).ajax(20),g="/ajax/mediathek.ajax.php",h="task=searchuser&value="+encodeURIComponent(b)+"&folderid="+c+"&backend="+document.backend;b=new Array("searchuser",b,c);f.request_post(g,h,mediathek_callback,b,false,false)}
function mediathek_select_all(){for(var b=mediathek_getSelectedItems(),c=$gojen(".mediathek_item").elements(),f=[],g=0;g<c.length;g++){var h=c[g];!h.id||h.id==""||h.id=="mediathek_item_____MEDIATHEK_CONTENTIDCRYP____"||f.push(h)}mediathek_unselect_all();if(!(b.length>=f.length)){Gojen.key.down.is_ctrl=true;for(g=0;g<f.length;g++){h=f[g];if(!(!h.id||h.id==""||h.id=="mediathek_item_____MEDIATHEK_CONTENTIDCRYP____"))try{var j=document.createEvent("MouseEvents");j.initMouseEvent("click",false,true,window,
1,12,345,7,220,false,false,false,false,0,null);h.dispatchEvent(j)}catch(k){try{j=document.createEvent("MouseEvents");j.initMouseEvent("click",false,true,window,1,12,345,7,220,false,false,false,false,0,null);h.fireEvent(j)}catch(m){}}}$gojen(".mediathek_contextMenu").hide();Gojen.key.down.is_ctrl=false}}
function mediathek_getSelectedItems(b){for(var c=document.helper.getElementsByClassName("mediathek_selected_item",null,new Array("div","tr")),f=[],g=false,h=0;h<c.length;h++){f.push(c[h].getAttribute("id",false).replace(/mediathek_item_/,""));if(c[h].getAttribute("id",false).replace(/mediathek_item_/,"")==b)g=true}!g&&b&&f.push(b);return f}
function mediathek_relogin(b){var c=(new $gojen).ajax(20),f="/ajax/mediathek.ajax.php",g="task=relogin&username="+document.mediathek_username+"&password="+document.mediathek_password+"&backend="+document.backend;b=new Array("relogin",b);c.request_post(f,g,function(h,j){j[1]&&j[1]()},b,false,false)}
function mediathek_new_imagepreview(b,c){var f=(new $gojen).ajax(20);c=typeof c!="undefined"?c:-1;var g="/ajax/mediathek.ajax.php";b="task=newImagePreview&fid="+b+"&thumbindex="+c+"&backend="+document.backend;c=new Array("newImagePreview");f.request_post(g,b,function(h,j){h&&eval(h);h=document.getElementById("mediathek_content").getElementsByTagName("img");for(j=0;j<h.length;j++)if(h[j].src.indexOf("image.php")>=0)h[j].src+="&nochache="+(new Date).getTime()},c,false,false)}
function mediathek_select_imagepreview(b){var c=new WindowControl("mediathek_folderview",document.body,false,"");c.set("dimension",220,600);c.set("titlebarDimension",220,0);c.set("title","");c.set("contentfile","/ajax/mediathek.ajax.php?task=selectPreviewImage&fid="+b+"&backend="+document.backend);c.set("position",WindowControl.POSITION.CENTER);c.set("modal",true);c.set("closebutton","");c.set("delete_on_close",true);c.set("no_fade",false);c.show()}
function mediathek_init_copy_cut(b,c,f){document.mediathek_contextMenuTimeout&&window.clearTimeout(document.mediathek_contextMenuTimeout);document.getElementById("contextMenu_"+b).style.display="none";var g=mediathek_getSelectedItems(b);c=g.length==1?"1 Datei "+c:g.length+" Dateien "+c;g=new WindowControl("mediathek_folderview",document.body,false,"");b=document.getElementById("mediathek_foldertree_tpl").innerHTML.replace(/mediathek_fid/,b).replace(/mediathek_action/,f);b=b.replace(/mediathek_windowcontrolid/,
g.get("id"));g.set("dimension",400,420);g.set("titlebarDimension",400,20);g.set("title",c);g.set("content",'<div class="mediathek_foldertree_tpl_wrapper">'+b+"</div>");g.set("position",WindowControl.POSITION.CENTER);g.set("modal",true);g.set("delete_on_close",true);g.set("no_fade",false);g.show()}
function mediathek_copy_cut(b,c,f,g){document.mediathek_contextMenuTimeout&&window.clearTimeout(document.mediathek_contextMenuTimeout);document.getElementById("contextMenu_"+b).style.display="none";document.WindowControl.windows[g].close();g=mediathek_getSelectedItems(b);for(var h=0;h<g.length;h++){b=g[h];var j=(new $gojen).ajax(20),k="/ajax/mediathek.ajax.php";b="task=copyCut&action="+c+"&fid="+b+"&targetid="+f+"&backend="+document.backend;var m=new Array("copyCut");j.request_post(k,b,mediathek_callback,
m,false,false)}}
function mediathek_foldertree_openClose(b,c,f){var g;if(c){g=document.helper.getElementsByClassName("mediathek_foldertree_tpl",null,new Array("span"));for(var h=0;h<g.length;h++)g[h].className=g[h].className.replace(/mediathek_selected_folder_quickview/,"");c.className+=" mediathek_selected_folder_quickview"}if(b!=0)for(h in document.mediathek_foldertree)if(!(document.mediathek_foldertree[h]&&document.mediathek_foldertree[h].parentid!=b)){g=document.helper.getElementsByClassName("mediathek_foldertree_tpl "+document.mediathek_foldertree[h].parentid,
null,new Array("span"));for(c=0;c<g.length;c++){if(f==null)f=g[c].style.display=="none"?"":"none";g[c].style.display=f;f=="none"&&mediathek_foldertree_openClose(h,null,f)}}}
function mediathek_init_rename(b){var c=document.getElementById("mediathek_item_name_"+b),f=document.getElementById("mediathek_item_name_edit_"+b);b=f.getElementsByTagName("form")[0].name;c.style.display="none";document.helper.fadeIn(f);f=b.value.lastIndexOf(".");if(f>0){c=0;f=f;if(document.all&&!window.opera){objRng=b.createTextRange();objRng.collapse();objRng.moveStart("character",c);objRng.moveEnd("character",f);objRng.select()}else if(window.getSelection){b.focus();b.selectionStart=c;b.selectionEnd=
c+f}}else{b.focus();b.select()}}function mediathek_add_folder(b,c){var f=(new $gojen).ajax(20),g="/ajax/mediathek.ajax.php";b="task=addFolder&fid="+b+"&backend="+document.backend+"&foldername="+encodeURIComponent(c);c=new Array("addFolder");f.request_post(g,b,mediathek_callback,c,false,false)}
function mediathek_rename_item(b){document.mediathek_contextMenuTimeout&&window.clearTimeout(document.mediathek_contextMenuTimeout);document.getElementById("contextMenu_"+b.fid.value).style.display="none";var c=b.fid.value,f=b.name.value;b.name.blur();var g=b.parentid.value;b=(new $gojen).ajax(20);var h="/ajax/mediathek.ajax.php";c="task=renameItem&fid="+c+"&parentid="+g+"&backend="+document.backend+"&name="+encodeURIComponent(f);f=new Array("renameItem");b.request_post(h,c,mediathek_callback,f,false,
false)}function mediathek_delete_item(b){document.mediathek_contextMenuTimeout&&window.clearTimeout(document.mediathek_contextMenuTimeout);$gojen(".mediathek_contextMenu").fadeOut(true);var c=mediathek_getSelectedItems(b);b="";for(var f=0;f<c.length;f++)b+="|"+c[f];c=(new $gojen).ajax(20);f="/ajax/mediathek.ajax.php";b="task=deleteItem&fid="+b+"&backend="+document.backend;var g=new Array("deleteItem");c.request_post(f,b,mediathek_callback,g,false,false)}
function mediathek_share_item(b,c){var f=mediathek_getSelectedItems(b);c=c?1:0;for(var g=0;g<f.length;g++){b=f[g];var h=(new $gojen).ajax(20),j="/ajax/mediathek.ajax.php";b="task=shareItem&fid="+b+"&share="+c+"&backend="+document.backend;var k=new Array("shareItem");h.request_post(j,b,mediathek_callback,k,false,false)}}
function mediathek_set_profile_picture(b,c){document.mediathek_contextMenuTimeout&&window.clearTimeout(document.mediathek_contextMenuTimeout);if(document.getElementById("contextMenu_"+b))document.getElementById("contextMenu_"+b).style.display="none";c=c?1:0;var f=(new $gojen).ajax(20),g="/ajax/mediathek.ajax.php";b="task=setProfilePicture&fid="+b+"&set="+c+"&backend="+document.backend;c=new Array("setProfilePicture");f.request_post(g,b,mediathek_callback,c,false,false)}
function mediathek_encode(b){var c=(new $gojen).ajax(20),f="/ajax/mediathek.ajax.php";b="task=encodeVideo&fid="+b+"&backend="+document.backend;var g=new Array("encodeVideo");c.request_post(f,b,mediathek_callback,g,false,false)}
function mediathek_showVideo(b,c,f,g){if(document.getElementById("gojen_mediathek_embed_"+b)==null){f=parseInt(f);g=parseInt(g);var h=document.helper.getInnerDimension();if(f>h[0]){h[0]-=50;f=h[0];g=g/f*h[0]}if(g>h[1]){h[1]-=50;g=h[1];f=f/g*h[1]}h=new WindowControl("mediathek_videopreview",document.body,false,"");h.set("dimension",f+10,g+10);h.set("titlebarDimension",f+10,20);h.set("title",c);h.set("content",'<div id="gojen_mediathek_embed_'+b+'" style="text-align: center;"><p> Hinweis: Leider haben Sie den den Flash Player nicht installiert oder eine veraltete Version.<br />Er wird zum Betrachten des Videos ben&ouml;tigt. <a href="http://www.macromedia.com/go/getflashplayer" target="_blank">Flash Player herunterladen</a></p></div><script type="text/javascript">var s1 = new SWFObject("/flvplayer2.swf","flv-viewer","'+
f+'","'+g+'","8","");s1.addParam("allowfullscreen","true");s1.addVariable("file","/video.php?id='+b+'.flv");s1.addVariable("image","/video.php?id='+b+'.jpg");s1.addVariable("streamscript","/stream.php");s1.addVariable("bufferlength","3");s1.write("gojen_mediathek_embed_'+b+'");<\/script>');h.set("position",WindowControl.POSITION.CENTER);h.set("modal",true);h.set("delete_on_close",true);h.set("no_fade",true);h.show()}}
function mediathek_search(b,c){if(!(b.length<2)){Gojen.is_ie?document.selection.empty():window.getSelection().removeAllRanges();if(document.mediathek_refreshTimeout&&c!=document.mediathek_last_itemid){window.clearTimeout(document.mediathek_refreshTimeout);document.mediathek_refreshTimeout=null}document.mediathek_contextMenuTimeout&&window.clearTimeout(document.mediathek_contextMenuTimeout);if(document.getElementById("contextMenu_"+c))document.getElementById("contextMenu_"+c).style.display="none";
var f=document.getElementById("mediathek_item_visible_icon_"+c);f=document.getElementById("mediathek_item_hidden_icon_"+c);document.getElementById("mediathek_content_items").innerHTML='<div class="mediathek_loader" style="width: 100%; position: absolute; top: 50px; text-align: center;"><img src="/media/images/loading.gif" width="25" alt="Lade..." border="0" /></div>';f=new Date;f=new Date(f.getTime()+999890001);document.cookie="folderStyle="+document.mediathek_folderStyle+"; expires="+f.toGMTString()+
"; path=/;";f=(new $gojen).ajax(20);var g="/ajax/mediathek.ajax.php";c="task=searchItems&fid="+c+"&value="+encodeURIComponent(b)+"&backend="+document.backend+"&folderStyle="+document.mediathek_folderStyle;b=new Array("searchItems",b);f.request_post(g,c,mediathek_callback,b,false,false)}}
function mediathek_publish_video(b){var c=(new $gojen).ajax(20),f="/ajax/mediathek.ajax.php",g="task=publishItem&itemid="+b+"&backend="+document.backend+"&folderStyle="+document.mediathek_folderStyle;b=new Array("publishItem",b);c.request_post(f,g,mediathek_callback,b,false,false)}
function mediathek_open_item(b,c,f,g){g=g||0;if(!c){document.mediathek_last_content=document.getElementById("mediathek_content_items").innerHTML;if(!c){Gojen.is_ie?document.selection.empty():window.getSelection().removeAllRanges();if(document.mediathek_refreshTimeout&&b!=document.mediathek_last_itemid){window.clearTimeout(document.mediathek_refreshTimeout);document.mediathek_refreshTimeout=null}document.mediathek_contextMenuTimeout&&window.clearTimeout(document.mediathek_contextMenuTimeout);if(document.getElementById("contextMenu_"+
b))document.getElementById("contextMenu_"+b).style.display="none";$gojen(".mediathek_contextMenu").each(function(E){E.id.indexOf("MEDIATHEK_CONTENTIDCRYP")>=0||E.parentNode.removeChild(E)});var h=document.getElementById("mediathek_item_visible_icon_"+b),j=document.getElementById("mediathek_item_hidden_icon_"+b);if(h&&j){j.style.display="";var k=parseInt(j.style.marginBottom.replace(/px/,""))||0;j.style.marginBottom="0px";var m=document.helper.getRealCoordinates(h);h=document.helper.getRealDimension(h);
var n=document.helper.getRealDimension(j);if(k==0)document.helper.moveTo(j,m[0]-(n[0]-h[0])/2,m[1]-(n[1]-h[1])/2);else{j.style.left=Math.round(m[0]-(n[0]-h[0])/2)+"px";j.style.bottom=Math.round(k-(n[1]-h[1])/2)+"px"}new Effect.Puff(j,{duration:0.3,afterFinish:function(){document.getElementById("mediathek_content_items").innerHTML='<div class="mediathek_loader" style="width: 100%; position: absolute; top: 50px; text-align: center;"><img src="/media/images/loading.gif" width="25" alt="Lade..." border="0" /></div>'}})}else document.getElementById("mediathek_content_items").innerHTML=
'<div class="mediathek_loader" style="width: 100%; position: absolute; top: 50px; text-align: center;"><img src="/media/images/loading.gif" width="25" alt="Lade..." border="0" /></div>'}j=new Date;j=new Date(j.getTime()+999890001);document.cookie="folderStyle="+document.mediathek_folderStyle+"; expires="+j.toGMTString()+"; path=/;";var t=(new $gojen).ajax(20);t.precache=c;if(f)t.force_nocache=true;var u="/ajax/mediathek.ajax.php",B="task=openItem&fid="+b+"&backend="+document.backend+"&folderStyle="+
document.mediathek_folderStyle+"&userid="+g,w=new Array("openItem",b,c,f,g);window.setTimeout(function(){t.request_post(u,B,mediathek_callback,w,false,false)},230)}}function mediathek_load_last(){document.getElementById("mediathek_content_items").innerHTML=document.mediathek_last_content}
function mediathek_add_content_items(){if(!document.mediathek_currentItems||document.mediathek_currentItems.length<1){$gojen("mediathek_no_items").fadeIn();$gojen("mediathek_content").element().style.overflow="hidden";return false}$gojen("mediathek_content").element().style.overflow="";$gojen("mediathek_no_items").hide();document.getElementById("mediathek_content_items").innerHTML="";for(var b=0;b<document.mediathek_currentItems.length;b++)mediathek_add_content_item(document.mediathek_currentItems[b],
true,b*b);$gojen(".mediathek_table").get("<a>").each(function(c){c.setAttribute("onfocus","this.blur();")});window.setTimeout(mediathek_finish,document.mediathek_currentItems.length+100)}
function mediathek_add_content_item(b,c,f){if(!c){f=f||1;return window.setTimeout(function(){mediathek_add_content_item(b,true)},f)}c=document.createElement("div");f=document.getElementById("mediathek_content_tpl").innerHTML;var g=b.size;g=g>1048576?Math.round(g/1048576*100)/100+" MB":g>1024?Math.round(g/1024*100)/100+" kB":Math.round(g*100)/100+" Bytes";f=f.replace(/____MEDIATHEK_CONTENTIDCRYP____/g,b.idcryp);f=f.replace(/____MEDIATHEK_CONTENTNAME____/g,b.name);f=f.replace(/____MEDIATHEK_CONTENTSIZE____/g,
g);f=f.replace(/____MEDIATHEK_CONTENTICON____/g,b.icon);f=f.replace(/____MEDIATHEK_CONTENTTIMESTAMP____/g,b.timestamp);f=f.replace(/____MEDIATHEK_CONTENTNAMETRUNCATE____/g,b.name_truncate);f=f.replace(/____MEDIATHEK_CONTENTPARENTIDCRYP____/g,b.parentidcryp);f=f.replace(/____MEDIATHEK_CONTENTNAMESHY____/g,b.name_shy);f=f.replace(/____MEDIATHEK_CONTENTSUBFILESCOUNT____/g,b.subfiles.length);f=f.replace(/____MEDIATHEK_CONTENTSUBITEMSCOUNT____/g,b.subitems.length);f=b.subitems.length==1?f.replace(/____MEDIATHEK_CONTENTSUBITEMS____/g,
b.subitems.length+" Objekt"):f.replace(/____MEDIATHEK_CONTENTSUBITEMS____/g,b.subitems.length+" Objekte");g=document.mediathek_folderStyle=="list"?"bigicons":"list";c.innerHTML=f;g=document.helper.getElementsByClassName("mediathek_folderstyle_"+g,c,new Array("table","div"));for(f=0;f<g.length;f++)g[f].parentNode.removeChild(g[f]);g=c.getElementsByTagName("form");for(f=0;f<g.length;f++)if(g[f].getAttribute("name",false)=="mediathek_edit_item")g[f].name.value=b.name;var h=b.can_write?"":"none";g=document.helper.getElementsByClassName("mediathek_can_write",
c,new Array("span","div"));for(f=0;f<g.length;f++)g[f].style.display=h;h=b.can_read?"":"none";g=document.helper.getElementsByClassName("mediathek_can_read",c,new Array("span","div"));for(f=0;f<g.length;f++)g[f].style.display=h;h=b.type=="folder"||b.type.indexOf("system_")>=0?"":"none";g=document.helper.getElementsByClassName("mediathek_is_folder",c,new Array("a","div","span"));for(f=0;f<g.length;f++)g[f].style.display=h;h=b.type!="folder"&&b.type.indexOf("system_")<0?"":"none";g=document.helper.getElementsByClassName("mediathek_is_file",
c,new Array("a","span","div"));for(f=0;f<g.length;f++)g[f].style.display=h;h=b.type=="picture"?"":"none";g=document.helper.getElementsByClassName("mediathek_is_picture",c,new Array("a","span","div"));for(f=0;f<g.length;f++)g[f].style.display=h;h=b.is_profile_picture==1?"":"none";g=document.helper.getElementsByClassName("mediathek_is_profile_picture",c,new Array("a","span","div"));for(f=0;f<g.length;f++)g[f].style.display=h;h=b.is_profile_picture==0?"":"none";g=document.helper.getElementsByClassName("mediathek_is_no_profile_picture",
c,new Array("a","span","div"));for(f=0;f<g.length;f++)g[f].style.display=h;h=b.type.indexOf("system_")>=0?"":"none";g=document.helper.getElementsByClassName("mediathek_is_system_folder",c,new Array("a","span","div"));for(f=0;f<g.length;f++)g[f].style.display=h;h=b.type.indexOf("system_")<0?"":"none";g=document.helper.getElementsByClassName("mediathek_is_no_system_folder",c,new Array("a","span","div"));for(f=0;f<g.length;f++)g[f].style.display=h;h=b.userid==b.current_userid?"":"none";g=document.helper.getElementsByClassName("mediathek_is_owner",
c,new Array("span","div"));for(f=0;f<g.length;f++)g[f].style.display=h;h=b.subfiles.length>1?"":"none";g=document.helper.getElementsByClassName("mediathek_subfiles_has_more_than_one",c,new Array("span","div"));for(f=0;f<g.length;f++)g[f].style.display=h;h=b.shared=="1"?"":"none";g=document.helper.getElementsByClassName("mediathek_share",c,new Array("div","span","div"));for(f=0;f<g.length;f++)g[f].style.display=h;h=b.shared=="0"?"":"none";g=document.helper.getElementsByClassName("mediathek_unshare",
c,new Array("span","div"));for(f=0;f<g.length;f++)g[f].style.display=h;if(b.type!="picture"&&b.type!="video"){g=document.helper.getElementsByClassName("imagereplace",c,new Array("img","div"));for(f=0;f<g.length;f++){g[f].setAttribute("class","");g[f].className=""}}if(b.subfiles.length>0){g=document.helper.getElementsByClassName("mediathek_subfiles_download",c,new Array("a","div","span"));for(f=0;f<g.length;f++)g[f].onclick=function(){for(var m=0;m<b.subfiles.length;m++)document.helper.downloadFile("/download.php?id="+
b.subfiles[m]+"&backend="+document.backend)}}else{g=document.helper.getElementsByClassName("mediathek_subfiles_download",c,new Array("a","div","span"));for(f=0;f<g.length;f++)g[f].style.display="none"}b.subfiles.length>30&&mediathek_open_item(b.idcryp,true);if(document.mediathek_folderStyle=="bigicons"){document.getElementById("mediathek_content_items").appendChild(c.firstChild);c.firstChild&&document.getElementById("mediathek_content_items").appendChild(c.firstChild)}else{if(document.getElementById("mediathek_content_items").getElementsByTagName("table").length<
1)document.getElementById("mediathek_content_items").appendChild(c.getElementsByTagName("table")[0]);else try{document.getElementById("mediathek_content_items").getElementsByTagName("table")[0].firstChild.appendChild(c.firstChild.firstChild.firstChild.firstChild.nextSibling)}catch(j){window.setTimeout(function(){mediathek_open_item(b.parentidcryp)},500)}c.firstChild.nextSibling&&document.getElementById("mediathek_content_items").appendChild(c.firstChild.nextSibling)}g=document.helper.getElementsByClassName("mediathek_loader",
document.getElementById("mediathek_content_items"),new Array("div"));for(f=0;f<g.length;f++)try{g[f].parentNode.removeChild(g[f])}catch(k){}}
function mediathek_folderview(b,c,f,g){var h=h||0,j=j||null;c=c||200;f=f||1;g=g||0;if(!j)for(var k=0;k<1000;k++){j=b+"_"+k;if(!document.getElementById(j)){document.write('<span id="'+j+'"></span>');break}}k=(new $gojen).ajax(30);var m="/ajax/mediathek.ajax.php";c="task=folderview&folderid="+b+"&itemid="+h+"&containerid="+j+"&maxsize="+c+"&startpic="+f+"&no_mini_gallery="+g;b=new Array("folderview",b,h,j);k.request_post(m,c,function(n,t){document.getElementById(j).innerHTML=n},b,false,false)}
function mediathek_folderview_open_window(b,c,f,g,h){h+=85;var j=new WindowControl("mediathek_folderview",document.body,false,"");j.set("dimension",640,h);j.set("titlebarDimension",640,20);j.set("title",f);j.set("content",'<div style="text-align: center; margin-top: 5px;">'+b.innerHTML+"</div>");j.set("position",WindowControl.POSITION.CENTER);j.set("modal",true);j.set("delete_on_close",false);j.set("no_fade",false);j.show();var k=j.get("contentcontainer"),m=document.helper.getElementsByClassName("mediathek_folderview_container",
k)[0].getElementsByTagName("span"),n=c.getElementsByTagName("span");mediathek_folderview_maximize(k,c,null,h);g||j.set("onclose",function(){mediathek_folderview_close(k,m,n,null)})}
function mediathek_finish_multiupload(b){if(document.helper.isIE()||document.helper.isIE7()||document.helper.isIE8())top.location="?ext=mediafiles&fid="+b;else{document.body.removeChild(document.getElementById("mediathek_multiupload_modaldiv"));document.body.removeChild(document.getElementById("mediathek_multiupload_div"))}}
function mediathek_multiupload(b,c,f){var g;g=document.createElement("div");g.setAttribute("id","mediathek_multiupload_modaldiv");with(g.style){display="block";zIndex=document.helper.getHeighestZIndex()+1;position="absolute";left=top="0px";backgroundColor="#000";width=document.helper.getScrollDimension()[0]+"px";height=document.helper.getScrollDimension()[1]+"px"}document.helper.setOpacity(g,0.7);var h=document.createElement("div");h.setAttribute("id","mediathek_multiupload_overdiv");h.style.position=
"absolute";h.style.backgroundColor="#000";h.style.width="370px";h.style.height="35px";h.style.zIndex=document.helper.getHeighestZIndex()+3;document.helper.setOpacity(h,0);var j=document.createElement("div"),k="?domainname="+top.location.hostname+"";k+="&backend="+document.backend;k+="&username="+b;k+="&password="+c;k+="&fid="+f;b='<object data="/media/flash/uploader/fileUpload.swf'+k+'" type="application/x-shockwave-flash" width="394" height="293" id="mediathek_multiupload">';b+='<param name="movie" value="/media/flash/uploader/fileUpload.swf'+
k+'" /><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="true" /><param name="quality" value="high" /><param name="play" value="true" />';b+="</object>";j.setAttribute("id","mediathek_multiupload_div");j.innerHTML=b;j.style.width="394px";j.style.height="293px";j.style.position="absolute";j.style.zIndex=document.helper.getHeighestZIndex()+2;b=document.helper.getInnerDimension();k=new Array(0,0);k=(b[0]-394)/2;b=(b[1]-293)/2;c=new Array(0,0);c=document.helper.getBodyScrollPosition();
document.helper.moveTo(j,k+c[0],b+c[1]);document.helper.moveTo(h,k+c[0],b+c[1]);document.body.insertBefore(h,document.body.firstChild);document.body.insertBefore(j,document.body.firstChild);document.body.insertBefore(g,document.body.firstChild)}
function mediathek_unselect_all(){for(var b=mediathek_getSelectedItems(null),c=0;c<b.length;c++){$gojen("mediathek_item_"+b[c]).element().className="mediathek_item";if(document.mediathek_folderStyle=="list"){$gojen("mediathek_item_"+b[c]).element().style.fontSize="0.9em";$gojen("mediathek_item_"+b[c]).element().style.fontWeight=""}}}
function mediathek_open_properties(b){var c=mediathek_getSelectedItems(b);b=document.helper.getInnerDimension();var f=c.length*420>b[0]?WindowControl.POSITION.W:WindowControl.POSITION.CENTER;f=c.length*420<=b[0]&&c.length>1?WindowControl.POSITION.W:f;for(var g=c.length-1;g>=0;g--){b=c[g];if(!$gojen("mediathek_properties_"+b).element()){var h=new WindowControl("mediathek_multiuploader",document.body,false,"");h.set("dimension",500,510);h.set("titlebarDimension",500,20);h.set("title",'<img src="/media/images/icon_properties.png" height="20" border="0" alt="" style="vertical-align: top;" hspace="1" vspace="0" />Eigenschaften');
h.set("contentfile","/ajax/mediathek.ajax.php","?task=properties&amp;fid="+b+"&backend="+document.backend);h.set("position",f,new Array(g*420,0));h.set("modal",false);h.set("delete_on_close",true);h.set("no_fade",true);h.show()}}}
function mediathek_folderview_next(b,c,f){b=b.getElementsByTagName("span");for(var g=0,h=0;h<b.length;h++)if(b[h].style.display!="none"){g=h;b[h].style.display="none";break}h=g+c;if(h>=b.length)h=0;if(h<0)h=b.length-1;var j=b[h].getElementsByTagName("img");if(j[0].className.length>0){j[0].src=j[0].className;j[0].className=""}if(j[1]&&j[1].className.length>0){j[1].src=j[1].className;j[1].className=""}if(document.helper.isSafari())b[h].style.display="";else document.helper.fadeIn(b[h]);if(f){f=f.getElementsByTagName("div");
f[g].style.display="none";if(document.helper.isSafari())f[h].style.display="";else document.helper.fadeIn(f[h])}h+=c;if(h>=b.length)h=0;if(h<0)h=b.length-1;j=b[h].getElementsByTagName("img");if(j[0].className.length>0){j[0].src=j[0].className;j[0].className=""}if(j[1]&&j[1].className.length>0){j[1].src=j[1].className;j[1].className=""}}
function mediathek_folderview_maximize(b,c,f,g){document.helper.resizeTo(b,640,g);var h=document.helper.getElementsByClassName("mediathek_folderview_container",b)[0].getElementsByTagName("span"),j=document.helper.getElementsByClassName("mediathek_folderview_subcontainer",b)[0].getElementsByTagName("div");if(g=document.helper.getElementsByClassName("mediathek_folderview_closebutton",b))g=g[0];var k=c.getElementsByTagName("span");for(c=c=0;c<k.length;c++)if(k[c].style.display!="none")break;if(c>=h.length)c=
0;if(c<0)c=h.length-1;var m=h[c].getElementsByTagName("img");if(m[0].className.length>0){m[0].src=m[0].className;m[0].className=""}if(m[1]&&m[1].className.length>0){m[1].src=m[1].className;m[1].className=""}h[c].style.display="";j[c].style.display="";j=c+1;if(j>=h.length)j=0;if(j<0)j=h.length-1;m=h[j].getElementsByTagName("img");if(m[0].className.length>0){var n=m[0];window.setTimeout(function(){n.src=n.className;n.className=""},1000)}if(m[1]&&m[1].className.length>0){var t=m[1];window.setTimeout(function(){t.src=
t.className;t.className=""},1100)}j=c-1;if(j>=h.length)j=0;if(j<0)j=h.length-1;m=h[j].getElementsByTagName("img");if(m[0].className.length>0){var u=m[0];window.setTimeout(function(){u.src=u.className;u.className=""},1200)}if(m[1]&&m[1].className.length>0){var B=m[1];window.setTimeout(function(){B.src=B.className;B.className=""},1300)}if(g)g.onclick=function(){mediathek_folderview_close(b,h,k,f)};f&&document.helper.addEvent(f,"click",function(){mediathek_folderview_close(b,h,k,f)},false)}
function mediathek_folderview_close(b,c,f,g){for(b=b=0;b<c.length;b++)if(c[b].style.display!="none")break;for(c=0;c<f.length;c++)f[c].style.display="none";if(b>=f.length)b=0;if(b<0)b=f.length-1;c=f[b].getElementsByTagName("img");if(c[0].className.length>0){c[0].src=c[0].className;c[0].className=""}if(c[1]&&c[1].className.length>0){c[1].src=c[1].className;c[1].className=""}f[b].style.display="";c=b+1;if(c>=f.length)c=0;if(c<0)c=f.length-1;c=f[c].getElementsByTagName("img");if(c[0].className.length>
0){c[0].src=c[0].className;c[0].className=""}if(c[1]&&c[1].className.length>0){c[1].src=c[1].className;c[1].className=""}b=b-1;if(b>=f.length)b=0;if(b<0)b=f.length-1;c=f[b].getElementsByTagName("img");if(c[0].className.length>0){c[0].src=c[0].className;c[0].className=""}if(c[1]&&c[1].className.length>0){c[1].src=c[1].className;c[1].className=""}}
function mediathek_quickedit_save_multi(b){var c=$(b).serialize(),f=(new $gojen).ajax(10),g="/ajax/mediathek.ajax.php",h="?task=quickeditSaveMulti&"+c+"&backend="+document.backend,j=$gojen(".mediathek_sidebar_item-active").elements().length;$gojen(".mediathek_sidebar_item-active").each(function(k){h+="&fid[]="+k.getAttribute("id",false).replace(/mediathek_sidebar_item_/,"");k=$("mediathek_quickedit_form_"+k.getAttribute("id",false).replace(/mediathek_sidebar_item_/,""));if(b.use_meta_title.checked)k.meta_title.value=
b.meta_title.value;if(b.use_meta_link.checked)k.meta_link.value=b.meta_link.value;if(b.use_meta_target.checked)k.meta_target.value=b.meta_target.value;if(b.use_meta_description.checked)k.meta_description.value=b.meta_description.value});if(j>1){c=true;j="Achtung!\nEs werden "+j+" Dateien/Ordner gleichzeitig editiert:\n\n==============================================";if(b.use_meta_title.checked){j+="\nTitel:\t\t"+b.meta_title.value+"\n";c=false}if(b.use_meta_description.checked){j+="\nBechreibung:\t"+
b.meta_description.value+"\n";c=false}if(b.use_meta_link.checked){j+="\nLink:\t"+b.meta_link.value+"\n";c=false}if(b.use_meta_target.checked){j+="\nLink-Ziel:\t"+b.meta_target.value+"\n";c=false}j+="==============================================\n\nSind sie sicher, dass Sie dies tun wollen?";if(c||!confirm(j))return false;c=new Array("quickeditSaveMulti",b);f.request_post(g,h,mediathek_callback,c,false,false)}}
function mediathek_quickedit_save(b){var c=$(b).serialize(),f=(new $gojen).ajax(20),g="/ajax/mediathek.ajax.php";c="?task=quickeditSave&"+c+"&backend="+document.backend;b=new Array("quickeditSave",b);f.request_post(g,c,mediathek_callback,b,false,false)}function mediathek_save_rights(b){var c=$(b).serialize(),f=(new $gojen).ajax(20),g="/ajax/mediathek.ajax.php";c="?task=saveRights&"+c+"&backend="+document.backend;b=new Array("saveRights",b);f.request_post(g,c,mediathek_callback,b,false,false)}
function mediathek_addUserToRightlist(b,c,f,g){g=g?"_"+g:"";g=document.getElementById("accessrightstable"+g);var h=document.createElement("tr"),j=document.createElement("td"),k=document.createElement("td"),m=document.createElement("td");f=f||"user";j.innerHTML=c;k.innerHTML='<input type="hidden" name="userids_'+f+'[]" value="'+b+'" />';k.innerHTML+='<input type="hidden" name="type_'+f+"["+b+']" value="'+f+'" />';k.innerHTML+='<input type="checkbox" name="read_'+f+"["+b+']" />';m.innerHTML='<input type="checkbox" name="write_'+
f+"["+b+']" />';h.appendChild(j);h.appendChild(k);h.appendChild(m);document.helper.insertRowAfter(g,h)}
function mediathek_showUploadWindow(b,c){var f=new WindowControl("mediathek_quickuploadWindow",document.body,false,"");f.set("dimension",640,480);f.set("titlebarDimension",640,20);f.set("title","Datei hochladen");f.set("contentfile","/ajax/mediathek.ajax.php","?task=showUploadWindow&mediaselect_counter="+b+"&mediaselect_name="+c+"&backend="+document.backend);f.set("position",WindowControl.POSITION.CENTER);f.set("modal",true);f.set("no_fade",true);f.set("delete_on_close",true);f.show()}
function mediathek_select_smarty(b,c,f,g){document.getElementById("mediaselect_"+c+"_input_"+f+"").value=b.id.value;document.helper.fadeOut("mediaselect_"+c+"_file_"+f+"",true);document.getElementById("mediaselect_"+c+"_name_"+f+"").getElementsByTagName("td")[0].innerHTML='<img src="/image.php?type=mediafile&id='+b.id.value+"&maxsize="+g+"&backend="+document.backend+'" height="'+g+'" alt=""  border="0" />';document.getElementById("mediaselect_"+c+"_name_"+f+"").getElementsByTagName("td")[1].innerHTML=
b.name.value;$gojen("mediaselect_"+c+"_delete_"+f).show();document.getElementById("mediaselect_"+c+"_input_"+f+"").onchange&&document.getElementById("mediaselect_"+c+"_input_"+f+"").onchange()}
function mediathek_quickselect_open_item(b,c,f,g,h){f=f||0;h=h||0;b=b||"file";c=c?Base64.decode(c):"function(){}";g=g||"-1";var j=(new $gojen).ajax(20),k="/ajax/mediathek.ajax.php";b="?task=quickselectOpen&co=1&type="+b+"&callback="+c+"&fid="+f+"&userid="+h+"&windowcontrolid="+g+"&backend="+document.backend;c=new Array("quickselectOpen");j.request_post(k,b,function(m,n){$gojen("mediathek_quickselect_container_"+g).element().innerHTML=m;$gojen("mediathek_quickselect_loader_"+g).fadeOut(false)},c,false,
false)}
function mediathek_quickselect_open(b,c,f,g){f=f||0;b=b||"file";c=c||"function(){}";g=g?1:0;c=c.replace(/\\\\/,"");var h="Datei";switch(b){case "folder":h="Ordner";break}var j=new WindowControl("mediathek_quickselectWindow",document.body,false,"");j.set("dimension",460,350);j.set("titlebarDimension",460,20);j.set("title",h+" w\u00e4hlen");j.set("contentfile","/ajax/mediathek.ajax.php","?task=quickselectOpen&callback="+c+"&type="+b+"&callback="+c+"&fid="+f+"&init="+g+"&backend="+document.backend);j.set("position",
WindowControl.POSITION.CENTER);j.set("modal",true);j.set("no_fade",true);j.set("delete_on_close",true);j.show()}function mediathek_quickupload_open_subtree(b,c){c=null;var f=b.nextSibling;for(b=parseInt(b.style.marginLeft.replace(/em/,""));f;){if(f.style&&f.style.marginLeft){var g=parseInt(f.style.marginLeft.replace(/em/,""));if(b>=g)break;if(!(g-b>1&&c!="none")){c||(c=f.style.display=="none"?"":"none");f.style.display=c}}f=f.nextSibling}}
function mediathek_callback(b,c){if(b){c[0]=="openItem"&&$gojen(".mediathek_contextMenu").each(function(f){if(!(f.id.indexOf("MEDIATHEK_CONTENTIDCRYP")>=0))f.style.display="none"});eval(b)}}
function mediathek_finish(){for(var b=document.helper.getElementsByClassName("imagereplace",null,new Array("img")),c=null,f=0;f<b.length;f++)if(!(b[f].className.indexOf("____MEDIATHEK_CONTENTIDCRYP____")>0)){c=b[f].className.split(/ /);b[f].src=c[1]}if(document.helper.isIE()){b=document.helper.getElementsByClassName("mediathek_icon_mirror");for(f=0;f<b.length;f++)b[f].style.display="none"}b=document.getElementById("mediathek_foldercontent_wrapper");if(document.helper.isIE()){b=document.helper.getElementsByClassName("ie6_hide");
for(f=0;f<b.length;f++)b[f].style.display="none"}}function mediathek_urlObserver(b,c){document.getElementById("mediathek_content_items")&&$gojen().on_document_ready(function(){mediathek_loadUrl(b,c)})}
function mediathek_loadUrl(b,c){document.mediathek_last_content=document.getElementById("mediathek_content_items").innerHTML;document.getElementById("mediathek_content_items").innerHTML='<div class="mediathek_loader" style="width: 100%; position: absolute; top: 50px; text-align: center;"><img src="/media/images/loading.gif" width="25" alt="Lade..." border="0" /></div>';var f=(new $gojen).ajax(20),g="/ajax/mediathek.ajax.php";c="task=openItem&hash="+encodeURIComponent(b)+"&backend="+document.backend+
"&folderStyle="+document.mediathek_folderStyle;b=new Array("openItem");f.request_post(g,c,mediathek_callback,b,false,false)}if(typeof $gojen!="undefined"){$gojen().historyManager.register(mediathek_urlObserver);document.helper.addEvent(document,"click",function(){$gojen(".mediathek_contextMenu").fadeOut(true)},false)}document.mediathek_last_content="";
function buddylist_add(b,c){var f="ajax/buddylist.ajax.php";if(document.relative_path)f=document.relative_path+f;c||(c="");params="?task=addBuddy&username="+encodeURIComponent(b)+"&reason="+encodeURIComponent(c);func_param=new Array("addBuddy");document.buddylist_ajax.request_post(f,params,buddylist_callback,func_param,false,false)}
function buddylist_confirm(b){document.getElementById("buddy_confirm_"+b)&&document.helper.fadeOut("buddy_confirm_"+b,true);var c="ajax/buddylist.ajax.php";if(document.relative_path)c=document.relative_path+c;params="?task=confirmBuddy&userid="+b;func_param=new Array("confirmBuddy");document.buddylist_ajax.request_post(c,params,buddylist_callback,func_param,false,false)}
function buddylist_noconfirm(b){document.getElementById("buddy_confirm_"+b)&&document.helper.fadeOut("buddy_confirm_"+b,true);var c="ajax/buddylist.ajax.php";if(document.relative_path)c=document.relative_path+c;params="?task=noconfirmBuddy&userid="+b;func_param=new Array("noconfirmBuddy");document.buddylist_ajax.request_post(c,params,buddylist_callback,func_param,false,false)}
function buddylist_remove(b){var c="ajax/buddylist.ajax.php";if(document.relative_path)c=document.relative_path+c;params="?task=removeBuddy&username="+b;func_param=new Array("removeBuddy");document.buddylist_ajax.request_post(c,params,buddylist_callback,func_param,false,false)}
function buddys_showOfflines(b){for(var c=document.helper.getElementsByClassName("buddy_offline",document.getElementById("buddylist_full"),new Array("tr")),f=0;f<c.length;f++)b?document.helper.fadeIn(c[f]):document.helper.fadeOut(c[f],true);if(b){document.getElementById("buddys_showOnline").style.display="block";document.getElementById("buddys_showOffline").style.display="none"}else{document.getElementById("buddys_showOnline").style.display="none";document.getElementById("buddys_showOffline").style.display=
"block"}}
function buddylist_callback(b,c){c=c[0];if(b)switch(c){case "addBuddy":c=b.indexOf(" ");b=new Array(b.substring(0,c),b.substring(c+1));switch(b[0]){case "SUCCESSFUL":document.getElementById("addtobuddylist").style.display="none";document.getElementById("removefrombuddylist").style.display="none";document.getElementById("undobuddyconfirm").style.display="";break;case "ERROR":if(b[1]=="notloggedin")top.location=window.location.search;else alert(b[1]);break}break;case "confirmBuddy":c=b.indexOf(" ");b=
new Array(b.substring(0,c),b.substring(c+1));switch(b[0]){case "SUCCESSFUL":if(document.getElementById("confirmbuddyprofile")){document.getElementById("addtobuddylist").style.display="none";document.getElementById("removefrombuddylist").style.display="";document.getElementById("undobuddyconfirm").style.display="none";document.getElementById("confirmbuddyprofile").style.display="none"}parseInt(b[1])<1&&document.helper.fadeOut("mod_buddyconfirm",true);break;case "ERROR":if(b[1]=="notloggedin")top.location=
window.location.search;else alert(b[1]);break}break;case "noconfirmBuddy":c=b.indexOf(" ");b=new Array(b.substring(0,c),b.substring(c+1));switch(b[0]){case "SUCCESSFUL":parseInt(b[1])<1&&document.helper.fadeOut("mod_buddyconfirm",true);break;case "ERROR":if(b[1]=="notloggedin")top.location=window.location.search;else alert(b[1]);break}break;case "removeBuddy":c=b.indexOf(" ");b=new Array(b.substring(0,c),b.substring(c+1));switch(b[0]){case "SUCCESSFUL":document.getElementById("addtobuddylist").style.display=
"";document.getElementById("removefrombuddylist").style.display="none";document.getElementById("undobuddyconfirm").style.display="none";break;case "ERROR":if(b[1]=="notloggedin")top.location=window.location.search;else alert(b[1]);break}break}}document.buddylist_ajax=(new $gojen).ajax(5);
function message_display(b){var c=document.getElementById("message_"+b+"_container"),f=document.getElementById("message_"+b+"_content");f=document.getElementById("message_"+b+"_answer_button");for(var g=document.helper.getElementsByName("message_row"),h=document.helper.getElementsByName("message_content_row"),j=(f=c.style.display=="none"?true:false)?0.4:1,k=0;k<g.length;k++)document.helper.setOpacity(g[k],j);for(k=0;k<h.length;k++)h[k].style.display="none";document.helper.setOpacity("message_"+b,
1);g=document.getElementsByClassName("message_delimiter");for(k=0;k<g.length;k++){g[k].style.height="0.5em";if(f&&g[k].id=="message_delimiter_"+b)g[k].style.height="2em"}if(f){document.message_helper.fadeIn(c);document.message_active=b}else document.message_helper.fadeOut(c,true);for(k=0;k<document.message_received.length;k++)if(document.message_received[k]==b)return;c="ajax/messages.ajax.php";if(document.relative_path)c=document.relative_path+c;params="?action=display&mid="+b;func_param=new Array("display",
b);document.message_ajax.request_post(c,params,message_callback,func_param,false,false)}function message_answer(b,c,f){document.message_answer_window.set("title",document.lang_messages.answerto+" "+f);document.message_answer_window.set("contentfile","/ajax/messages.ajax.php","?action=answer&receiver_id="+b+"&subject="+c);document.message_answer_window.set("position",WindowControl.POSITION.CENTER);document.message_answer_window.show()}
function message_to_user(b,c,f){document.message_answer_window.set("title",document.lang_messages.messageto+" "+f);document.message_answer_window.set("contentfile","/ajax/messages.ajax.php","?action=answer&receiver_id="+b+"&subject="+c);document.message_answer_window.set("position",WindowControl.POSITION.CENTER);document.message_answer_window.show()}
function message_trash(b){var c="ajax/messages.ajax.php";if(document.relative_path)c=document.relative_path+c;params="?action=trash&id="+b;func_param=new Array("trash",b);document.message_ajax.request_post(c,params,message_callback,func_param,false,false)}
function message_delete(b){var c="ajax/messages.ajax.php";if(document.relative_path)c=document.relative_path+c;params="?action=delete&id="+b;func_param=new Array("delete",b);document.message_ajax.request_post(c,params,message_callback,func_param,false,false)}
function message_send(b,c,f,g,h,j){if(b<1||c.length<3||f.length<3)document.message_answer_window.close();var k="ajax/messages.ajax.php";if(document.relative_path)k=document.relative_path+k;params="?action=send&receiver_id="+b+"&subject="+encodeURIComponent(c)+"&content="+encodeURIComponent(f)+"&mediaid_1="+g+"&mediaid_2="+h+"&mediaid_3="+j;func_param=new Array("send");document.message_ajax.request_post(k,params,message_callback,func_param,false,false)}
function message_preview(b,c,f,g,h,j){var k="ajax/messages.ajax.php";if(document.relative_path)k=document.relative_path+k;params="?action=preview&receiver_id="+b+"&subject="+encodeURIComponent(c)+"&content="+encodeURIComponent(f)+"&mediaid_1="+g+"&mediaid_2="+h+"&mediaid_3="+j;func_param=new Array("send");document.message_ajax.request_post(k,params,function(m){try{eval(m)}catch(n){}},func_param,false,false)}
function message_autocomplete(b){if(b.value.length<2){$gojen("#message_autocomplete").hide();return false}document.getElementById("message_autocomplete").style.display="";document.message_autocomplete_timer&&clearTimeout(document.message_autocomplete_timer);document.message_autocomplete_timer=window.setTimeout(function(){message_autocomplete_search(b)},100);return false}
function message_autocomplete_search(b){var c="ajax/messages.ajax.php";if(document.relative_path)c=document.relative_path+c;params="?action=search&value="+encodeURIComponent(b.value);func_param=new Array("search",b);document.message_ajax.request_post(c,params,message_callback,func_param,false,false)}
function message_getDialog(b,c,f,g,h,j){if(!g&&!h){document.getElementById("messagebox").style.display="none";document.helper.fadeIn("dialogbox")}var k="ajax/messages.ajax.php";if(document.relative_path)k=document.relative_path+k;params="?action=getDialog&from="+b+"&to="+c+"&messageid="+f+"&startidx="+g+"&endidx="+h+"&direction="+j;func_param=new Array("getDialog",f);callback=g||h?function(m,n){try{eval(m)}catch(t){}}:message_callback;document.message_ajax.request_post(k,params,callback,func_param,
false,false)}function message_scrollToActive(){document.message_active&&document.helper.scrollToElement("message_"+document.message_active,0,-40);document.helper.fadeOut("dialog_title");with(document.getElementById("messagebox_title")){style.cursor="";style.fontWeight="normal";onclick=null}}
function message_callback(b,c){var f=c[0];if(b)switch(f){case "search":$gojen("#message_autocomplete").innerHTML(b);break;case "display":f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+1));switch(b[0]){case "SUCCESSFUL":document.message_received.push(c[1]);break;case "ERROR":break}break;case "send":f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+1));document.message_answer_window.close();switch(b[0]){case "SUCCESSFUL":alert(document.lang_messages.successfulsent);break;case "ERROR":alert(document.lang_messages.sendfailed);
break}break;case "trash":case "delete":f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+1));document.message_answer_window.close();switch(b[0]){case "SUCCESSFUL":document.getElementById("message_content_"+c[1]).style.display="none";b=document.helper.getElementsByName("message_row");f=document.helper.getElementsByName("message_content_row");for(var g=0;g<b.length;g++)document.helper.setOpacity(b[g],1);for(g=0;g<f.length;g++)f[g].style.display="none";document.helper.fadeOut("message_"+c[1],
true);break;case "ERROR":if(b[1]=="notloggedin")top.location=window.location.search;else alert(b[1]);break}break;case "getDialog":f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+1));switch(b[0]){case "SUCCESSFUL":f=b[1].indexOf(" ");b=new Array(b[1].substring(0,f),b[1].substring(f+1));document.helper.fadeIn("dialog_title");document.getElementById("dialog_title_partner").innerHTML=b[0];with(document.getElementById("messagebox_title")){style.cursor="pointer";style.fontWeight="bold";onclick=
function(){document.getElementById("dialogbox").style.display="none";document.getElementById("dialogbox").innerHTML="Lade! Bitte warten...";helper=new Helper;helper.fadeIn("messagebox",message_scrollToActive)}}document.getElementById("dialogbox").innerHTML=b[1];document.helper.scrollToElement("dialog_message_"+c[1],-40);break;case "ERROR":document.helper.fadeIn("messagebox");document.getElementById("dialogbox").style.display="none";break}break}}
function message_finish(){document.message_answer_window=new WindowControl("langedit_window",document.body,false,"image.php?type=user&userid=1&userhash=laetitia_1_500.jpg&maxsize=170");document.message_answer_window.set("dimension",580,500);document.message_answer_window.set("titlebarDimension",580,20)}document.message_ajax=(new $gojen).ajax(10);document.message_helper=new Helper;document.message_dropdownlist=new Dropdownlist("mdl");document.message_dropdownlist.setDefaultOpacity(0.7);document.message_dropdownlist.setFitToParentWidth(true);
document.message_received=[];document.message_helper.waitForBody(message_finish);function edituser_saveProfile(b){var c=$(b).serialize(),f=(new $gojen).ajax(20),g="/ajax/editprofile.ajax.php";if(document.relative_path)g=document.relative_path+g;c="?"+c+"&backend="+document.backend;b=new Array("saveProfile",b);f.request_post(g,c,function(h,j){eval(h)},b,false,false)}
function editprofile_getPreview(){var b=(new $gojen).ajax(20),c="/ajax/editprofile.ajax.php";if(document.relative_path)c=document.relative_path+c;var f="?task=getPreview",g=new Array("getPreview");b.request_post(c,f,function(h){var j=$gojen("#profile_preview").element();if(j){j.innerHTML=h;h=j.getElementsByTagName("a");for(j=0;j<h.length;j++){h[j].href="javascript:;";h[j].removeAttribute("onclick")}}},g,false,false)}
function edituser_contradictRule(b,c){var f=(new $gojen).ajax(20),g="/ajax/editprofile.ajax.php";if(document.relative_path)g=document.relative_path+g;b="?task=contradictRule&ruleid="+b+"&configid="+c+"&backend="+document.backend;c=new Array("contradictRule");f.request_post(g,b,function(h,j){eval(h)},c,false,false)}$gojen().on_document_ready(editprofile_getPreview);
function TabControl(b,c,f,g,h,j,k,m,n,t,u,B,w,E,C,I){var q=b,r=c,v=f,F=parseFloat(g),z=new Array(F+1),D=h?h:"none",x=j,y=k,A=m,o=n,l=u,G=t;b=t;var N=w,K=E,Q=C,p=I,H=F+1,J=0,M=0,L=this,R,V,S,T=new Helper;if(Q&&Q!="onload"){eval("panefiles = document."+q+"_panefiles;");S=(new $gojen).ajax(5);for(i=0;i<F;i++)z[i]=false;z[F]=true;z[F+1]=true}else for(i=0;i<z.length;i++)z[i]=true;z[H]=true;z[K]=true;T=new Helper;this.showPane=function(O){if(Q=="onclick"&&!z[O])return this.loadPane(O);var P=document.getElementById(q+
"_pane"+H);if(P&&O!=R&&O!=H&&D!="slide"&&D!="none"){R=O;c_dim=T.getRealDimension(q+"_pane"+K);c_coord=T.getRealCoordinates(q+"_pane"+K);n_dim=T.getRealDimension(q+"_pane"+O);diff=n_dim[1]-c_dim[1];T.resizeTo(q+"_pane"+H,c_dim[0],c_dim[1]+diff/2);T.moveTo(q+"_pane"+H,c_coord[0],c_coord[1]+diff/2);return this.showPane(H)}if(O<F)for(P=0;P<F;P++){var U=document.getElementById(q+"_id_tab"+P);if(U.className==r+"_tab-active"&&P==O)return false;if(P==O){U.className=r+"_tab-active";U.removeAttribute("href",
false)}else{U.className="";U.setAttribute("href","javascript:;",false)}}J=K;K=O;if(O<F)for(P=0;P<F;P++){O=document.getElementById(q+"_pane"+P);if(!(O==undefined||P==K||P==J))if(D=="fade"||D=="morph")O.style.visibility="hidden";else if(D!="slide")O.style.display="none"}if(A==1)if(T.isIE()){try{eval("var test = document."+q+"_pictures['middle']['normal']['middle']")}catch(W){}if(test==null||test=="undefined"){document.getElementById(q+"_tab"+K).onmouseover=function(){T.switchImage(q+"_img_tab"+K,document.tabcontrol_temp_img[q][K][1])};
document.getElementById(q+"_tab"+K).onmouseout=function(){T.switchImage(q+"_img_tab"+K,document.tabcontrol_temp_img[q][K][1])};document.getElementById(q+"_tab"+J).onmouseover=function(){T.switchImage(q+"_img_tab"+J,document.tabcontrol_temp_img[q][J][2])};document.getElementById(q+"_tab"+J).onmouseout=function(){T.switchImage(q+"_img_tab"+J,document.tabcontrol_temp_img[q][J][0])};T.switchImage(q+"_img_tab"+J,document.tabcontrol_temp_img[q][J][0]);T.switchImage(q+"_img_tab"+K,document.tabcontrol_temp_img[q][K][1])}else setTimeout(this.setNewImages,
1)}else setTimeout(this.setNewImages,1);if(D=="fade"||D=="morph"){document.getElementById(q+"_pane"+J).style.visibility="visible";document.getElementById(q+"_pane"+K).style.visibility="visible";D=="fade"&&this.fadePane(0);D=="morph"&&this.morphPane(0)}else if(D=="slide")this.slidePane(0);else{document.getElementById(q+"_pane"+K).style.display="block";document.getElementById(q+"_pane"+J).style.display="none";this.fitToPane(K)}O=new Date;O=new Date(O.getTime()+31536000000);document.cookie=v+q+"_lastpane="+
K+";expires="+O.toGMTString()+";";return false};this.loadPane=function(O){var P=T.getRealDimension(q+"_pane"+K),U;U=T.getRealCoordinates(q+"_pane"+K);loader_pane=document.getElementById(q+"_pane"+F);if(img=loader_pane.getElementsByTagName("img")){U=new Array(img[0].width,img[0].height);var W=P[0]/2;P=(P[1]-U[1])/2;T.moveTo(q+"_pane"+F,W,P);T.resizeTo(q+"_pane"+F,U[0],U[1])}else{T.resizeTo(q+"_pane"+F,P[0],P[1]);T.incOpacity(q+"_pane"+K,-0.3);loader_pane.style.backgroundColor="#111";loader_pane.style.color=
"#e00"}loader_pane.style.visibility="visible";loader_pane.style.display="block";loader_pane.style.position="absolute";P=this;S.request_get(V[O],"",P.pane_received,O,false,false)};this.setLoadedPane=function(O,P){document.getElementById(q+"_pane"+O).innerHTML=unescape(P);z[O]=true;loader_pane=document.getElementById(q+"_pane"+F);loader_pane.style.visibility="hidden";loader_pane.style.display="none";D!="none"&&T.incOpacity(q+"_pane"+K,0.3)};this.pane_received=function(O,P){if(O){eval("document.tabcontrol_"+
q+".setLoadedPane("+P+", '"+escape(O)+"')");eval("document.tabcontrol_"+q+".autoPlace()");eval("document.tabcontrol_"+q+".showPane("+P+")")}};this.waitForImages=function(O,P,U){if(T.preloadImages(U)){eval("document.tabcontrol_"+q+".setLoadedPane("+P+", '"+escape(O)+"')");eval("document.tabcontrol_"+q+".autoPlace()");eval("document.tabcontrol_"+q+".showPane("+P+")")}else setTimeout(function(){L.waitForImages(O,P,U)},100)};this.setNewImages=function(){try{eval("var test = document."+q+"_pictures['middle']['normal']['middle']")}catch(O){}if(test==
null||test=="undefined"){document.getElementById(q+"_tab"+K).setAttribute("onMouseOver","helper.switchImage('"+q+"_img_tab"+K+"', '"+document.tabcontrol_temp_img[q][K][1]+"')",false);document.getElementById(q+"_tab"+K).setAttribute("onMouseOut","helper.switchImage('"+q+"_img_tab"+K+"', '"+document.tabcontrol_temp_img[q][K][1]+"')",false);document.getElementById(q+"_tab"+J).setAttribute("onMouseOver","helper.switchImage('"+q+"_img_tab"+J+"', '"+document.tabcontrol_temp_img[q][J][2]+"')",false);document.getElementById(q+
"_tab"+J).setAttribute("onMouseOut","helper.switchImage('"+q+"_img_tab"+J+"', '"+document.tabcontrol_temp_img[q][J][0]+"')",false);T.switchImage(q+"_img_tab"+J,document.tabcontrol_temp_img[q][J][0]);T.switchImage(q+"_img_tab"+K,document.tabcontrol_temp_img[q][K][1])}else{var P,U,W,X,Z,aa,Y,ba,ca;if(J==0){eval("oldleft\t\t= document."+q+"_pictures['left']['normal']['left'];");eval("oldmiddle\t\t= document."+q+"_pictures['left']['normal']['middle'];");eval("oldright\t\t= document."+q+"_pictures['left']['normal']['right'];");
eval("hoverleft\t\t= document."+q+"_pictures['left']['hover']['left'];");eval("hovermiddle\t= document."+q+"_pictures['left']['hover']['middle'];");eval("hoverright\t= document."+q+"_pictures['left']['hover']['right'];")}else if(J+1==F){eval("oldleft\t\t= document."+q+"_pictures['right']['normal']['left'];");eval("oldmiddle\t\t= document."+q+"_pictures['right']['normal']['middle'];");eval("oldright\t\t= document."+q+"_pictures['right']['normal']['right'];");eval("hoverleft\t\t= document."+q+"_pictures['right']['hover']['left'];");
eval("hovermiddle\t= document."+q+"_pictures['right']['hover']['middle'];");eval("hoverright\t= document."+q+"_pictures['right']['hover']['right'];")}else{eval("oldleft\t\t= document."+q+"_pictures['middle']['normal']['left'];");eval("oldmiddle\t\t= document."+q+"_pictures['middle']['normal']['middle'];");eval("oldright\t\t= document."+q+"_pictures['middle']['normal']['right'];");eval("hoverleft\t\t= document."+q+"_pictures['middle']['hover']['left'];");eval("hovermiddle\t= document."+q+"_pictures['middle']['hover']['middle'];");
eval("hoverright\t= document."+q+"_pictures['middle']['hover']['right'];")}if(K==0){eval("newleft\t\t= document."+q+"_pictures['left']['active']['left'];");eval("newmiddle\t\t= document."+q+"_pictures['left']['active']['middle'];");eval("newright\t\t= document."+q+"_pictures['left']['active']['right'];")}else if(K+1==F){eval("newleft\t\t= document."+q+"_pictures['right']['active']['left'];");eval("newmiddle\t\t= document."+q+"_pictures['right']['active']['middle'];");eval("newright\t\t= document."+
q+"_pictures['right']['active']['right'];")}else{eval("newleft\t\t= document."+q+"_pictures['middle']['active']['left'];");eval("newmiddle\t\t= document."+q+"_pictures['middle']['active']['middle'];");eval("newright\t\t= document."+q+"_pictures['middle']['active']['right'];")}if(document.getElementById(q+"_tab"+K)){document.getElementById(q+"_tab"+K).style.backgroundImage="url('"+Z+"')";document.getElementById(q+"_tab"+K).onmouseover=function(){};document.getElementById(q+"_tab"+K).onmouseout=function(){}}if(document.getElementById(q+
"_tab"+J))document.getElementById(q+"_tab"+J).style.backgroundImage="url('"+U+"')";T.switchImage(q+"_tab_img_left"+K,X);T.switchImage(q+"_tab_img_right"+K,aa);if(T.isIE()){if(document.getElementById(q+"_tab"+J)){document.getElementById(q+"_tab"+J).onmouseover="document.getElementById('"+q+"_tab_img_left"+J+"').src = '"+Y+"'; document.getElementById('"+q+"_tab_img_right"+J+"').src = '"+ca+"'; document.getElementById('"+q+"_tab"+J+"').style.backgroundImage='url("+ba+")';";document.getElementById(q+
"_tab"+J).onmouseout="document.getElementById('"+q+"_tab_img_left"+J+"').src = '"+P+"'; document.getElementById('"+q+"_tab_img_right"+J+"').src = '"+W+"'; document.getElementById('"+q+"_tab"+J+"').style.backgroundImage='url("+U+")';"}}else{document.getElementById(q+"_tab"+K).removeAttribute("onMouseOver",false);document.getElementById(q+"_tab"+K).removeAttribute("onMouseOut",false);if(document.getElementById(q+"_tab"+J)){document.getElementById(q+"_tab"+J).setAttribute("onMouseOver","document.getElementById('"+
q+"_tab_img_left"+J+"').src = '"+Y+"'; document.getElementById('"+q+"_tab_img_right"+J+"').src = '"+ca+"'; document.getElementById('"+q+"_tab"+J+"').style.backgroundImage='url("+ba+")';",false);document.getElementById(q+"_tab"+J).setAttribute("onMouseOut","document.getElementById('"+q+"_tab_img_left"+J+"').src = '"+P+"'; document.getElementById('"+q+"_tab_img_right"+J+"').src = '"+W+"'; document.getElementById('"+q+"_tab"+J+"').style.backgroundImage='url("+U+")';",false)}}if(document.getElementById(q+
"_tab"+J)){T.switchImage(q+"_tab_img_left"+J,P);T.switchImage(q+"_tab_img_right"+J,W)}}};this.fadePane=function(O){if(O<10){T.incOpacity(q+"_pane"+K,0.1);T.incOpacity(q+"_pane"+J,-0.1);O++;var P=this;setTimeout(function(){P.fadePane(O)},x)}else{document.getElementById(q+"_pane"+J).style.visibility="hidden";if(K==H)this.showPane(R);else p&&this.fitToPane(K)}};this.slidePane=function(O){left_start=J*(o+2*N);left_end=K*(o+2*N);step_size=(left_start-left_end)/y;s=J;e=K;if(s>e){s=K;e=J}if(O<y){for(var P=
s;P<=e;P++){pane=document.getElementById(q+"_pane"+P);var U=parseFloat(pane.style.left.substring(0,pane.style.left.length-2))+step_size;if(pane.style.left)pane.style.left=U+G}O++;var W=this;setTimeout(function(){W.slidePane(O)},x)}else for(P=0;P<F;P++){pane=document.getElementById(q+"_pane"+P);U=(P-K)*(o+2*N);pane.style.left=U+G}};this.morphPane=function(O){var P=document.getElementById(q+"_pane"+J).offsetHeight,U=document.getElementById(q+"_pane"+K).offsetHeight,W=document.getElementById(q+"_panes");
P=(U-P)/y;if(O<y){l=parseFloat(W.style.height.substring(0,W.style.height.length-2))+P;T.resizeTo(q+"_panes",null,l);if(O%Math.round(y/10)==0){T.incOpacity(q+"_pane"+K,0.1);T.incOpacity(q+"_pane"+J,-0.1)}O++;var X=this;setTimeout(function(){X.morphPane(O)},x)}else{W.style.height=U+"px";document.getElementById(q+"_pane"+J).style.visibility="hidden";K==H&&this.showPane(R)}};this.autoResize=function(){for(var O=document.getElementById(q+"_panes").offsetWidth,P=document.getElementById(q+"_panes").offsetHeight,
U=0;U<F;U++){var W=document.getElementById(q+"_pane"+U).offsetWidth,X=document.getElementById(q+"_pane"+U).offsetHeight;if(W>O)O=W;if(X>P)P=X}document.getElementById(q+"_panes").style.height=P+"px"};this.fitPanes=function(){for(var O=0;O<F;O++)document.getElementById(q+"_pane"+O).style.height=document.getElementById(q+"_pane"+O).offsetHeight};this.fitToPane=function(O,P){O||(O=K);if((P=T.getRealScrollDimension(document.getElementById(q+"_pane"+O))[1])&&P>10){if(document.getElementById(q+"_panes"))document.getElementById(q+
"_panes").style.height=P+"px";if(document.getElementById(q+"_pane"+O))document.getElementById(q+"_pane"+O).style.height=P+"px"}M||(M=window.setInterval(function(){L.fitToPane()},100))};this.autoPlace=function(){var O=document.getElementById(q+"_panes").style.width,P=document.getElementById(q+"_panes").style.height;O=parseFloat(O.substring(0,O.length-2))+2*N;P=parseFloat(P.substring(0,P.length-2))+2*N;for(P=0;P<F;P++){var U=P*(O+2*N);if(D=="slide")document.getElementById(q+"_pane"+P).style.left=U+
"px";else document.getElementById(q+"_pane"+P).style.left="0px";U=0;for(var W=P-1;W>=0;W--)if(z[W])if(D!="none")U-=document.getElementById(q+"_pane"+W).offsetHeight}};this.getCurrentPane=function(){return q+"_pane"+K};this.getHelperObject=function(){return T};this.destruct=function(){window.clearInterval(M);M=null}}
function twitter_change(b){var c=(new $gojen).ajax(15),f=b.message.value,g=parseInt(b.duration.value),h=parseInt(b.duration_multi.value),j=b.replace.value,k=0;if(b.id&&b.id.value)k=b.id.value;g*=h;h=b.active.checked?1:0;if(f.length<1){alert("Bitte einen Text eingeben");return false}b="/ajax/twitter.ajax.php";f="task=change&message="+encodeURIComponent(f)+"&duration="+g+"&active="+h+"&id="+k+"&replace="+j;g=new Array("change");c.request_post(b,f,twitter_callback,g,false,false)}
function twitter_showHistory(b,c,f,g){var h=(new $gojen).ajax(15),j="/ajax/twitter.ajax.php";b="task=showHistory&limit="+b+"&total="+c+"&index="+f+"&userid="+g;c=new Array("showHistory");h.request_post(j,b,function(k){document.getElementById("twitterHistory_"+g).innerHTML=k},c,false,false)}function twitter_reset(){var b=(new $gojen).ajax(15),c="/ajax/twitter.ajax.php",f="task=reset",g=new Array("reset");b.request_post(c,f,twitter_callback,g,false,false)}
function twitter_callback(b,c,f){b&&eval(b)}
function voting_mouseover(b,c,f,g){var h=b.getAttribute("id",false);b=h.indexOf("_blank_");f=f<1?1:f;if(b<0){b=h.indexOf("_filled_");f=parseInt(h.substring(0,b));h=h.substring(b+8)}else{f=parseInt(h.substring(0,b));h=h.substring(b+7)}b=h.indexOf("_");h=h.substring(0,b);for(b=1;b<=c;b++){document.getElementById(b+"_blank_"+h+"_"+g).style.display="";document.getElementById(b+"_filled_"+h+"_"+g).style.display="none"}document.getElementById(f+"_blank_"+h+"_"+g).style.display="none";document.getElementById(f+
"_filled_"+h+"_"+g).style.display=""}
function voting_mouseout(b,c,f,g){var h=b.getAttribute("id",false);b=h.indexOf("_blank_");if(b<0){b=h.indexOf("_filled_");parseInt(h.substring(0,b));h=h.substring(b+8)}else{parseInt(h.substring(0,b));h=h.substring(b+7)}b=h.indexOf("_");h=h.substring(0,b);for(b=1;b<=c;b++){document.getElementById(b+"_blank_"+h+"_"+g).style.display="";document.getElementById(b+"_filled_"+h+"_"+g).style.display="none"}if(document.getElementById(f+"_blank_"+h+"_"+g))document.getElementById(f+"_blank_"+h+"_"+g).style.display=
"none";if(document.getElementById(f+"_filled_"+h+"_"+g))document.getElementById(f+"_filled_"+h+"_"+g).style.display=""}
function voting_place(b,c,f,g,h,j,k){if(document.voting_inaction)setTimeout(function(){voting_place(b,c,f,g)},200);else{h||(h="");document.voting_inaction=true;var m=b.getAttribute("id",false),n=m.indexOf("_blank_"),t;if(n<0){n=m.indexOf("_filled_");t=parseInt(m.substring(0,n));m=m.substring(n+8)}else{t=parseInt(m.substring(0,n));m=m.substring(n+7)}n="ajax/voting.ajax.php";if(document.relative_path)n=document.relative_path+n;params="?action=placeVote&votingid="+m+"&value="+t+"&type="+c+"&randid="+
f+"&related_id="+g+"&style="+h+"&smallview="+j+"&noaverage="+k;func_param=new Array("placeVote",m,c,f);document.voting_ajax.request_post(n,params,voting_callback,func_param,false,false)}}
function voting_placeComment(b,c,f){if(document.voting_inaction)setTimeout(function(){voting_placeComment(forom)},200);else if(!(!b||!b.related_id||!b.comment)){var g="ajax/voting.ajax.php";if(document.relative_path)g=document.relative_path+g;params="?action=placeComment&related_id="+b.related_id.value+"&comment="+encodeURIComponent(b.comment.value)+"&smallview="+c+"&noaverage="+f;func_param=new Array("placeComment",b.randid.value);document.voting_ajax.request_post(g,params,voting_callback,func_param,
false,false)}}
function voting_callback(b,c){var f=c[0];if(b){var g=b.indexOf(" ");g=new Array(b.substring(0,g),b.substring(g+1));switch(f){case "placeVote":document.voting_inaction=false;eval(b);return true;case "placeComment":switch(g[0]){case "SUCCESSFUL":if(document.getElementById("voting_comment_result_"+c[1]))document.getElementById("voting_comment_result_"+c[1]).innerHTML="Bewertung erfolgreich abgegeben.";window.setTimeout(function(){document.helper.fadeOut("myvoting",true)},500);break;case "ERROR":if(document.getElementById("voting_comment_result_"+c[1]))document.getElementById("voting_comment_result_"+
c[1]).innerHTML=g[1];break}break}}}document.voting_ajax=(new $gojen).ajax(5);document.voting_inaction=false;function forum_edit_reply(b){var c="ajax/forum.ajax.php",f="task=editReply&replyid="+b.replyid.value+"&content="+encodeURIComponent(b.content.value)+"&mediaid_1="+b.mediaid_1.value+"&mediaid_2="+b.mediaid_2.value+"&mediaid_3="+b.mediaid_3.value;b=new Array("editReply",b.replyid.value);document.forum_ajax.request_post(c,f,forum_callback,b,false,false)}
forum_callback=function(b,c){if(b){var f=b.indexOf(" ");f=new Array(b.substring(0,f),b.substring(f+1));b=f[0];f=f[1];if(b=="ERROR")alert(f);else if(b=="SUCCESSFUL")switch(c[0]){case "editReply":document.getElementById("reply_content_"+c[1]).innerHTML=f.replace(/\\&quot;/g,"&quot;");document.getElementById("reply_edit_"+c[1]).style.display="none";document.helper.fadeIn("reply_content_"+c[1]);break}}else alert("Unbekannter Fehler!")};document.forum_ajax=(new $gojen).ajax(5);
function Dropdownlist(b){var c=null,f=b,g=new Helper,h=[],j,k=this,m=false,n=false,t=true,u=true,B=null,w=-1,E=-1,C=0.4,I=null,q="",r=false,v="#fff",F="#000",z="#16a",D="#fff",x=document.createElement("div");g.waitForBody(function(){document.body.appendChild(x)});x.setAttribute("id",f+"_dropdownlist",false);x.style.position="absolute";x.style.height="auto";x.style.width="auto";x.style.overflow="auto";x.style.visibility="hidden";x.style.display="none";x.style.zIndex="15000";x.style.backgroundColor=
v;x.style.border="1px solid #000";x.className="dropdownlist";g.setOpacity(x,0);g.addEvent(x,"mouseover",function(){k.setfocus()},false);g.addEvent(x,"mouseout",function(){k.setfocus(true)},false);this.setInputObject=function(y){c=document.getElementById(y)?document.getElementById(y):y};this.setDefaultOpacity=function(y){C=y};this.setFitToParentWidth=function(y){r=y};this.setCallbackFunction=function(y){B=y};this.setfocus=function(y){if(y){n=false;k.select(-1)}else{t=n=true;try{x.focus();x.blur()}catch(A){}x.style.borderColor=
z;g.setOpacity(f+"_dropdownlist",0.9)}};this.hasFocus=function(){return n};this.hadFocus=function(){return t};this.setBgColor=function(y){v=y};this.setFgColor=function(y){F=y};this.setHoverBgColor=function(y){z=y};this.setHoverFgColor=function(y){D=y};this.show=function(){if(!(h.length<1)){var y=g.getRealDimension(c),A=g.getAbsoluteCoordinates(c);x.innerHTML=q;x.style.display="block";if(u){for(var o=0;o<h.length;o++){var l=document.getElementById(f+"_item"+o);l.dropdownlist_i=o;document.helper.addEvent(l,
"mouseover",function(){k.select(this.dropdownlist_i)},false);document.helper.addEvent(l,"mouseout",function(){k.select(-1)},false)}u=false}x.style.display="block";x.style.height="auto";o=g.getRealDimension(x);var G=g.getInnerDimension();l=A[1]+y[1];G=G[1]-l;if(G>=l){if(G<=o[1])o[1]=G-5-y[1];g.moveTo(x,A[0],A[1]+y[1])}else{if(l<=o[1])o[1]=l-5-y[1];g.moveTo(x,A[0],A[1]-o[1])}r?g.resizeTo(x,y[0],o[1]):g.resizeTo(x,o[0],o[1]);x.style.visibility="visible";clearTimeout(j);g.setOpacity(x,0);E=g.isIE()?document.body.scrollTop:
window.pageYOffset;g.addEvent(document,"scroll",function(N){k.on_scroll(N)},false);k.fade(0,0.1)}};this.on_scroll=function(){if(!(E<0)){var y;y=g.isIE()?document.body.scrollTop:window.pageYOffset;window.scrollBy(0,E-y)}};this.fade=function(y,A){if(y<4){y++;g.incOpacity(x,A);j=setTimeout(function(){k.fade(y,A)},100)}else{if(A<0){x.style.visiblility="hidden";x.style.display="none";n=m=false}else{g.setOpacity(x,C);m=true;I=setTimeout(function(){k.hide()},3000)}j=null}};this.hide=function(){clearTimeout(j);
clearTimeout(I);x.style.borderColor="#000";g.setOpacity(x,0.3);E=-1;this.fade(0,-0.1)};this.addItem=function(y,A){u=true;y&&y.length>0&&h.push(new Array(y,A));y=h.length-1;A="";var o=f+"_item",l=o+y;o+=" dropdownlist_item";var G="this.style.backgroundColor='"+z+"';this.style.color='"+D+"';document.body.style.cursor='default';/*this.getElementsByTagName('ul')[0].style.color='"+D+"';*/",N="this.style.backgroundColor='"+v+"';this.style.color='"+F+"';document.body.style.cursor='default';/*this.getElementsByTagName('ul')[0].style.color='"+
F+"';*/";A+='<div id="'+l+'" style="position: relative; width: 100%; border-bottom: 1px solid #000;"';A+=' class="'+o+'"';A+=' onMouseOver="'+G+'"';A+=' onMouseOut="'+N+'"';A+=">";A+='<div style="position: relative; font-size: 1em;" class="'+o+" "+o+'_title">'+h[y][0]+"</div>";A+='<div style="position: relative; margin-left: 10px; font-size: 0.9em;" class="'+o+" "+o+'_desc">'+h[y][1]+"</div>";A+="</div>";q+=A};this.clear=function(){delete h;q=x.innerHTML="";h=[];w=-1;u=true};this.resetCloseTimeout=
function(){clearTimeout(I);I=setTimeout(function(){k.hide()},3000)};this.keypressed=function(y,A){y=g.isIE()?window.event.keyCode:y.keyCode;if(A.hasFocus()){A.resetTimeout();switch(y){case 38:w<=0?A.select(h.length-1):A.select(w-1);break;case 40:w==h.length-1?A.select(0):A.select(w+1);break;case 13:if(c.value)c.value=""+h[w][0];B&&B(h[w][0]);case 27:A.hide();c.focus();break;default:}}return false};this.select=function(y){var A;if(w>=0){A=document.getElementById(f+"_item"+w);A.style.backgroundColor=
v;A.style.color=F}if(y>=0&&y<h.length){A=document.getElementById(f+"_item"+y);A.style.backgroundColor=z;A.style.color=D;w=y}else w=-1};this.clicked=function(y,A){if(m){try{if(A.hasFocus()&&h[w]){if(c.value)c.value=""+h[w][0];B&&B(h[w][0],h[w][1])}}catch(o){}n=false;A.hide()}};this.isVisible=function(){return m};g.isIE()?g.addEvent(document,"keydown",function(y){k.keypressed(y,k)},false):g.addEvent(document,"keypress",function(y){k.keypressed(y,k)},false);g.addEvent(document,"click",function(y){k.clicked(y,
k)},false);g.addEvent(x,"mouseover",function(){clearTimeout(I)},false);g.addEvent(x,"mouseout",function(){k.resetCloseTimeout()},false)}
function GalleryViewer(){var b=new Helper,c=(new $gojen).ajax(5),f=this,g="/ajax/",h=document.createElement("div"),j=document.createElement("div"),k=document.createElement("div"),m=document.createElement("div"),n=document.createElement("div"),t=document.createElement("img"),u=document.createElement("img"),B=document.createElement("img"),w="",E=[],C=[],I=new Array(500,540),q=0,r=6,v,F;with(h.style){width=I[0]+"px";height=I[1]+"px";backgroundColor="#FFF";position="absolute";display="none";border=q+
"px solid #000";zIndex="20000";overflow="hidden"}with(j.style){width=I[0]+"px";height=I[1]+"px";backgroundColor="#000";position="absolute";display="none";border=q+"px solid #000";zIndex="19999"}with(k.style){width=I[0]+"px";height=I[1]+"px";backgroundColor="#FFF";position="absolute";display="none";border=q+"px solid #000";zIndex="3";left=top="0px";overflow="hidden";MozOpacity=opacity="0.9";filter="alpha(opacity=90)"}with(m.style){width="100%";textAlign="center";display="none";m="5px";fontSize="16px";
position="absolute"}var z='<nobr><a href="javascript:void(0);" id="galleryviewer_previous_link">&lt;&lt; Vorheriges</a>&nbsp;&nbsp;';z+='<a href="javascript:void(0);" id="galleryviewer_comments_link">Kommentare</a>&nbsp;&nbsp;';z+='<a href="javascript:void(0);" id="galleryviewer_next_link">N&auml;chstes &gt;&gt;</a></nobr>';m.innerHTML=z;with(n.style){textAlign="center";display="none";right=top="1px";fontSize="11px";position="absolute";zIndex="5"}n.innerHTML='<a href="javascript:void(0);"><img src="media/images/close.gif" width="25" height="25" border="0" alt="Schliesen" title="Schliessen" /></a>';
with(t.style){position="absolute";left=top="0px";zIndex="1"}t.alt="";with(u.style){position="absolute";left=top="0px";zIndex="2"}u.alt="";u.onload=function(){b.fadeOut(B);u.style.display="block"};with(B.style){position="absolute";left=top="2px";zIndex="5";height=width="32px";display="none"}B.alt="Loading";B.src="/media/images/loading.gif";B.width="32";B.height="32";this.display=function(D,x,y,A,o,l,G){if(h.style.display=="none"){var N=b.getInnerDimension(),K=N[0]/2;N=N[1]/2;var Q=b.getBodyScrollPosition();
u.src="";u.style.display="none";w=D;E=b.getRealDimension(x);C=new Array(E[0]/E[1]*500,500);I[0]=C[0];F=new Array(K+Q[0],N+Q[1]);v=new Array(K-I[0]/2+Q[0],N-I[1]/2+Q[1]);f.setLinks(y,A,o,l,G);t.src=x.src;f.blendIn()}};this.setLinks=function(D,x,y,A,o){document.getElementById("galleryviewer_next_link").onclick=function(){f.switchImage(D,x,y,A,"next",o)};document.getElementById("galleryviewer_previous_link").onclick=function(){f.switchImage(D,x,y,A,"previous",o)};document.getElementById("galleryviewer_comments_link").onclick=
function(){f.showComments(o)}};this.switchImage=function(D,x,y,A,o,l){k.style.display!="none"?f.slideComments(1,null,function(){f.requestNewImage(D,x,y,A,o,l)}):f.requestNewImage(D,x,y,A,o,l)};this.requestNewImage=function(D,x,y,A,o,l){var G=g+"gallery.ajax.php";D="?action=switch&direction="+o+"&userid="+D+"&albumid="+x+"&picid="+y+"&lastpicid="+A+"&imageid="+l;o=new Array("switch",o);c.request_post(G,D,f.ajaxCallback,o,false,false)};this.showComments=function(D){if(k.style.display=="none"){f.showLoading();
var x=g+"gallery.ajax.php";D="?action=getComments&imageid="+D;var y=new Array("getComments");c.request_post(x,D,f.ajaxCallback,y,false,false)}else f.slideComments(1)};this.sendComment=function(D){var x=D.imageid.value,y=D.comment.value;if(x&&x>0&&y&&y.length>2){f.showLoading();D=g+"gallery.ajax.php";x="?action=saveComment&imageid="+x+"&comment="+encodeURIComponent(y);y=new Array("saveComment");c.request_post(D,x,f.ajaxCallback,y,false,false)}};this.deleteComment=function(D,x){f.showLoading();var y=
g+"gallery.ajax.php";D="?action=deleteComment&imageid="+x+"&commentid="+D;x=new Array("deleteComment");c.request_post(y,D,f.ajaxCallback,x,false,false)};this.ajaxCallback=function(D,x){if(D)switch(x[0]){case "switch":x=D.indexOf(" ");var y=new Array(D.substring(0,x),D.substring(x+1));switch(y[0]){case "SUCCESSFUL":eval(y[1]);t.src=newtnpic;f.resize(newuserid,newalbumid,newpicid,newlastpicid,newpic,newimageid);C=new Array(newtnsize[0]/newtnsize[1]*500,500);I[0]=C[0];break}break;case "getComments":x=
D.indexOf(" ");y=new Array(D.substring(0,x),D.substring(x+1));switch(y[0]){case "SUCCESSFUL":b.fadeOut(B,true,function(){f.gotComments(y[1],true)});break;case "ERROR":alert(y[1]);b.fadeOut(B);break}break;case "saveComment":x=D.indexOf(" ");y=new Array(D.substring(0,x),D.substring(x+1));switch(y[0]){case "SUCCESSFUL":b.fadeOut(B,true,function(){f.gotComments(y[1],false)});break;case "ERROR":alert(y[1]);b.fadeOut(B);break}case "deleteComment":x=D.indexOf(" ");y=new Array(D.substring(0,x),D.substring(x+
1));switch(y[0]){case "SUCCESSFUL":b.fadeOut(B,true,function(){f.gotComments(y[1],false)});break;case "ERROR":alert(y[1]);b.fadeOut(B);break}}};this.gotComments=function(D,x){k.innerHTML=D;if(x){k.style.display="block";f.fitCommentContainerSize();b.fadeOut(B)}};this.resize=function(D,x,y,A,o,l){f.setLinks(D,x,y,A,l);u.src="";u.style.display="none";setTimeout(function(){f.fitSize(o)},10)};this.fitSize=function(D,x){var y=b.getRealDimension(h),A=b.getRealCoordinates(h),o=C[0]-y[0];x=o>0?o<10?o>1?2:
1:20:o>10?o<1?-2:-1:-20;b.resizeTo(h,y[0]+x,null);b.moveTo(h,A[0]-x/2,null);b.resizeTo(j,y[0]+x-r,null);b.moveTo(j,A[0]-x/2+r/2+r,null);b.resizeTo(t,y[0]+x,null);b.resizeTo(u,y[0]+x,null);if(y[0]+x>C[0]&&x>0||y[0]+x<C[0]&&x<0){f.showLoading();u.src=D}else setTimeout(function(){f.fitSize(D,x)},10)};this.fitCommentContainerSize=function(){b.getRealCoordinates(h);var D=b.getRealDimension(h);b.moveTo(k,-C[0],0);b.resizeTo(k,D[0],C[1]);f.slideComments(-1)};this.slideComments=function(D,x,y){if(!x){x=0;
k.style.overflow="hidden"}var A=b.getRealCoordinates(k),o=D*A[0];pixelstepsize=o>0?o<10?o>1?2:1:C[0]/20:o>10?o<1?-2:-1:-C[0]/20;if(x<20){b.moveTo(k,A[0]+pixelstepsize,null);setTimeout(function(){f.slideComments(D,++x,y)},10)}else{if(D==-1){b.moveTo(k,0,0);k.style.overflow="auto"}else k.style.display="none";y&&y()}};f.blendIn=function(D){if(!D){D=0;h.style.display="block";j.style.display="block";b.moveTo(h,F[0]-5-r/2,F[1]-5-r/2);b.resizeTo(h,10,10);b.moveTo(j,F[0]-5+r/2+r,F[1]-5+r/2+r);b.resizeTo(j,
10-r,10-r);b.resizeTo(t,10,10);b.resizeTo(u,10,10)}var x,y=b.getRealDimension(h),A=b.getRealCoordinates(h);if(D<10){x=Math.floor((I[1]-10)/100*5/10);new_w=null;new_h=y[1]+x-2*q;new_x=null;new_y=A[1]-x/2;x=5}else if(D<30){x=Math.floor((I[0]-10)/20);new_w=y[0]+x-2*q;new_h=null;new_x=A[0]-x/2;new_y=null;x=3}else if(D<50){x=Math.floor((I[1]-10)/100*95/20);new_w=null;new_h=y[1]+x-2*q;new_x=null;new_y=A[1]-x/2;x=5}if(D<50){y=new_x?new_x:null;A=new_y?new_y:null;var o=new_x?new_x+r/2+r:null,l=new_y?new_y+
r/2+r:null,G=new_w?new_w:null,N=new_h?new_h:null,K=new_w?new_w-r:null,Q=new_h?new_h-r:null,p=G>C[0]?C[0]:G,H=N>C[1]?C[1]:N;b.resizeTo(h,G,N);b.moveTo(h,y,A);b.resizeTo(j,K,Q);b.moveTo(j,o,l);b.resizeTo(t,p,H);b.resizeTo(u,p,H);setTimeout(function(){f.blendIn(++D)},x)}else{f.showLoading();u.src=w;m.style.display="block";n.style.display="block";t.onload=null}};this.showLoading=function(){b.moveTo(B,C[0]/2-16,C[1]/2-16);b.fadeIn(B)};this.close=function(){h.style.display="none";m.style.display="none";
n.style.display="none";j.style.display="none";u.src="";u.style.display="none";k.style.display="none"};this.finish=function(){h.appendChild(t);h.appendChild(u);h.appendChild(B);try{h.appendChild(m)}catch(D){}h.appendChild(n);h.appendChild(k);document.body.appendChild(j);document.body.appendChild(h);n.onclick=f.close};b.waitForBody(f.finish)}
function ImagePreview(b,c){var f=new Helper,g=[],h=c,j=this,k=document.getElementById(b)?document.getElementById(b):b,m=document.createElement("table"),n=document.createElement("tbody"),t=document.createElement("tr"),u=document.createElement("td"),B=document.createElement("td"),w=document.createElement("td"),E=document.createElement("div"),C=document.createElement("div"),I=new Image,q=new Image,r=new Image,v=new Image,F=0,z=true,D=false,x=false,y=0,A=false;this.add=function(o,l,G,N){if(D){F=F==0?
10:F;var K;K=f.isSafari()?document.createElement("img"):new Image;var Q=document.createElement("div"),p=document.createElement("div"),H=document.createElement("a");H.onclick=function(J){if(j.mouse_inside(J))top.location=l};p.innerHTML=G;p.style.display="none";p.style.position="absolute";p.style.textAlign="center";K.width=N;K.border="0";K.name=g.length;K.onload=j.repaint;K.src=o;K.style.visibility="hidden";K.className="imagepreview_picture";K.my_length=g.length;K.onmouseover=function(J){j.mouseover(this.my_length,
J)};K.onmouseout=function(J){j.mouseout(this.my_length,J)};Q.style.width=N+"px";Q.style.position="absolute";Q.style.left=F+"px";F=F+N+20;H.appendChild(K);Q.appendChild(H);f.setOpacity(Q,0.8);g.push(new Array(o,l,G,N,K,Q,p,false,false))}else setTimeout(function(){j.add(o,l,G,N)},100)};this.display=function(){if(D){m.width="100%";m.height=h;m.cellspacing="0";m.cellpadding="0";u.width="30";u.style.cursor="pointer";u.onmousedown=function(){j.startFade();j.fade(1)};u.onmouseup=function(){j.stopFade()};
u.onmouseover=function(){u.style.backgroundColor="#FFF"};u.onmouseout=function(){u.style.backgroundColor="#FFF"};B.width="100%";B.style.position="relative";w.width="30";w.style.cursor="pointer";w.onmousedown=function(){j.startFade();j.fade(-1)};w.onmouseup=function(){j.stopFade()};width="100%";E.style.height=h+"px";E.style.overflow="hidden";E.style.position="relative";width="100%";C.style.height=h+"px";C.style.overflow="visible";C.style.position="absolute";for(var o=0;o<g.length;o++){C.appendChild(g[o][5]);
C.appendChild(g[o][6])}with(I){src="media/images/arrow_left.gif";width="15";height="60";border="0"}with(q){src="media/images/arrow_left_active.gif";width="15";height="60";border="0";style.display="none"}with(r){src="media/images/arrow_right.gif";width="15";height="60";border="0"}with(v){src="media/images/arrow_right_active.gif";width="15";height="60";border="0";style.display="none"}u.appendChild(I);u.appendChild(q);u.onmouseover=function(){I.style.display="none";q.style.display=""};u.onmouseout=function(){I.style.display=
"";q.style.display="none"};w.appendChild(r);w.appendChild(v);w.onmouseover=function(){r.style.display="none";v.style.display=""};w.onmouseout=function(){r.style.display="";v.style.display="none"};E.appendChild(C);B.appendChild(E);t.appendChild(u);t.appendChild(B);t.appendChild(w);n.appendChild(t);m.appendChild(n);k.appendChild(m);x=true;j.repaint()}else setTimeout(j.display,100)};this.startFade=function(){z=false};this.stopFade=function(){z=true};this.fade=function(o){if(!(z||!A)){var l=f.getRealDimension(B),
G=g[g.length-1][5];l=g[0][5];var N=f.getRealCoordinates(G);G=f.getRealDimension(G);l=f.getRealCoordinates(l);G=f.isSafari()?30:20;N=f.getRealCoordinates(C);l=f.getRealDimension(C);var K=f.getRealDimension(E);if(N[0]>=0&&o==1||N[0]+l[0]<K[0]&&o==-1)j.stopFade();else{f.moveTo(C,N[0]+o*G,null);setTimeout(function(){j.fade(o)},100)}}};this.mouseover=function(o){f.isSafari()&&!j.mouse_inside(event)||f.isSafari()&&g[o][8]||A&&j.highlight(o)};this.mouseout=function(o){f.isSafari()&&!j.mouse_inside(event)||
f.isSafari()&&!g[o][8]||A&&j.dehighlight(o)};this.mouse_inside=function(o){mouse_x=document.all?window.event.clientX:o.pageX;mouse_y=document.all?window.event.clientY:o.pageY;o=f.getAbsoluteCoordinates(E);var l=f.getRealDimension(E);if(mouse_x>=o[0]&&mouse_x<=o[0]+l[0]&&mouse_y>=o[1]&&mouse_y<=o[1]+l[1])return true;return false};this.highlight=function(o,l,G){if(G=g[o]){if(!l){l=0;var N=f.getRealCoordinates(G[5]),K=f.getRealDimension(G[5]);G[5].style.zIndex="1";f.moveTo(G[6],N[0]-10,N[1]+K[1]+15);
f.resizeTo(G[6],K[0]+20,K[1]+20);f.setOpacity(G[5],1)}if(l<5){N=f.getRealCoordinates(G[5]);K=f.getRealDimension(G[5]);var Q=N[1]-2;N=N[0]-2;var p=K[0]+4;K=Math.round(K[1]/K[0]*p);f.resizeTo(G[5],p,K);f.moveTo(G[5],N,Q);f.resizeTo(G[4],p,K);f.moveTo(G[4],N,Q);l++;setTimeout(function(){j.highlight(o,l,true)},20)}else{G[6].style.display="block";G[8]=true}}};this.dehighlight=function(o,l,G){if(G=g[o]){if(!l){l=0;f.setOpacity(G[5],0.8)}if(l<5){var N=f.getRealCoordinates(G[5]),K=f.getRealDimension(G[5]),
Q=N[1]+2;N=N[0]+2;var p=K[0]-4;K=Math.round(K[1]/K[0]*p);f.resizeTo(G[5],p,K);f.moveTo(G[5],N,Q);f.resizeTo(G[4],p,K);f.moveTo(G[4],N,Q);l++;setTimeout(function(){j.dehighlight(o,l,true)},20)}else{G[6].style.display="none";G[8]=false;G[5].style.zIndex="0"}}};this.repaint=function(){if(x&&y>=g.length){var o=10,l=0,G;for(l=0;l<g.length;l++){G=f.getRealDimension(g[l][4]);var N=new Array(G[0],G[1]);if(G[0]>G[1]){N[0]=g[l][3];N[1]=G[1]/G[0]*N[0]}else{N[1]=g[l][3];N[0]=G[0]/G[1]*N[1]}G=N;N=Math.round((h-
G[1])/2);g[l][5].style.top=N+"px";f.resizeTo(g[l][5],G[0],G[1]);f.resizeTo(g[l][4],G[0],G[1]);g[l][4].width=G[0];g[l][4].height=G[1];f.moveTo(g[l][5],o,N);o+=G[0]+10;g[l][4].style.visibility="visible"}f.resizeTo(C,o,null);j.scrollToCenter()}else if(y<g.length)y++;else setTimeout(j.repaint,100)};this.scrollToCenter=function(o,l){var G=f.getRealDimension(C),N=f.getRealDimension(E),K=f.getRealCoordinates(C);G=-Math.round(G[0]/2)+Math.round(N[0]/2);o||(o=0);G=K[0]-G;N=G<0?-1:1;G=G<0?-1*G:G;if(G==0)A=
true;else{l=G>500?45:G>400?40:G>300?30:G>200?25:G>100?20:G>50?15:G>25?10:G>12?5:G>6?3:G>3?2:1;f.moveTo(C,K[0]-N*l,null);o++;setTimeout(function(){j.scrollToCenter(o,l)},10)}};this.finish=function(){D=true};f.waitForBody(j.finish)}document.galleryviewer=new GalleryViewer;
function project_filterTodos(b,c,f){var g=b.project_id.value,h=b.elements,j="",k="",m="",n="";b=f||b.p.value;for(f=0;f<h.length;f++)switch(h[f].getAttribute("name")){case c:n=encodeURIComponent(h[f].value);break;case "filter[category]":j=h[f].value;break;case "filter[priority]":k=h[f].value;break;case "filter[status]":m=h[f].value;break}c=(new $gojen).ajax(10);h="/ajax/projects.ajax.php";g="task=filterTodos&project_id="+g+"&p="+b+"&filter_category="+j+"&filter_status="+m+"&filter_priority="+k+"&filter_keyword="+
n+document.project_fb;j=new Array("filterTodos");c.request_post(h,g,function(t,u){if(t&&t.length>1&&document.getElementById("project_todos").innerHTML!=t)document.getElementById("project_todos").innerHTML=t},j,false,false)}function projects_searchuser(b){var c=(new $gojen).ajax(10),f="/ajax/projects.ajax.php",g="task=searchuser&value="+encodeURIComponent(b)+document.project_fb;b=new Array("searchuser",b);c.request_post(f,g,projects_callback,b,false,false)}
function projects_markNoteAsRead(b){var c=(new $gojen).ajax(10),f="/ajax/projects.ajax.php",g="task=markNoteAsRead&noteid="+b+document.project_fb;b=new Array("markNoteAsRead",b);c.request_post(f,g,null,b,false,false)}
function projects_changeTodo(b){var c=(new $gojen).ajax(10),f="/ajax/projects.ajax.php",g="task=changeTodo&todo_id="+b.todo_id.value+"&status="+b.status.value+"&comment="+encodeURIComponent(b.comment.value)+"&progress="+b.progress.value+"&duration="+b.duration.value+document.project_fb,h=new Array("changeTodo");try{document.forms.edit_todo.status.value=b.status.value}catch(j){}document.getElementById("todoDuration").innerHTML=parseFloat(document.getElementById("todoDuration").innerHTML)+parseFloat(b.duration.value.replace(/,/,
"."));for(var k=document.helper.getElementsByClassName("todoStatus",null,new Array("span")),m=0;m<k.length;m++)k[m].style.display="none";document.helper.fadeIn("todoStatus_"+b.status.value);c.request_post(f,g,function(n){document.getElementById("todoHistory").innerHTML=n;b.comment.value="";b.duration.value="0";document.helper.fadeIn("todoSaveFeedback",function(){window.setTimeout(function(){document.helper.fadeOut("todoSaveFeedback",false)},1000)})},h,false,false)}
function projects_addUserToMemberlist(b,c){var f=document.getElementById("projectMembers"),g=document.createElement("tr"),h=document.createElement("td"),j=document.createElement("td");h.innerHTML=c;h.width="50%";h.style.textAlign="center";j.innerHTML+='<input type="hidden" name="members[]" value="'+b+'" />';j.innerHTML+='<a href="javascript:;" onclick="if (confirm(\'Sind sie sicher?\')) {document.helper.fadeOut(this.parentNode.parentNode, true); this.parentNode.parentNode.getElementsByTagName(\'input\')[0].name=\'\';}"><img src="layouts/default/images/icon_delete.png" height="21" width="22" border="0" title="L&ouml;schen" alt="L&ouml;schen" /></a>';
j.style.textAlign="center";g.appendChild(h);g.appendChild(j);document.helper.insertRowAfter(f,g)}
function projects_addCategory(b){var c=document.getElementById("projectCategory"),f=document.createElement("tr"),g=document.createElement("td"),h=document.createElement("td");g.width="50%";g.innerHTML="<span>"+b+"</span>";g.innerHTML+='<input type="text" name="category_new[]" value="'+b+"\" style=\"display: none; text-align: center; width: 90%;\" onblur=\"this.parentNode.getElementsByTagName('span')[0].innerHTML=this.value; this.parentNode.getElementsByTagName('input')[0].style.display='none'; document.helper.fadeIn(this.parentNode.getElementsByTagName('span')[0]);\" />";g.style.textAlign=
"center";g.setAttribute("onclick","if (this.getElementsByTagName('span')[0].style.display != 'none') {this.getElementsByTagName('span')[0].style.display='none'; document.helper.fadeIn(this.getElementsByTagName('input')[0]); this.getElementsByTagName('input')[0].focus();} else {this.getElementsByTagName('input')[0].style.display='none'; document.helper.fadeIn(this.getElementsByTagName('span')[0]);}",false);h.innerHTML+="<a href=\"javascript:;\" onclick=\"if (this.parentNode.parentNode.getElementsByTagName('span')[0].style.display != 'none') {this.parentNode.parentNode.getElementsByTagName('span')[0].style.display='none'; document.helper.fadeIn(this.parentNode.parentNode.getElementsByTagName('input')[0]); this.parentNode.parentNode.getElementsByTagName('input')[0].focus();} else {this.parentNode.parentNode.getElementsByTagName('input')[0].style.display='none'; document.helper.fadeIn(this.parentNode.parentNode.getElementsByTagName('span')[0]);}\"><img src=\""+
document.image_dir+'icon_edit.png" height="21px" width="22px" border="0" title="Umbenennen" alt="Umbenennen" /></a>';h.innerHTML+="&nbsp;";h.innerHTML+='<a href="javascript:;" onclick="if (confirm(\'Sind sie sicher?\')) {document.helper.fadeOut(this.parentNode.parentNode, true); this.parentNode.parentNode.getElementsByTagName(\'input\')[0].name=\'\';}"><img src="layouts/default/images/icon_delete.png" height="21" width="22" border="0" title="L&ouml;schen" alt="L&ouml;schen" /></a>';h.style.textAlign=
"center";f.appendChild(g);f.appendChild(h);document.helper.insertRowAfter(c,f)}
function projects_addStatus(b){var c=document.getElementById("projectStatus"),f=document.createElement("tr"),g=document.createElement("td"),h=document.createElement("td");g.width="50%";g.innerHTML="<span>"+b+"</span>";g.innerHTML+='<input type="text" name="status[]" value="'+b+"\" style=\"display: none; text-align: center; width: 90%;\" onblur=\"this.parentNode.getElementsByTagName('span')[0].innerHTML=this.value; this.parentNode.getElementsByTagName('input')[0].style.display='none'; document.helper.fadeIn(this.parentNode.getElementsByTagName('span')[0]);\" />";g.style.textAlign=
"center";g.setAttribute("onclick","if (this.getElementsByTagName('span')[0].style.display != 'none') {this.getElementsByTagName('span')[0].style.display='none'; document.helper.fadeIn(this.getElementsByTagName('input')[0]); this.getElementsByTagName('input')[0].focus();} else {this.getElementsByTagName('input')[0].style.display='none'; document.helper.fadeIn(this.getElementsByTagName('span')[0]);}",false);h.innerHTML+='<a name="orderup" href="javascript:;" onclick="var direction=-1; var els=this.parentNode.parentNode.parentNode.getElementsByTagName(\'tr\'); for (var i=0; i < els.length; i++) {if (els[i] == this.parentNode.parentNode) {var pre=els[i+direction]; if (pre && i+direction != 0) { if(direction == -1) this.parentNode.parentNode.parentNode.insertBefore(this.parentNode.parentNode, pre); else { if (i+direction == els.length-1) this.parentNode.parentNode.parentNode.appendChild(this.parentNode.parentNode, pre); else this.parentNode.parentNode.parentNode.insertBefore(this.parentNode.parentNode, els[i+2]); }return;}  }}"><img src="'+
document.image_dir+'icon_orderup.png" height="21px" width="22px" border="0" title="Nach oben verschieben." alt="Nach oben verschieben." /></a>';h.innerHTML+="&nbsp;";h.innerHTML+='<a name="orderup" href="javascript:;" onclick="var direction=1; var els=this.parentNode.parentNode.parentNode.getElementsByTagName(\'tr\'); for (var i=0; i < els.length; i++) {if (els[i] == this.parentNode.parentNode) {var pre=els[i+direction]; if (pre && i+direction != 0) { if(direction == -1) this.parentNode.parentNode.parentNode.insertBefore(this.parentNode.parentNode, pre); else { if (i+direction == els.length-1) this.parentNode.parentNode.parentNode.appendChild(this.parentNode.parentNode, pre); else this.parentNode.parentNode.parentNode.insertBefore(this.parentNode.parentNode, els[i+2]); }return;}  }}"><img src="'+
document.image_dir+'icon_orderdown.png" height="21px" width="22px" border="0" title="Nach unten verschieben." alt="Nach unten verschieben." /></a>';h.innerHTML+="&nbsp;";h.innerHTML+="<a href=\"javascript:;\" onclick=\"if (this.parentNode.parentNode.getElementsByTagName('span')[0].style.display != 'none') {this.parentNode.parentNode.getElementsByTagName('span')[0].style.display='none'; document.helper.fadeIn(this.parentNode.parentNode.getElementsByTagName('input')[0]); this.parentNode.parentNode.getElementsByTagName('input')[0].focus();} else {this.parentNode.parentNode.getElementsByTagName('input')[0].style.display='none'; document.helper.fadeIn(this.parentNode.parentNode.getElementsByTagName('span')[0]);}\"><img src=\""+
document.image_dir+'icon_edit.png" height="21px" width="22px" border="0" title="Umbenennen" alt="Umbenennen" /></a>';h.innerHTML+="&nbsp;";h.innerHTML+='<a href="javascript:;" onclick="if (confirm(\'Sind sie sicher?\')) {document.helper.fadeOut(this.parentNode.parentNode, true); this.parentNode.parentNode.getElementsByTagName(\'input\')[0].name=\'\';}"><img src="layouts/default/images/icon_delete.png" height="21" width="22" border="0" title="L&ouml;schen" alt="L&ouml;schen" /></a>';h.style.textAlign=
"center";f.appendChild(g);f.appendChild(h);document.helper.insertRowAfter(c,f)}
function projects_addPriority(b){var c=document.getElementById("projectPriority"),f=document.createElement("tr"),g=document.createElement("td"),h=document.createElement("td");g.width="50%";g.innerHTML="<span>"+b+"</span>";g.innerHTML+='<input type="hidden" name="priority[]" value="'+b+"\" style=\"display: none; text-align: center; width: 90%;\" onblur=\"this.parentNode.getElementsByTagName('span')[0].innerHTML=this.value; this.parentNode.getElementsByTagName('input')[0].style.display='none'; document.helper.fadeIn(this.parentNode.getElementsByTagName('span')[0]);\" />";g.style.textAlign=
"center";g.setAttribute("onclick","if (this.getElementsByTagName('span')[0].style.display != 'none') {this.getElementsByTagName('span')[0].style.display='none'; document.helper.fadeIn(this.getElementsByTagName('input')[0]); this.getElementsByTagName('input')[0].focus();} else {this.getElementsByTagName('input')[0].style.display='none'; document.helper.fadeIn(this.getElementsByTagName('span')[0]);}",false);h.innerHTML+='<a name="orderup" href="javascript:;" onclick="var direction=-1; var els=this.parentNode.parentNode.parentNode.getElementsByTagName(\'tr\'); for (var i=0; i < els.length; i++) {if (els[i] == this.parentNode.parentNode) {var pre=els[i+direction]; if (pre && i+direction != 0) { if(direction == -1) this.parentNode.parentNode.parentNode.insertBefore(this.parentNode.parentNode, pre); else { if (i+direction == els.length-1) this.parentNode.parentNode.parentNode.appendChild(this.parentNode.parentNode, pre); else this.parentNode.parentNode.parentNode.insertBefore(this.parentNode.parentNode, els[i+2]); }return;}  }}"><img src="'+
document.image_dir+'icon_orderup.png" height="21px" width="22px" border="0" title="Nach oben verschieben." alt="Nach oben verschieben." /></a>';h.innerHTML+="&nbsp;";h.innerHTML+='<a name="orderup" href="javascript:;" onclick="var direction=1; var els=this.parentNode.parentNode.parentNode.getElementsByTagName(\'tr\'); for (var i=0; i < els.length; i++) {if (els[i] == this.parentNode.parentNode) {var pre=els[i+direction]; if (pre && i+direction != 0) { if(direction == -1) this.parentNode.parentNode.parentNode.insertBefore(this.parentNode.parentNode, pre); else { if (i+direction == els.length-1) this.parentNode.parentNode.parentNode.appendChild(this.parentNode.parentNode, pre); else this.parentNode.parentNode.parentNode.insertBefore(this.parentNode.parentNode, els[i+2]); }return;}  }}"><img src="'+
document.image_dir+'icon_orderdown.png" height="21px" width="22px" border="0" title="Nach unten verschieben." alt="Nach unten verschieben." /></a>';h.innerHTML+="&nbsp;";h.innerHTML+="<a href=\"javascript:;\" onclick=\"if (this.parentNode.parentNode.getElementsByTagName('span')[0].style.display != 'none') {this.parentNode.parentNode.getElementsByTagName('span')[0].style.display='none'; document.helper.fadeIn(this.parentNode.parentNode.getElementsByTagName('input')[0]); this.parentNode.parentNode.getElementsByTagName('input')[0].focus();} else {this.parentNode.parentNode.getElementsByTagName('input')[0].style.display='none'; document.helper.fadeIn(this.parentNode.parentNode.getElementsByTagName('span')[0]);}\"><img src=\""+
document.image_dir+'icon_edit.png" height="21px" width="22px" border="0" title="Umbenennen" alt="Umbenennen" /></a>';h.innerHTML+="&nbsp;";h.innerHTML+='<a href="javascript:;" onclick="if (confirm(\'Sind sie sicher?\')) {document.helper.fadeOut(this.parentNode.parentNode, true); this.parentNode.parentNode.getElementsByTagName(\'input\')[0].name=\'\';}"><img src="layouts/default/images/icon_delete.png" height="21" width="22" border="0" title="L&ouml;schen" alt="L&ouml;schen" /></a>';h.style.textAlign=
"center";f.appendChild(g);f.appendChild(h);document.helper.insertRowAfter(c,f)}
function projects_showNoteAnswerContainer(b){if(!document.projects_answerlayer_active||!document.projects_animating){document.projects_answerlayer_active=true;document.projects_animating=true;for(var c=document.getElementById("note_container_"+b),f=document.getElementById("note_answers_"+b),g=document.helper.getRealDimension(c),h=document.helper.getRealCoordinates(c),j=document.helper.getElementsByClassName("notepad",f),k=j[0],m=c.getElementsByTagName("div"),n=0;n<m.length;n++)m[n].style.zIndex="1000";
j[0].style.display="";document.getElementById("note_"+b).style.visibility="hidden";n=document.project_fb.length>0?3:2;with(f.style){top="0px";left="-"+h[0]+"px";height="auto";width=n*g[0]+"px";zIndex="100";backgroundRepeat="repeat";visibility="hidden"}with(c.style)zIndex="100";with(k.style){left=h[0]+"px";position="relative"}c=[];b=[];for(n=0;n<j.length;n++){j[n].style.position="relative";j[n].style.display="";j[n].style.height="";j[n].style.overflow="";if(j[n].id.indexOf("addNoteAnswer_")>-1){b=
document.helper.getRealDimension(j[n]);j[n].style.display="";j[n].style.visibility="hidden"}c.push(document.helper.getRealCoordinates(j[n]))}n=document.helper.getRealDimension(f);h=document.helper.getRealCoordinates(j[0]);k=document.helper.getAbsoluteCoordinates(j[0]);m=document.helper.getRealDimension(j[0]);j[0].style.zIndex="1005";document.project_target_coords=[];f.style.height=n[1]+b[1]+"px";b=true;for(n=1;n<j.length;n++){j[n].style.position="absolute";m=document.helper.getAbsoluteCoordinates(j[n]);
m=k[1]-m[1];var t=h[0],u=document.helper.getRealDimension(j[n]);document.helper.moveTo(j[n],t,-m);m=b?function(){f.style.backgroundImage="url('/media/images/notepad_answer_bg.png')";f.style.width=3*g[0]+"px"}:null;if(!(j[n].id.indexOf("addNoteAnswer_")<0)){c[n][0]=c[n-1][0]+60;c[n][1]=c[n-1][1]+35}projects_notepadAni(j[n],c[n],1,m)}f.style.visibility="visible"}}
function projects_notepadAni(b,c,f,g,h,j){h=h||0;var k=document.helper.getRealCoordinates(b);g=g||null;if(h==0){f=f||1;c[0]-=60;c[1]-=30;j=new Array((k[0]-c[0])/-20,(k[1]-c[1])/-20);var m={};m.element=b;m.coord=k;m.targetcoord=c;f==1&&document.project_target_coords.push(m)}if(h<20){document.helper.moveTo(b,k[0]+j[0],k[1]+j[1]);h++;window.setTimeout(function(){projects_notepadAni(b,c,f,g,h,j)},20)}else{f!=1&&f!=-1&&f();document.projects_animating=false;g&&g()}}
function projects_setNoteStackView(b){if(document.backend==1){var c=document.getElementById("note_container_"+b),f=document.getElementById("note_answers_"+b),g=document.helper.getRealDimension(c),h=document.helper.getRealCoordinates(c);h=document.helper.getElementsByClassName("notepad",f);var j=c.getElementsByTagName("div");if(!document.projects_animating){for(var k=0;k<h.length;k++)if(h[k].id.indexOf("addNoteAnswer_")>-1)h[k].style.display="none";if(document.projects_answerlayer_active){document.projects_answerlayer_active=
false;document.projects_animating=true;f.style.backgroundImage="";for(c=0;c<document.project_target_coords.length;c++){document.project_target_coords[c].element.style.position="absolute";document.helper.moveTo(document.project_target_coords[c].element,document.project_target_coords[c].targetcoord[0]+60,document.project_target_coords[c].targetcoord[1]+30);f=c+1==document.project_target_coords.length?function(){projects_setNoteStackView(b)}:-1;projects_notepadAni(document.project_target_coords[c].element,
document.project_target_coords[c].coord,f)}}else{document.getElementById("note_"+b).style.visibility="";for(k=0;k<j.length;k++)j[k].style.zIndex="0";with(c.style)zIndex="0";with(f.style){backgroundImage="";width=g[0]+"px";top=left="2px";zIndex="-1";border="";height="150px";width="212px";overflow=""}for(k=0;k<h.length;k++){h[k].style.position="absolute";h[k].style.visibility="";document.helper.setOpacity(h[k],1);h[k].style.top=2*k-2+"px";h[k].style.left=2*k+"px";try{h[k].style.height=g[1]-30+"px"}catch(m){}h[k].style.overflow=
"hidden";h[k].style.zIndex=h.length-k+"";if(k>5)h[k].style.display="none"}h[0].style.display="none";h[0].style.zIndex="0"}}}}function projects_callback(b,c){b&&eval(b)}
function notes_stackBlink(b){document.helper||window.setTimeout(function(){notes_stackBlink(-b)},500);var c=document.helper.getElementsByClassName("notes_stackBlink",null,new Array("div")),f=b?"1":"0.6";if(!(c.length<1)){for(var g=0;g<c.length;g++)document.helper.setOpacity(c[g],f);window.setTimeout(function(){notes_stackBlink(!b)},500)}}
function project_showTodo(b,c,f){f=new WindowControl("project_todo_window_"+c,document.body,false,"");f.set("dimension",800,600);f.set("titlebarDimension",800,20);f.set("title",Base64.decode(c));f.set("contentfile","/ajax/projects.ajax.php","?task=showTodo&todo_id="+b+document.project_fb);f.set("position",WindowControl.POSITION.CENTER);f.set("modal",true);f.set("delete_on_close",true);f.set("no_fade",true);f.show()}
function project_showBillDetails(b,c,f){var g=new WindowControl("project_bill_window_"+c,document.body,false,"");g.set("dimension",700,550);g.set("titlebarDimension",700,20);g.set("title",c);g.set("contentfile","/ajax/projects.ajax.php","?task=showBillDetails&project_id="+b+"&date="+f+document.project_fb);g.set("position",WindowControl.POSITION.CENTER);g.set("modal",true);g.set("delete_on_close",true);g.set("no_fade",true);g.show()}function project_finish(){}document.project_fb="";
window.setTimeout(function(){notes_stackBlink(true)},500);document.helper.waitForBody(project_finish);
function tagging_open_tagform(b,c){if(b&&document.getElementById("tagging_"+b+"_tagshow")&&document.getElementById("tagging_"+b+"_tagform"))if(document.getElementById("tagging_"+b+"_tagshow").style.display!="none"||document.getElementById("tagging_"+b+"_tagshow_inactive").style.display!="none"){document.getElementById("tagging_"+b+"_tagshow").style.display="none";document.getElementById("tagging_"+b+"_tagshow_inactive").style.display="none";document.getElementById("tagging_"+b+"_tagform").style.display=
"block";c.tags.focus()}return false}function tagging_save_tags(b,c){var f="ajax/tagging.ajax.php";if(document.relative_path)f=document.relative_path+f;var g="?tags="+escape(c.tags.value)+"&action="+c.action.value+"&related_id="+c.related_id.value+"&related_link="+escape(c.related_link.value);g+="&related_title="+escape(c.related_title.value)+"&type="+c.type.value;func_param=new Array("save_tags",c,b);document.tagging_ajax.request_post(f,g,tagging_callback,func_param,false,false);return false}
function tagging_search_tags(b){if(b.tags.value.length<1){document.tagging_helper.fadeOut(document.tagging_quicksearch_div,true);if(document.tagging_helper.isIE())document.tagging_quicksearch_iframe.style.display="none";return false}document.tagging_timer&&clearTimeout(document.tagging_timer);document.tagging_timer=window.setTimeout(function(){tagging_search(b)},250);return false}
function tagging_search(b){var c="ajax/tagging.ajax.php";if(document.relative_path)src_fil=document.relative_path+c;var f="?action="+b.action.value+"&tags="+escape(b.tags.value)+"&type="+b.type.value;func_param=new Array("search_tags",b);document.tagging_ajax.request_post(c,f,tagging_callback,func_param,false,false);return false}
function tagging_callback(b,c){var f=c[1],g=c[2];switch(c[0]){case "save_tags":if(b){f=b.indexOf(" ");f=new Array(b.substring(0,f),b.substring(f+1));switch(f[0]){case "SUCCESSFUL":b=f[1].split(",");b=new Array(f[1].substring(0,f[1].indexOf(",")),f[1].substring(f[1].indexOf(",")+1));f=b[0];c=new Array(b[1].substring(0,b[1].indexOf(",")),b[1].substring(b[1].indexOf(",")+1));b=c[1];c=c[0];var h="";h=c.length<2?document.tagging_lang_notagmsg:c;document.getElementById("tagging_"+g+"_alltags").innerHTML=
f;document.getElementById("tagging_"+g+"_tagshow").innerHTML=h;document.getElementById("tagging_"+g+"_tagshow_inactive").innerHTML="("+b+")";document.getElementById("tagging_"+g+"_tagform").style.display="none";f=c.length<=0&&b.length<=0||c.length>0?"block":"none";b=b.length<1?"none":"block";document.getElementById("tagging_"+g+"_tagshow").style.display=f;document.getElementById("tagging_"+g+"_tagshow_inactive").style.display=b;break;case "ERROR":alert(f[1]);break}}break;case "search_tags":if(b){if(document.tagging_quicksearch_div.innerHTML!=
b)document.tagging_quicksearch_div.innerHTML=b;if(document.tagging_quicksearch_div.style.display=="none"){document.tagging_quicksearch_div.style.display="block";document.tagging_helper.fadeIn(document.tagging_quicksearch_div)}g=document.tagging_helper.getRealDimension(document.tagging_quicksearch_div);b=document.tagging_helper.getRealDimension(f);c=document.tagging_helper.getRealCoordinates(document.tagging_quicksearch_div);f=document.tagging_helper.getAbsoluteCoordinates(f);document.tagging_helper.moveTo(document.tagging_quicksearch_div,
f[0]-g[0]+b[0]-3,f[1]+b[1]+3);g=document.tagging_helper.getRealDimension("tagging_quicksearch_results");f=document.tagging_helper.getAbsoluteCoordinates("tagging_quicksearch_results");if(document.tagging_helper.isIE()){document.tagging_helper.resizeTo(document.tagging_quicksearch_iframe,g[0],g[1]);document.tagging_helper.moveTo(document.tagging_quicksearch_iframe,f[0],f[1]);document.tagging_quicksearch_iframe.style.display="block"}}break}}
function tagging_onclick(){if(document.tagging_quicksearch_div.style.display!="none"){document.tagging_helper.fadeOut(document.tagging_quicksearch_div,true);if(document.tagging_helper.isIE())document.tagging_quicksearch_iframe.style.display="none"}}
function tagging_finish(){document.body.appendChild(document.tagging_quicksearch_div);document.tagging_helper.addEvent(document.body,"click",tagging_onclick,false);document.tagging_helper.isIE()&&document.body.appendChild(document.tagging_quicksearch_iframe)}document.tagging_ajax=(new $gojen).ajax(5);document.tagging_helper=new Helper;document.tagging_quicksearch_div=document.createElement("div");document.tagging_quicksearch_div.setAttribute("id","tagging_quicksearch_div");
document.tagging_quicksearch_div.setAttribute("class","tagging_quicksearch_div");document.tagging_quicksearch_div.style.display="none";document.tagging_quicksearch_div.style.position="absolute";document.tagging_quicksearch_div.style.width="420px";document.tagging_quicksearch_div.style.height="520px";document.tagging_quicksearch_div.style.maxWidth="420px";document.tagging_quicksearch_div.style.maxHeight="520px";document.tagging_quicksearch_div.style.bottom="0";
document.tagging_quicksearch_div.style.right="0";document.tagging_quicksearch_div.style.overflow="auto";document.tagging_quicksearch_div.style.zIndex="12000";document.tagging_helper.setOpacity(document.tagging_quicksearch_div,0);
if(document.tagging_helper.isIE()){document.tagging_quicksearch_iframe=document.createElement("iframe");document.tagging_quicksearch_iframe.setAttribute("id","tagging_quicksearch_iframe");document.tagging_quicksearch_iframe.setAttribute("src","");document.tagging_quicksearch_iframe.setAttribute("frameborder","0");document.tagging_quicksearch_iframe.setAttribute("marginwidth","0");document.tagging_quicksearch_iframe.setAttribute("scrolling","no");document.tagging_quicksearch_iframe.style.display="none";
document.tagging_quicksearch_iframe.style.position="absolute";document.tagging_quicksearch_iframe.style.width="420px";document.tagging_quicksearch_iframe.style.height="520px";document.tagging_quicksearch_iframe.style.border="0px";document.tagging_quicksearch_iframe.zIndex="11999"}document.tagging_helper.waitForBody(tagging_finish);
function video_previewSlide(b,c){c=!c||c>20||!$gojen("video_preview_image_"+b+"_"+c).element()?0:c;var f=$gojen("video_preview_image_"+b+"_"+c).element().getElementsByTagName("span");$gojen("video_preview_image_"+b).get("<img>").element(0).src=$gojen("video_preview_image_"+b+"_"+c).get("<span>").element(0).innerHTML.replace(/amp;/g,"");$gojen("video_preview_image_"+b).get("<img>").element(1).src=$gojen("video_preview_image_"+b+"_"+c).get("<span>").element(1).innerHTML.replace(/amp;/g,"");document.video_previewTimer[b]=
window.setTimeout(function(){video_previewSlide(b,++c)},500)}
function video_previewSlideStop(b){if(document.video_previewTimer[b]){$gojen("video_preview_image_"+b).element().getElementsByTagName("img")[0].src=$gojen("video_preview_image_"+b).element().getElementsByTagName("img")[0].src.replace(/previewnumber/g,"");$gojen("video_preview_image_"+b).element().getElementsByTagName("img")[1].src=$gojen("video_preview_image_"+b).element().getElementsByTagName("img")[1].src.replace(/previewnumber/g,"");window.clearTimeout(document.video_previewTimer[b]);document.video_previewTimer[b]=
null}}document.video_previewTimer={};
function Minimizer(b,c,f,g,h,j,k,m){if(!Minimizer.toolbar_x)Minimizer.toolbar_x=0;if(!Minimizer.lock)Minimizer.lock=false;if(!Minimizer.objects)Minimizer.objects=[];var n=this;Minimizer.objects.push(n);var t=document.getElementById(b)?document.getElementById(b):b,u=Minimizer.objects.length-1,B=f,w=new Helper;b=w.getCoordinates(t);var E=w.getRealCoordinates(t),C=w.getRealDimension(t),I=t.style.position;h=h;var q=0,r=g,v,F;if(j)var z=j,D=k,x=m,y=0;this.finish=function(){v=document.createElement("div");
F=document.createElement("img");with(v.style){I="absolute";display="none";top=E[1]+"px";left=E[0]+"px";width=D+"px";heigh=x+"px";border="0px";zIndex="10000"}with(F){src=z;width=D;height=x;border="0";alt=title=c}w.setOpacity(v,0);w.addEvent(v,"click",function(){n.minimize()},false);v.appendChild(F);document.body.appendChild(v)};this.minimize=function(A){h==0&&this.hide(0,A);h==1&&this.iconify(0,A)};this.hide=function(A,o){curr_dim=A==0&&q==0?w.getRealDimension(t):w.getDimension(t);if(A==0&&q==0)C=
curr_dim;var l=(C[1]-B)/11;l=q==1?-l:l;if(q==1){w.resizeTo(t,null,B);r&&r(new Array(0,B))}if(A<10){A++;l=curr_dim[1]-l;w.resizeTo(t,null,l);r&&r(new Array(0,l));setTimeout(function(){n.hide(A,o)},50)}else{if(q==0){w.resizeTo(t,null,B);q=1;l=B}else{q=0;w.resizeTo(t,null,C[1]);l=C[1]}r&&r(new Array(0,l),true)}};this.iconify=function(A,o){if(!(Minimizer.lock&&A==0)){Minimizer.lock=true;if(A==0&&q==1){t.style.display="block";w.setOpacity(t,0)}curr_dim=A==0&&q==0?w.getRealDimension(t):w.getDimension(t);
curr_coord=q==0?w.getRealCoordinates(t):w.getRealCoordinates(v);if(A==0){if(q==0){C=curr_dim;E=curr_coord;w.moveTo(t,E[0],E[1]);w.moveTo(v,E[0],E[1]);w.resizeTo(v,curr_dim[0],curr_dim[1]);F.width=curr_dim[0];F.height=curr_dim[1]}else{w.moveTo(t,y,w.getInnerDimension()[1]-x);w.moveTo(v,y,w.getInnerDimension()[1]-x);w.resizeTo(v,D,x);w.resizeTo(t,D,x);F.width=D;F.height=x;F.style.display="block";curr_dim=new Array(D,x);curr_coord=new Array(y,w.getInnerDimension()[1]-x)}r&&r(new Array(curr_dim[0],curr_dim[1]));
v.style.display="block";v.style.position="absolute";t.style.position="absolute"}var l=q==0?Minimizer.toolbar_x:w.getRealCoordinates(t)[0],G=w.getInnerDimension()[1]-x,N=(E[0]-l)/11,K=(E[1]-G)/11,Q=(C[0]-D)/11,p=(C[1]-x)/11;N=q==1?-N:N;K=q==1?-K:K;Q=q==1?-Q:Q;p=q==1?-p:p;opstepsize=q==1?0.1:-0.1;if(A==0&&q==1){diff=q==0?-D:D;for(var H=0;H<Minimizer.objects.length;H++)H!=u&&Minimizer.objects[H].toolbar_change(diff,w.getRealCoordinates(t)[0])}if(o)A=10;if(A<10){A++;new_x=curr_coord[0]-N;new_y=curr_coord[1]-
K;new_w=curr_dim[0]-Q;new_h=curr_dim[1]-p;w.moveTo(t,new_x,new_y);w.moveTo(v,new_x,new_y);w.resizeTo(t,new_w,new_h);w.resizeTo(v,new_w,new_h);F.width=new_w;F.height=new_h;w.incOpacity(t,opstepsize);w.incOpacity(v,-opstepsize);r&&r(new Array(new_w,new_h));setTimeout(function(){n.iconify(A,o)},50)}else{if(q==0){t.style.display="none";v.style.position=w.isIE()?"absolute":"fixed";w.moveTo(t,l,G);w.moveTo(v,l,G);w.resizeTo(t,D,x);w.resizeTo(v,D,x);F.width=D;F.height=x;y=l;Minimizer.toolbar_x+=D;w.setOpacity(v,
1);w.setOpacity(t,0);v.style.display="block";q=1;r&&r(new Array(D,x),true)}else{v.style.display="none";t.style.display="block";t.style.position=I;w.moveTo(t,E[0],E[1]);w.moveTo(v,E[0],E[1]);w.resizeTo(t,C[0],C[1]);w.resizeTo(v,C[0],C[1]);q=0;Minimizer.toolbar_x-=D;r&&r(new Array(C[0],C[1]),true)}Minimizer.lock=false}}};this.toolbar_change=function(A,o){if(q!=0){var l=new Array(y,w.getInnerDimension()[1]-x);w.moveTo(t+"_icon",y,w.getInnerDimension()[1]-x);q==1&&l[0]>o&&setTimeout(function(){n.replace_icon(0,
l[0]-A,A/11)},50)}};this.replace_icon=function(A,o,l){if(A<10){A++;var G=w.getCoordinates(t);w.moveTo(t+"_icon",G[0]-l,null);setTimeout(function(){n.replace_icon(A,o,l)},50)}else{w.moveTo(t+"_icon",o,null);y=o}};h==1&&w.waitForBody(function(){n.finish()})}
function ColorSelector(b){if(!ColorSelector.id)ColorSelector.id=0;ColorSelector.id++;var c=ColorSelector.id,f=null,g=this,h=b?b:"/media/images/",j=new Array(3);j[0]=255;j[1]=0;j[2]=0;var k=127,m=false,n=null,t=document.createElement("div"),u=document.createElement("div"),B=document.createElement("div"),w=document.createElement("div");w=document.createElement("div");var E=document.createElement("span"),C=document.createElement("div"),I=document.createElement("div"),q=[];this.finish=function(){document.helper.resizeTo(t,
430,300);t.style.display="none";t.style.position="absolute";t.style.backgroundColor="#F1F0EA";var r="";r+='<table border="0" cellspacing="0" cellpadding="0" style="margin: 5px;">';r+="<tr>";r+='<td width="390"></td><td width="20"></td><td width="5"><!-- --\></td>';r+="</tr>";r+="<tr>";r+='<td style="text-align: left; padding-top: 5px;"></td>';r+="<td><!-- --\></td>";r+="<td><!-- --\></td>";r+="</tr>";r+="</table>";t.innerHTML=r;u.style.position="relative";u.style.width="384px";u.style.height="256px";
u.style.border="1px solid #000";u.innerHTML='<img src="'+h+'colorselector.png" width="384" height="256" alt="" title="" border="" />';document.helper.addEvent(u,"click",g.onclickColorarea,false);B.style.width="20px";B.style.height="256px";B.style.border="1px solid #000";w.style.width="20px";w.style.height="20px";w.style.border="1px solid #000";C.style.position="absolute";C.style.width="20px";C.style.height="20px";C.style.backgroundImage="url('"+h+"crosshair.gif')";I.style.position="absolute";I.style.width=
"10px";I.style.height="20px";I.style.backgroundImage="url('"+h+"arrow.gif')";E.innerHTML='<input type="button" name="colsel_ok" value="OK" />&nbsp;<input type="button" name="colsel_cancel" value="Abbrechen" />';r=t.getElementsByTagName("td");r[0].appendChild(u);r[1].appendChild(B);r[2].appendChild(I);r[3].appendChild(E);r[4].appendChild(w);u.insertBefore(C,u.firstChild);r=r[3].getElementsByTagName("input");document.helper.addEvent(r[1],"click",g.close,false);document.helper.addEvent(r[0],"click",
g.apply,false);document.body.appendChild(t);m=true};this.show=function(){if(!m)return window.setTimeout(g.show,100);var r=document.helper.getInnerDimension();last_scroll=document.helper.getBodyScrollPosition();t.style.zIndex=document.helper.getHeighestZIndex()+1;var v=(r[0]-430)/2+last_scroll[0];r=(r[1]-430)/2+last_scroll[1];document.helper.moveTo(t,v,r);t.style.display=""};this.apply=function(){var r="#"+document.helper.toHexColor(w.style.backgroundColor);if(n)n.value=r;f&&f(r);g.close()};this.close=
function(){t.style.display="none"};this.setInput=function(r){n=r};this.setColor=function(r){if(r){if(typeof r=="Array"&&r.length==3){j=r;g.fill_int();w.backgroundColor="#"+document.helper.toHexColor(r)}else if(typeof r=="string"&&(r.length==6||r.length==7)){r=r.replace("#","");var v=document.helper.hexToDec(r.substring(0,2)),F=document.helper.hexToDec(r.substring(2,4)),z=document.helper.hexToDec(r.substring(4,6));j[0]=v;j[1]=F;j[2]=z;g.fill_int();w.style.backgroundColor="#"+r}k=127}else{g.fill_int();
w.style.backgroundColor=q[k].style.backgroundColor}};this.setCrosshair=function(r,v){document.helper.moveTo(C,r-10,v-10)};this.setArrow=function(){I.style.top=k+"px"};this.onclickIntarea=function(r,v){k=v;g.setColor();g.setArrow()};this.onclickColorarea=function(r){var v=document.all?window.event.clientX:r.pageX,F=document.all?window.event.clientY:r.pageY,z=document.helper.getAbsoluteCoordinates(u),D=document.helper.getBodyScrollPosition();r=v-z[0]-1;v=F-z[1]-1;if(document.helper.isIE()||document.helper.isIE7()){r+=
D[0];v+=D[1]}F=1;z=-1;g.setCrosshair(r,v);var x=255,y=0,A=0;D=new Array(x,y,A);x=new Array(x,y,A);for(x=0;x<r;x++){if(F>-1){D[F]+=4;if(D[F]>255)D[F]=255}if(z>-1){D[z]-=4;if(D[z]<0)D[z]=0}if(x==63){F=-1;z=0}else if(x==127){F=2;z=-1}else if(x==191){F=-1;z=1}else if(x==255){F=0;z=-1}else if(x==319){F=-1;z=2}}r=(D[0]-128)/256;F=(D[1]-128)/256;z=(D[2]-128)/256;if(v>=255){D[0]=127;D[1]=127;D[2]=127}else{D[0]-=v*r;D[1]-=v*F;D[2]-=v*z}j[0]=Math.round(D[0]);j[1]=Math.round(D[1]);j[2]=Math.round(D[2]);g.fill_int();
g.setColor()};this.setOnChange=function(r){f=r};this.fill_int=function(){if(B.childNodes.length<1){q=[];for(var r=0;r<256;r++){q[r]=document.createElement("div");q[r].style.width="20px";q[r].style.height="1px";q[r].innerHTML="<!-- --\>";q[r].my_i=r;document.helper.addEvent(q[r],"click",function(l){g.onclickIntarea(l,this.my_i)},false);B.appendChild(q[r])}}var v=new Array(255,255,255),F=(255-j[0])/128,z=(255-j[1])/128,D=(255-j[2])/128,x=(j[0]-0)/128,y=(j[1]-0)/128,A=(j[2]-0)/128;for(r=0;r<256;r++){red=
document.helper.decToHex(Math.round(v[0]));green=document.helper.decToHex(Math.round(v[1]));blue=document.helper.decToHex(Math.round(v[2]));try{q[r].style.backgroundColor="#"+red+green+blue}catch(o){return}if(r<127){v[0]-=F;v[1]-=z;v[2]-=D;if(v[0]<j[0])v[0]=j[0];if(v[1]<j[1])v[1]=j[1];if(v[2]<j[2])v[2]=j[2]}else if(r==255)v=new Array(0,0,0);else{v[0]-=x;v[1]-=y;v[2]-=A;if(v[0]<0)v[0]=0;if(v[1]<0)v[1]=0;if(v[2]<0)v[2]=0}}};document.helper.waitForBody(g.finish)}
function ColorSelector_old(b){if(!ColorSelector.id)ColorSelector.id=0;ColorSelector.id++;var c=ColorSelector.id,f=new Helper,g=null,h=null,j=this,k=true,m=false,n=false;b=b?b:"/media/images/";var t=new Array(3),u=new Array(0,0);t[0]=255;t[1]=0;t[2]=0;var B=127,w=document.createElement("div"),E=document.createElement("div"),C=document.createElement("div"),I=document.createElement("div"),q=document.createElement("div"),r=document.createElement("div"),v=document.createElement("div"),F=document.createElement("div"),
z=document.createElement("input"),D=document.createElement("input"),x=document.createElement("img"),y=document.createElement("img"),A=document.createElement("img");w.setAttribute("id","colorselector"+c,false);E.setAttribute("id","colorselector"+c+"_int",false);C.setAttribute("id","colorselector"+c+"_ca",false);I.setAttribute("id","colorselector"+c+"_ca_img",false);q.setAttribute("id","colorselector"+c+"_ca_overlay",false);r.setAttribute("id","colorselector"+c+"_cc",false);v.setAttribute("id","colorselector"+
c+"_ad",false);F.setAttribute("id","colorselector"+c+"_ad_overlay",false);z.setAttribute("id","colorselector"+c+"_ok",false);D.setAttribute("id","colorselector"+c+"_cancel",false);x.setAttribute("src",b+"colorselector.png",false);x.setAttribute("width","384",false);x.setAttribute("height","256",false);x.setAttribute("border","0",false);x.setAttribute("galleryimg","no",false);y.setAttribute("src",b+"crosshair.gif",false);y.setAttribute("width","20",false);y.setAttribute("height","20",false);y.setAttribute("border",
"0",false);y.setAttribute("galleryimg","no",false);y.setAttribute("id","colorselector"+c+"_crosshair",false);A.setAttribute("src",b+"arrow.gif",false);A.setAttribute("width","10",false);A.setAttribute("height","10",false);A.setAttribute("border","0",false);A.setAttribute("galleryimg","no",false);A.setAttribute("id","colorselector"+c+"_arrow",false);z.setAttribute("type","button",false);z.setAttribute("value","OK",false);D.setAttribute("type","button",false);D.setAttribute("value","Abbrechen",false);
w.style.position="absolute";w.style.width="500px";w.style.height="300px";w.style.display="none";w.style.border="1px solid #C1BFBB";w.style.backgroundColor="#F1F0EA";w.style.zIndex="15000";C.style.position="absolute";C.style.width="384px";C.style.height="256px";C.style.top="5px";C.style.left="5px";C.style.overflow="hidden";C.style.border="1px solid #000";I.style.position="relative";I.style.width="384px";I.style.height="256px";I.style.top="0px";q.style.position="absolute";q.style.width="384px";q.style.height=
"256px";C.style.top="5px";C.style.left="5px";C.style.border="1px solid #C1BFBB";q.style.zIndex="15000";q.style.backgroundColor="#000";r.style.position="absolute";r.style.left="446px";r.style.top="231px";r.style.width="30px";r.style.height="30px";r.style.border="1px solid #C1BFBB";r.style.zIndex="999999999";v.style.position="absolute";v.style.left="422px";v.style.top="5px";v.style.width="10px";v.style.height="256px";v.style.border="0px";F.style.position="absolute";F.style.left="422px";F.style.top=
"5px";F.style.width="10px";F.style.height="256px";F.style.border="0px";F.style.backgroundColor="#000";E.style.position="absolute";E.style.top="5px";E.style.width="20px";E.style.height="256px";E.style.left="400px";E.style.border="1px solid #C1BFBB";E.style.zIndex="999999999";z.style.position="absolute";z.style.top="270px";z.style.left="5px";z.style.width="40px";D.style.position="absolute";D.style.top="270px";D.style.left="60px";D.style.width="100px";y.style.position="absolute";y.style.top="-10px";
y.style.left="-10px";y.style.zIndex="12000";A.style.position="absolute";A.style.left="0px";A.style.zIndex="12000";I.appendChild(x);v.appendChild(A);C.appendChild(I);C.appendChild(y);w.appendChild(q);w.appendChild(E);w.appendChild(C);w.appendChild(r);w.appendChild(v);w.appendChild(F);w.appendChild(z);w.appendChild(D);f.setOpacity(F,0);f.setOpacity(q,0);f.setOpacity(w,0);f.setOpacity(C,1);f.setOpacity(v,1);this.build_table=function(){for(var o="",l=0;l<256;l++)o+='<div id="colorselector'+c+"_intval"+
l+'" style="position: relative; width: 20px; height: 1px; background-color: #00F; z-index: 99999999;"><!-- --\></div>';document.getElementById("colorselector"+c+"_int").innerHTML=o;o=f.addEvent;for(l=0;l<256;l++){document.getElementById("colorselector"+c+"_intval"+l).my_i=l;o(document.getElementById("colorselector"+c+"_intval"+l),"mousedown",function(G){j.intclick(G,this.my_i)},false);o(document.getElementById("colorselector"+c+"_intval"+l),"mouseover",function(G){j.intover(G,this.my_i)},false)}};
this.show=function(){if(k){k=false;this.build_table()}this.setCrosshair(-10,-10);this.setArrow();this.fill_int();this.setColor();var o=f.getInnerDimension();u=f.getBodyScrollPosition();w.style.zIndex=document.helper.getHeighestZIndex()+1;var l=(o[0]-500)/2+u[0];o=(o[1]-300)/2+u[1];f.moveTo("colorselector"+c,l,o);document.getElementById("colorselector"+c).style.display="block";document.helper.setOpacity("colorselector"+c,1)};this.apply=function(){var o="#"+f.toHexColor(document.getElementById("colorselector"+
c+"_cc").style.backgroundColor);if(g)g.value=o;h&&h(o);j.close()};this.close=function(){document.getElementById("colorselector"+c).style.display="none"};this.setInput=function(o){g=document.getElementById(o)?document.getElementById(o):o};this.setOnChange=function(o){if(o)h=o};this.fill_int=function(){for(var o=new Array(255,255,255),l=(255-t[0])/128,G=(255-t[1])/128,N=(255-t[2])/128,K=(t[0]-0)/128,Q=(t[1]-0)/128,p=(t[2]-0)/128,H=0;H<256;H++){red=f.decToHex(Math.round(o[0]));green=f.decToHex(Math.round(o[1]));
blue=f.decToHex(Math.round(o[2]));try{if(document.getElementById("colorselector"+c+"_intval"+H))document.getElementById("colorselector"+c+"_intval"+H).style.backgroundColor="#"+red+green+blue}catch(J){continue}if(H<127){o[0]-=l;o[1]-=G;o[2]-=N;if(o[0]<t[0])o[0]=t[0];if(o[1]<t[1])o[1]=t[1];if(o[2]<t[2])o[2]=t[2]}else if(H==255)o=new Array(0,0,0);else{o[0]-=K;o[1]-=Q;o[2]-=p;if(o[0]<0)o[0]=0;if(o[1]<0)o[1]=0;if(o[2]<0)o[2]=0}}};this.setColor=function(o){if(o){if(typeof o=="Array"&&o.length==3){t=o;
k||j.fill_int();j.setCrosshair(-10,-10);document.getElementById("colorselector"+c+"_cc").style.backgroundColor="#"+f.toHexColor(o)}else if(typeof o=="string"&&(o.length==6||o.length==7)){o=o.replace("#","");var l=f.hexToDec(o.substring(0,2)),G=f.hexToDec(o.substring(2,4)),N=f.hexToDec(o.substring(4,6));t[0]=l;t[1]=G;t[2]=N;k||j.fill_int();j.setCrosshair(-10,-10);document.getElementById("colorselector"+c+"_cc").style.backgroundColor="#"+o}B=127}else if(!k)document.getElementById("colorselector"+c+
"_cc").style.backgroundColor=document.getElementById("colorselector"+c+"_intval"+B).style.backgroundColor};this.intclick=function(o,l){B=l;n=true;j.setColor();j.setArrow()};this.caclick=function(o){var l=document.all?window.event.clientX:o.pageX;o=document.all?window.event.clientY:o.pageY;var G=f.getAbsoluteCoordinates("colorselector"+c+"_ca"),N=l-G[0]-1;l=o-G[1]-1;G=1;var K=-1;m=true;j.setCrosshair(N,l);var Q=255,p=0,H=0;o=new Array(Q,p,H);Q=new Array(Q,p,H);for(Q=0;Q<N;Q++){if(G>-1){o[G]+=4;if(o[G]>
255)o[G]=255}if(K>-1){o[K]-=4;if(o[K]<0)o[K]=0}if(Q==63){G=-1;K=0}else if(Q==127){G=2;K=-1}else if(Q==191){G=-1;K=1}else if(Q==255){G=0;K=-1}else if(Q==319){G=-1;K=2}}N=(o[0]-128)/256;G=(o[1]-128)/256;K=(o[2]-128)/256;if(l>=255){o[0]=127;o[1]=127;o[2]=127}else{o[0]-=l*N;o[1]-=l*G;o[2]-=l*K}t[0]=Math.round(o[0]);t[1]=Math.round(o[1]);t[2]=Math.round(o[2]);j.fill_int();j.setColor()};this.adclick=function(o){o=document.all?window.event.clientY:o.pageY;var l=f.getAbsoluteCoordinates("colorselector"+c+
"_ad")[1];o=o-l;if(o<0)o=0;if(o>255)o=255;B=o;n=true;j.setColor();j.setArrow()};this.mouse_up=function(o){n=m=false};this.mouse_move=function(o){if(m)j.caclick(o);else n&&j.adclick(o)};this.intover=function(o,l){n&&j.intclick(o,l)};this.setCrosshair=function(o,l){var G=document.getElementById("colorselector"+c+"_crosshair").style;if(o&&l){G.top=l-10+"px";G.left=o-10+"px"}};this.setArrow=function(){document.getElementById("colorselector"+c+"_arrow").style.top=B-4+"px"};this.finish=function(){document.body.appendChild(w);
f.addEvent(document.getElementById("colorselector"+c+"_ca_overlay"),"mousedown",j.caclick,false);f.addEvent(document.getElementById("colorselector"+c+"_ad_overlay"),"mousedown",j.adclick,false);f.addEvent(document,"mouseup",j.mouse_up,false);f.addEvent(document.getElementById("colorselector"+c+"_ca_overlay"),"mousemove",j.mouse_move,false);f.addEvent(document.getElementById("colorselector"+c+"_ad_overlay"),"mousemove",j.mouse_move,false);f.addEvent(w,"selectstart",function(){return false},false);
z.onclick=j.apply;D.onclick=j.close};f.waitForBody(j.finish)}
function Goeditor(b,c){if(document.helper.isIE())return false;b=b;var f=document.getElementById(b),g=b;c=c||"";var h=this,j=null,k=false,m=null,n=null;g=null;var t="",u=null,B=null,w=g=g=g=null,E=null,C=null,I=g=null,q=null,r=null,v=null,F=false;g=false;g="";g=g=0;var z={};g=[];var D=false,x=false,y=false,A=null,o=new Array(0,0);g={};g={};g=new Array("address","blockquote","center","del","dir","div","dl","fieldset","form","h1-6","hr","ins","isindex","menu","noframes","noscript","ol","p","pre","table",
"ul","center","dir","isindex","menu","noframes");g=new Array("a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","img","ins","input","iframe","kbd","label","map","object","q","samp","script","select","small","span","strong","sub","sup","textarea","tt","var","applet","basefont","font","iframe","u","s","strike");var l={},G=top.location.protocol+"//"+top.location.hostname+"/media/images/layoutEditor/",N=new Array("bold","italic","underline",
"delimiter","strikethrough","subscript","superscript","delimiter","justifyleft","justifycenter","justifyright","delimiter","insertorderedlist","insertunorderedlist","delimiter","horizontalline","delimiter","print","fullscreen","source","media","delimiter","newline","fontname","fontSize","delimiter","outdent","indent","delimiter","undo","redo","delimiter","link","delimiter","forecolor","hilitecolor","delimiter");l.bold={};l.bold.image="iconBold.png";l.bold.hover="iconBoldHover.png";l.bold.active="iconBoldActive.png";
l.bold.alt="Fett";l.bold.title="Fett schreiben";l.bold.cssName="fontWeight";l.bold.cssValues="bold|normal";l.bold.nonCssTag="strong|u";l.bold["function"]="execCommand";l.italic={};l.italic.image="iconItalic.png";l.italic.hover="iconItalicHover.png";l.italic.active="iconItalicActive.png";l.italic.alt="Kursiv";l.italic.title="Kursiv schreiben";l.italic.cssName="fontStyle";l.italic.cssValues="italic|normal";l.italic.nonCssTags="em|i";l.italic["function"]="execCommand";l.underline={};l.underline.image=
"iconUnderline.png";l.underline.hover="iconUnderlineHover.png";l.underline.active="iconUnderlineActive.png";l.underline.alt="Unterstreichen";l.underline.title="Unterstreichen";l.underline.cssName="textDecoration";l.underline.cssValues="underline|none";l.underline.nonCssTags="u";l.underline["function"]="execCommand";l.paste={};l.paste.image="iconPaste.png";l.paste.hover="iconPasteHover.png";l.paste.active="iconPasteActive.png";l.paste.alt="Einf\u00fcgen";l.paste.title="Einf\u00fcgen";l.paste.cssName=
"";l.paste.cssValues="";l.paste.nonCssTags="";l.paste["function"]="showPopup";l.paste.param1="Einf\u00fcgen";l.paste.param2="/ajax/goeditor.ajax.php";l.paste.param3="?task=insertClipboard&goeditid="+b+"&backend="+document.backend;l.strikethrough={};l.strikethrough.image="iconStrike.png";l.strikethrough.hover="iconStrikeHover.png";l.strikethrough.active="iconStrikeActive.png";l.strikethrough.alt="Durchstreichen";l.strikethrough.title="Durchstreichen";l.strikethrough.cssName="textDecoration";l.strikethrough.cssValues=
"strikethrough|none";l.strikethrough.nonCssTags="strike";l.strikethrough["function"]="execCommand";l.subscript={};l.subscript.image="iconSub.png";l.subscript.hover="iconSubHover.png";l.subscript.active="iconSubActive.png";l.subscript.alt="Tiefgestellt";l.subscript.title="Tiefgestellt";l.subscript.cssName="";l.subscript.cssValues="";l.subscript.nonCssTags="sub";l.subscript["function"]="execCommand";l.superscript={};l.superscript.image="iconSup.png";l.superscript.hover="iconSupHover.png";l.superscript.active=
"iconSupActive.png";l.superscript.alt="Hochgestellt";l.superscript.title="Hochgestellt";l.superscript.cssName="";l.superscript.cssValues="";l.superscript.nonCssTags="sup";l.superscript["function"]="execCommand";l.justifyleft={};l.justifyleft.image="iconLeft.png";l.justifyleft.hover="iconLeftHover.png";l.justifyleft.active="iconLeftActive.png";l.justifyleft.alt="Links";l.justifyleft.title="Linksb&uuml;ndig";l.justifyleft.cssName="textAlign";l.justifyleft.cssValues="left|";l.justifyleft.nonCssTags=
"";l.justifyleft["function"]="execCommand";l.justifycenter={};l.justifycenter.image="iconCenter.png";l.justifycenter.hover="iconCenterHover.png";l.justifycenter.active="iconCenterActive.png";l.justifycenter.alt="Zentriert";l.justifycenter.title="Zentrieren";l.justifycenter.cssName="textAlign";l.justifycenter.cssValues="center|";l.justifycenter.nonCssTags="";l.justifycenter["function"]="execCommand";l.justifyright={};l.justifyright.image="iconRight.png";l.justifyright.hover="iconRightHover.png";l.justifyright.active=
"iconRightActive.png";l.justifyright.alt="Rechts";l.justifyright.title="Rechts&uuml;ndig";l.justifyright.cssName="textAlign";l.justifyright.cssValues="right|";l.justifyright.nonCssTags="";l.justifyright["function"]="execCommand";l.insertorderedlist={};l.insertorderedlist.image="iconOL.png";l.insertorderedlist.hover="iconOLHover.png";l.insertorderedlist.active="iconOLActive.png";l.insertorderedlist.alt="Geordnete&nbsp;Liste";l.insertorderedlist.title="Geordnete&nbsp;Liste";l.insertorderedlist.cssName=
"";l.insertorderedlist.cssValues="";l.insertorderedlist.nonCssTags="ol";l.insertorderedlist["function"]="execCommand";l.insertunorderedlist={};l.insertunorderedlist.image="iconUL.png";l.insertunorderedlist.hover="iconULHover.png";l.insertunorderedlist.active="iconULActive.png";l.insertunorderedlist.alt="Ungeordnete&nbsp;Liste";l.insertunorderedlist.title="Ungeordnete&nbsp;Liste";l.insertunorderedlist.cssName="";l.insertunorderedlist.cssValues="";l.insertunorderedlist.nonCssTags="ul";l.insertunorderedlist["function"]=
"execCommand";l.forecolor={};l.forecolor.image="iconTextColor.png";l.forecolor.hover="iconTextColorHover.png";l.forecolor.active="iconTextColorActive.png";l.forecolor.alt="Textfarbe";l.forecolor.title="Textfarbe";l.forecolor.cssName="color";l.forecolor.cssValues="";l.forecolor.nonCssTags="";l.forecolor["function"]="showColorselector";l.forecolor.param1="forecolor";l.hilitecolor={};l.hilitecolor.image="iconBgColor.png";l.hilitecolor.hover="iconBgColorHover.png";l.hilitecolor.active="iconBgColorActive.png";
l.hilitecolor.alt="Hintergrundfarbe";l.hilitecolor.title="Hintergrundfarbe";l.hilitecolor.cssName="backgroundColor";l.hilitecolor.cssValues="";l.hilitecolor.nonCssTags="";l.hilitecolor["function"]="showColorselector";l.hilitecolor.param1="hilitecolor";l.indent={};l.indent.image="iconIndentActive.png";l.indent.hover="iconIndentActiveHover.png";l.indent.active="iconIndentActive.png";l.indent.activeHover="iconIndentActiveHover.png";l.indent.alt="Einzug&nbsp;+";l.indent.title="Einzug erh&ouml;hen";l.indent.cssName=
"marginLeft";l.indent.cssValues="";l.indent.nonCssTags="blockquote";l.indent["function"]="execCommand";l.outdent={};l.outdent.image="iconOutdentInactive.png";l.outdent.hover="iconOutdentInactiveHover.png";l.outdent.active="iconOutdentActive.png";l.outdent.activeHover="iconOutdentActiveHover.png";l.outdent.alt="Einzug&nbsp;-";l.outdent.title="Einzug verringern";l.outdent.cssName="";l.outdent.cssValues="";l.outdent.nonCssTags="";l.outdent["function"]="execCommand";l.fullscreen={};l.fullscreen.image=
"iconFullscreen.png";l.fullscreen.hover="iconFullscreenHover.png";l.fullscreen.active="iconFullscreenActive.png";l.fullscreen.activeHover="iconFullscreenActive.png";l.fullscreen.alt="Vollbild";l.fullscreen.title="Vollbild";l.fullscreen.cssName="";l.fullscreen.cssValues="";l.fullscreen.nonCssTags="";l.fullscreen["function"]="fullscreen";l.source={};l.source.image="iconCode.png";l.source.hover="iconCodeHover.png";l.source.active="iconCodeActive.png";l.source.activeHover="iconCodeActive.png";l.source.alt=
"Quellcode";l.source.title="Quellcode";l.source.cssName="";l.source.cssValues="";l.source.nonCssTags="";l.source["function"]="source";l.print={};l.print.image="iconPrint.png";l.print.hover="iconPrintHover.png";l.print.active="iconPrintActive.png";l.print.alt="Drucken";l.print.title="Drucken";l.print.cssName="";l.print.cssValues="";l.print.nonCssTags="";l.print["function"]="print";l.horizontalline={};l.horizontalline.image="iconHR.png";l.horizontalline.hover="iconHRHover.png";l.horizontalline.active=
"iconHRActive.png";l.horizontalline.alt="Horizontale&nbsp;Linie";l.horizontalline.title="Horizontale Linie";l.horizontalline.cssName="";l.horizontalline.cssValues="";l.horizontalline.nonCssTags="";l.horizontalline["function"]="execCommand";l.horizontalline.param1="inserthtml";l.horizontalline.param2="<hr />";l.undo={};l.undo.image="iconUndoInactive.png";l.undo.hover="iconUndoInactiveHover.png";l.undo.active="iconUndoActive.png";l.undo.activeHover="iconUndoActiveHover.png";l.undo.alt="Undo";l.undo.title=
"R&uuml;ckg&auml;ngig";l.undo.cssName="";l.undo.cssValues="";l.undo.nonCssTags="";l.undo["function"]="execCommand";l.redo={};l.redo.image="iconRedoInactive.png";l.redo.hover="iconRedoInactiveHover.png";l.redo.active="iconRedoActive.png";l.redo.activeHover="iconRedoActiveHover.png";l.redo.alt="Redo";l.redo.title="Wiederherstellen";l.redo.cssName="";l.redo.cssValues="";l.redo.nonCssTags="";l.redo["function"]="execCommand";l.media={};l.media.image="iconMediathek.png";l.media.hover="iconMediathekHover.png";
l.media.active="iconMediathekActive.png";l.media.alt="Medium";l.media.title="Eine Datei einf&uuml;gen";l.media.cssName="";l.media.cssValues="";l.media.nonCssTags="";l.media["function"]="showPopup";l.media.param1="Datei hinzuf&uuml;gen";l.media.param2="/ajax/mediathek.ajax.php";l.media.param3="?task=showUploadWindow&mediaselect_counter="+b+"&mediaselect_name=goedit_img&is_goeditor=1&backend="+document.backend;l.link={};l.link.image="iconLink.png";l.link.hover="iconLinkHover.png";l.link.active="iconLinkActive.png";
l.link.alt="Link";l.link.title="Einen Link einf&uuml;gen";l.link.cssName="";l.link.cssValues="";l.link.nonCssTags="";l.link["function"]="showPopup";l.link.param1="Link hinzuf&uuml;gen";l.link.param2="/ajax/goeditor.ajax.php";l.link.param3="?task=insertLink&goeditid="+b+"&backend="+document.backend;l.fontname={};l.fontname.image="iconFont.png";l.fontname.hover="iconFont.png";l.fontname.active="iconFontActive.png";l.fontname.alt="Schriftart";l.fontname.title="Schriftart";l.fontname.cssName="";l.fontname.cssValues=
"";l.fontname.nonCssTags="";l.fontname["function"]="showMiniPopup";l.fontname.param1="<img src=\\'"+G+"iconFontActive.png\\' border=\\'0\\' alt=\\'Schriftart\\' />";l.fontname.param2="fontname";var K=new Array("Arial","Comic Sans MS","Courir New","Tahoma","Times New Roman","Verdana");l.fontname.innerHTML='<div style="height: 0.5em;"><!-- --\></div>';for(g=0;g<K.length;g++)l.fontname.innerHTML+="<div class=\"goeditor_minipopup-element\" onmouseover=\"this.className='goeditor_minipopup-element-hover'; this.style.cursor='pointer';\" onmouseout=\"this.className='goeditor_minipopup-element';  this.style.cursor='';\" onclick=\"top.document.goeditorInstances['"+
b+"'].execCommand('fontname', 'fontname', '"+K[g]+'\');" style="font-family: '+K[g]+';">'+K[g]+"</div>";l.fontSize={};l.fontSize.image="iconFontSize.png";l.fontSize.hover="iconFontSize.png";l.fontSize.active="iconFontSizeActive.png";l.fontSize.alt="Schriftgr&ouml;&szlig;e";l.fontSize.title="Schriftgr&ouml;&szlig;e";l.fontSize.cssName="";l.fontSize.cssValues="";l.fontSize.nonCssTags="";l.fontSize["function"]="showMiniPopup";l.fontSize.param1="<img src=\\'"+G+"iconFontSizeActive.png\\' border=\\'0\\' alt=\\'Schriftgr&ouml;&szlig;e\\' />";
l.fontSize.param2="fontSize";K=new Array(1,"xx-small",2,"x-small",3,"small",4,"medium",5,"large",6,"x-large",7,"xx-large");l.fontSize.innerHTML='<div style="height: 0.5em;"><!-- --\></div>';for(g=0;g<K.length;g++)l.fontSize.innerHTML+="<div class=\"goeditor_minipopup-element\" onmouseover=\"this.className='goeditor_minipopup-element-hover';this.style.cursor='pointer';\" onmouseout=\"this.className='goeditor_minipopup-element';this.style.cursor='';\" onclick=\"top.document.goeditorInstances['"+b+"'].execCommand('fontSize', 'fontSize', '"+
K[g]+'\');" style="font-size: '+K[++g]+';">'+K[g]+"</div>";g={};g.fontWeight={};g.fontWeight.bold=new Array("<strong>","</strong>","strong");g.fontStyle={};g.fontStyle.italic=new Array("<em>","</em>","em");g.textDecoration={};g.textDecoration.underline=new Array("<u>","</u>","u");g.textDecoration.overline=new Array("<strike>","</strike>","strike");g=new Array("src","width","height","cols","rows","name","id","alt","title","cellspacing","cellpadding","align","href","class");var Q=0;g=0;if(!f){alert("Goeditor: Textarea '"+
b+"' nicht gefunden!");return false}top.document.goeditorInstances[b]=h;this.finish=function(){for(var p=f;p;){if(p.style&&(p.style.display=="none"||p.style.visibility=="hidden")){window.setTimeout(h.finish,250);return}try{p=p.parentNode}catch(H){p=null}}j=document.createElement("div");m=document.createElement("div");I=document.createElement("span");n=document.createElement("div");v=document.createElement("span");eof=document.createElement("span");p=document.helper.getRealDimension(f);if(p[0]<=0)p[0]=
250;if(p[1]<=0)p[1]=100;A=p;j.className="goeditor";j.style.position="relative";j.style.width=p[0]+"px";t=document.getElementById("goeditor_mediaselect_"+b)?document.getElementById("goeditor_mediaselect_"+b).innerHTML:"";document.getElementById("goeditor_mediaselect_"+b)&&document.getElementById("goeditor_mediaselect_"+b).parentNode.removeChild(document.getElementById("goeditor_mediaselect_"+b));m.className="goeditor_toolbar";m.style.backgroundColor="#D3D3D3";m.style.width=p[0]+"px";I.style.position=
"absolute";I.style.display="none";I.style.textAlign="left";I.style.zIndex="99999999999";I.onmouseout=function(){document.goeditor_minipopupTimer=window.setTimeout(function(){I.style.display="none"},500)};I.onmouseover=function(){window.clearTimeout(document.goeditor_minipopupTimer)};n.className="goeditor_statusbar";n.style.width=p[0]+"px";document.body.appendChild(I);j.appendChild(m);j.appendChild(n);f.parentNode.insertBefore(v,f);v.parentNode.insertBefore(j,v);h.buildIframe();document.helper.resizeTo(C,
p[0],p[1]);f.style.display="none";if(f.form)if(Gojen.is_ie){p="";if(f.form.onsubmit.toString().length>0){p=f.form.onsubmit.toString().indexOf("{");var J=f.form.onsubmit.toString().indexOf("}");p=f.form.onsubmit.toString().substring(p+1,J)}eval("textarea.form.onsubmit\t= function(event){top.document.goeditorInstances['"+b+"'].syncToTextarea(true); "+p+" ;};")}else f.form.setAttribute("onsubmit","top.document.goeditorInstances['"+b+"'].syncToTextarea(true); "+f.form.getAttribute("onsubmit",false));
F=true};this.changeIcon=function(p,H){if(document.getElementById("goeditor_icon_"+p+"_"+b+"_image"))document.getElementById("goeditor_icon_"+p+"_"+b+"_image").style.display="none";if(document.getElementById("goeditor_icon_"+p+"_"+b+"_active"))document.getElementById("goeditor_icon_"+p+"_"+b+"_active").style.display="none";if(document.getElementById("goeditor_icon_"+p+"_"+b+"_"+H))document.getElementById("goeditor_icon_"+p+"_"+b+"_"+H).style.display=""};this.buildIframe=function(){u=document.createElement("iframe");
Q=window.frames.length;u.src="javascript:;";u.scrolling="auto";u.style.overflow="auto";u.frameborder="no";u.setAttribute("id","goeditor_iframe_"+b,false);j.insertBefore(u,n);C=u;try{u=document.getElementById("goeditor_iframe_"+b).contentWindow;var p=u.document;p.open();p.write('<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\t"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"><head><link href="'+
c+'" rel="stylesheet" type="text/css" /></head><body class=\'goeditor_editarea\'></body></html>');p.designMode="on";try{p.close()}catch(H){}}catch(J){window.setTimeout(h.buildIframe,250);return}w=u.window||u.contentWindow;E=u.contentDocument||u.document;B=E.body;C.className="goeditor_iframe";document.helper.addEvent(E,"keypress",h.onKeyPressEditarea,false);try{u.window.document.contentEditable="true"}catch(M){}try{u.window.document.designMode="on"}catch(L){}u.onfocus=function(){try{u.window.document.contentEditable=
"true"}catch(R){}try{u.window.document.designMode="on"}catch(V){}};if(y)C.style.display="none";else{h.fillContent();h.focus();C.style.display=""}};this.fillContent=function(){if(B){B.innerHTML=f.value;if(f.value.length<1)B.innerHTML="<br />";document.helper.addEvent(B,"click",h.focus,false)}else{B=E.body;window.setTimeout(h.fillContent,10)}};this.source=function(){document.helper.waitForBody(h.sourceReal)};this.sourceReal=function(){if(y){p=document.helper.getElementsByClassName("goeditor_toolbar-icon",
j);for(H=0;H<p.length;H++)document.helper.setOpacity(p[H],1);C.style.display="";f.style.display="none";h.changeIcon("source","image");h.syncToEditcontent();y=false;h.focus()}else{for(var p=document.helper.getElementsByClassName("goeditor_toolbar-icon",j),H=0;H<p.length;H++)document.helper.setOpacity(p[H],0.25);p=document.helper.getElementsByClassName("goeditor-icon-nodisable",j);for(H=0;H<p.length;H++)document.helper.setOpacity(p[H],1);y=true;h.changeIcon("source","active");h.syncToTextarea();C.style.display=
"none";f.style.display="";f.focus();D=false}};this.fullscreen=function(){document.helper.waitForBody(h.fullscreenReal)};this.fullscreenReal=function(){h.blur();if(x){x=false;document.body.style.overflow="";document.helper.isIE7()||j.removeChild(C);j.style.width=A[0]+"px";j.style.height=A[1]+"px";m.style.width=A[0]+"px";n.style.width=A[0]+"px";window.setTimeout(h.fullscreenFinish,1)}else{x=true;o=document.helper.getBodyScrollPosition();document.body.style.overflow="hidden";var p=document.helper.getInnerDimension();
document.helper.isIE7()||j.removeChild(C);j.style.width=p[0]+"px";j.style.height=p[1]+"px";j.style.borderWidth="2px";m.style.width="100%";n.style.width="100%";dim2=document.helper.getRealDimension(m);dim3=document.helper.getRealDimension(n);if(y)E.body.innerHTML=f.value;else f.value=E.body.innerHTML;j.appendChild(f);top.document.body.appendChild(j);if(!document.helper.isIE7()){h.buildIframe();E.body.innerHTML=f.value}C.style.height=p[1]-dim2[1]-dim3[1]+"px";C.style.width=p[0]+"px";f.style.height=
p[1]-dim2[1]-dim3[1]+"px";f.style.width=p[0]+"px";h.changeIcon("fullscreen","active");document.helper.scrollToElement(j);h.focus();h.updateIcons()}};this.fullscreenFinish=function(){var p=document.helper.getRealDimension(m),H=document.helper.getRealDimension(n);if(y)E.body.innerHTML=f.value;else f.value=E.body.innerHTML;v.parentNode.insertBefore(j,v);if(!document.helper.isIE7()){h.buildIframe();E.body.innerHTML=f.value}C.style.width=A[0]+"px";C.style.height=A[1]-p[1]-H[1]+"px";f.style.width=A[0]+
"px";f.style.height=A[1]-p[1]-H[1]+"px";E.body.style.zIndex="";j.style.position="";document.helper.scrollToElement(j);o&&window.scrollTo(o[0],o[1]);h.changeIcon("fullscreen","image");h.focus();h.updateIcons()};this.rebuildIframe=function(){if(F){for(var p=f.parentNode;p;){if(p.style&&(p.style.display=="none"||p.style.visibility=="hidden")){window.setTimeout(h.rebuildIframe,250);return}try{p=p.parentNode}catch(H){p=null}}if(!document.helper.isIE7()){j.removeChild(C);h.buildIframe();E.body.innerHTML=
f.value}p=document.helper.getRealDimension(m);p=document.helper.getRealDimension(n);C.style.width=A[0]+"px";C.style.height=A[1]+"px"}};this.print=function(){w.print()};this.showColorselector=function(p,H){if(y)return alert("Bitte verlassen Sie vorher den Quelltext-Modus des Editors.");r||(r=new ColorSelector);p="#000000";var J=h.getSelection();J=h.getSelection();if(J=J.range?J.range.startContainer:null)for(;J;){if(H=="forecolor"){if(J.style&&J.style.color&&J.style.color.length>0){p=document.helper.toHexColor(J.style.color);
break}}else if(J.style&&J.style.backgroundColor&&J.style.backgroundColor.length>0){p=document.helper.toHexColor(J.style.backgroundColor);break}J=J.parentNode}r.setColor(p);r.setOnChange(function(M){h.execCommand("",H,M)});r.show()};this.showPopup=function(p,H,J,M){if(y)return alert("Bitte verlassen Sie vorher den Quelltext-Modus des Editors.");p=new WindowControl("goeditor_"+Base64.encode(H),document.body,false,"");p.set("dimension",640,500);p.set("titlebarDimension",640,20);p.set("title",H);M?p.set("contentfile",
J,M):p.set("content",J);p.set("position",WindowControl.POSITION.CENTER);p.set("no_fade",true);p.set("modal",true);p.set("delete_on_close",true);p.set("onclose",function(){document.tabcontrol_goeditor_insertLinkTab&&document.tabcontrol_goeditor_insertLinkTab.destruct()});p.show()};this.goeditor_addSelectedFile=function(p,H,J){if(p.type.value=="picture")top.document.goeditorInstances[H].execCommand("","inserthtml","<img src='[GOEDITOR_BASEURL]/image.php?id="+p.id.value+"&amp;type=mediafile&amp;maxsize=300' class='mediafile_goeditor picture "+
p.id.value+"' border='0' title='"+p.name.value+"' style='vertical-align: middle;' />");else p.type.value=="video"?top.document.goeditorInstances[H].execCommand("","inserthtml","<a href='[GOEDITOR_BASEURL]?ext=video&task=show&id="+p.id.value+"' style='text-decoration: none;' class='mediafile_goeditor video "+p.id.value+" "+p.width.value+" "+p.height.value+" "+Base64.encode(p.meta_title.value)+"' title='"+p.name.value+"'><img src='[GOEDITOR_BASEURL]/image.php?id="+p.id.value+"&amp;type=mediafile&amp;maxsize=300' style='vertical-align: middle;' border='0' /></a>"):
top.document.goeditorInstances[H].execCommand("","inserthtml","<a href='[GOEDITOR_BASEURL]/download.php?id="+p.id.value+"' style='text-decoration: none;' title='"+p.name.value+"'><img src='[GOEDITOR_BASEURL]/image.php?id="+p.id.value+"&amp;type=mediafile&amp;maxwidth=20' width='20' style='vertical-align: middle;' border='0' />"+p.name.value+"</a>")};this.showMiniPopup=function(p,H,J,M,L){if(y)return alert("Bitte verlassen Sie vorher den Quelltext-Modus des Editors.");J=document.helper.getRealCoordinates(L);
M=document.helper.getRealDimension(L);var R=document.helper.getInnerDimension();M=R[0]-J[0]>=J[0]?"left":"right";M="left";var V=R[0]-J[0]>=J[0]?"right":"left";V="right";J=R[0]-J[0]>=J[0]?-2:0;I.innerHTML='<div style="position: relative; z-index: 99999999; text-align: '+M+'"><span style="/*border: 1px solid #AFAFAF; border-bottom: 0px; border-right: 1px solid #AFAFAF;*/" class="goeditor_minipopup-top">'+H+"</span></div>";I.style.display="";H=document.helper.getRealDimension(I);I.style.display="none";
I.innerHTML+='<div style="z-index: 9999999999; position: relative; margin-top: -3px; left: 1px; border: 1px solid #AFAFAF; border-bottom: 1px solid #AFAFAF; border-right: 1px solid #AFAFAF;" class="goeditor_minipopup">'+l[p].innerHTML+"</div>";I.style.display="";document.helper.getRealDimension(I);I.style.display="none";document.helper.isSafari();document.helper.isIE7();I.style.marginTop="2px";p=document.getElementById(L)?document.getElementById(L):L;L.parentNode.insertBefore(I,L);I.style.display=
""};this.getSelection=function(){var p={};if(typeof w.getSelection!="undefined"){p.selection=w.getSelection();if(!p.selection)return p;if(p.selection&&p.selection.getRangeAt&&typeof p.selection.getRangeAt!="undefined")try{p.range=p.selection.getRangeAt(0)}catch(H){return p}else if(p.selection&&typeof p.selection.baseNode!="undefined"){p.range=E.createRange();p.range.setStart(p.selection.baseNode,p.selection.baseOffset);p.range.setEnd(p.selection.extentNode,p.selection.extentOffset);if(p.range.collapsed){p.range.setStart(p.selection.extentNode,
p.selection.extentOffset);p.range.setEnd(p.selection.baseNode,p.selection.baseOffset)}}p.rangecopy=p.range.cloneRange();p.rangecopy.collapse(true)}else if(typeof E.selection!="undefined"){if(p.selection&&p.selection.getRangeAt&&typeof p.selection.getRangeAt!="undefined")try{p.range=p.selection.getRangeAt(0)}catch(J){return p}p.selection=E.selection;p.range=p.selection.createRange();try{p.range.startContainer=p.range.parentElement().firstChild}catch(M){}}else return p;w.focus();return p};this.getCurrentIndent=
function(){if(D){var p=h.getSelection();if(p.range)if(p=p.range.startContainer){var H={};p=p;for(H=0;p;)if(p.nodeType!=1)try{p=p.parentNode}catch(J){p=null}else{if(p.style&&p.style.marginLeft)H+=parseInt(p.style.marginLeft.substring(0,p.style.marginLeft.length-2));else if(p.tagName&&p.tagName.toString().toLowerCase()=="blockquote")H+=40;try{p=p.parentNode}catch(M){p=null}}return H/40}}};this.updateIcons=function(){var p;for(var H in l){switch(H){case "bold":case "italic":case "underline":case "strikethrough":case "subscript":case "superscript":case "justifyleft":case "justifycenter":case "justifyright":case "insertorderedlist":case "insertunorderedlist":p=
E.queryCommandState(H);break;case "indent":case "outdent":case "undo":case "redo":p=E.queryCommandEnabled(H);break;case "fullscreen":p=x;break;case "source":p=y;break;default:continue}if(y&&H!="source")p=false;p?h.changeIcon(H,"active"):h.changeIcon(H,"image")}};this.execCommand=function(p,H,J){if(y)return alert("Bitte verlassen Sie vorher den Quelltext-Modus des Editors.");if(!E||!E.execCommand)window.setTimeout(function(){h.execCommand(p,H,J)},50);else{h.focus();I.style.display="none";var M=h.getSelection();
if(H=="inserthtml"&&(document.helper.isIE()||document.helper.isIE7())){if(document.all){M=E.selection.createRange();M.pasteHTML(J);M.collapse(false);M.select()}}else if(E.execCommand)try{E.execCommand(H,false,J)}catch(L){}if(E.body.innerHTML.indexOf("GOEDITOR_BASEURL")>=0)if(document.helper.isIE()||document.helper.isIE7()){E.body.innerHTML=E.body.innerHTML.replace(/\[GOEDITOR_BASEURL\]/g,"");E.body.innerHTML=E.body.innerHTML.replace(/%5BGOEDITOR_BASEURL%5D/g,"")}else{E.body.innerHTML=E.body.innerHTML.replace(/\[GOEDITOR_BASEURL\]/g,
top.location.protocol+"//"+top.location.hostname);E.body.innerHTML=E.body.innerHTML.replace(/%5BGOEDITOR_BASEURL%5D/g,top.location.protocol+"//"+top.location.hostname)}window.setTimeout(h.updateIcons,50)}};this.is_sibling_or_child_of=function(p,H,J){for(var M=J=J||H;M;){if(M==p)return true;if(M.hasChildNodes())for(var L=0;L<M.childNodes.length;L++)if(h.is_sibling_or_child_of(p,H,M.childNodes[L]))return true;M=J==H?M.nextSibling:null}return false};this.setIconOrder=function(p){if(F){N=p;for(var H,
J="",M=0;M<N.length;M++){H=N[M];if(H=="newline")J+="<br />";else if(H=="delimiter")J+='<img src="'+G+'grid.png" alt="|" border="0" />';else if(l[H]){var L=l[H],R=L.hover&&L.hover.length>0?"onmouseover=\"this.src='"+G+L.hover+"';\"":"",V=L.hover&&L.hover.length>0?"onmouseout=\"this.src='"+G+L.image+"';\"":"";R=L.image&&L.image.length>0?'<img id="goeditor_icon_'+H+"_"+b+'" '+R+" "+V+' src="'+G+L.image+'" alt="'+L.alt.substring(0,1).toUpperCase()+'" title="'+L.title+'" border="0" />':'<span title="'+
L.title+'">'+L.alt+"</span>";V=H;var S=L.param1||H,T=L.param2||"",O=L.param3||"",P=H=="source"||H=="fullscreen"?"goeditor-icon-nodisable":"";R=L.image&&L.image.length>0?'<img src="'+G+L.image+'" alt="'+L.alt.substring(0,1).toUpperCase()+'" title="'+L.title+'" border="0" />':'<span title="'+L.title+'">'+L.alt+"</span>";var U=L.hover&&L.hover.length>0?'<img style="display: none;" src="'+G+L.hover+'" alt="'+L.alt.substring(0,1).toUpperCase()+'" title="'+L.title+'" border="0" />':R,W=L.active&&L.active.length>
0?'<img src="'+G+L.active+'" alt="'+L.alt.substring(0,1).toUpperCase()+'" title="'+L.title+'" border="0" />':R,X=L.activeHover&&L.activeHover.length>0?'<img style="display: none;" src="'+G+L.activeHover+'" alt="'+L.alt.substring(0,1).toUpperCase()+'" title="'+L.title+'" border="0" />':U;J+="<a onmouseover=\"var imgs=this.getElementsByTagName('img'); imgs[0].style.display='none'; imgs[1].style.display='';\" onmouseout=\"var next=this.nextSibling.getElementsByTagName('img'); next[1].style.display='none'; next[0].style.display=''; var imgs=this.getElementsByTagName('img'); imgs[1].style.display='none'; imgs[0].style.display='';\" id=\"goeditor_icon_"+
H+"_"+b+'_image" href="javascript:;" class="goeditor_toolbar-icon '+P+'" onclick="top.document.goeditorInstances[\''+b+"']."+L["function"]+"('"+V+"', '"+S+"', '"+T+"', '"+O+'\', this);" onfocus="this.blur();">'+R+U+"</a>";J+="<a style=\"display: none;\" onmouseover=\"var imgs=this.getElementsByTagName('img'); imgs[0].style.display='none'; imgs[1].style.display='';\" onmouseout=\"var prev=this.previousSibling.getElementsByTagName('img'); prev[1].style.display='none'; prev[0].style.display=''; var imgs=this.getElementsByTagName('img'); imgs[1].style.display='none'; imgs[0].style.display='';\" id=\"goeditor_icon_"+
H+"_"+b+'_active" href="javascript:;" class="goeditor_toolbar-icon '+P+'" onclick="top.document.goeditorInstances[\''+b+"']."+L["function"]+"('"+V+"', '"+S+"', '"+T+"', '"+O+'\', this);" onfocus="this.blur();">'+W+X+"</a>"}}m.innerHTML=J}else window.setTimeout(function(){h.setIconOrder(p)},10)};this.insertNode=function(p,H){H=H||h.getSelection();w.focus();u.focus();if(H.rangecopy){H.rangecopy.insertNode(p);H.rangecopy.insertNode(p);p.innerHTML.length<1&&H.range.setStart(p,0)}else{H.range.pasteHTML(p.outerHTML);
H.range.setStart(p,0)}h.focus()};this.insertHTML=function(p,H){H=H||h.getSelection();var J=E.createElement("span");J.innerHTML=p;if(H.rangecopy){H.range.deleteContents();H.rangecopy.insertNode(J.firstChild);H.range.setStart(J.firstChild,0)}else H.range.pasteHTML(p);w.focus()};this.CreateLink=function(p,H,J){H=H||null;h.execCommand("","CreateLink","{GOEDITORURL}");for(var M=E.body.getElementsByTagName("a"),L=0;L<M.length;L++)if(!(M[L].getAttribute("href",false)!="{GOEDITORURL}"&&M[L].getAttribute("href",
false)!="%7BGOEDITORURL%7D")){M[L].setAttribute("href",p,false);H&&M[L].setAttribute("title",H,false);J||M[L].setAttribute("target","_blank",false)}if(E.body.innerHTML.indexOf("GOEDITOR_BASEURL")>=0)if(document.helper.isIE()||document.helper.isIE7()){E.body.innerHTML=E.body.innerHTML.replace(/\[GOEDITOR_BASEURL\]/g,"");E.body.innerHTML=E.body.innerHTML.replace(/%5BGOEDITOR_BASEURL%5D/g,"")}else E.body.innerHTML=E.body.innerHTML.replace(/%5BGOEDITOR_BASEURL%5D/g,top.location.protocol+"//"+top.location.hostname)};
this.insertLinkByForm=function(p){var H=h.getSelection(),J=H.range?H.range.startContainer:null;switch(p.getAttribute("name",false)){case "insertUrlLink":var M=p.protocol.value,L=M+p.url.value;M=p.name_.value.length>0?p.name_.value:L;var R=p.title.value.length>0?' title="'+p.title.value+'"':"",V=p.title.value.length>0?p.title.value:"";M='<a href="'+L+'"'+R+' target="_blank">'+M+"</a>";if(p.url.value.length<3){alert("Bitte eine korrekte URL angeben");return false}if(H.range){p=J;var S=null;if(H.selection&&
H.selection.toString&&H.selection.toString().length>0){h.CreateLink(L,V);return true}if(J){for(;p;){if(p.nodeType==1&&p.tagName&&p.tagName.toString().toLowerCase()=="a"){S=p;break}try{p=p.parentNode}catch(T){p=null}}if(S){S.setAttribute("href",L,false);S.setAttribute("title",V,false);return true}}}h.execCommand("","inserthtml",M);break;case "insertEmailLink":L=p.email.value;M=p.name_.value.length>0?p.name_.value:L;var O=p.subject.value.length>0?"subject="+encodeURIComponent(p.subject.value):"",P=
p.content.value.length>0?"&body="+encodeURIComponent(p.content.value):"";R=p.title.value.length>0?' title="'+p.title.value+'"':"";V=p.title.value.length>0?p.title.value:"";if(p.email.value.length<5){alert("Bitte eine korrekte E-Mail-Adresse angeben");return false}M='<a href="mailto:'+L+"?"+O+P+'"'+R+' target="_blank">'+M+"</a>";if(H.range){p=J;S=null;if(H.selection&&H.selection.toString&&H.selection.toString().length>0){h.CreateLink("mailto:"+L+"?"+O+P,V);return true}if(J){for(;p;){if(p.nodeType==
1&&p.tagName&&p.tagName.toString().toLowerCase()=="a"){S=p;break}try{p=p.parentNode}catch(U){p=null}}if(S){S.setAttribute("href","mailto:"+L+"?"+O+P,false);S.setAttribute("title",V,false);return true}}}h.execCommand("","inserthtml",M);break;case "insertUser":L=p.userid.value.length>0?p.userid.value:"";M=p.name_.value.length>0?p.name_.value:"";if(L.length<10||M.length<1){alert("Kein Benutzer ausgew\u00e4hlt");return false}if(H.range&&H.range.toString&&H.range.toString().length>0){p=J;S=null;if(H.selection&&
H.selection.toString().length>0){h.CreateLink("[GOEDITOR_BASEURL]/?ext=profile&id="+L,M,true);return true}if(J){for(;p;){if(p.nodeType==1&&p.tagName&&p.tagName.toString().toLowerCase()=="a"){S=p;break}try{p=p.parentNode}catch(W){p=null}}if(S){S.setAttribute("href","[GOEDITOR_BASEURL]/?ext=profile&id="+L,false);S.setAttribute("title",M,false);S.removeAttribute("target",false);if(E.body.innerHTML.indexOf("GOEDITOR_BASEURL")>=0){E.body.innerHTML=E.body.innerHTML.replace(/\[GOEDITOR_BASEURL\]/g,top.location.protocol+
"//"+top.location.hostname);E.body.innerHTML=E.body.innerHTML.replace(/%5BGOEDITOR_BASEURL%5D/g,top.location.protocol+"//"+top.location.hostname)}return true}}}M='<a href="[GOEDITOR_BASEURL]/?ext=profile&id='+L+'" title="'+M+'"><img src="[GOEDITOR_BASEURL]/image.php?type=user&userid='+L+'&maxsize=150" height="50" alt="'+M+'" title="'+M+'" style="vertical-align: middle;" border="0" /> '+M+"</a>";h.execCommand("","inserthtml",M);break;case "insertNews":R=p.newsid.value.length>0?p.newsid.value:"";M=
p.elements["name["+R+"]"].value.length>0?Base64.decode(p.elements["name["+R+"]"].value):"";V=p.elements["image["+R+"]"].value.length>0?Base64.decode(p.elements["image["+R+"]"].value):"";L=p.elements["url["+R+"]"].value.length>0?Base64.decode(p.elements["url["+R+"]"].value):"";if(R.length<10){alert("Keine News ausgew\u00e4hlt");return false}if(H.range&&H.range.toString&&H.range.toString().length>0){p=J;S=null;if(H.selection&&H.selection.toString().length>0){h.CreateLink("[GOEDITOR_BASEURL]"+L,M,true);
return true}if(J){for(;p;){if(p.nodeType==1&&p.tagName&&p.tagName.toString().toLowerCase()=="a"){S=p;break}try{p=p.parentNode}catch(X){p=null}}if(S){S.setAttribute("href","[GOEDITOR_BASEURL]"+L,false);S.setAttribute("title",M,false);if(E.body.innerHTML.indexOf("GOEDITOR_BASEURL")>=0){E.body.innerHTML=E.body.innerHTML.replace(/\[GOEDITOR_BASEURL\]/g,top.location.protocol+"//"+top.location.hostname);E.body.innerHTML=E.body.innerHTML.replace(/%5BGOEDITOR_BASEURL%5D/g,top.location.protocol+"//"+top.location.hostname)}return true}}}M=
'<a href="[GOEDITOR_BASEURL]'+L+'" title="'+M+'">'+M+"</a>";h.execCommand("","inserthtml",M);break;case "insertArticle":R=p.articleid.value.length>0?p.articleid.value:"";M=p.elements["name["+R+"]"].value.length>0?Base64.decode(p.elements["name["+R+"]"].value):"";L=p.elements["url["+R+"]"].value.length>0?Base64.decode(p.elements["url["+R+"]"].value):"";if(R.length<10){alert("Keinen Artikel ausgew\u00e4hlt");return false}if(H.range&&H.range.toString&&H.range.toString().length>0){p=J;S=null;if(H.selection&&
H.selection.toString().length>0){h.CreateLink("[GOEDITOR_BASEURL]"+L,M,true);return true}if(J){for(;p;){if(p.nodeType==1&&p.tagName&&p.tagName.toString().toLowerCase()=="a"){S=p;break}try{p=p.parentNode}catch(Z){p=null}}if(S){S.setAttribute("href","[GOEDITOR_BASEURL]"+L,false);S.setAttribute("title",M,false);if(E.body.innerHTML.indexOf("GOEDITOR_BASEURL")>=0){E.body.innerHTML=E.body.innerHTML.replace(/\[GOEDITOR_BASEURL\]/g,top.location.protocol+"//"+top.location.hostname);E.body.innerHTML=E.body.innerHTML.replace(/%5BGOEDITOR_BASEURL%5D/g,
top.location.protocol+"//"+top.location.hostname)}return true}}}M='<a title="'+M+'" href="[GOEDITOR_BASEURL]'+L+'">'+M+"</a>";h.execCommand("","inserthtml",M);break;case "insertGroup":R=p.groupid.value.length>0?p.groupid.value:"";M=p.elements["name["+R+"]"].value.length>0?Base64.decode(p.elements["name["+R+"]"].value):"";V=p.elements["image["+R+"]"].value.length>0?Base64.decode(p.elements["image["+R+"]"].value):"";L=p.elements["url["+R+"]"].value.length>0?Base64.decode(p.elements["url["+R+"]"].value):
"";if(R.length<10){alert("Keine Gruppe ausgew\u00e4hlt");return false}if(H.range&&H.range.toString&&H.range.toString().length>0){p=J;S=null;if(H.selection&&H.selection.toString().length>0){h.CreateLink("[GOEDITOR_BASEURL]"+L,M,true);return true}if(J){for(;p;){if(p.nodeType==1&&p.tagName&&p.tagName.toString().toLowerCase()=="a"){S=p;break}try{p=p.parentNode}catch(aa){p=null}}if(S){S.setAttribute("href","[GOEDITOR_BASEURL]"+L,false);S.setAttribute("title",M,false);if(E.body.innerHTML.indexOf("GOEDITOR_BASEURL")>=
0){E.body.innerHTML=E.body.innerHTML.replace(/\[GOEDITOR_BASEURL\]/g,top.location.protocol+"//"+top.location.hostname);E.body.innerHTML=E.body.innerHTML.replace(/%5BGOEDITOR_BASEURL%5D/g,top.location.protocol+"//"+top.location.hostname)}return true}}}M='<a title="'+M+'" href="[GOEDITOR_BASEURL]'+L+'"><img src="[GOEDITOR_BASEURL]/'+V+'" height="50" alt="'+M+'" title="'+M+'" style="vertical-align: middle;" border="0" /> '+M+"</a>";h.execCommand("","inserthtml",M);break;case "insertShopArticle":R=p.title.value.length>
0?Base64.decode(p.title.value):"";M=p.article_id.value.length>0?p.article_id.value:"";V=p.image.value.length>0?p.image.value:"";L="/?ext=shop&task=showproduct&id="+M;if(M.length<10){alert("Keine Gruppe ausgew\u00e4hlt");return false}if(H.range&&H.range.toString&&H.range.toString().length>0){p=J;S=null;if(H.selection&&H.selection.toString().length>0){h.CreateLink("[GOEDITOR_BASEURL]"+L,R,true);return true}if(J){for(;p;){if(p.nodeType==1&&p.tagName&&p.tagName.toString().toLowerCase()=="a"){S=p;break}try{p=
p.parentNode}catch(Y){p=null}}if(S){S.setAttribute("href","[GOEDITOR_BASEURL]"+L,false);S.setAttribute("title",R,false);if(E.body.innerHTML.indexOf("GOEDITOR_BASEURL")>=0){E.body.innerHTML=E.body.innerHTML.replace(/\[GOEDITOR_BASEURL\]/g,top.location.protocol+"//"+top.location.hostname);E.body.innerHTML=E.body.innerHTML.replace(/%5BGOEDITOR_BASEURL%5D/g,top.location.protocol+"//"+top.location.hostname)}return true}}}M='<a title="'+R+'" href="[GOEDITOR_BASEURL]'+L+'"><img src="[GOEDITOR_BASEURL]/'+
V+'" height="50" alt="'+R+'" title="'+R+'" style="vertical-align: middle;" border="0" /> '+R+"</a>";h.execCommand("","inserthtml",M);break}return true};this.focus=function(){h.updateIcons();if(!D){D=true;u.focus();if(w){w.focus&&w.focus();document.helper.isSafari()&&C.focus();C.className="goeditor_iframe-focus"}}};this.blur=function(){C.className="goeditor_iframe";D=false};this.getValue=function(){h.syncToTextarea(true);return f.value};this.syncToTextarea=function(p){if(B){if(p&&y)return h.syncToEditcontent();
f.value=B.innerHTML}};this.syncToEditcontent=function(){if(B)B.innerHTML=f.value};this.onResize=function(p){m.style.width=p[0]+"px";n.style.width=p[0]+"px";document.helper.resizeTo(C,p[0],p[1])};this.onClickBody=function(p){z={};h.updateIcons()};this.onKeyPressEditarea=function(p){if(!k){h.execCommand("undo","undo");h.execCommand("redo","redo");k=true}z={};if(q)q=window.clearTimeout(q);q=window.setTimeout(h.updateIcons,50)};document.helper.isIE()||document.helper.isIE7()||document.helper.isIE8()?
document.helper.waitForBody(h.finish):window.setTimeout(h.finish,250);document.use_css=true}function goeditor_searchUser(b){var c=(new $gojen).ajax(20),f="/ajax/goeditor.ajax.php",g="task=searchUser&value="+encodeURIComponent(b)+"&backend="+document.backend;b=new Array("searchUser",b);c.request_post(f,g,function(h){h&&eval(h)},b,false,false)}
function goeditor_searchShopArticle(b){var c=(new $gojen).ajax(20),f="/ajax/goeditor.ajax.php",g="task=searchShopArticle&value="+encodeURIComponent(b)+"&backend="+document.backend;b=new Array("searchShopArticle",b);c.request_post(f,g,function(h){h&&eval(h)},b,false,false)}
function goeditor_setLinkUserid(b,c,f){f=document.getElementById("goeditor_userprofile");var g=document.getElementById("goeditor_userlink_preview");if(!f)return false;for(var h=null,j=0;j<document.forms.length;j++)if(document.forms[j].parentNode&&document.forms[j].parentNode==f){h=document.forms[j];break}if(h){h.userid.value=b;h.name_.value=c;h.useridBySearch.value=c||"";if(g)g.innerHTML='<img src="/image.php?type=user&userid='+b+'&maxsize=50" alt="" title="'+c+'" />'}}
function goeditor_setLinkShopArticle(b,c,f,g){var h=document.getElementById("goeditor_shoparticle"),j=document.getElementById("goeditor_shoparticle_preview");if(!h)return false;for(var k=null,m=0;m<document.forms.length;m++)if(document.forms[m].parentNode&&document.forms[m].parentNode==h){k=document.forms[m];break}if(k){k.article_id.value=b;k.title.value=c;k.image.value=g+"&maxsize=150";k.shoparticleidBySearch.value=Base64.decode(f)||"";if(j)j.innerHTML='<img src="'+g+'&maxsize=50" alt="" title="'+
name+'" />'}}top.document.goeditorInstances={};
function LinkedList(){var b=null,c=null,f=0;this.addItem=function(h,j){var k;if(j)if(f<j){j=f;k=new LinkedListItem(h,j);c.setNext(k);k.setPrev(c);c=k}else if(j<0){j=0;k=new LinkedListItem(h,j);b.setPrev(k);k.setNext(b);b=k;g(b.getNext(),1)}else{var m;for(m=b;m;m=m.getNext())if(m.getPos()==j){k=new LinkedListItem(h,j);m.getPrev().setNext(k);k.setPrev(m.getPrev);k.setNext(m);m.setPrev(k);g(m,1)}}else{j=f;k=new LinkedListItem(h,j);if(f<=0)b=k;else{c.setNext(k);k.setPrev(c)}c=k}f++;return true};this.removeItem=
function(h){try{if(!b||h<0||h>f)return false;var j;for(j=b;j!=null;j=j.getNext())if(j.getPos()==h){j.getPrev()&&j.getPrev().setNext(j.getNext());j.getNext()&&j.getNext().setPrev(j.getPrev());j.getNext()&&g(j.getNext(),-1);if(j==b)b=j.getNext();f--;break}}catch(k){}return true};this.getSize=function(){return f};this.getItem=function(h){if(!b||h<0||h>f)return null;var j;for(j=b;j;j=j.getNext())if(j.getPos()==h)return j;return null};this.getAllItems=function(){if(!b)return[];var h=[],j;for(j=b;j;j=j.getNext())h.push(j);
return h};function g(h,j){for(h=h;h!=null;h=h.getNext())h.setPos(h.getPos()+j)}}function LinkedListItem(b,c){var f=b,g=c,h=null,j=null;this.setPos=function(k){g=k};this.setPrev=function(k){j=k};this.setNext=function(k){h=k};this.getPos=function(){return g};this.getPrev=function(){return j};this.getNext=function(){return h};this.getItem=function(){return f}}
function Console(b,c,f,g,h){var j=[],k=0,m=b,n=document.getElementById(m),t=c,u=f,B=g,w=h,E=new Helper,C=new Dropdownlist(m),I=(new $gojen).ajax(5);C.setInputObject(m+"_input");C.setFitToParentWidth(true);var q=this;document.getElementById(m+"_input").onkeyup=function(r){q.keypressed(r,q)};document.getElementById(m).onclick=function(r){C.hide()};this.send=function(r){if(C.hasFocus())return false;C.hide();n.input.disabled="true";this.appendPrevious(n.input.value+"\n\r");r=n.input.value.indexOf(" ");
var v=new Array(2);v[0]=r>0?n.input.value.substring(0,r):n.input.value;v[1]=r>0?n.input.value.substring(r+1):"";j.push(n.input.value);k=j.length;I.request_post(t,u+"="+v[0]+"&"+B+"="+v[1],q.receive,q,false,false);return false};this.receive=function(r,v){n.input.removeAttribute("disabled",false);n.input.value="";n.input.focus();r&&v.append(v.parseAnswer(r));r=v.append("\n\r"+w);r.scrollIntoView()};this.receive_commands=function(r,v){if(r){commands=r.split("\n\r");for(r=0;r<commands.length;r++){var F=
commands[r].indexOf(" ");v=commands[r].substring(0,F);F=commands[r].substring(F+1);C.addItem(v+" ",F)}C.show()}};this.parseAnswer=function(r){output="";return r};this.append=function(r){var v=document.createElement("div");v.innerHTML="<pre>"+r+"</pre>";document.getElementById(m+"_output_scroll").appendChild(v);return v};this.appendPrevious=function(r){var v=document.getElementById(m+"_output_scroll").lastChild.innerHTML;v=E.replace(v,"</pre>","");document.getElementById(m+"_output_scroll").lastChild.innerHTML=
v+r+"</pre>"};this.keypressed=function(r,v){r=E.isIE()?window.event.keyCode:r.keyCode;switch(r){case 38:if(C.isVisible())C.setfocus();else{k=k>0?k-1:0;if(j[k])n.input.value=j[k]}break;case 40:if(C.isVisible())C.setfocus();else if(k+1==j.length){n.input.value="";break}k++;if(j[k])n.input.value=j[k];break;case 13:case 27:C.hide();break;default:if(n.input.value.length>0){I.request_post(t,u+"=get_commands&"+B+"="+n.input.value,v.receive_commands,v,false,false);C.clear()}C.hide();break}return true};this.getForm=
function(){return n};this.append(w)}function member_search_member(b){if(b.searchString.value.length<1){document.search_helper.fadeOut(document.search_quicksearch_div,true);if(document.search_helper.isIE())document.search_quicksearch_iframe.style.display="none";return false}document.search_timer&&clearTimeout(document.search_timer);document.search_timer=window.setTimeout(function(){member_search(b)},750);return false}
function member_search(b){var c="ajax/membersearch.ajax.php";if(document.relative_path)src_fil=document.relative_path+c;var f="?action="+b.action.value+"&searchString="+escape(b.searchString.value);func_param=new Array("quicksearch",b);document.search_ajax.request_post(c,f,search_callback,func_param,false,false);return false}
function search_callback(b,c){var f=c[1],g=c[2];switch(c[0]){case "quicksearch":if(b){if(document.search_quicksearch_div.innerHTML!=b)document.search_quicksearch_div.innerHTML=b;if(document.search_quicksearch_div.style.display!="block"){document.search_quicksearch_div.style.display="block";document.search_helper.fadeIn(document.search_quicksearch_div)}b=document.search_helper.getRealDimension(document.search_quicksearch_div);c=document.search_helper.getRealDimension(f);g=document.search_helper.getRealCoordinates(document.search_quicksearch_div);
f=document.search_helper.getAbsoluteCoordinates(f);document.search_helper.moveTo(document.search_quicksearch_div,f[0]-b[0]+c[0]-3,f[1]+c[1]+3);f=document.search_helper.getRealDimension("search_quicksearch_results");b=document.search_helper.getAbsoluteCoordinates("search_quicksearch_results");if(document.search_helper.isIE()){document.search_helper.resizeTo(document.search_quicksearch_iframe,f[0],f[1]);document.search_helper.moveTo(document.search_quicksearch_iframe,b[0],b[1]);document.search_quicksearch_iframe.style.display=
"block"}}break}}function search_onclick(){if(document.search_quicksearch_div.style.display!="none"){document.search_helper.fadeOut(document.search_quicksearch_div,true);if(document.search_helper.isIE())document.search_quicksearch_iframe.style.display="none"}}
function search_finish(){document.body.appendChild(document.search_quicksearch_div);document.search_helper.addEvent(document.body,"click",search_onclick,false);document.search_helper.isIE()&&document.body.appendChild(document.search_quicksearch_iframe)}
function send_search(b,c){if(b.choice.value==1)if(c==0)tagging_search_tags(b);else{if(b.tags.value.length>0){document.search_quicksearch_div.style.display="none";tagging_search(b)}}else if(b.choice.value==2){var f=b.tags.value;b.searchString.value=f;if(c==0)member_search_member(b);else if(b.tags.value.length>0){document.tagging_quicksearch_div.style.display="none";member_search(b)}}}
function submit_search(b){if(b.choice.value==1)b.setAttribute("action","?ext=tagging&task=search");else if(b.choice.value==2){var c=b.tags.value;b.searchString.value=c;b.setAttribute("action","?ext=membersearch&task=search")}}document.search_ajax=(new $gojen).ajax(5);document.search_helper=new Helper;document.search_quicksearch_div=document.createElement("div");document.search_quicksearch_div.setAttribute("id","search_quicksearch_div");document.search_quicksearch_div.setAttribute("class","search_quicksearch_div");
document.search_quicksearch_div.style.display="none";document.search_quicksearch_div.style.position="absolute";document.search_quicksearch_div.style.width="420px";document.search_quicksearch_div.style.height="520px";document.search_quicksearch_div.style.maxWidth="420px";document.search_quicksearch_div.style.maxHeight="520px";document.search_quicksearch_div.style.bottom="0";document.search_quicksearch_div.style.right="0";document.search_quicksearch_div.style.overflow="auto";
document.search_quicksearch_div.style.zIndex="12000";document.search_helper.setOpacity(document.search_quicksearch_div,0);
if(document.search_helper.isIE()){document.search_quicksearch_iframe=document.createElement("iframe");document.search_quicksearch_iframe.setAttribute("id","search_quicksearch_iframe");document.search_quicksearch_iframe.setAttribute("src","");document.search_quicksearch_iframe.setAttribute("frameborder","0");document.search_quicksearch_iframe.setAttribute("marginwidth","0");document.search_quicksearch_iframe.setAttribute("scrolling","no");document.search_quicksearch_iframe.style.display="none";document.search_quicksearch_iframe.style.position=
"absolute";document.search_quicksearch_iframe.style.width="420px";document.search_quicksearch_iframe.style.height="520px";document.search_quicksearch_iframe.style.border="0px";document.search_quicksearch_iframe.zIndex="11999"}document.search_helper.waitForBody(search_finish);
function DateSelector(b){if(!DateSelector.id&&DateSelector.id!=0)DateSelector.id=0;else DateSelector.id++;var c=DateSelector.id,f=new Helper,g=new DragNDrop,h,j=new Array(31,28,31,30,31,30,31,31,30,31,30,31),k=new Array(320,240),m=new Array(6),n=new Array(6),t="%DD%.%MM%.%YYYY%",u=1,B=null,w=null,E=false,C=false,I=this,q=null;w=b?document.getElementById(b)?document.getElementById(w):b:document.body;var r=0,v=1;b=new Array("german","english");var F=0,z=new Array(b.length);z[0]=new Array(2);z[0][r]=
[];z[0][v]=[];z[0][r].push("Montag");z[0][r].push("Dienstag");z[0][r].push("Mittwoch");z[0][r].push("Donnerstag");z[0][r].push("Freitag");z[0][r].push("Samstag");z[0][r].push("Sonntag");z[0][r].push("Mo");z[0][r].push("Di");z[0][r].push("Mi");z[0][r].push("Do");z[0][r].push("Fr");z[0][r].push("Sa");z[0][r].push("So");z[0][v].push("Januar");z[0][v].push("Februar");z[0][v].push("M&auml;rz");z[0][v].push("April");z[0][v].push("Mai");z[0][v].push("Juni");z[0][v].push("Juli");z[0][v].push("August");z[0][v].push("September");
z[0][v].push("Oktober");z[0][v].push("November");z[0][v].push("Dezember");z[0][v].push("Jan");z[0][v].push("Feb");z[0][v].push("M&auml;r");z[0][v].push("Apr");z[0][v].push("Mai");z[0][v].push("Jun");z[0][v].push("Jul");z[0][v].push("Aug");z[0][v].push("Sep");z[0][v].push("Okt");z[0][v].push("Nov");z[0][v].push("Dez");z[1]=new Array(2);z[1][r]=[];z[1][v]=[];z[1][r].push("Monday");z[1][r].push("Tuesday");z[1][r].push("Wednesday");z[1][r].push("Thursday");z[1][r].push("Friday");z[1][r].push("Saturday");
z[1][r].push("Sunday");z[1][r].push("Mo");z[1][r].push("Tu");z[1][r].push("We");z[1][r].push("Th");z[1][r].push("Fr");z[1][r].push("Sa");z[1][r].push("Su");z[1][v].push("January");z[1][v].push("February");z[1][v].push("March");z[1][v].push("April");z[1][v].push("May");z[1][v].push("June");z[1][v].push("July");z[1][v].push("August");z[1][v].push("September");z[1][v].push("October");z[1][v].push("November");z[1][v].push("December");z[1][v].push("Jan");z[1][v].push("Feb");z[1][v].push("Mar");z[1][v].push("Apr");
z[1][v].push("May");z[1][v].push("Jun");z[1][v].push("Jul");z[1][v].push("Aug");z[1][v].push("Sep");z[1][v].push("Oct");z[1][v].push("Nov");z[1][v].push("Dez");this.setLanguage=function(o){if(typeof o=="string")o=parseInt(o);switch(o){case DateSelector.GERMAN:F=DateSelector.GERMAN;break;case DateSelector.ENGLISH:F=DateSelector.ENGLISH;break}if(h){I.get_current_date();h.clear();var l=m[1];for(o=m[0];o<m[0]+6;o++){for(l=l;l<12;l++)h.addItem(z[F][v][l],o);l=0}I.fill_table(u)}};this.dropdownlistcb=function(o,
l){if(!C){n[0]=parseFloat(l);for(l=0;l<12;l++)if(z[F][v][l]==o){n[1]=l;break}I.fade()}};this.next_month=function(){if(C)return false;n[1]++;if(n[1]>11){n[1]=0;n[0]++}I.fade();return false};this.prev_month=function(){if(C)return false;n[1]--;if(n[1]<0){n[1]=11;n[0]--;if(n[0]<1900)n[0]+=1900}I.fade();return false};this.fade_complete=function(){C=false};this.fade=function(){if(u==1){u=2;I.fill_table(2);C=true;f.fadeIn(y);f.fadeOut(x,false,I.fade_complete)}else{u=1;I.fill_table(1);C=true;f.fadeIn(x);
f.fadeOut(y,false,I.fade_complete)}};this.setDateInput=function(o){B=o};function D(o){var l=document.createElement("div"),G=document.createElement("div");q=document.createElement("div");var N=document.createElement("div"),K=document.createElement("div"),Q=document.createElement("a"),p=document.createElement("a"),H=document.createElement("div"),J=document.createElement("div"),M=document.createElement("div"),L=document.createElement("div"),R=document.createElement("a"),V=document.createElement("div");
l.setAttribute("id","dateselector"+c+"cal"+o,false);G.setAttribute("id","dateselector"+c+"month_year"+o,false);K.setAttribute("id","dateselector"+c+"prev"+o,false);H.setAttribute("id","dateselector"+c+"next"+o,false);J.setAttribute("id","dateselector"+c+"days"+o,false);M.setAttribute("id","dateselector"+c+"chooser"+o,false);V.setAttribute("id","dateselector"+c+"chooseTxt"+o,false);p.href="#";K.onclick=I.prev_month;p.innerHTML="&lt;&lt;";K.appendChild(p);Q.href="#";H.onclick=I.next_month;Q.innerHTML=
"&gt;&gt;";H.appendChild(Q);R.href="#";R.onclick=I.choose;R.innerHTML="^";L.style.cssFloat="right";L.style.styleFloat="right";L.className="dateselector_chooser_link";L.style.textAlign="right";L.onclick=I.choose;L.appendChild(R);V.className="dateselector_chooser_txt";V.onclick=I.choose;V.style.textAlign="left";V.style.cssFloat="left";V.style.styleFloat="left";M.style.position="relative";M.className="dateselector_chooser";M.style.textAlign="center";l.style.position="relative";l.style.textAlign="center";
l.style.width=k[0]+"px";G.style.position="relative";G.style.width="100%";G.style.height="20px";G.style.overflow="hidden";G.className="dateselector_header";q.style.position="absolute";q.style.height="20px";q.innerHTML="X";q.className="dateselector_closebutton";q.onclick=function(){f.fadeOut(A,true)};J.style.position="relative";J.style.width="100%";J.style.textAlign="center";J.style.overflow="hidden";N.style.clear="both";K.style.position="relative";K.style.height="20px";K.style.textAlign="left";K.className=
"dateselector_prev";H.style.position="relative";H.style.height="20px";H.style.textAlign="right";H.className="dateselector_next";Q=document.createElement("table");R=document.createElement("tbody");Q.setAttribute("cellspacing","3",false);Q.setAttribute("cellpadding","3",false);Q.setAttribute("border","0",false);Q.setAttribute("width","100%",false);for(var S=0;S<7;S++){p=document.createElement("tr");for(var T=0;T<7;T++){var O=document.createElement("td");O.setAttribute("id","dateselector"+c+o+"cal"+
S+T,false);O.setAttribute("align","center",false);O.setAttribute("valign","middle",false);O.style.width="2em";O.style.height="2em";if(S>0){O.dayclickidx=S+""+T;O.onclick=function(){I.dayclick(this.dayclickidx)}}p.appendChild(O)}R.appendChild(p)}Q.appendChild(R);o=document.createElement("table");R=document.createElement("tbody");p=document.createElement("tr");S=document.createElement("td");T=document.createElement("td");O=document.createElement("td");o.setAttribute("cellspacing","0",false);o.setAttribute("cellpadding",
"0",false);o.setAttribute("border","0",false);o.setAttribute("width","100%",false);S.setAttribute("align","left",false);S.setAttribute("valign","middle",false);T.setAttribute("align","center",false);T.setAttribute("valign","middle",false);T.setAttribute("width","100%",false);O.setAttribute("align","right",false);O.setAttribute("valign","middle",false);p.appendChild(S);p.appendChild(T);p.appendChild(O);R.appendChild(p);o.appendChild(R);M.appendChild(V);M.appendChild(L);M.appendChild(N);S.appendChild(K);
T.appendChild(M);O.appendChild(H);J.appendChild(Q);l.appendChild(G);l.appendChild(J);l.appendChild(o);return l}this.choose=function(){h.setInputObject("dateselector"+c+"chooser"+u);h.show();return false};this.dayclick=function(o){if(!C){if(B){o=document.getElementById("dateselector"+c+u+"cal"+o).innerHTML;if(o.length>2)return;n[3]=o;I.set_date(n);B.value=I.formatDate()}$gojen(A).hide()}};this.setDateFormat=function(o){t=o};this.formatDate=function(){var o=t,l=n[0]+"",G=n[1]+1+"",N=n[3]+"";if(G.length<
2)G="0"+G;if(N.length<2)N="0"+N;o=o.replace("%YYYY%",l);o=o.replace("%YY%",l.substring(2));o=o.replace("%MM%",G);o=n[1]+1<10?o.replace("%M%",G.substring(1)):o.replace("%M%",G);o=o.replace("%mm%",z[F][v][n[1]]);o=o.replace("%m%",z[F][v][n[1]+12]);o=o.replace("%dd%",z[F][r][n[2]]);o=o.replace("%d%",z[F][r][n[2]+7]);o=o.replace("%DD%",N);return o=n[3]<10?o.replace("%D%",N.substring(1)):o.replace("%D%",N)};this.get_current_date=function(){date=new Date;m[0]=date.getYear();m[1]=date.getMonth();m[2]=I.pushbackSunday(date.getDay());
m[3]=date.getDate();m[4]=date.getHours();m[5]=date.getMinutes();if(m[0]<1900)m[0]+=1900};this.set_date=function(o){d=new Date;d.setDate(o[3]);d.setMonth(o[1]);d.setYear(o[0]);o[2]=I.pushbackSunday(d.getDay());n[0]=o[0];n[1]=o[1];n[2]=o[2];n[3]=o[3];n[4]=o[4];n[5]=o[5]};this.pushbackSunday=function(o){o--;if(o<0)o=6;return o};this.is_leap_year=function(o){return o%4==0&&(o%100!=0||o%400==0)};this.show=function(){A.style.display="block";if(!E)if(!w||!w.appendChild)if(document.body){w=document.body;
return I.show()}else return;else{w.appendChild(A);g.add("dateselector"+c+"month_year1","dateselector"+c);h=new Dropdownlist("dateselector_list"+c);h.setCallbackFunction(I.dropdownlistcb);h.setFitToParentWidth(true);I.get_current_date();for(var o=m[1],l=m[0];l<m[0]+6;l++){for(o=o;o<12;o++)h.addItem(z[F][v][o],l);o=0}E=true}o=f.getInnerDimension();var G=f.getRealDimension(A),N=document.helper.getBodyScrollPosition();l=(o[0]-G[0])/2+N[0];o=(o[1]-G[1])/2+N[1];I.get_current_date();I.set_date(m);I.fill_table(u);
f.moveTo(A,l,o);$gojen(A).show()};this.fill_table=function(o){document.getElementById("dateselector"+c+"month_year"+o).innerHTML=z[F][v][n[1]]+" "+n[0];document.getElementById("dateselector"+c+"month_year"+o).appendChild(q);for(var l=0;l<7;l++){document.getElementById("dateselector"+c+o+"cal0"+l).innerHTML=z[F][r][l+7];document.getElementById("dateselector"+c+o+"cal0"+l).className="dateselector_daynames";if(l>4)document.getElementById("dateselector"+c+o+"cal0"+l).className+=" dateselector_weekend"}var G=
I.pushbackSunday(I.getFirstDayInMonth(n[1],n[0]));if(I.is_leap_year(n[0]))j[1]="29";var N=1,K="";for(l=1;l<7;l++)for(var Q=0;Q<7;Q++)if(l==1&&Q<G||N>j[n[1]]){document.getElementById("dateselector"+c+o+"cal"+l+Q).innerHTML="&nbsp;";document.getElementById("dateselector"+c+o+"cal"+l+Q).className=""}else{document.getElementById("dateselector"+c+o+"cal"+l+Q).innerHTML=N;K=n[0]==m[0]&&n[1]==m[1]&&m[3]==N?"dateselector_current_day":"dateselector_day";if(Q>4)K+=" dateselector_weekend";document.getElementById("dateselector"+
c+o+"cal"+l+Q).className=K;N++}document.getElementById("dateselector"+c+"chooseTxt"+o).innerHTML=z[F][v][n[1]]+" "+n[0]};this.getFirstDayInMonth=function(o,l){date=new Date;date.setDate(1);date.setMonth(o);date.setYear(l);return date.getDay()};var x=D("1"),y=D("2");y.style.position="absolute";y.style.top="0px";y.style.left="0px";y.style.display="none";f.setOpacity(y,0);var A=document.createElement("div");A.setAttribute("id","dateselector"+c,false);A.style.position="absolute";A.style.top="0px";A.style.left=
"0px";A.className="dateselector";A.style.width=k[0]+"px";A.style.overflow="hidden";A.style.display="none";A.style.visibility="hidden";A.style.zIndex="10001";A.onselectstart=function(){return false};f.setOpacity(A,0);A.appendChild(x);A.appendChild(y);this.get_current_date()}DateSelector.GERMAN=0;DateSelector.ENGLISH=1;
function FunctionQueue(){var b=true,c=[],f=this;f=null;this.appendFunction=function(g){c.push(g)};this.perform=function(){if(c.length>0&&b){b=false;c[0]();c.shift()}};this.callback=function(){b=true}}
function Tooltip(){var b=this,c=new Helper,f=false,g=[];this.show=function(h,j,k,m,n){container=g[j][0];if(container.style.display=="none"){container.style.display="block";container.style.visibility="visible";m!="auto"&&c.resizeTo(container,m,null);n!="auto"&&c.resizeTo(container,null,n);h=c.getRealScrollDimension(container);if(n=="auto")n=h[1];if(m=="auto")m=h[0];container.style.display="none";container.style.display="";k=document.getElementById(k);var t=c.getAbsoluteCoordinates(k);h=c.getRealDimension(k);
c.getRealDimension(container);k=new Array(t[0]+h[0]/2,t[1]+h[1]/2);document.tooltips_over_dim[j]||(document.tooltips_over_dim[j]=new Array(m,n));m=new Array(k[0]-document.tooltips_over_dim[j][0]/2,k[1]-document.tooltips_over_dim[j][1]/2);if(m[0]<0)m[0]=0;if(m[1]<0)m[1]=0;c.resizeTo(container,document.tooltips_over_dim[j][0],document.tooltips_over_dim[j][1]);c.moveTo(container,m[0],m[1]);c.scale(container,0);b.slideIn(j,m,document.tooltips_over_dim[j])}};this.slideIn=function(h,j,k,m,n,t,u,B){container=
g[h][0];c.getRealDimension(container);var w=c.getAbsoluteCoordinates(container);B||(B=1);if(!m){m=0;n=new Array((k[0]-33)/20,(k[1]-33)/20);t=new Array((w[0]-j[0])/10,(w[1]-j[1])/10);u=new Array(33,33)}if(m<25){m++;B==1?c.scale(container,m/25):c.scale(container,1-m/25);setTimeout(function(){b.slideIn(h,j,k,m,n,t,u,B)},10)}else if(B==1){container.style.display="block";c.scale(container,1)}else{container.style.display="none";c.scale(container,0);c.resizeTo(container,33,33)}};this.hide=function(h,j,k){if(f)for(j=
0;j<g.length;j++){container=g[j][0];k=g[j][1];var m=document.all?window.event.clientX:h.pageX,n=document.all?window.event.clientY:h.pageY,t=2;if(container){var u=c.getRealCoordinates(container),B=c.getRealDimension(container);if(container.style.display=="block"&&(u[0]>m+t||u[0]+B[0]<m-t||u[1]>n+t||u[1]+B[1]<n-t)){k=document.getElementById(k);m=c.getAbsoluteCoordinates(k);B=c.getRealDimension(k);c.getRealDimension(container);k=new Array(m[0]+B[1]/2,m[1]+B[1]/2);container.style.display="";k=new Array(k[0]-
document.tooltips_over_dim[j][0]/2,k[1]-document.tooltips_over_dim[j][1]/2);if(k[0]<0)k[0]=0;if(k[1]<0)k[1]=0;b.slideIn(j,k,document.tooltips_over_dim[j],null,null,null,null,-1)}}}};this.hide2=function(){};this.overContainer=function(h){document.tooltips_over[h]=true};this.register=function(h,j,k,m,n){if(f){if(h){if(document.getElementById(h))h=document.getElementById(h);var t=h.innerHTML;h.style.display="none";h=h.cloneNode(true);g.push(new Array(h,j));var u=g.length-1;h.innerHTML=t;h.style.display=
"block";h.style.visibility="visible";if(n){if(n=="onclick")document.getElementById(j).onclick=function(B){b.show(B,u,j,k,m)}}else document.getElementById(j).onmouseover=function(B){b.show(B,u,j,k,m)};c.resizeTo(h,33,33);h.style.display="none";h.style.position="absolute";h.style.zIndex="20000";document.body.appendChild(h)}}else setTimeout(function(){b.register(h,j,k,m,n)},500)};this.finish=function(){f=true;c.addEvent(document.body,"mousemove",function(h){b.hide(h,-1,0)},false)};c.waitForBody(function(){b.finish()})}
document.tooltip=new Tooltip;document.tooltips_over={};document.tooltips_over_dim={};
function expand_menu(b,c,f,g,h,j){if(h==1&&b.style.display=="none"){document.expand_helper.fadeIn(b);c.style.display="none";f.style.display=""}else if(h!=1&&b.style.display!="none"){document.expand_helper.fadeOut(b,true);f.style.display="none";c.style.display=""}else{if(j)window.location.href=j;return false}b="ajax/menuexpand.ajax.php";if(document.relative_path)src_fil=document.relative_path+b;if(j){g="?action=expand&item="+g+"&exp="+h+"&url=1";expand_url=j}else g="?action=expand&item="+g+"&exp="+
h;document.expand_ajax.request_post(b,g,expand_callback,"expand",false,false);return false}function expand_callback(b,c){switch(c){case "expand":if(b=="1")window.location.href=expand_url;break}}document.expand_ajax=(new $gojen).ajax(5);document.expand_helper=new Helper;var expand_url="";
function heatmapTrack(b){if(document.heatmap_visible)return true;if(!b)b=window.event;var c=document.all?window.event.clientX:b.pageX,f=document.all?window.event.clientY:b.pageY,g=document.getElementById("heatmap_zeropoint"),h=document.helper.getAbsoluteCoordinates(g)[0];if(g){if(g.style.left)h+=parseInt(g.style.left.replace(/px/,""));if(document.helper.isIE()||document.helper.isIE7()){if(typeof b.button!="undefined"&&b.button==2)return}else if(typeof b.which!="undefined"&&b.which==3)return;b=(new $gojen).ajax(5);
g="ajax/heatmap.ajax.php";if(document.relative_path)g=document.relative_path+g;c="?task=track&x="+(c-h)+"&y="+f;b.request_post(g,c,function(){},0,false,false);return true}}function heatmapRefresh(b){var c=(new $gojen).ajax(5),f="ajax/heatmap.ajax.php";if(document.relative_path)f=document.relative_path+f;b="?task=refresh&logged_in="+b;c.request_post(f,b,function(g){g&&alert("Datenbank erfolgreich geleert")},0,false,false);return true}
function heatmapGCP(b){if(!document.gcp){document.body.innerHTML='<div id="heatmap_gcp" style="position: absolute; z-index: 99999999; display: none;"><img src="/media/images/cursor.png" alt="X" border="0" /></div>'+document.body.innerHTML;document.gcp=document.getElementById("heatmap_gcp")}var c=(new $gojen).ajax(5),f="ajax/heatmap.ajax.php";if(document.relative_path)f=document.relative_path+f;b="?task=gcp&id="+b;c.request_post(f,b,function(g){g&&eval(g)},0,false,false);return true}
function heatmapGenerate(b){var c=document.getElementById("heatmap_zeropoint");if(c){var f=document.helper.getAbsoluteCoordinates(c)[0];if(c.style.left)f+=parseInt(c.style.left.replace(/px/,""));c=document.createElement("div");c=document.helper.getScrollDimension();var g=document.helper.getRealDimension(document.body);g=c[0]-f;var h=(new Date).getTime(),j=document.getElementsByTagName("body")[0];document.heatmap_visible=true;div_x=1500;div_y=5000;if(div_x>g)div_x=g;if(div_y>c[1])div_y=c[1];for(var k=
0;k<g;k+=div_x)for(var m=0;m<c[1];m+=div_y){var n=document.createElement("div");n.style.backgroundImage="url(ajax/heatmap.ajax.php?task=drawHeatmapPart&x="+k+"&y="+m+"&t="+h+"&width="+div_x+"&height="+div_y+"&logged_in="+b+")";n.style.backgroundRepeat="no-repeat";n.style.position="absolute";n.style.width=div_x+"px";n.style.height=div_y+"px";n.style.left=f+k+"px";n.style.top=m+"px";n.onclick=heatmapHide;n.style.zIndex="9999999999";n.className="heatmap_div";document.helper.setOpacity(n,0.5);j.appendChild(n)}}}
function heatmapHide(){for(var b=document.helper.getElementsByClassName("heatmap_div",null,new Array("div")),c=0;c<b.length;c++)document.helper.fadeOut(b[c],true);document.heatmap_visible=false}document.heatmap_ajax=(new $gojen).ajax(5);document.heatmap_visible=false;document.helper.waitForBody(function(){document.helper.addEvent(document,"mousedown",function(b){heatmapTrack(b)},false)});
function Menu(b,c,f,g,h,j){var k,m,n=false,t=false,u=this,B=g||0,w=h||0,E=j;k=document.getElementById(b)?document.getElementById(b):obj_id;m=document.getElementById(c)?document.getElementById(c):c;if(k&&m){var C=f||m.className,I=m.className;k=k.cloneNode(true);this.hide=function(){if(!t&&!n){k.style.display="none";m.className=I;E&&E("out")}};this.mouseOver=function(q){switch(q){case "menu":t=true;break;case "target":if(n==false){n=true;m.className=C;k.style.display=="none"&&document.helper.fadeIn(k);
document.helper.moveRelativeTo(k,m,true,false,B,w)}break}E&&E("over")};this.mouseOut=function(q){switch(q){case "menu":t=false;window.setTimeout(u.hide,50);break;case "target":n=false;window.setTimeout(u.hide,50);break}};this.finish=function(){document.body.appendChild(k);document.helper.addEvent(k,"mouseover",function(){u.mouseOver("menu")},false);document.helper.addEvent(k,"mouseout",function(){u.mouseOut("menu")},false);document.helper.addEvent(m,"mouseover",function(){u.mouseOver("target")},false);
document.helper.addEvent(m,"mouseout",function(){u.mouseOut("target")},false)};document.helper.waitForBody(u.finish)}}function news_addComment(b){var c="ajax/news.ajax.php",f=encodeURIComponent(b.content.value);if(document.relative_path)c=document.relative_path+c;params="?task=addComment&id="+b.newsid.value+"&content="+f;func_param=new Array("addComment",b.newsid.value);document.news_ajax.request_post(c,params,news_callback,func_param,false,false)}
function news_deleteComment(b,c){var f="ajax/news.ajax.php";if(document.relative_path)f=document.relative_path+f;params="?task=deleteComment&id="+b+"&newsid="+c;func_param=new Array("deleteComment",b,c);document.news_ajax.request_post(f,params,news_callback,func_param,false,false)}
function news_callback(b,c){switch(c[0]){case "addComment":var f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+1));switch(b[0]){case "SUCCESSFUL":document.getElementById("news_comments_"+c[1]).innerHTML=b[1];f=document.getElementById("news_comments_count_"+c[1]);f.innerHTML=parseInt(f.innerHTML)+1;break;case "ERROR":if(b[1]=="notloggedin")top.location=window.location.search;else alert(b[1]);break}break;case "deleteComment":f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+1));
switch(b[0]){case "SUCCESSFUL":f=document.getElementById("news_comments_count_"+c[2]);f.innerHTML=parseInt(f.innerHTML)-1;if(f.innerHTML=="0")document.getElementById("news_comments_"+c[2]).innerHTML=b[1];else document.helper.fadeOut("news_comment_"+c[1],true);break;case "ERROR":if(b[1]=="notloggedin")top.location=window.location.search;else alert(b[1]);break}break}}document.news_ajax=(new $gojen).ajax(5);
function poll_open(b,c){document.helper.fadeIn("poll_"+b);document.helper.fadeOut(c);poll_getAnswers(b);if(document.poll_active_id&&document.poll_active_openlink){document.helper.fadeOut("poll_"+document.poll_active_id,true);document.helper.fadeIn(document.poll_active_openlink)}document.poll_active_id=b;document.poll_active_openlink=c}
function poll_getAnswers(b,c){c=c?1:0;var f="ajax/poll.ajax.php";if(document.relative_path)f=document.relative_path+f;params="?action=getPoll&id="+b+"&is_module="+c;func_param=new Array("getPoll",b,c);document.poll_ajax.request_post(f,params,poll_callback,func_param,false,false)}
function poll_addAnswer(b,c,f){if(c!=-1){f=f?1:0;var g="ajax/poll.ajax.php";if(document.relative_path)g=document.relative_path+g;params="?action=addAnswer&id="+b+"&answerid="+c+"&is_module="+f;func_param=new Array("addAnswer",b,f);document.poll_ajax.request_post(g,params,poll_callback,func_param,false,false)}}
function poll_addOwnAnswer(b,c){var f="ajax/poll.ajax.php";if(document.relative_path)f=document.relative_path+f;params="?action=addOwnAnswer&id="+b+"&value="+encodeURIComponent(c);func_param=new Array("addOwnAnswer",b);document.poll_ajax.request_post(f,params,poll_callback,func_param,false,false)}
function poll_showResults(b,c){c=c?1:0;var f="ajax/poll.ajax.php";if(document.relative_path)f=document.relative_path+f;params="?action=showResults&id="+b+"&is_module="+c;func_param=new Array("showResults",b,c);document.poll_ajax.request_post(f,params,poll_callback,func_param,false,false)}
function poll_callback(b,c){var f=c[0];if(b)switch(f){case "getPoll":f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+1));switch(b[0]){case "SUCCESSFUL":if(c[2]==0)document.getElementById("poll_"+c[1]).innerHTML=b[1];else if(c[2]==1)document.getElementById("mod_poll_"+c[1]).innerHTML=b[1];break;case "ERROR":if(b[1]=="Not logged in")top.location="?ext=poll";else alert(b[1]);break}break;case "addAnswer":f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+1));switch(b[0]){case "SUCCESSFUL":if(c[2]==
0)document.getElementById("poll_"+c[1]).innerHTML=b[1];else if(c[2]==1)document.getElementById("mod_poll_"+c[1]).innerHTML=b[1];break;case "ERROR":if(b[1]=="Not logged in")top.location="?ext=poll";else alert(b[1]);break}break;case "addOwnAnswer":f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+1));switch(b[0]){case "SUCCESSFUL":document.getElementById("poll_"+c[1]).innerHTML=b[1];break;case "ERROR":if(b[1]=="Not logged in")top.location="?ext=poll";else alert(b[1]);break}break;case "showResults":f=
b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+1));switch(b[0]){case "SUCCESSFUL":if(c[2]==0)document.getElementById("poll_"+c[1]).innerHTML=b[1];else if(c[2]==1)document.getElementById("mod_poll_"+c[1]).innerHTML=b[1];break;case "ERROR":alert(b[1]);break}break}}document.poll_ajax=(new $gojen).ajax(5);
function articles_addComment(b){var c="ajax/articles.ajax.php",f=encodeURIComponent(b.content.value),g=encodeURIComponent(b.captchacode.value);if(document.relative_path)c=document.relative_path+c;params="?task=addComment&id="+b.articlesid.value+"&content="+f+"&captchacode="+g;func_param=new Array("addComment",b.articlesid.value);document.articles_ajax.request_post(c,params,articles_callback,func_param,false,false)}
function articles_deleteComment(b,c){var f="ajax/articles.ajax.php";if(document.relative_path)f=document.relative_path+f;params="?task=deleteComment&id="+b+"&articlesid="+c;func_param=new Array("deleteComment",b,c);document.articles_ajax.request_post(f,params,articles_callback,func_param,false,false)}
function articles_callback(b,c){switch(c[0]){case "addComment":var f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+1));switch(b[0]){case "SUCCESSFUL":document.getElementById("articles_comments_"+c[1]).innerHTML=b[1];f=document.getElementById("articles_comments_count_"+c[1]);f.innerHTML=parseInt(f.innerHTML)+1;break;case "ERROR":if(b[1]=="notloggedin")top.location=window.location.search;else alert(b[1]);break}break;case "deleteComment":f=b.indexOf(" ");b=new Array(b.substring(0,f),b.substring(f+
1));switch(b[0]){case "SUCCESSFUL":f=document.getElementById("articles_comments_count_"+c[2]);f.innerHTML=parseInt(f.innerHTML)-1;if(f.innerHTML=="0")document.getElementById("articles_comments_"+c[2]).innerHTML=b[1];else document.helper.fadeOut("articles_comment_"+c[1],true);break;case "ERROR":if(b[1]=="notloggedin")top.location=window.location.search;else alert(b[1]);break}break}}document.articles_ajax=(new $gojen).ajax(5);
function newsletter_subscribe(){var b="ajax/newsletter.ajax.php";if(document.relative_path)b=document.relative_path+b;params="?insert=subscribe&newslemail="+encodeURIComponent(document.newsletterform.newslemail.value)+"&isuserlogged="+encodeURIComponent(document.newsletterform.isuserlogged.value);func_param=new Array("subscribe");document.newsletter_ajax.request_post(b,params,newsletter_callback,func_param,false,false)}
function newsletter_unsubscribe(){var b="ajax/newsletter.ajax.php";if(document.relative_path)b=document.relative_path+b;params="?delete=unsubscribe&newslemail="+encodeURIComponent(document.newsletterform.newslemail.value)+"&isuserlogged="+encodeURIComponent(document.newsletterform.isuserlogged.value);func_param=new Array("unsubscribe");document.newsletter_ajax.request_post(b,params,newsletter_callback,func_param,false,false)}
function newsletter_callback(b,c){c=c[0];if(b)switch(c){case "subscribe":c=b.indexOf(" ");b=new Array(b.substring(0,c),b.substring(c+1));switch(b[0]){case "SUCCESSFUL":document.getElementById("newslmsgnor").style.display="block";document.getElementById("newslmsgsuberr").style.display="none";document.getElementById("newslmsgtouus").style.display="none";document.getElementById("newslmsgunsuberr").style.display="none";document.getElementById("newslmsgtous").style.display="block";document.getElementById("signup_newsletterdiv").style.display=
"none";document.getElementById("unsignup_newsletterdiv").style.display="block";document.helper.fadeIn("newsletter_ordered");if(b=document.getElementById("myprofile_newsletterstatus"))b.innerHTML="Newsletter bestellt";break;case "ERROR":document.getElementById("newslmsgnor").style.display="none";document.getElementById("newslmsgtous").style.display="none";document.getElementById("newslmsgtouus").style.display="none";document.getElementById("newslmsgunsuberr").style.display="none";document.getElementById("newslmsgsuberr").style.display=
"block";break}break;case "unsubscribe":c=b.indexOf(" ");b=new Array(b.substring(0,c),b.substring(c+1));switch(b[0]){case "SUCCESSFUL":document.getElementById("newslmsgnor").style.display="none";document.getElementById("newslmsgsuberr").style.display="none";document.getElementById("newslmsgtous").style.display="none";document.getElementById("newslmsgunsuberr").style.display="none";document.getElementById("newslmsgtouus").style.display="block";document.getElementById("signup_newsletterdiv").style.display=
"block";document.getElementById("unsignup_newsletterdiv").style.display="none";document.helper.fadeOut("newsletter_ordered",true);if(b=document.getElementById("myprofile_newsletterstatus"))b.innerHTML="Newsletter abbestellt";break;case "ERROR":document.getElementById("newslmsgnor").style.display="none";document.getElementById("newslmsgtous").style.display="none";document.getElementById("newslmsgtouus").style.display="none";document.getElementById("newslmsgtouus").style.display="none";document.getElementById("newslmsgunsuberr").style.display=
"block";break}break}}document.newsletter_ajax=(new $gojen).ajax(5);function quicksearch_init(b){var c=document.helper.isIE()||document.helper.isIE7(),f=c?window.event.clientX:b.pageX,g=c?window.event.clientY:b.pageY;window.setTimeout(function(){quicksearch_check(f,g)},50)}
function quicksearch_check(b,c){var f;quicksearch_div.style.display="none";if(document.getSelection)f=window.getSelection();if(document.selection)f=document.selection;if(f.createRange)f=f.createRange();if(f.text)f=f.text;if(typeof f=="undefined"||!f||(document.helper.isIE()||document.helper.isIE7())&&typeof f=="object"||f==""||f.length<2)return false;if(!document.helper.isSafari()&&(typeof f).toString().toLowerCase()=="object")try{if(typeof f.collapse(true)=="undefined")return false}catch(g){}var h=
document.helper.getBodyScrollPosition(),j=document.helper.isIE()||document.helper.isIE7()?h[0]:0;h=document.helper.isIE()||document.helper.isIE7()?h[1]:0;document.helper.moveTo(quicksearch_div,b+5+j,c+5+h);document.helper.fadeIn(quicksearch_div);quicksearch_div.getElementsByTagName("img")[0].title='Nach "'+f+'" suchen';quicksearch_div.getElementsByTagName("img")[0].onclick=function(){quicksearch_div.getElementsByTagName("form")[0].searchword.value="'"+f.toString()+"'";document.magicfinding_window.set("",
WindowControl.POSITION.CENTER);document.magicfinding_window.show();quicksearch_div.style.display="none";quicksearch_div.getElementsByTagName("form")[0].submit()}}var quicksearch_div=document.createElement("div");quicksearch_div.style.display="none";quicksearch_div.style.cursor="pointer";quicksearch_div.style.position="absolute";quicksearch_div.innerHTML='<img src="/media/images/quicksearch.png" />';quicksearch_div.innerHTML+='<form style="display: none;" action="http://www.eadeo.iframe.magicfinding.com/index.php" target="magicfinding_results_iframe" method="post" class="magicfinding_content" accept-charset="ISO-8859-1"><input type="text" value="" name="searchword" class="inputsearch" size="38" /><input type="hidden" name="slidercheckbox" class="inputsearch" size="6" value="slider" /><input name="searchsubmit" type="submit" class="buttonsearch" value="Produkt suchen" /></form>';
document.helper.waitForBody(function(){document.body.appendChild(quicksearch_div)});document.helper.addEvent(document,"mouseup",quicksearch_init,false);
CSS3Effects=function(b){b=b||[];var c=new Array(b.length),f=this;this.appear=function(g){g=g||{};for(var h=0;h<b.length;h++){g.object=b[h];this.append(CSS3Effect_Appear,g,h)}return this};this.disappear=function(g){g=g||{};for(var h=0;h<b.length;h++){g.object=b[h];this.append(CSS3Effect_Disappear,g,h)}return this};this.rotate=function(g){g=g||{};for(var h=0;h<b.length;h++){g.object=b[h];this.append(CSS3Effect_Rotate,g,h)}return this};this.sleep=function(g){var h={};h.timeout=parseInt(g);for(g=0;g<
b.length;g++){h.object=b[g];this.append(CSS3Effect_Sleep,h,g)}return this};this.next=function(g){if(c[g]){c[g].shift();if(c[g].length>0)for(new c[g][0][0](c[g][0][1],function(){f.next(g)});c[g][1]&&c[g][1][1].parallel;){new c[g][1][0](c[g][1][1],null);c[g].shift()}}};this.append=function(g,h,j){if(h.parallel&&c[j].length<2){new g(h,null);return this}if(typeof c[j]=="undefined")c[j]=[];c[j].push(new Array(g,h));c[j].length<2&&new g(h,function(){f.next(j)});return this}};
function CSS3Effect(b,c){if(b){this.object=$gojen(b.object).element();this.step=0;this.stepsize=b.stepsize||1;this.steps=b.steps||20;this.timeout=b.timeout||20;if(b.duration)this.timeout=b.duration/(this.steps/this.stepsize)*1000;this.callback=b.callbackFunction||function(){};this.callclass=c;this.finish=function(){try{this.object.style.overflow=this.old_overflow}catch(g){}this.callback();this.callclass&&this.callclass()};if(!this.object)return false;if(Gojen.is_ie)return this.alternative();try{this.old_overflow=
this.object.style.overflow}catch(f){}this.object.style.overflow="hidden";this.effect()}}CSS3Effect.prototype.effect=function(){};CSS3Effect.prototype.alternative=function(){var b=this;b.finish()};
function CSS3Effect_Appear(b,c){this.effect=function(){var f=this;if(f.step==0){document.helper.scale(f.object,0);if(f.object.style.display=="none")f.object.style.display="";if(f.object.style.visibility=="hidden")f.object.style.visibility=""}if(f.step<f.steps){document.helper.scale(f.object,f.step/f.steps);f.step+=f.stepsize;window.setTimeout(function(){f.effect()},f.timeout)}else{document.helper.scale(this.object,1);f.finish()}};this.alternative=function(){var f=this;$gojen(f.object).show();f.finish()};
this.constructor(b,c)}CSS3Effect_Appear.prototype=new CSS3Effect;
function CSS3Effect_Disappear(b,c){this.effect=function(){var f=this;if(f.step==0){document.helper.scale(f.object,1);if(f.object.style.display=="none")f.object.style.display="";if(f.object.style.visibility=="hidden")f.object.style.visibility=""}if(f.step<f.steps){document.helper.scale(f.object,1-f.step/f.steps);f.step+=f.stepsize;window.setTimeout(function(){f.effect()},f.timeout)}else{document.helper.scale(this.object,0);f.finish()}};this.alternative=function(){var f=this;$gojen(f.object).hide();
f.finish()};this.constructor(b,c)}CSS3Effect_Disappear.prototype=new CSS3Effect;
function CSS3Effect_Rotate(b,c){this.effect=function(){var f=this;if(f.step==0){if(f.object.style.display=="none")f.object.style.display="";if(f.object.style.visibility=="hidden")f.object.style.visibility=""}if(f.step<f.steps){var g=parseInt(Math.abs(f.end-f.start)/100*f.step/f.steps*100);g=f.end>f.start?g+f.start:f.start-g;document.helper.rotate(f.object,g);f.step+=f.stepsize;window.setTimeout(function(){f.effect()},f.timeout)}else{document.helper.rotate(f.object,f.end);f.finish()}};this.start=typeof b.start!=
"undefined"?b.start:0;this.end=typeof b.end!="undefined"?b.end:360;this.constructor(b,c)}CSS3Effect_Rotate.prototype=new CSS3Effect;function CSS3Effect_Sleep(b,c){this.effect=function(){var f=this;if(f.step==0){f.step++;window.setTimeout(function(){f.effect()},f.timeout)}else f.finish()};this.constructor(b,c)}CSS3Effect_Sleep.prototype=new CSS3Effect;
function openHeaderSubmenu(b,c){for(var f=new Array("knowledge","shopping","lifestyle"),g=null,h=null,j=0;j<f.length;j++){g=document.getElementById("button_"+f[j]);h=document.helper.getElementsByClassName("menu_bottom_"+f[j],null,new Array("div"));h=h[0];if(j==b){g.src=c+"/newdesign/intern/button_"+f[j]+"_hover.png";if(h&&h.style)h.style.display=""}else{g.src=c+"/newdesign/intern/button_"+f[j]+".png";if(h&&h.style)h.style.display="none"}}if(document.getElementById("headmediafile_"+b)){document.helper.closeByClassname("headmediafile");
document.getElementById("headmediafile_"+b).style.display=""}}
function layoutFixes(){positionFixed("fixed_div",null,0,96,null);document.magicfinding_window=new WindowControl("magicfinding_window",document.body,false,"image.php?type=user&userid=1&userhash=laetitia_1_500.jpg&maxsize=170");document.magicfinding_window.set("dimension",1000,500);document.magicfinding_window.set("titlebarDimension",1000,20);document.magicfinding_window.set("modal",true);document.magicfinding_window.set("delete_on_close",false);document.magicfinding_window.set("onclose",function(){window.setTimeout(function(){$gojen(quicksearch_div).hide()},
100)});document.magicfinding_window.set("title","W&uuml;nsche-Erf&uuml;ller - Ergebnisse");document.magicfinding_window.set("content",'<!--<div style="text-align: center;">--\><iframe style="width: 100%; height: 500px;" src="" name="magicfinding_results_iframe" border="0" scrolling="auto" marginheight="0" marginwidth="0" frameborder="0" charset="ISO-8859-1"></iframe><!--</div>--\>');for(var b=document.getElementsByTagName("form"),c=0,f=b.length;c<f;c++)if(!(!b[c].getAttribute||!b[c].getAttribute||
!b[c].getAttribute("action",false)||!b[c].getAttribute("action",false).indexOf))if(!(!b[c].getAttribute("action",false)||b[c].getAttribute("action",false).indexOf("magicfinding")==-1)){b[c].target="magicfinding_results_iframe";if(b[c].onsubmit)document.helper.addEvent(b[c],"submit",function(){document.magicfinding_window.set("",WindowControl.POSITION.CENTER);document.magicfinding_window.show()},false);else b[c].onsubmit=function(){document.magicfinding_window.set("",WindowControl.POSITION.CENTER);
document.magicfinding_window.show()}}}function schnipp(){}function schnapp(){}document.helper.waitForBody(layoutFixes);
