var aks_isIE=0,aks_isNN=0,aks_isMF=0;if(navigator.userAgent.indexOf("Firefox")!=-1){aks_isMF=1;}if(document.all){aks_isIE=1;}else{if(document.layers){aks_isNN=1;}}var aks_isOpera=(navigator.userAgent.indexOf("Opera")>0);function aks_set_select_value(D,C){if(!(obj=my$(D))){return false;}if(obj.options){var A=obj.options.length;var B=obj.options;for(i=A-1;i>=0;i--){if(B[i].value==C){B[i].selected=true;break;}}return true;}return false;}function aks_suredelete(A){val_=confirm(suredelete_confirm);if(val_==false){return false;}A.action_.value="delete";return true;}function aks_suredeleteAktuell(A){val_=confirm(suredelete_confirm);if(val_==false){return false;}A.action_.value="delete_aktuell";return true;}function aks_suredelete_rubrik(A){return confirm(suredelete2_confirm);}function aks_sureoben(A){val_=confirm(sureoben_confirm);if(val_==false){return false;}A.action_.value="oben";return true;}function aks_sureunten(A){val_=confirm(sureunten_confirm);if(val_==false){return false;}A.action_.value="unten";return true;}function aks_getElement(A){return my$(A);}function my$(A){if(typeof document.getElementById(A)!="undefined"){return document.getElementById(A);}else{return false;}}function aks_popupWnd(B,F,C,H,E){if(F=="random"){F="wnd"+(Math.ceil(Math.random()*10)).toString();}var I="status=off,menubar=off,height="+H+",width="+C;var D=(screen.height-H)/2-15,G=(screen.width-C)/2;I+=",top="+D+",left="+G;if((E=="on")||(E==true)){I+=",scrollbars=1";}else{if(E=="auto"){I+=",scrollbars=1";}else{I+=",scrollbars=0";}}var A=window.open(B,F,I);A.document.close();return A;}function aks_changeCheck(A){if(obj=aks_getElement(A)){obj.checked=!obj.checked;}}function aks_setView(B,A){var C=aks_getElement(B);C.style.display=(A)?"":"none";}function aks_setVisibility(B,A){var C=aks_getElement(B);C.style.visibility=(A)?"visible":"hidden";}function aks_getView(A){var B=aks_getElement(A);return B.style.display;}function aks_changeView(A){visibility_=aks_getView(A);show=(visibility_=="none")?true:false;aks_setView(A,show);return true;}function aks_setFarbe(B,A){theCells=B.cells;var C=theCells.length;for(c=0;c<C;c++){theCells[c].style.backgroundColor=A;}}function aks_setFarbeCell(B,A){B.style.backgroundColor=A;}function sF(B,A){aks_setFarbeCell(B,A);}function aks_goToURL(A){location.href=A;}function go(A){aks_goToURL(A);}function addEvent(D,C,A){if(D.attachEvent){var B=D.attachEvent("on"+C,A);return B;}else{if(D.addEventListener){D.addEventListener(C,A,true);return true;}else{return false;}}}function aks_checkSuche(B,A){return((my$(B).value!="")&&(my$(B).value!=A));}function aks_configPopUp(){aks_popupWnd("edit_config.php","configPopUp",500,550,true);return false;}function MM_preloadImages(){var D=document;if(D.images){if(!D.MM_p){D.MM_p=new Array();}var C,B=D.MM_p.length,A=MM_preloadImages.arguments;for(C=0;C<A.length;C++){if(A[C].indexOf("#")!=0){D.MM_p[B]=new Image;D.MM_p[B++].src=A[C];}}}}function MM_swapImgRestore(){var C,A,B=document.MM_sr;for(C=0;B&&C<B.length&&(A=B[C])&&A.oSrc;C++){A.src=A.oSrc;}}function MM_findObj(E,D){var C,B,A;if(!D){D=document;}if((C=E.indexOf("?"))>0&&parent.frames.length){D=parent.frames[E.substring(C+1)].document;E=E.substring(0,C);}if(!(A=D[E])&&D.all){A=D.all[E];}for(B=0;!A&&B<D.forms.length;B++){A=D.forms[B][E];}for(B=0;!A&&D.layers&&B<D.layers.length;B++){A=MM_findObj(E,D.layers[B].document);}if(!A&&document.getElementById){A=document.getElementById(E);}return A;}function MM_swapImage(){var D,C=0,A,B=MM_swapImage.arguments;document.MM_sr=new Array;for(D=0;D<(B.length-2);D+=3){if((A=MM_findObj(B[D]))!=null){document.MM_sr[C++]=A;if(!A.oSrc){A.oSrc=A.src;}A.src=B[D+2];}}}function gallery(A){document.images.bigest.src="i/g/"+A;}function showGallery(A,B){pos=cumulativeOffset(my$("TRtxt"));if(!pos[0]){pos=cumulativeOffset(my$("bigest"));}gallery(A);aks_setView("TRtxt",false);aks_setView("TRbild",true);if(my$("bildTitel")){my$("bildTitel").innerHTML=B;}}function hideGallery(){aks_setView("TRbild",false);aks_setView("TRtxt",true);}function cumulativeOffset(B){var A=0,C=0;do{A+=B.offsetTop||0;C+=B.offsetLeft||0;B=B.offsetParent;}while(B);return[C,A];}function swst(B,A){if(B){B.className=A;}}function focushandler(A,B){if(A.value==B){A.value="";}}function blurhandler(A,B){if(A.value==""){A.value=B;}}function loadMovie(A){if(AC_FL_RunContent==0){alert("This page requires AC_RunActiveContent.js.");}else{if(1||DetectFlashVer(8,0,0)){my$("flvDiv").innerHTML=AC_FL_RunContent("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0","width","400","height","300","src","fPlayerIn2.0","quality","high","pluginspage","http://www.macromedia.com/go/getflashplayer","align","middle","play","true","loop","true","scale","exactfit","wmode","window","devicefont","false","id","fPlayer","bgcolor","#000000","name","fPlayer","menu","false","FlashVars","playList=getflvxml.php?f="+A,"allowFullScreen","true","allowScriptAccess","sameDomain","movie","fPlayerIn2.0","salign","");}else{my$("flvDiv").innerHTML='<div align="center"><a href="http://get.adobe.com/flashplayer/">Sie brauchen neue Flash Player installieren hier</a></div>';}}}function calGoMonth(A){curMonth+=A;if(curMonth>11){curMonth=0;curYear++;}if(curMonth<0){curMonth=11;curYear--;}buildCalender();preloadEvents(A);}function buildCalender(){$("#calMonth").html(Date.monthNames[curMonth]);$("#calYear").html(curYear);if(typeof window.calendarMonths[curYear+""+curMonth]=="undefined"){$.getJSON("ajax?action=getEvents&y="+curYear+"&m="+curMonth,function(B){window.calendarMonths[curYear+""+curMonth]=1;for(var A=0;A<B.length;A++){arr=B[A].date.split("-");dd=new Date(arr[0],arr[1]-1,arr[2]);window.bankHolidays["d"+dd.getTime()]=B[A];}$("#datepicker").renderCalendar({month:curMonth,year:curYear,renderCallback:window.markBankHolidays,showHeader:$.dpConst.SHOW_HEADER_SHORT,cellSpacing:5});if((__curYear==curYear)&&(__curMonth==curMonth)){saveCalender();}});}else{$("#datepicker").renderCalendar({month:curMonth,year:curYear,renderCallback:window.markBankHolidays,showHeader:$.dpConst.SHOW_HEADER_SHORT,cellSpacing:5});}}function preloadEvents(A){m=curMonth+A;y=curYear;if(m>11){m=0;y++;}if(m<0){m=11;y--;}if(typeof window.calendarMonths[y+""+m]=="undefined"){$.getJSON("ajax?action=getEvents&y="+y+"&m="+m,function(C){window.calendarMonths[y+""+m]=1;for(var B=0;B<C.length;B++){arr=C[B].date.split("-");dd=new Date(arr[0],arr[1]-1,arr[2]);window.bankHolidays["d"+dd.getTime()]=C[B];}});}}function postComment(A){if($("#commentName").attr("value")==""||$("#commentText").attr("value")==""){return ;}$.each($(":input"),function(){$(this).attr("disabled","disabled");});$.ajax({type:"GET",url:"ajax?action=addComment&name="+encodeURIComponent($("#commentName").attr("value"))+"&msg="+encodeURIComponent($("#commentText").attr("value"))+"&e="+A,data:"",success:function(B){$("#infDiv").fadeIn("slow");$.each($(":input"),function(){$(this).attr("disabled","");});my$("commentName").value=my$("commentText").value="";setTimeout(function(){$("#infDiv").fadeOut("slow");},5000);},error:function(B,C){alert(C);}});}function loadComments(A){$.getJSON("ajax?action=getComments&e="+A,function(C){if(!C.length){return ;}html='<h4 class="t_15">Комментарии и отзывы</h4><br><br>';for(var B=0;B<C.length;B++){html+="<b>"+(B+1)+". "+C[B].name+" "+C[B].date+"</b><br>"+C[B].msg+"<hr>";}$("#comments").html(html);});}function saveCalender(){$.ajax({type:"POST",url:"ajax?action=saveCalender",data:{content:$("#datepicker").html()}});}
