/*
 * JsMin
 * Javascript Compressor
 * http://www.crockford.com/
 * http://fmarcia.info/jsmin/test.html
*/
var WLSearchBoxConfiguration={"global":{"serverDNS":"search.live.com","market":"de-DE"},"appearance":{"autoHideTopControl":false,"width":800,"height":550,"theme":"Blue"},"scopes":[{"type":"web","caption":"&#x7a;&#x65;&#x72;&#x62;&#x69;&#x74;&#x2e;&#x64;&#x65;","searchParam":"site:www.zerbit.de"},{"type":"web","caption":"&#x57;&#x65;&#x62;","searchParam":""}]};var popupImg;function toggleArea(sArea){if($("#"+sArea).attr("class")=='show'){$("#"+sArea).hide("normal");$("#"+sArea).removeClass("show").addClass("hide");}else{$("#"+sArea).show("normal");$("#"+sArea).removeClass("hide").addClass("show");}}
function showArea(sArea,sStatus){if($("#"+sArea).attr("class")!=sStatus){if($("#"+sArea).attr("class")=='show'){$("#"+sArea).hide("normal");$("#"+sArea).removeClass("show");}else{$("#"+sArea).show("normal");$("#"+sArea).removeClass("hide");}
$("#"+sArea).addClass(sStatus);}}
function toogleBarArea(sArea,sThrobber,sClassOpen,sClassClosed,sCookieName,bForceOpen){var sClass=$("#"+sThrobber).attr("class");var bOpened=false;if(sClass==sClassClosed){$("#"+sThrobber).removeClass(sClassClosed).addClass(sClassOpen);if(sCookieName.length!=0){$.cookie(sCookieName,$("#"+sThrobber).attr("class"));}
bOpened=true;}
if(bOpened==true||bForceOpen==false){$('#'+sArea).slideToggle(function(){if(bForceOpen==false){if(sClass==sClassOpen){$("#"+sThrobber).removeClass(sClassOpen).addClass(sClassClosed);if(sCookieName.length!=0){$.cookie(sCookieName,$("#"+sThrobber).attr("class"));}}}});}}
function showBlockDialog(sInnerDialog,sCaption,iWidth,iHeight){iWidthDelta=(iWidth/2)-iWidth;iHeightDelta=(iHeight/2)-iHeight;var sBlock=""
sBlock+="<div class='bui_container'>";sBlock+="<div class='bui_wrapper' style='width: "+(iWidth+40)+"px;'><!-- td-width plus 40 pixel -->"
sBlock+="<table class='bui_table' cellspacing='0'>";sBlock+="<tbody>";sBlock+="<tr class='bui_row'>";sBlock+="<td class='bui_border bui_top_left'/>";sBlock+="<td class='bui_border bui_top_middle'/>";sBlock+="<td class='bui_border bui_top_right'/>";sBlock+="</tr>";sBlock+="<tr class='bui_row'>";sBlock+="<td class='bui_border bui_middle_left'/>";sBlock+="<td class='rounded-white' style='position: relative; width: "+iWidth+"px; height: "+iHeight+"px;'>";sBlock+=sInnerDialog;sBlock+="</td>";sBlock+="<td class='bui_border bui_middle_right' />";sBlock+="</tr>";sBlock+="<tr class='bui_row'>";sBlock+="<td class='bui_border bui_bottom_left'/>";sBlock+="<td class='bui_border bui_bottom_middle'/>";sBlock+="<td class='bui_border bui_bottom_right'/>";sBlock+="</tr>";sBlock+="</tbody>";sBlock+="</table>";sBlock+="<div id='bui_close' class='bui-closebutton' title='Schließen' />";sBlock+="</div>"
sBlock+="</div>"
$.blockUI(sBlock,{width:iWidth+'px',height:iHeight+'px',margin:iHeightDelta+'px 0 0 '+iWidthDelta+'px'});$('#bui_close').click($.unblockUI);}
function showTBU(lID){if($('#details_toolbar').height()!=140){var sURL="../js/get_tbu.aspx?id="+String(lID);$.getJSON(sURL,function(json){$('#ShowTBULink').hide();var sHTML='<div>Trackback-URL:</div>';sHTML+='<div><textarea id="tbu" rows="2" cols="20" readonly="readonly" onclick="this.select(); this.focus();">'+json.tbuinfo.tbu+'</textarea></div>';sHTML+='<div class="mini">Diese URL wechselt t&auml;glich, um Spam zu vermeiden.</div>';$('#ShowTBU').append(sHTML);$('#details_toolbar').height(140);$('#tbu').focus();});}}
function showImage(iWidth,iHeight,sImagePath,sAltText){iWidth+=20;var sInnerDialog="<img src='"+sImagePath+"' alt='"+sAltText+"' />";showBlockDialog(sInnerDialog,sAltText,iWidth,iHeight);}
function waitUntilPopupImageLoaded(sImagePath,sAltText){if(popupImg.complete){document.body.style.cursor="default";showImage(popupImg.width+10,popupImg.height,sImagePath,sAltText);}else{setTimeout(function(){waitUntilPopupImageLoaded(sImagePath,sAltText);},100);}}
function showImageAuto(sPath,sFile,sAltText){sImagePath=sPath+'/'+sFile;document.body.style.cursor="wait";popupImg=new Image();popupImg.src=sImagePath;waitUntilPopupImageLoaded(sImagePath,sAltText);}
function showInputPreview(sCommandName,sTextfieldName,sPreviewURL){var sText=$('#'+sTextfieldName).val();if(sText.length==0){alert('Bitte gib zuvor einen Text ein!');}else{sText=escape(sText);sText=sText.replace(/\n/g,"/n");var sURL=sPreviewURL+'?t='+sText;iWidth=600;iHeight=300;var sInnerDialog="<iframe height='100%' width='100%' style='border: none' src='"+sURL+"' />";var sCaption='Vorschau';showBlockDialog(sInnerDialog,sCaption,iWidth,iHeight);}}
function showGollum(sSearchWord){iWidth=800;iHeight=600;var sInnerDialog="<iframe height='100%' width='100%' style='border: none' src='http://gollum.easycp.de/gollum/gollum.php?init=1&a=core&l=de&wl=de&q="+sSearchWord+"' />";var sCaption='Gollum Wikipedia Browser';showBlockDialog(sInnerDialog,sCaption,iWidth,iHeight);}
function setCalendarYear(iYear){$('#calYearCaption').html(iYear);$('#calInfo').hide();$('#calList').hide();$('#calLoadThrobber').show();var sURL="../js/get_calendar_data.ashx?year="+String(iYear);$.getJSON(sURL,function(json){if(json.CalData.rowcount==0){$('#calInfo').show('slow');$('#calInfo').html('Für dieses Jahr gibt es keine Blog-Beiträge!');}else{$('#calInfo').hide();for(var i=0;i<=12;i++){$('#calC'+String(i+1)).html('(0)');$('#calA'+String(i+1)).attr('href','javascript:alert("Für diesen Monat gibt es keine Blog-Beiträge")');for(var j=0;j<=json.CalData.rowcount-1;j++){if(json.CalData.rows[j].blogMonth==i+1){$('#calC'+String(i+1)).html('('+json.CalData.rows[j].blogCount+')');var sPage=$('#calPage').val();sPage=sPage.replace(/yyyy/,json.CalData.rows[j].blogYear);sPage=sPage.replace(/mm/,json.CalData.rows[j].blogMonth);$('#calA'+String(i+1)).attr('href',sPage);bFound=true;break;}}}
$('#calList').show('slow');}
$('#calLoadThrobber').hide();});}
function showBarCut(sName,bStartUp){sBarCutOpen=$("#"+gsActualBarCut).val();if(bStartUp==false){if(sBarCutOpen.length>0){if(sBarCutOpen==sName){$('#'+sName).slideUp();$('#spacer').hide();sBarCutOpen='';$("#"+gsActualBarCut).val(sBarCutOpen);return;}else{$('#'+sBarCutOpen).slideUp();}}
$('#'+sName).slideDown();}else{$('#'+sName).show();}
$('#spacer').show();sBarCutOpen=sName;var sURL='';if(sName=='calendar'){var datCurrent=new Date();var iYear=datCurrent.getFullYear();setCalendarYear(iYear);sURL='';}
if(sURL.length!=''){var sWaitElement="<img src='../images/ajaxload_indi.gif' class='wait' alt='' />";$('#'+sName).html(sWaitElement);$.ajax({url:sURL,dataType:"html",cache:false,success:function(sModuleContent){$('#'+sName).html(sModuleContent);}});}
$("#"+gsActualBarCut).val(sBarCutOpen);}
function showAllKeywords(){var sWaitElement="<img src='../images/ajaxload_indi.gif' class='wait' alt='' />";$('#topkeywords').html(sWaitElement);var sURL='../js/all_keywords.aspx';$.ajax({url:sURL,dataType:"html",cache:false,success:function(sHTMLContent){$('#topkeywords').html(sHTMLContent);}});}