(function(B){B.dimensions={version:"@VERSION"};B.each(["Height","Width"],function(D,C){B.fn["inner"+C]=function(){if(!this[0]){return }var F=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";return this[C.toLowerCase()]()+A(this,"padding"+F)+A(this,"padding"+E)};B.fn["outer"+C]=function(F){if(!this[0]){return }var G=C=="Height"?"Top":"Left",E=C=="Height"?"Bottom":"Right";F=B.extend({margin:false},F||{});return this[C.toLowerCase()]()+A(this,"border"+G+"Width")+A(this,"border"+E+"Width")+A(this,"padding"+G)+A(this,"padding"+E)+(F.margin?(A(this,"margin"+G)+A(this,"margin"+E)):0)}});B.each(["Left","Top"],function(D,C){B.fn["scroll"+C]=function(E){if(!this[0]){return }return E!=undefined?this.each(function(){this==window||this==document?window.scrollTo(C=="Left"?E:B(window)["scrollLeft"](),C=="Top"?E:B(window)["scrollTop"]()):this["scroll"+C]=E}):this[0]==window||this[0]==document?self[(C=="Left"?"pageXOffset":"pageYOffset")]||B.boxModel&&document.documentElement["scroll"+C]||document.body["scroll"+C]:this[0]["scroll"+C]}});B.fn.extend({position:function(){var H=0,G=0,F=this[0],I,C,E,D;if(F){E=this.offsetParent();I=this.offset();C=E.offset();I.top-=A(F,"marginTop");I.left-=A(F,"marginLeft");C.top+=A(E,"borderTopWidth");C.left+=A(E,"borderLeftWidth");D={top:I.top-C.top,left:I.left-C.left}}return D},offsetParent:function(){var C=this[0].offsetParent;while(C&&(!/^body|html$/i.test(C.tagName)&&B.css(C,"position")=="static")){C=C.offsetParent}return B(C)}});var A=function(C,D){return parseInt(B.css(C.jquery?C[0]:C,D))||0}})(jQuery);(function(B){B.ifixpng=function(C){B.ifixpng.pixel=C};B.ifixpng.getPixel=function(){return B.ifixpng.pixel||"/images/layout/blank.gif"};var A={ltie7:B.browser.msie&&B.browser.version<7,filter:function(C){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+C+"')"}};B.fn.ifixpng=A.ltie7?function(){return this.each(function(){var C=B(this);var E=B("base").attr("href");if(C.is("img")||C.is("input")){if(C.attr("src")){if(C.attr("src").match(/.*\.png([?].*)?$/i)){var D=(E&&C.attr("src").substring(0,1)!="/")?E+C.attr("src"):C.attr("src");C.css({filter:A.filter(D),width:C.width(),height:C.height()}).attr({src:B.ifixpng.getPixel()}).positionFix()}}}else{var F=C.css("backgroundImage");if(F.match(/^url\(["']?(.*\.png([?].*)?)["']?\)$/i)){F=RegExp.$1;C.css({backgroundImage:"none",filter:A.filter(F)}).children().children().positionFix()}}})}:function(){return this};B.fn.iunfixpng=A.ltie7?function(){return this.each(function(){var C=B(this);var D=C.css("filter");if(D.match(/src=["']?(.*\.png([?].*)?)["']?/i)){D=RegExp.$1;if(C.is("img")||C.is("input")){C.attr({src:D}).css({filter:""})}else{C.css({filter:"",background:"url("+D+")"})}}})}:function(){return this};B.fn.positionFix=function(){return this.each(function(){var D=B(this);var C=D.css("position");if(C!="absolute"&&C!="relative"){D.css({position:"relative"})}})}})(jQuery);(function(C){C.ui=C.ui||{};C.extend(C.ui,{plugin:{add:function(F,I,H,G){var E=C.ui[F].prototype;if(!E.plugins[I]){E.plugins[I]=[]}E.plugins[I].push([H,G])},call:function(E,F,H){var K=E.plugins[F];if(!K){return }var J=E.interaction?E.interaction.options:E.options;var I=E.interaction?E.interaction.element:E.element;for(var G=0;G<K.length;G++){if(J[K[G][0]]){K[G][1].apply(I,H)}}}}});C.fn.mouseInteractionDestroy=function(){this.each(function(){if(C.data(this,"ui-mouse")){C.data(this,"ui-mouse").destroy()}})};C.ui.mouseInteraction=function(F,G){if(!G){var G={}}this.element=F;C.data(this.element,"ui-mouse",this);this.options={};C.extend(this.options,G);C.extend(this.options,{handle:G.handle?(C(G.handle,F)[0]?C(G.handle,F):C(F)):C(F),helper:G.helper||"original",preventionDistance:G.preventionDistance||0,dragPrevention:G.dragPrevention?G.dragPrevention.toLowerCase().split(","):["input","textarea","button","select","option"],cursorAt:{top:((G.cursorAt&&G.cursorAt.top)?G.cursorAt.top:0),left:((G.cursorAt&&G.cursorAt.left)?G.cursorAt.left:0),bottom:((G.cursorAt&&G.cursorAt.bottom)?G.cursorAt.bottom:0),right:((G.cursorAt&&G.cursorAt.right)?G.cursorAt.right:0)},cursorAtIgnore:(!G.cursorAt)?true:false,appendTo:G.appendTo||"parent"});G=this.options;if(!this.options.nonDestructive&&(G.helper=="clone"||G.helper=="original")){G.margins={top:parseInt(C(F).css("marginTop"))||0,left:parseInt(C(F).css("marginLeft"))||0,bottom:parseInt(C(F).css("marginBottom"))||0,right:parseInt(C(F).css("marginRight"))||0};if(G.cursorAt.top!=0){G.cursorAt.top=G.margins.top}if(G.cursorAt.left!=0){G.cursorAt.left+=G.margins.left}if(G.cursorAt.bottom!=0){G.cursorAt.bottom+=G.margins.bottom}if(G.cursorAt.right!=0){G.cursorAt.right+=G.margins.right}if(G.helper=="original"){G.wasPositioned=C(F).css("position")}}else{G.margins={top:0,left:0,right:0,bottom:0}}var E=this;this.mousedownfunc=function(H){return E.click.apply(E,[H])};G.handle.bind("mousedown",this.mousedownfunc);if(C.browser.msie){C(this.element).attr("unselectable","on")}};C.extend(C.ui.mouseInteraction.prototype,{plugins:{},currentTarget:null,lastTarget:null,timer:null,slowMode:false,init:false,destroy:function(){this.options.handle.unbind("mousedown",this.mousedownfunc)},trigger:function(E){return this.click.apply(this,arguments)},click:function(H){var I=this.options;window.focus();if(H.which!=1){return true}var G=(H.target)?H.target.nodeName.toLowerCase():H.srcElement.nodeName.toLowerCase();for(var F=0;F<I.dragPrevention.length;F++){if(G==I.dragPrevention[F]){return true}}if(I.startCondition&&!I.startCondition.apply(this,[H])){return true}var E=this;this.mouseup=function(K){return E.stop.apply(E,[K])};this.mousemove=function(K){return E.drag.apply(E,[K])};var J=function(){C(document).bind("mouseup",E.mouseup);C(document).bind("mousemove",E.mousemove);E.opos=[H.pageX,H.pageY]};if(I.preventionTimeout){if(this.timer){clearInterval(this.timer)}this.timer=setTimeout(function(){J()},I.preventionTimeout);return false}J();return false},start:function(G){var H=this.options;var E=this.element;H.co=C(E).offset();this.helper=typeof H.helper=="function"?C(H.helper.apply(E,[G,this]))[0]:(H.helper=="clone"?C(E).clone()[0]:E);if(H.appendTo=="parent"){var F=E.parentNode;while(F){if(F.style&&(C(F).css("position")=="relative"||C(F).css("position")=="absolute")){H.pp=F;H.po=C(F).offset();H.ppOverflow=!!(C(H.pp).css("overflow")=="auto"||C(H.pp).css("overflow")=="scroll");break}F=F.parentNode?F.parentNode:null}if(!H.pp){H.po={top:0,left:0}}}this.pos=[this.opos[0],this.opos[1]];this.rpos=[this.pos[0],this.pos[1]];if(H.cursorAtIgnore){H.cursorAt.left=this.pos[0]-H.co.left+H.margins.left;H.cursorAt.top=this.pos[1]-H.co.top+H.margins.top}if(H.pp){this.pos[0]-=H.po.left;this.pos[1]-=H.po.top}this.slowMode=(H.cursorAt&&(H.cursorAt.top-H.margins.top>0||H.cursorAt.bottom-H.margins.bottom>0)&&(H.cursorAt.left-H.margins.left>0||H.cursorAt.right-H.margins.right>0))?true:false;if(!H.nonDestructive){C(this.helper).css("position","absolute")}if(H.helper!="original"){C(this.helper).appendTo((H.appendTo=="parent"?E.parentNode:H.appendTo)).show()}if(H.cursorAt.right&&!H.cursorAt.left){H.cursorAt.left=this.helper.offsetWidth+H.margins.right+H.margins.left-H.cursorAt.right}if(H.cursorAt.bottom&&!H.cursorAt.top){H.cursorAt.top=this.helper.offsetHeight+H.margins.top+H.margins.bottom-H.cursorAt.bottom}this.init=true;if(H._start){H._start.apply(E,[this.helper,this.pos,H.cursorAt,this,G])}this.helperSize={width:D(this.helper),height:B(this.helper)};return false},stop:function(G){var H=this.options;var E=this.element;var F=this;C(document).unbind("mouseup",F.mouseup);C(document).unbind("mousemove",F.mousemove);if(this.init==false){return this.opos=this.pos=null}if(H._beforeStop){H._beforeStop.apply(E,[this.helper,this.pos,H.cursorAt,this,G])}if(this.helper!=E&&!H.beQuietAtEnd){C(this.helper).remove();this.helper=null}if(!H.beQuietAtEnd){if(H._stop){H._stop.apply(E,[this.helper,this.pos,H.cursorAt,this,G])}}this.init=false;this.opos=this.pos=null;return false},drag:function(E){if(!this.opos||(C.browser.msie&&!E.button)){return this.stop.apply(this,[E])}var F=this.options;this.pos=[E.pageX,E.pageY];if(this.rpos&&this.rpos[0]==this.pos[0]&&this.rpos[1]==this.pos[1]){return false}this.rpos=[this.pos[0],this.pos[1]];if(F.pp){this.pos[0]-=F.po.left;this.pos[1]-=F.po.top}if((Math.abs(this.rpos[0]-this.opos[0])>F.preventionDistance||Math.abs(this.rpos[1]-this.opos[1])>F.preventionDistance)&&this.init==false){this.start.apply(this,[E])}else{if(this.init==false){return false}}if(F._drag){F._drag.apply(this.element,[this.helper,this.pos,F.cursorAt,this,E])}return false}});var A=function(E,F){return parseInt(C.css(E.jquery?E[0]:E,F))||0};function D(I){var G=C(I),E=G.width();for(var F=0,H=["borderLeftWidth","paddingLeft","paddingRight","borderRightWidth"];F<H.length;F++){E+=A(G,H[F])}return E}function B(H){var F=C(H),I=F.width();for(var E=0,G=["borderTopWidth","paddingTop","paddingBottom","borderBottomWidth"];E<G.length;E++){I+=A(F,G[E])}return I}})($);(function(C){if(window.webforms){C(document).ready(function(){C("input").each(function(){if(this.getAttribute("type")=="range"){var G=C(this);var E=C("<div class='ui-slider'></div>").css({width:G.innerWidth()+"px",height:G.innerHeight()+"px"}).insertAfter(G);var F=C("<div class='ui-slider-handle'></div>").appendTo(E);E.css({position:G.css("position")=="absolute"?"absolute":"relative",left:G.css("left"),right:G.css("right"),zIndex:G.css("zIndex"),"float":G.css("float"),clear:G.css("clear")});G.css({position:"absolute",opacity:0,top:"-1000px",left:"-1000px"});E.slider({maxValue:G.attr("max"),minValue:G.attr("min"),startValue:this.getAttribute("value"),stepping:G.attr("step"),change:function(I,H){G[0].value=H.value;G[0].setAttribute("value",H.value)}});E=E.sliderInstance();G.bind("keydown",function(H){var I=E.interaction.options;switch(H.keyCode){case 37:E.moveTo(E.interaction.curValue+I.minValue-(I.stepping||1));break;case 39:E.moveTo(E.interaction.curValue+I.minValue+(I.stepping||1));break}if(H.keyCode!=9){return false}})}})})}C.extend(C.expr[":"],{slider:"(' '+a.className+' ').indexOf(' ui-slider ')"});C.fn.slider=function(E){return this.each(function(){new C.ui.slider(this,E)})};var A="destroy,enable,disable,moveTo".split(",");for(var B=0;B<A.length;B++){var D=A[B];C.fn["slider"+D.substr(0,1).toUpperCase()+D.substr(1)]=(function(E){return function(){var F=arguments;return this.each(function(){if(C(this).is(".ui-slider")){var G=C.data(this,"ui-slider");G[E].apply(G,F)}})}})(D)}C.fn.sliderInstance=function(){if(C(this[0]).is(".ui-slider")){return C.data(this[0],"ui-slider")}return false};C.ui.slider=function(G,H){var F={};H=H||{};C.extend(F,H);C.extend(F,{maxValue:parseInt(H.maxValue)||100,minValue:parseInt(H.minValue)||0,startValue:parseInt(H.startValue)||0,_start:function(J,L,M,I,K){E.calcDimensions(I);E.start.apply(I,[E,K])},_beforeStop:function(J,L,M,I,K){E.stop.apply(I,[E,K])},_drag:function(J,L,M,I,K){E.drag.apply(I,[E,K,L])},startCondition:function(){return !E.disabled}});var E=this;var H=F;C.data(G,"ui-slider",this);H.stepping=parseInt(H.stepping)||(H.steps?H.maxValue/H.steps:0);H.realValue=(H.maxValue-H.minValue);this.handle=F.handle?C(F.handle,G):C(".ui-slider-handle",G);if(this.handle.length==1){this.interaction=new C.ui.mouseInteraction(this.handle[0],F);this.multipleHandles=false}else{this.interactions=[];this.handle.each(function(){E.interactions.push(new C.ui.mouseInteraction(this,F))});this.multipleHandles=true}this.element=G;C(this.element).addClass("ui-slider");if(!this.multipleHandles){C(G).bind("click",function(I){E.click.apply(E,[I])});if(!isNaN(H.startValue)){this.moveTo(H.startValue,F.realValue,null,false)}}};C.extend(C.ui.slider.prototype,{currentTarget:null,lastTarget:null,destroy:function(){C(this.element).removeClass("ui-slider").removeClass("ui-slider-disabled");this.interaction.destroy()},enable:function(){C(this.element).removeClass("ui-slider-disabled");this.disabled=false},disable:function(){C(this.element).addClass("ui-slider-disabled");this.disabled=true},nonvalidRange:function(E){for(var F=0;F<this.interactions.length;F++){if(E==this.interactions[F]){if(this.interactions[F-1]){if(this.interactions[F-1].curValue>this.interactions[F].curValue){return this.interactions[F-1].curValue}}if(this.interactions[F+1]){if(this.interactions[F+1].curValue<this.interactions[F].curValue){return this.interactions[F+1].curValue}}}}return false},calcDimensions:function(E){var F=E.options,G=this.element;F.axis=F.axis||(G.offsetWidth<G.offsetHeight?"vertical":"horizontal");if(F.axis=="horizontal"){this.parentSize=C(G).outerWidth()-this.handle.outerWidth();this.prop="left"}if(F.axis=="vertical"){this.parentSize=C(G).outerHeight()-this.handle.outerHeight();this.prop="top"}},prepareCallbackObj:function(F,E){var H=this;var G=function(){var J=[];for(var I=0;I<H.interactions.length;I++){J.push((H.interactions[I].curValue||0)+F.options.minValue)}return J};return{handle:F.helper,pixel:E,value:F.curValue+F.options.minValue,values:this.multipleHandles?G():F.curValue+F.options.minValue,slider:F}},click:function(E){var H=this.interaction.options;var G=[E.pageX,E.pageY];var F=C(this.interaction.element).offsetParent().offset({border:false});if(this.interaction.element==E.target||this.disabled){return }this.interaction.pickValue=this.interaction.curValue;this.drag.apply(this.interaction,[this,E,[G[0]-F.left-this.handle[0].offsetWidth/2,G[1]-F.top-this.handle[0].offsetHeight/2]]);if(this.interaction.pickValue!=this.interaction.curValue){C(this.element).triggerHandler("slidechange",[E,this.prepareCallbackObj(this.interaction)],H.change)}},start:function(E,F){var G=this.options;C(E.element).triggerHandler("slidestart",[F,E.prepareCallbackObj(this)],G.start);this.pickValue=this.curValue;return false},stop:function(E,F){var G=this.options;C(E.element).triggerHandler("slidestop",[F,E.prepareCallbackObj(this)],G.stop);if(this.pickValue!=this.curValue){C(E.element).triggerHandler("slidechange",[F,E.prepareCallbackObj(this)],G.change)}return false},drag:function(F,H,K){var I=this.options;this.pos=K||[this.pos[0]-this.element.offsetWidth/2,this.pos[1]-this.element.offsetHeight/2];if(I.axis=="horizontal"){var E=this.pos[0]}if(I.axis=="vertical"){var E=this.pos[1]}var G=F.parentSize;var J=F.prop;if(E<0){E=0}if(E>G){E=G}this.curValue=(Math.round((E/G)*I.realValue));if(I.stepping){this.curValue=Math.round(this.curValue/I.stepping)*I.stepping;E=((this.curValue)/I.realValue)*G}if(F.interactions){nonvalidRange=F.nonvalidRange(this);if(nonvalidRange){this.curValue=nonvalidRange;E=((this.curValue)/I.realValue)*G}}C(this.element).css(J,E+"px");C(F.element).triggerHandler("slide",[H,F.prepareCallbackObj(this,E)],I.slide);return false},moveTo:function(I,L,G,J,K){var F=this,E=this.multipleHandles?this.interactions[K||0]:this.interaction;this.calcDimensions(E);H(E,J);function H(O,P){var Q=O.options;O.pickValue=O.curValue;I=I-Q.minValue;var N=L||Q.realValue;if(!P){var P=F.parentSize}var R=F.prop;var M=Math.round(((I)/N)*P);if(M<0){M=0}if(M>P){M=P}O.curValue=(Math.round((M/P)*Q.realValue));if(Q.stepping){O.curValue=Math.round(O.curValue/Q.stepping)*Q.stepping;M=((O.curValue)/Q.realValue)*P;if(isNaN(M)){M=0}}C(O.element).css(R,M+"px");if(!G&&O.pickValue!=O.curValue&&!P){C(F.element).triggerHandler("slidechange",[null,F.prepareCallbackObj(O)],Q.change)}if(G){C(F.element).triggerHandler("slide",[null,F.prepareCallbackObj(O)],Q.slide)}}}})})(jQuery);var tb_pathToImage="/images/layout/loader_25.gif";
/*!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image();imgLoader.src=tb_pathToImage});function tb_init(A){$(A).click(function(){var C=this.title||this.name||null;var B=this.href||this.alt;var D=this.rel||false;tb_show(C,B,D);this.blur();return false})}function tb_show(I,B,G){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack")}else{$("#TB_overlay").addClass("TB_overlayBG")}if(I===null){I=""}$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$("#TB_load").show();var C;if(B.indexOf("?")!==-1){C=B.substr(0,B.indexOf("?"))}else{C=B}var E=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var J=C.toLowerCase().match(E);if(J==".jpg"||J==".jpeg"||J==".png"||J==".gif"||J==".bmp"){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(G){TB_TempArray=$("a[@rel="+G+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var F=TB_TempArray[TB_Counter].href.toLowerCase().match(E);if(!(TB_TempArray[TB_Counter].href==B)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>"}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length)}}}imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var N=tb_getPageSize();var L=N[0]-150;var Q=N[1]-150;var M=imgPreloader.width;var K=imgPreloader.height;if(M>L){K=K*(L/M);M=L;if(K>Q){M=M*(Q/K);K=Q}}else{if(K>Q){M=M*(Q/K);K=Q;if(M>L){K=K*(L/M);M=L}}}TB_WIDTH=M+30;TB_HEIGHT=K+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+B+"' width='"+M+"' height='"+K+"' alt='"+I+"'/></a><div id='TB_caption'>"+I+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>Fenster schliessen</a></div>");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function P(){if($(document).unbind("click",P)){$(document).unbind("click",P)}$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,G);return false}$("#TB_prev").click(P)}if(!(TB_NextHTML==="")){function O(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,G);return false}$("#TB_next").click(O)}document.onkeydown=function(R){if(R==null){keycode=event.keyCode}else{keycode=R.which}if(keycode==27){tb_remove()}else{if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";O()}}else{if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";P()}}}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=B}else{var A=B.replace(/^[^\?]+\??/,"");var D=tb_parseQuery(A);TB_WIDTH=(D.width*1)+30||630;TB_HEIGHT=(D.height*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(B.indexOf("TB_iframe")!=-1){urlNoQuery=B.split("TB_");$("#TB_iframeContent").remove();if(D.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+I+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>Fenster schliessen</a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>")}}else{if($("#TB_window").css("display")!="block"){if(D.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+I+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>Fenster schliessen</a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(I)}}$("#TB_closeWindowButton").click(tb_remove);if(B.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+D.inlineId).children());$("#TB_window").unload(function(){$("#"+D.inlineId).append($("#TB_ajaxContent").children())});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else{if(B.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"})}}else{$("#TB_ajaxContent").load(B+="&random="+(new Date().getTime()),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}}}if(!D.modal){document.onkeyup=function(K){if(K==null){keycode=event.keyCode}else{keycode=K.which}if(keycode==27){tb_remove()}}}}catch(H){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:"-"+parseInt((TB_HEIGHT/2),10)+"px"})}}function tb_parseQuery(D){var E={};if(!D){return E}var A=D.split(/[;&]/);for(var C=0;C<A.length;C++){var G=A[C].split("=");if(!G||G.length!=2){continue}var B=unescape(G[0]);var F=unescape(G[1]);F=F.replace(/\+/g," ");E[B]=F}return E}function tb_getPageSize(){var C=document.documentElement;var A=window.innerWidth||self.innerWidth||(C&&C.clientWidth)||document.body.clientWidth;var B=window.innerHeight||self.innerHeight||(C&&C.clientHeight)||document.body.clientHeight;arrayPageSize=[A,B];return arrayPageSize}function tb_detectMacXFF(){var A=navigator.userAgent.toLowerCase();if(A.indexOf("mac")!=-1&&A.indexOf("firefox")!=-1){return true}}(function(A){A.superfish={};A.superfish.o=[];A.superfish.op={};A.superfish.defaults={hoverClass:"sfHover",pathClass:"overideThisToUse",delay:800,animation:{opacity:"show"},speed:"normal",oldJquery:false,disableHI:false,onInit:function(){},onBeforeShow:function(){},onShow:function(){},onHide:function(){}};A.fn.superfish=function(H){var E="sfbreadcrumb",F=function(){var I=A(this),J=C(I);G(J,true);clearTimeout(J.sfTimer);I.showSuperfishUl().siblings().hideSuperfishUl()},D=function(){var I=A(this),K=C(I);var J=G(K,true);clearTimeout(K.sfTimer);if(!I.is("."+E)){K.sfTimer=setTimeout(function(){I.hideSuperfishUl();if(J.$path.length){F.call(J.$path)}},J.delay)}},C=function(I){return I.parents("ul.superfish:first")[0]},G=function(I,J){I=J?I:C(I);return A.superfish.op=A.superfish.o[I.serial]},B=function(){return A.superfish.op.oldJquery?"li[ul]":"li:has(ul)"};return this.each(function(){var I=this.serial=A.superfish.o.length;var K=A.extend({},A.superfish.defaults,H);K.$path=A("li."+K.pathClass,this).each(function(){A(this).addClass(K.hoverClass+" "+E).filter(B()).removeClass(K.pathClass)});A.superfish.o[I]=A.superfish.op=K;A(B(),this)[(A.fn.hoverIntent&&!K.disableHI)?"hoverIntent":"hover"](F,D).not("."+E).hideSuperfishUl();var J=A("a",this);J.each(function(L){var M=J.eq(L).parents("li");J.eq(L).focus(function(){F.call(M)}).blur(function(){D.call(M)})});K.onInit.call(this)}).addClass("superfish")};A.fn.extend({hideSuperfishUl:function(){var C=A.superfish.op,B=A("li."+C.hoverClass,this).add(this).removeClass(C.hoverClass).find(">ul").hide().css("visibility","hidden");C.onHide.call(B);return this},showSuperfishUl:function(){var C=A.superfish.op,B=this.addClass(C.hoverClass).find(">ul:hidden").css("visibility","visible");C.onBeforeShow.call(B);B.animate(C.animation,C.speed,function(){C.onShow.call(this)});return this}});A(window).unload(function(){A("ul.superfish").each(function(){A("li",this).unbind("mouseover","mouseout","mouseenter","mouseleave")})})})(jQuery);var FlashReplace={elmToReplace:null,flashIsInstalled:null,defaultFlashVersion:7,replace:function(D,A,B,C,O,M,G){this.elmToReplace=document.getElementById(D);this.flashIsInstalled=this.checkForFlash(M||this.defaultFlashVersion);if(this.elmToReplace&&this.flashIsInstalled){var I="<object"+((window.ActiveXObject)?' id="'+B+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" data="'+A+'"':"");I+=' width="'+C+'"';I+=' height="'+O+'"';I+=">";var F="<param";F+=' name="movie"';F+=' value="'+A+'"';F+=">";F+="";var N="";var L="";for(var H in G){N+='<param name="'+H+'" value="'+G[H]+'">';L+=" "+H+'="'+G[H]+'"'}var K='<embed id="'+B+'" src="'+A+'" type="application/x-shockwave-flash" width="'+C+'" height="'+O+'"';var J=L+"></embed>";var E="</object>";this.elmToReplace.innerHTML=I+F+N+K+J+E}else{if(!this.flashIsInstalled){this.elmToReplace.innerHTML="Diese Inhalte sind nur mit Flashplayer ab Version "+M+" darstellbar."}}},checkForFlash:function(A){this.flashIsInstalled=false;var C;if(window.ActiveXObject){try{C=new ActiveXObject(("ShockwaveFlash.ShockwaveFlash."+A));this.flashIsInstalled=true}catch(D){}}else{if(navigator.plugins&&navigator.mimeTypes.length>0){C=navigator.plugins["Shockwave Flash"];if(C){var B=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1");if(B>=A){this.flashIsInstalled=true}}}}return this.flashIsInstalled}};
/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var t=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AB=[0,0,0],w=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){w=T.plugins[n].description;if(w&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){w=w.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AB[0]=parseInt(w.replace(/^(.*)\..*$/,"$1"),10);AB[1]=parseInt(w.replace(/^.*\.(.*)\s.*$/,"$1"),10);AB[2]=/r/.test(w)?parseInt(w.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var x=null,AA=false;try{x=new ActiveXObject(p+".7")}catch(s){try{x=new ActiveXObject(p+".6");AB=[6,0,21];x.AllowScriptAccess="always"}catch(s){if(AB[0]==6){AA=true}}if(!AA){try{x=new ActiveXObject(p)}catch(s){}}}if(!AA&&x){try{w=x.GetVariable("$version");if(w){w=w.split(" ")[1].split(",");AB=[parseInt(w[0],10),parseInt(w[1],10),parseInt(w[2],10)]}}catch(s){}}}}var AC=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),z=/webkit/.test(AC)?parseFloat(AC.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,y=r?/win/.test(r):/win/.test(AC),v=r?/mac/.test(r):/mac/.test(AC);if(navigator.appName&&navigator.appName.indexOf("Internet Explorer")!=-1){q=true;y=true}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Mac")!=-1){v=true}}return{w3cdom:t,pv:AB,webkit:z,ie:q,win:y,mac:v}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if((J.readyState=="complete")&&(J.parentNode)){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var s=N.length;for(var q=0;q<s;q++){var t=N[q].id;if(h.pv[0]>0){var r=C(t);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(t,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(t,true)}}}function Y(s){var q=s.getElementsByTagName(Q)[0];if(q){var v=a("embed"),x=q.attributes;if(x){var u=x.length;for(var t=0;t<u;t++){if(x[t].nodeName=="DATA"){v.setAttribute("src",x[t].nodeValue)}else{v.setAttribute(x[t].nodeName,x[t].nodeValue)}}}var w=q.childNodes;if(w){var y=w.length;for(var r=0;r<y;r++){if(w[r].nodeType==1&&w[r].nodeName=="PARAM"){v.setAttribute(w[r].getAttribute("name"),w[r].getAttribute("value"))}}}s.parentNode.replaceChild(v,s)}}function k(v){A=true;var t=C(v.id);if(t){if(v.altContentId){var x=C(v.altContentId);if(x){M=x;l=v.altContentId}}else{M=G(t)}if(!(/%$/.test(v.width))&&parseInt(v.width,10)<310){v.width="310"}if(!(/%$/.test(v.height))&&parseInt(v.height,10)<137){v.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var y=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+y+"&MMdoctitle="+q,w=v.id;if(h.ie&&h.win&&t.readyState!=4){var s=a("div");w+="SWFObjectNew";s.setAttribute("id",w);t.parentNode.insertBefore(s,t);t.style.display="none";var u=function(){t.parentNode.removeChild(t)};I(j,"onload",u)}U({data:v.expressInstall,id:m,width:v.width,height:v.height},{flashvars:r},w)}}function O(s){if(h.ie&&h.win&&s.readyState!=4){var r=a("div");s.parentNode.insertBefore(r,s);r.parentNode.replaceChild(G(s),r);s.style.display="none";var q=function(){s.parentNode.removeChild(s)};I(j,"onload",q)}else{s.parentNode.replaceChild(G(s),s)}}function G(u){var t=a("div");if(h.win&&h.ie){t.innerHTML=u.innerHTML}else{var r=u.getElementsByTagName(Q)[0];if(r){var v=r.childNodes;if(v){var q=v.length;for(var s=0;s<q;s++){if(!(v[s].nodeType==1&&v[s].nodeName=="PARAM")&&!(v[s].nodeType==8)){t.appendChild(v[s].cloneNode(true))}}}}}return t}function U(AF,AD,s){var q,u=C(s);if(u){if(typeof AF.id==b){AF.id=s}if(h.ie&&h.win){var AE="";for(var AA in AF){if(AF[AA]!=Object.prototype[AA]){if(AA.toLowerCase()=="data"){AD.movie=AF[AA]}else{if(AA.toLowerCase()=="styleclass"){AE+=' class="'+AF[AA]+'"'}else{if(AA.toLowerCase()!="classid"){AE+=" "+AA+'="'+AF[AA]+'"'}}}}}var AC="";for(var z in AD){if(AD[z]!=Object.prototype[z]){AC+='<param name="'+z+'" value="'+AD[z]+'" />'}}u.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AE+">"+AC+"</object>";i[i.length]=AF.id;q=C(AF.id)}else{if(h.webkit&&h.webkit<312){var AB=a("embed");AB.setAttribute("type",P);for(var y in AF){if(AF[y]!=Object.prototype[y]){if(y.toLowerCase()=="data"){AB.setAttribute("src",AF[y])}else{if(y.toLowerCase()=="styleclass"){AB.setAttribute("class",AF[y])}else{if(y.toLowerCase()!="classid"){AB.setAttribute(y,AF[y])}}}}}for(var x in AD){if(AD[x]!=Object.prototype[x]){if(x.toLowerCase()!="movie"){AB.setAttribute(x,AD[x])}}}u.parentNode.replaceChild(AB,u);q=AB}else{var t=a(Q);t.setAttribute("type",P);for(var w in AF){if(AF[w]!=Object.prototype[w]){if(w.toLowerCase()=="styleclass"){t.setAttribute("class",AF[w])}else{if(w.toLowerCase()!="classid"){t.setAttribute(w,AF[w])}}}}for(var v in AD){if(AD[v]!=Object.prototype[v]&&v.toLowerCase()!="movie"){F(t,v,AD[v])}}u.parentNode.replaceChild(t,u);q=t}}}return q}function F(s,q,r){var t=a("param");t.setAttribute("name",q);t.setAttribute("value",r);s.appendChild(t)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(s){var r=C(s);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(s){var q=null;try{q=K.getElementById(s)}catch(r){}return q}function a(q){return K.createElement(q)}function I(s,q,r){s.attachEvent(q,r);d[d.length]=[s,q,r]}function c(s){var r=h.pv,q=s.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(s,q){var r=q?"visible":"hidden";if(e&&C(s)){C(s).style.visibility=r}else{V("#"+s,"visibility:"+r)}}function g(r){var t=/[\\\"<>\.;]/;var q=t.exec(r)!=null;return q?encodeURIComponent(r):r}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var v=d.length;for(var u=0;u<v;u++){d[u][0].detachEvent(d[u][1],d[u][2])}var s=i.length;for(var t=0;t<s;t++){X(i[t])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(t,q,s){if(!h.w3cdom||!t||!q){return }var r={};r.id=t;r.swfVersion=q;r.expressInstall=s?s:false;N[N.length]=r;W(t,false)},getObjectById:function(u){var q=null;if(h.w3cdom){var s=C(u);if(s){var t=s.getElementsByTagName(Q)[0];if(!t||(t&&typeof s.SetVariable!=b)){q=s}else{if(typeof t.SetVariable!=b){q=t}}}}return q},embedSWF:function(w,AD,AA,AC,q,v,r,y,AB){if(!h.w3cdom||!w||!AD||!AA||!AC||!q){return }AA+="";AC+="";if(c(q)){W(AD,false);var z={};if(AB&&typeof AB===Q){for(var u in AB){if(AB[u]!=Object.prototype[u]){z[u]=AB[u]}}}z.data=w;z.width=AA;z.height=AC;var x={};if(y&&typeof y===Q){for(var t in y){if(y[t]!=Object.prototype[t]){x[t]=y[t]}}}if(r&&typeof r===Q){for(var s in r){if(r[s]!=Object.prototype[s]){if(typeof x.flashvars!=b){x.flashvars+="&"+s+"="+r[s]}else{x.flashvars=s+"="+r[s]}}}}f(function(){U(z,x,AD);if(z.id==AD){W(AD,true)}})}else{if(v&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AD,false);f(function(){var AE={};AE.id=AE.altContentId=AD;AE.width=AA;AE.height=AC;AE.expressInstall=v;k(AE)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(s,r,q){if(h.w3cdom){return U(s,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(u){var t=K.location.search||K.location.hash;if(u==null){return g(t)}if(t){var s=t.substring(1).split("&");for(var r=0;r<s.length;r++){if(s[r].substring(0,s[r].indexOf("="))==u){return g(s[r].substring((s[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();$(document).ready(function(){$("#inputbutton").click(function(){$("#inputbutton").hide();$("#loader25").show()})});function checkInputDate(Y){try{var V=document.getElementById(Y);if(V==null){return }var A=V.value;if(A==""){DateElements={Year:null,Month:null,Day:null};if(GetDateElements(Y,DateElements)){DateElements.Year.value="";DateElements.Month.value="";DateElements.Day.value=""}return }var B="";var H="";var X="";var U=/^\d\d\d\d\d\d\d\d$/;var T=/^\d\d\D\d\d\D\d\d\d\d$/;var S=/^\d\d\D\d\D\d\d\d\d$/;var R=/^\d\d\d\d\d\d$/;var Q=/^\d\d\D\d\d\D\d\d$/;var P=/^\d\D\d\d\D\d\d$/;var O=/^\d\d\d\d\D\d\d\D\d\d(\D)?$/;var N=/^\d\D\d\d\D\d\d\d\d$/;var M=/^\d\d\d\d$/;var L=/^\d\D\d\D\d\d$/;var J=/^\d\d\D\d\D\d\d$/;var I=/^\d\d\d\d\d\d$/;var G=/^\d\D\d\D\d\d\d\d$/;var F=/^\d\D\d(\D)?$/;var E=/^\d\d\D\d(\D)?$/;var D=/^\d\D\d\d(\D)?$/;var C=/^\d\d\D\d\d(\D)?$/;var W=false;if(U.test(A)){var B=A.substr(0,2);var H=A.substr(2,2);var X=A.substr(4,4)}else{if(T.test(A)){var B=A.substr(0,2);var H=A.substr(3,2);var X=A.substr(6,4)}else{if(S.test(A)){var B=A.substr(0,2);var H=A.substr(3,2);var X=A.substr(5,4)}else{if(R.test(A)){var B=A.substr(0,2);var H=A.substr(2,2);var X="20"+A.substr(4,2)}else{if(Q.test(A)){var B=A.substr(0,2);var H=A.substr(3,2);var X="20"+A.substr(6,2)}else{if(P.test(A)){var B=A.substr(0,2);var H=A.substr(2,2);var X="20"+A.substr(5,2)}else{if(O.test(A)){var B=A.substr(8,2);var H=A.substr(5,2);var X=A.substr(0,4)}else{if(N.test(A)){var B=A.substr(0,1);var H=A.substr(2,2);var X=A.substr(5,4)}else{if(M.test(A)){var B=A.substr(0,1);var H=A.substr(1,1);var X="20"+A.substr(2,2)}else{if(L.test(A)){var B=A.substr(0,1);var H=A.substr(2,1);var X="20"+A.substr(4,2)}else{if(J.test(A)){var B=A.substr(0,2);var H=A.substr(3,1);var X="20"+A.substr(5,2)}else{if(I.test(A)){var B=A.substr(0,1);var H=A.substr(1,1);var X=A.substr(2,4)}else{if(G.test(A)){var B=A.substr(0,1);var H=A.substr(2,1);var X=A.substr(4,4)}else{if(F.test(A)){var B=A.substr(0,1);var H=A.substr(2,1);var X=new Date().getFullYear();W=true}else{if(E.test(A)){var B=A.substr(0,2);var H=A.substr(3,1);var X=new Date().getFullYear();W=true}else{if(D.test(A)){var B=A.substr(0,1);var H=A.substr(2,2);var X=new Date().getFullYear();W=true}else{if(C.test(A)){var B=A.substr(0,2);var H=A.substr(3,2);var X=new Date().getFullYear();W=true}else{var B=new Date().getDate();var H=new Date().getMonth()+1;var X=new Date().getFullYear();W=true}}}}}}}}}}}}}}}}}if((H>12)&&(B<=12)){var a=H;H=B;B=a}var K=new Date(X*1,H*1-1,B*1,23,59,59);if((W==true)&&(K<new Date())){K=new Date(X*1+1,H*1-1,B*1)}setDate(Y,K)}catch(Z){alert(Z)}}function setDate(E,C){var D=C.getYear()*1;if(D<999){D+=1900}var B=C.getDate()*1;var A=(C.getMonth())*1+1;document.getElementById(E).value=CalFormatDateFromString(B,A,D);DateElements={Year:null,Month:null,Day:null};if(GetDateElements(E,DateElements)){DateElements.Year.value=D;DateElements.Month.value=A;DateElements.Day.value=B}return true}function CalFormatDateFromString(B,A,C){if(B<10){B="0"+B}if(A<10){A="0"+A}return B+"."+A+"."+C}function GetDateElements(B,A){A.Year=document.getElementById(B+"_year");A.Month=document.getElementById(B+"_month");A.Day=document.getElementById(B+"_day");return((A.Year!=null)&&(A.Month!=null)&&(A.Day!=null))}jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H<J.length;H++){var C=jQuery.trim(J[H]);if(C.substring(0,B.length+1)==(B+"=")){D=decodeURIComponent(C.substring(B.length+1));break}}}return D}};function OpenCalendar_sb(K,B,E,J,O,C,N,F,A){var I=E+"_day";var Q=E+"_month";var L=E+"_year";var H="";var M="";var P=returnObjById("start_datum"+F);if((P.value!="0")&&(P.value!="")&&!A){var G=P.value.split(".");H=G[1];M=G[2]}popupHeight=415;var D="/"+C+"/search.ltml?u=sdh&formname="+K+"&calendar=3&suffix="+F+"&frmidx="+O+"&ref="+B+"&refC="+E+"&refday="+document.getElementsByName(I)[J].value+"&refmon="+document.getElementsByName(Q)[J].value+"&refyear="+document.getElementsByName(L)[J].value+"&PageMove="+N+"&mon="+H+"&year="+M;calWin=window.open(D,"Kalender","width=610,height="+popupHeight+",scrollbars=no,resizable=no");calWin.focus()}var currentDate=new Date();function InputCheck_sb(D,C){arrError=new Array();if(((C&1)==1)&&(!$("#von"+D).val().match(/^[A-Za-z]/i))){arrError.push("Bitte geben Sie einen Abreiseort an.")}if(((C&2)==2)&&(!$("#zo"+D).val().match(/^[A-Za-z]/i))){arrError.push("Bitte geben Sie ein Reiseziel an.")}if(((C&4)==4)&&(!$("#start_datum"+D).val().match(/^\d{1,2}\.\d{1,2}\.\d{4}$/))){arrError.push("Bitte geben Sie ein Anreisedatum an.")}if(((C&8)==8)&&(!$("#end_datum"+D).val().match(/^\d{1,2}\.\d{1,2}\.\d{4}$/))){arrError.push("Bitte geben Sie ein R&uuml;ckreisedatum an.")}if((C&16)==16){if(($("#start_datum"+D).val()!=0)&&($("#end_datum"+D).val()!=0)){try{if(new Date($("#start_datum_year"+D).val(),$("#start_datum_month"+D).val()-1,$("#start_datum_day"+D).val())>=new Date($("#end_datum_year"+D).val(),$("#end_datum_month"+D).val()-1,$("#end_datum_day"+D).val())){arrError.push('Bitte geben Sie ein R&uuml;ckreisedatum ein, das <span style="text-decoration:underline">nach</span> der Anreise liegt.')}}catch(B){}}}if((C&32)==32){if(($("#start_datum"+D).val()!=0)&&($("#end_datum"+D).val()!=0)){try{if(new Date($("#start_datum_year"+D).val(),$("#start_datum_month"+D).val()-1,$("#start_datum_day"+D).val())>new Date($("#end_datum_year"+D).val(),$("#end_datum_month"+D).val()-1,$("#end_datum_day"+D).val())){arrError.push('Bitte geben Sie ein R&uuml;ckreisedatum ein, das <span style="text-decoration:underline">nach oder gleich</span> der Anreise liegt.')}}catch(B){}}}if((C&64)==64){if($("#start_datum"+D).val()!=0){try{if(new Date($("#start_datum_year"+D).val(),$("#start_datum_month"+D).val()-1,$("#start_datum_day"+D).val())<currentDate){arrError.push('Bitte geben Sie ein Hinreisedatum ein, das <span style="text-decoration:underline">in der Zukunft</span> liegt.')}}catch(B){}}}if((C&128)==128){if($("#end_datum"+D).val()!=0){try{if(new Date($("#end_datum_year"+D).val(),$("#end_datum_month"+D).val()-1,$("#end_datum_day"+D).val())<currentDate){arrError.push('Bitte geben Sie ein R&uuml;ckreisedatum ein, das <span style="text-decoration:underline">in der Zukunft</span> liegt.')}}catch(B){}}}if((C&256)==256){if(($("#start_datum"+D).val()!=0)&&($("#end_datum"+D).val()!=0)){try{var E=$("#start_datum"+D).val().split(".");var A=$("#end_datum"+D).val().split(".");if((3==E.length)&&(3==A.length)){if(new Date(E[2],E[1]-1,E[0])>=new Date(A[2],A[1]-1,A[0])){arrError.push('Bitte geben Sie ein R&uuml;ckreisedatum ein, das <span style="text-decoration:underline">nach</span> der Anreise liegt.')}}}catch(B){}}}if(arrError.length>0){ErrorWindow=returnObjById("sb_Error");if(ErrorWindow!=null){ErrorMessage="F&uuml;r die Suche Ihrer Reise werden noch folgende Angaben ben&ouml;tigt:<br/>- "+arrError.join("<br/>- ");ErrorWindow.innerHTML=ErrorMessage;ErrorWindow.style.display="inline";$("body").click(function(){returnObjById("sb_Error").style.display="none"});$("img").click(function(){returnObjById("sb_Error").style.display="none"})}else{alert(arrError.join("\n"))}return false}return true}function onAfterCalendarClose(B,A){onInputChange(B,A)}var tabs;var tabName=new Array();var tabAbbrevation=new Array();var tabExtendTextImg=new Array();var sizes={NORMAL:0,EXTENDED:1};var currentContainerSize;var CurrentTabSizes;var activeTab;var ImageExtension="png";var MandantExtension="";var HideSmoBox=false;var OffExtension="_off";function RegisterTab(B,A,C,D){tabName[B]=A;tabAbbrevation[B]=C;D=(typeof D=="undefined")?"/images/buttons/de/erweitert_txt":D;tabExtendTextImg[B]=D}function returnObjById(B){if(document.getElementById){var A=document.getElementById(B)}else{if(document.all){var A=document.all[B]}else{if(document.layers){var A=document.layers[B]}}}return A}function SwitchTabStyle(B,D){if(B==""){B=tabName[D]}for(var A in tabName){var C=returnObjById("img_"+tabName[A]);if(B==tabName[A]){strNeedle=OffExtension+MandantExtension+"."+ImageExtension;strReplace="_on"+MandantExtension+"."+ImageExtension}else{strNeedle="_on"+MandantExtension+"."+ImageExtension;strReplace=OffExtension+MandantExtension+"."+ImageExtension}C.src=C.src.replace(strNeedle,strReplace)}}function hideSmobox(){if(!HideSmoBox){return true}var A=returnObjById("smobox1_1");if(A==null){return false}else{$("#smobox1_1").fadeOut();return true}}function FadeOut(A,B){$("#suche_erweitert"+B).fadeIn("slow");$("#buttonclick"+B+" img").attr("src","/images/buttons/de/schliessen_txt."+ImageExtension);setTabSize(A,sizes.EXTENDED,activeTab==A);DesignChangesForFadeOut(B)}function FadeIn(A,B){setTabSize(A,sizes.NORMAL,true);$("#suche_erweitert"+B).fadeOut("slow",function(){$("#buttonclick"+B+" img").attr("src",tabExtendTextImg[A]+"."+ImageExtension);$("#smobox1_1").slideDown("fast")});DesignChangesForFadeIn(B)}function Resize(C){if(C!=currentContainerSize){var E=returnObjById("container_background");var B="sm_t4";if(C==sizes.EXTENDED){B=B+"_lang"}E.src="/images/layout/gfxborder/"+B+"."+ImageExtension;var D=returnObjById("suche_standard_rahmen");var A;switch(C){case sizes.NORMAL:A=21.4;break;case sizes.EXTENDED:A=42.5;if(!hideSmobox()){setTimeout("hideSmobox()",1000)}break;default:A=21.4}D.style.height=A+"em";currentContainerSize=C}}function setTabSize(C,A,B){CurrentTabSizes[C]=A;if(B){Resize(A)}}function DesignChangesForFadeOut(C){var B=returnObjById("divLine3"+C);if(B!=null){B.className=B.className.replace("searchbox_dotline","")}var A=returnObjById("MainContainer"+C);if(A!=null){A.style.height="14em"}}function DesignChangesForFadeIn(C){var B=returnObjById("divLine3"+C);if(B!=null){B.className=B.className+" searchbox_dotline"}var A=returnObjById("MainContainer"+C);if(A!=null){A.style.height="15.5em"}}function PNGFixInSearchbox(A){$(".pngfix"+A).hide();$(".pngfix"+A).show().ifixpng()}var lock=false;function onInputChange(E,D,C,B){FieldTag=returnObjById(E+D);if(FieldTag===null){return -1}FieldValue=FieldTag.value;for(var A in tabAbbrevation){if(tabAbbrevation[A]!=D){tag=returnObjById(E+tabAbbrevation[A]);if(tag!=null){tag.value=FieldValue;if(FieldValue!=tag.value){tag.value="0"}}else{continue}if(C){DependingTag=returnObjById(C+tabAbbrevation[A]);if((DependingTag!=null)&&(FieldValue!="")){if(!DependingTag.checked){lock=true;$("#"+DependingTag.id).trigger("click");lock=false}}}if((FieldValue!="")&&(B)&&(B==true)){ExtTag=returnObjById("suche_erweitert"+tabAbbrevation[A]);if((ExtTag!=null)){FadeOut(A,tabAbbrevation[A])}}}}}function onCheckboxChange(C,B){if(lock){return 0}FieldTag=returnObjById(C+B);if(FieldTag===null){return -1}for(var A in tabAbbrevation){if(tabAbbrevation[A]!=B){tag=returnObjById(C+tabAbbrevation[A]);if(tag!=null){lock=true;$("#"+tag.id).trigger("click");lock=false}}}}function onDestinationChangeByText(A,B,C){DestinationTag=returnObjById(A+C);if(DestinationTag===null){return -1}DestinationValue=DestinationTag.value;DestinationDescTag=returnObjById(B+C);if(DestinationDescTag!=null){DestinationDesc=DestinationDescTag.value}onDestinationChange(A,B,C,DestinationValue,DestinationDesc)}function onDestinationChangeBySelect(A,B,C){DestinationTag=returnObjById(A+C);if(DestinationTag===null){return -1}DestinationValue=DestinationTag.value;if(DestinationValue.substr(0,2)=="zl"){return 0}if(DestinationValue.substr(0,2)!="zo"){DestinationValue="zo"+DestinationValue}DestinationDesc=DestinationTag.options[DestinationTag.selectedIndex].text.replace("--","");onDestinationChange(A,B,C,DestinationValue,DestinationDesc)}function onDestinationChange(B,C,F,E,D){for(var A in tabAbbrevation){if(tabAbbrevation[A]!=F){tag=returnObjById(B+tabAbbrevation[A]);if(tag!=null){tag.value="";if((A==0)&&C=="nach"&&E.substr(0,2)=="zo"){tag.value=E}else{if((A==0||A==1||A==3)&&B=="von"&&E.substr(0,2)=="zo"){tag.value=E.substr(2,(E.length-2))}else{if((A==1)&&C=="nach"&&E.substr(0,2)=="zo"){tag.value=E.substr(2,(E.length-2))}else{if(A==2&&E=="zo"){tag.value=""}else{tag.value=E}}}}if(C!=""){tagFullDesc=returnObjById(C+tabAbbrevation[A]);if(tagFullDesc!=null){tagFullDesc.value=D}}}}}};