var isPostbank="false";var reloadUrl="";var umfrageUrl="";var processID="";var tarifrechner="";$(document).ready(function(){$(document).ajaxStart(function(){startProgress("#vumfang")});$(document).ajaxStop(function(){stopProgress()});$(document).ajaxError(function(){stopProgress()});$("a[onclick*='openSelfService(']").each(function(){var a=$(this).attr("href");if(a.indexOf("start_selfservice.do")===0){a="/"+a}$(this).removeAttr("onclick");$(this).unbind("click").bind("click",function(){warteAufExtJS($(this),"openSelfService('"+a+"')");return false});$(this).attr("href","#")});$("a[onclick*='openSelfServiceMitSuchtext(']").each(function(){var a=$(this).attr("href");$(this).removeAttr("onclick");$(this).unbind("click").bind("click",function(){warteAufExtJS($(this),"openSelfServiceMitSuchtext('"+a+"')");return false});$(this).attr("href","#")});pid=$("input[name='PID']:hidden").val()});var extJsTimer;function warteAufExtJS(obj,aufruf){if(getIsExtJsSchonDa()){eval(aufruf)}else{var image,html,top,left;if(obj){top=obj.position().top;left=obj.position().left+obj.width()+3;image="/Allgemein/Bilder/ajax-loader2.gif"}else{top=$(window).height()/2-12;left=$(window).width()/2-12;image="/Allgemein/Bilder/ajax-loader.gif"}html='<div id="tmpajax"><img src="'+image+'" style="position:absolute; top:'+top+"px; left:"+left+'px"></div>';$("#tmpajax").remove();$(html).appendTo("body");window.clearInterval(extJsTimer);extJsTimer=window.setInterval('warteAufExtJS2("'+aufruf+'")',100)}}function warteAufExtJS2(aufruf){if(getIsExtJsSchonDa()){$("#tmpajax").remove();window.clearInterval(extJsTimer);eval(aufruf)}}function getClientHeight(){var a=self.innerHeight||(document.documentElement&&document.documentElement.clientHeight)||document.body.clientHeight;return a}function getClientWidth(){var a=self.innerWidth||(document.documentElement&&document.documentElement.clientWidth)||document.body.clientWidth;return a}var aktuelle_hilfetext_id="";var hilfecache_int=0;var hilfecache_keys=[];var hilfecache_values=[];function showHelp(e,d){var a=false;var b=0;var c={};if(aktuelle_hilfetext_id===e){closeHelp()}else{aktuelle_hilfetext_id=e;for(i=0;i<hilfecache_keys.length;i++){if(e===hilfecache_keys[i]){a=true;b=i;break}}if(a){input=hilfecache_values[b];openHelp(input)}else{hilfecache_keys[hilfecache_int]=e;c.ID=e;c.PATH=d;c.PID=$("#PID").val();$.ajax({url:getNetMindId()+"HilfeServlet"+getSessionId(),cache:true,async:true,type:"POST",contentType:"application/x-www-form-urlencoded;charset=UTF-8",data:c,dataType:"html",timeout:15000,success:function(f){hilfecache_values[hilfecache_int]=f;hilfecache_int++;openHelp(f)},error:function(){openHelp('<div class="z">Leider ist hier zur Zeit kein Hilfetext hinterlegt.</div>')}})}}}function openHelp(a){$("#info_original").css("display","none");$("#info_hilfetext").html(a);$("#info_hilfetext").css("display","block");if($("#div_info").length){$("#div_info").scrollTop(0);resize_divs()}}function closeHelp(){aktuelle_hilfetext_id="";$("#info_hilfetext").css("display","none");closeSelfServiceDialog();$("#info_original").css("display","block");if($("#div_info").length){$("#div_info").scrollTop(0);resize_divs()}}var helpWindow;var req=false;var dialogSource="";function openSelfService(a){if(a.indexOf("page=Kontakt")!==-1){showSelfServiceDialog(a,"Kontakt",650,450)}else{if(a.indexOf("informationen")!==-1){showSelfServiceDialog(a,"Informationen",650,450,true)}else{if(a.indexOf("Sonderausstattung")!==-1){showSelfServiceDialog(a,"Sonderausstattung",650,450,true)}else{showSelfServiceDialog(a,"Hilfe",650,450)}}}return false}function openSelfServiceMitSuchtext(a){setKommeVomSuchfeld(true);setSuchtext($("#TXT_SUCHTEXT").val());openSelfService(a);return false}function closeSelfServiceDialog(){if(helpWindow!==null){helpWindow.close();helpWindow=null;$("#helpDialogDiv").remove()}}function stopProgress(){$("#busyProgress").hide()}function startProgress(a){if($("#busyProgress").length===0){$("<div id='busyProgress' style='display:none'></div>").insertAfter(a)}var b=[$(window).width(),$(window).height(),$(document).scrollLeft(),$(document).scrollTop()];if($("#busyProgress")){$("#busyProgress").css({left:((b[0]-40)/2+b[2]),top:((b[1]-40)/2+b[3])}).show();$("#busyProgress").show()}}function rahmenweg(a){if(a.blur){a.blur()}}function limit(b,a){if(b.value&&b.value.length>a){b.value=b.value.substring(0,a)}}function msg(a){var b=false;if(b===true){if($.browser.mozilla){console.log(a)}else{if(document.getElementById("debugmsg")){document.getElementById("debugmsg").innerHTML+=a+"\n"}else{alert(a)}}}}function alertException(c){if(location.href.indexOf("localhost")!=-1){var a="Achtung: Dieser Text erscheint nur im localhost!!!\n\n",b;for(b in c){if(c.hasOwnProperty(b)){a+=b+": "+c[b]+"\n\n"}}alert(a)}}function setParentReload(a){reloadUrl=a}function startParentReload(){parent.location.href=setNetMindIdInUrl(setSessionIdInUrl(parent.location.protocol+"//"+parent.location.host+this.reloadUrl));parent.setParentReload("")}function setSessionIdInUrl(a){var d=a.split("?");var b="";if(a.indexOf(";jsessionid=")!=-1){var c=d[0].indexOf(";jsessionid=");d[0]=d[0].substr(0,c)}b=d[0]+getSessionId();if(d.length==2){b=b+"?"+d[1]}return b}function setNetMindIdInUrl(b){var d=b;if(getNetMindId()!==""){if(b.indexOf("-snm-")!=-1&&b.indexOf("-enm-")!=-1){d=b.substr(0,b.indexOf("-snm-"))+b.substr(b.indexOf("-enm-")+5)}var a=0;var c=0;if(d.indexOf("https://")!=-1){a=8}else{if(d.indexOf("http://")!=-1){a=7}}if(d.indexOf("/",a)!=-1){c=d.indexOf("/",a)+1}d=d.substr(0,c)+getNetMindId()+d.substr(c)}return d}jQuery.fn.extend({getUrlParam:function(f){f=escape(unescape(f));var e=[];var b=null;var d,a,c;if($(this).attr("nodeName")=="#document"){if(window.location.search.search(f)>-1){b=window.location.search.substr(1,window.location.search.length).split("&")}}else{if($(this).attr("src")!="undefined"){d=$(this).attr("src");if(d.indexOf("?")>-1){a=d.substr(d.indexOf("?")+1);b=a.split("&")}}else{if($(this).attr("href")!="undefined"){d=$(this).attr("href");if(d.indexOf("?")>-1){a=d.substr(d.indexOf("?")+1);b=a.split("&")}}else{return null}}}if(b===null){return null}for(c=0;c<b.length;c++){if(escape(unescape(b[c].split("=")[0]))==f){e.push(b[c].split("=")[1])}}if(e.length===0){return null}else{if(e.length==1){return e[0]}else{return e}}}});$.getScript=function(b,c,a){$.ajax({type:"GET",url:setNetMindIdInUrl(setSessionIdInUrl(b)),success:c,dataType:"script",cache:a})};(function(){var a=[];var b=false;$.ajaxQueue=function(e){if(!b){b=true;d(e)}else{a.push(e)}};$.ajaxQueue.getLength=function(){if(b){return 1+a.length}else{return 0}};$.ajaxQueue.emptyQueue=function(){a=[]};var d=function(e){if(e.complete){e.origComplete=e.complete}else{if($.ajaxSettings.complete){e.origComplete=$.ajaxSettings.complete}}e.complete=function(){if(e.origComplete){e.origComplete()}c()};$.ajax(e)};var c=function(){if(a.length>0){opts=a.shift();d(opts)}else{b=false}}}());$.fn.fixPNG=function(){return this.each(function(){if($.browser.msie&&parseInt($.browser.version.substr(0,1),10)<7){var a=$(this).css("backgroundImage");if(a.match(/^url\(["']?(\.*\.png)["']?\)$/i)){a=RegExp.$1;$(this).css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod="+($(this).css("backgroundRepeat")==="no-repeat"?"crop":"scale")+", src='"+a+"')"}).each(function(){var b=$(this).css("position");if(b!=="absolute"&&b!=="relative"){$(this).css("position","relative")}})}}})};
