$(document).ready(function(){$("#pMenu h3").each(function(){if($(this).next()){$(this).css({cursor:"pointer"});$(this).bind("click",function(){if($(this).next().is(":visible")){if($.browser.msie){$(this).next().hide()}else{$(this).next().slideUp(250)}}else{$(this).next().slideDown(250)}return false})}});$(".popupTrigger").each(function(){var a=$(this).attr("href");$(this).attr("href","javascript:myOpenWH('"+a+"',800, 730);void 0;");$(this).removeAttr("target")});$(".popoverTrigger").each(function(){var a=$(this).attr("id");$(this).bind("mouseover",function(b){elementPopOver(a+"Content",250,180,true,true);if($.browser.msie){$("select").show()}moveElementPopOver($(this).offset(),250,false,true)});$(this).bind("mouseout",function(b){closeElementPopOver()});$(this).show();$(this).css({outline:"none",cursor:"pointer"});$(this).removeAttr("target")})});function checkMultiSelectsForForm(c){for(var b=0;b<c.elements.length;++b){if(c.elements[b].className=="multiSelectIn"){for(var a=0;a<c.elements[b].options.length;++a){c.elements[b].options[a].selected=true}}}}function checkBox(a){var b=$(a).find("input").eq(0);if(b){b.attr("checked",!(b.attr("checked")))}}function radioBox(a){var b=$(a).find("input").eq(0);if(!(b.attr("checked"))){b.attr("checked","checked")}}function lowerThan(d,c){return(d<c)}function biggerThan(d,c){return(d>c)}function xAnd(d,c){return(d&c)}function and(d,c){return(d&&c)}function hidePopover(d){var c=document.getElementById(d);if(document.all){c=document.all[d]}if(c){c.style.width="0px";c.style.height="0px";c.style.visibility="hidden";var b=document.getElementsByTagName("select");for(var a=0;a<b.length;++a){b[a].style.visibility="visible"}}}function showLoading(c,e,d){var b=SRContext.popLoadingBox;var g=SRContext.popLoadingMessage;if($.browser.msie){$("select").hide()}$(".hide-on-popover").hide();$(SRContext.popBg).show();$(SRContext.popFifty).show();$(SRContext.popBg).css("height",$(document).height());$(SRContext.popFifty).prepend($(b));$(b).show();if(e){$(g).html(e);$(g).show()}else{$(g).hide()}var a=$(b).width()/2;var f=calculatePopY($(b).height());$(b).css({position:"absolute",left:"-"+a+"px",top:""+f+"px"});if(d){$(b).click(d);$(b).css({cursor:"pointer"})}else{$(b).css({cursor:""})}}function hideLoading(a){if(a){$(SRContext.popFifty).hide();$(SRContext.popBg).hide();if($.browser.msie){$("select").show()}$(".hide-on-popover").show()}$(SRContext.popLoadingBox).css({position:"absolute",left:"-400px",top:"-400px"})}function imagePopOver(a){if(null!=a){if($.browser.msie){$("select").hide()}$(".hide-on-popover").hide();$(SRContext.popBg).show();$(SRContext.popFifty).show();$(SRContext.popBg).css("height",$(document).height());$(SRContext.popContent).hide();showLoading(true,"Klicken, um Vorschau zu beenden",function(){hideLoading(true)});$(SRContext.popFifty).prepend($('<img id="sr-popover-preview-img" src="'+a+'" alt="Hier klicken, um Vorschau zu beenden" title="Hier klicken, um Vorschau zu beenden" border="0" align="center" style="width:1px;height:1px;" />').load(function(){$(this).show();$(this).css({width:"",height:""});var b=$(this).width()/2;var c=$(window).height()-$(this).height()-(($(window).height()-$(this).height())/2);c+=$(window).scrollTop();$(this).css({border:"10px solid #333333",position:"absolute",left:"-"+b+"px",top:""+c+"px",cursor:"pointer"});$(SRContext.popBg).css("height",$(document).height());$(this).click(function(){$(SRContext.popFifty).hide();$(SRContext.popBg).hide();if($.browser.msie){$("select").show()}$(".hide-on-popover").show();$(this).remove()});hideLoading();console.log(this)}))}}function elementPopOver(b,c,a,d,e){if($("#"+b)){jqElementPopOver($("#"+b),c,a,d,e)}}function jqElementPopOver(l,b,m,d,e){closeElementPopOver();var f="";var k="";if(b){k="width:"+b+"px;"}if(m){f="height:"+m+"px;"}var c="";var g="&#160;";var a=!e;if($.browser.msie){$("select").hide()}$(".hide-on-popover").hide();if(a){$(SRContext.popBg).show();$(SRContext.popBg).draggable("disable")}else{$("#divPopContent").draggable({cursor:"move",containment:"document",addClasses:false});g="<small>-- klicken und ziehen --</small>"}$(SRContext.popFifty).show();$(SRContext.popBg).css("height",$(document).height());$(SRContext.popFifty).prepend($(SRContext.popContent));$(SRContext.popContent).show();if(l.css("overflow")){c="overflow:"+l.css("overflow")+";"}if(d){$(SRContext.popContent).prepend(l.html())}else{$(SRContext.popContent).prepend($('<table class="popContent" cellpadding="0" cellspacing="0" width="100%" border="0"><thead class="popContent"><tr><th class="popContent" style="text-align:right;padding-right:6px;"><a title="Hier klicken zum Verbergen" href="javascript:closeElementPopOver();"> schlie&szlig;en </a></th></tr></thead><tbody class="popContent"><tr><td class="popContent"><div style="padding:20px;'+k+f+c+'">'+l.html()+'</div></td></tr></tbody><tfoot class="popContent"><tr><th class="popContent"> '+g+" </th></tr></tfoot></table>"))}var j=$(SRContext.popContent).width()/2;var i=0;i=calculatePopY($(SRContext.popContent).height());$(SRContext.popContent).css({position:"absolute",left:"-"+j+"px",top:""+i+"px"})}function moveElementPopOver(b,d,g,f){$(SRContext.popContent).css("width",d);var c=$(SRContext.popContent).height()/2;var a=b.left;var i=b.top;if(g){a=a-(d+10)}else{a=a+30}if(f){i=i-(c-30)}else{i=i+c+10}var e=$(SRContext.popFifty).offset();a=a-e.left;$(SRContext.popContent).css({left:a,top:i})}function closeElementPopOver(){$(SRContext.popFifty).hide();$(SRContext.popBg).hide();if($.browser.msie){$("select").show()}$(".hide-on-popover").show();$(SRContext.popContent).empty();$(SRContext.popContent).css({top:"-800px",left:"-350px"});$(SRContext.popContent+" > *").remove()}function htmlPopOver(b,c){var d="popContentInnerBox";if($.browser.msie){$("select").hide()}$(".hide-on-popover").hide();$(SRContext.popBg).show();$(SRContext.popBg).css("height",$(document).height());$(SRContext.popContent).hide();if(null==c){c=""}$("body").prepend($('<table id="srHtmlPopup" class="popContent" cellpadding="0" cellspacing="0" border="0" style="position:absolute;top:-1000px;left:-1000px;z-index:99;margin-left:auto;margin-right:auto;text-align:center;"><thead class="popContent"><tr><th class="popContent" style="text-align:right;padding-right:6px;cursor:pointer;" title="Hier klicken zum Verbergen"onclick="closeHtmlPopup();'+c+'"> schlie&szlig;en </th></tr></thead><tbody class="popContent"><tr><td id="'+d+'" class="popContent" style="padding:0px;">'+b+'</td></tr></tbody><tfoot class="popContent"><tr><th class="popContent"> &#160; </th></tr></tfoot></table>'));var a=($(window).width()-$("#srHtmlPopup").width())/2;var e=$(window).height()-$("#srHtmlPopup").height()-(($(window).height()-$("#srHtmlPopup").height())/2);e+=$(window).scrollTop();$("#srHtmlPopup").css({left:a+"px",top:e+"px"});return d}function closeHtmlPopup(){$(SRContext.popBg).hide();if($.browser.msie){$("select").show()}$("#srHtmlPopup").remove()}function doAjax(a,b){if(null!=b){$.getJSON(a,b)}else{$.getJSON(a)}}function calculatePopY(a){var b=$(window).height()/2;if("centered"==SRContext.POP_OVER_HTML_Y_OFFSET_POLICY){b+=SRContext.POP_OVER_HTML_FIXED_Y_OFFSET}else{if("top"==SRContext.POP_OVER_HTML_Y_OFFSET_POLICY){b=SRContext.POP_OVER_HTML_FIXED_Y_OFFSET}else{b-=(a/2)}}b+=$(window).scrollTop();if(b<$(window).scrollTop()){b=$(window).scrollTop()}return b}function myOpenWH(c,b,d){var a=(screen.width-b)/2;var e=(screen.height-d)/2;if(SRContext.dependendPopup&&SRContext.dependendPopup.closed!=true){SRContext.dependendPopup.close()}SRContext.dependendPopup=window.open(c,SRContext.dependendPopupName,"top="+e+",left="+a+",width="+b+",height="+d+",resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,dependend=yes");SRContext.dependendPopup.focus()}function openDlg(b){var c=120;var a=240;SRContext.dependendPopup=window.open(b,SRContext.dependendPopupName,"top=0,left=0,width="+a+",height="+c-50+",resizable=yes,scrollbars=yes,menubar=no,location=no,toolbar=no,dependend=yes");SRContext.dependendPopup.resizeTo(a,c);SRContext.dependendPopup.moveTo(screen.width/2,screen.height/2);SRContext.dependendPopup.focus()}function closePop(){SRContext.dependendPopup.close()}function closeThis(){opener.location.reload();window.close()};
