var global_at="@",global_dt=".";function jmp(f,a){if(f.trg){f.trg.value=a;}}function locrep(a){window.location.replace(a);}function cuttext(lng,field){if(field.value.length>lng){field.value=field.value.substring(0,lng);}}function get_browser(obj){if(typeof obj.selectionStart!='undefined'){return'noIE';}if(typeof document.getSelection!='undefined'){return;}if(typeof document.selection!='undefined'){return'IE';}return;}function set_focus(f,s,v){if(f){f.focus();if(s){f.select();}if(v&&(sel=v.value.length)){if(get_browser(v.value)=='IE'){_r=document.selection.createRange();_r.moveStart('character',sel);_r.select();}else{f.selectionStart=sel;}}}}var _new;function winp(href,w,h){rs=(_new)?1:0;if(h>screen.availHeight){h=screen.availHeight;}if(w>screen.availWidth){w=screen.availWidth;}if(h=="auto"){h=screen.availHeight;}if(w=="auto"){w=screen.availWidth;}_new=window.open(href,"neu"+global_ftt,"width="+w+",height="+h+",top=0,left=0,statusbar=no,menubar=yes,resizable=yes,scrollbars=yes");_new.focus();}function preview(href,width,height){width=(width>screen.availHeight-100)?screen.availWidth-100:width;height=(height>screen.availHeight-200)?screen.availHeight-200:height;_win=window.open(href,"preview"+global_ftt,"width="+width+",height="+height+",top=0,left=0,menubar=yes,statusbar=no,resizable=yes,scrollbars=no");_win.focus();}function set_selection(form){if(form.select_all.checked===true){if(!form['auswahl[]'].length){form['auswahl[]'].checked=true;}else{for(i=0;i<form['auswahl[]'].length;i++){form['auswahl[]'][i].checked=true;}}}else if(form.select_all.checked===false){if(!form['auswahl[]'].length){form['auswahl[]'].checked=false;}else{for(i=0;i<form['auswahl[]'].length;i++){form['auswahl[]'][i].checked=false;}}}}function check_ats(s){var a=false,res=false;if(typeof(RegExp)=="function"){var b=new RegExp("abc");if(b.test("abc")===true){a=true;}}if(a===true){reg=new RegExp("^([a-zA-Z0-9\\-\\.\\_]+)(\\@)([a-zA-Z0-9\\-\\_\\.]+)(\\.)([a-zA-Z]{2,4}|museum|travel|[0-9]{1,3})$");res=(reg.test(s));}else{res=(s.search("@")>=1 && s.lastIndexOf(".")>s.search("@")&&s.lastIndexOf(".")>=s.length-5);}return (res);}function ats_testen(f){var errstring="";if(global_atskey=='0'&&check_ats(f['newsletter['+global_atsa_id+'][email]'].value)===false){errstring=global_atserr1;}if(global_atskey==1&&check_ats(f['newsletter['+global_atsa_id+'][emailan]'].value)===false){errstring=global_atserr2;}if(global_atskey>1&&check_ats(f['newsletter['+global_atsa_id+'][emailvon]'].value)===false){errstring+=global_atserr3;}if(global_atskey>2&&!f['newsletter['+global_atsa_id+'][nachricht]'].value.length){errstring+=global_atserr4;}if(errstring){document.getElementById("atserr").innerHTML='<table class="error" summary="versandfehler" cellspacing="'+global_atscsp+'" cellpadding="0"><tr'+'><td class="kalender">'+errstring+'<'+'/td><'+'/tr><'+'/table>';return false;}return true;}function ats_remove(){if(document.getElementById("atsform")){document.getElementById("atsform").innerHTML="";}}function setp(f,p,left,abbestellen,abonnieren){var _f1name=global_actform+'[p'+p+']',_f2name=global_kennung+'_dontsubmit['+p+']';if(f[_f1name].value>0){f[_f1name].value=0;document.getElementById("p"+p).innerHTML="&#160;";f[_f2name].value=abonnieren;}else if(f[_f1name].value<1){f[_f1name].value=(left)?2:1;f[_f2name].value=abbestellen;document.getElementById("p"+p).innerHTML=(left)?left:"&#160;";}}var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false,isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false,isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var version,axo;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version");}catch(e){}if(!version){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version="WIN 6,0,21,0";axo.AllowScriptAccess="always";version=axo.GetVariable("$version");}catch(e0){}}if(!version){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version=axo.GetVariable("$version");}catch(e1){}}if(!version){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version="WIN 3,0,18,0";}catch (e2){}}if(!version){try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version="WIN 2,0,0,11";}catch(e3){version=-1;}}return version;}function GetSwfVer(){var flashVer=-1;if(navigator.plugins!==null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionRevision=descArray[3];if(versionRevision==""){versionRevision=descArray[4];}if(versionRevision[0]=="d"){versionRevision=versionRevision.substring(1);}else if(versionRevision[0]=="r"){versionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0){versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"));}}flashVer=versionMajor;}}else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){flashVer=4;}else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){flashVer=3;}else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){flashVer=2;}else if(isIE&&isWin&&!isOpera){flashVer=ControlVersion();}return flashVer;}function DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision){versionStr=GetSwfVer();if(versionStr==-1){return false;}else if(versionStr!==0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");}var versionMajor=versionArray[0],versionMinor=versionArray[1],versionRevision=versionArray[2];if(versionMajor>parseFloat(reqMajorVer)){return true;}else if(versionMajor==parseFloat(reqMajorVer)){if(versionMinor>parseFloat(reqMinorVer)){return true;}else if(versionMinor==parseFloat(reqMinorVer)){if(versionRevision>=parseFloat(reqRevision)){return true;}}}return false;}}global_useflash=GetSwfVer();if(global_useflash<=0){global_useflash=0;}else{global_useflash=parseInt(global_useflash.replace(/[^0-9,\.]/gi,""),10);}global_allflash=global_useflash;function play_flash(src,width,height,scale,salign,quality,play,name,bgcolor,id,fv){var str='<embed src="'+src+'" menu="false" wmode="transparent" allowfullscreen="true" allowscriptaccess="always"';str+=(fv)?' FlashVars="'+fv+'"':'';str+=(width)?' width="'+width+'"':'';str+=(height)?' height="'+height+'"':'';str+=(quality)?' quality="'+quality+'"':'';str+=(scale)?' scale="'+scale+'"':'';str+=(salign)?' salign="'+salign+'"':'';str+=(play)?' play="'+play+'"':'';str+=(name)?' name="'+name+'"':'';str+=(bgcolor)?' bgcolor="#ffffff"':'';str+=' type="application/x-shockwave-flash"';str+=' pluginspage="http://www.macromedia.com/go/getflashplayer"><'+'/embed>';var _adm=0;if(id.indexOf("adm_")!==-1){_adm=1;}if(id.indexOf("clp_")!==-1){_adm=2;}if(id.indexOf("ax_")!==-1){_adm=3;}if(!_adm){return str;}$("#"+id).append(str);if(_adm===1){$("#"+id).css("background","#fff");}}function str_rot13(str){return str.replace(/[A-Za-z]/g,function(c){return String.fromCharCode((((c=c.charCodeAt(0))& 223)-52)%26+(c&32)+65);});}function prml(b,a,c,d,bl){return '<a href="mailto:'+str_rot13(a)+'@'+str_rot13(b)+'.'+str_rot13(c)+str_rot13(d)+'" onclick="'+bl+'">'+str_rot13(a)+global_at+str_rot13(b)+global_dt+str_rot13(c)+'<'+'/a>';}function ntc(obj_count,msg,wd){var _obc=obj_count,_obn='ntc'+obj_count,_obcontainer='tc'+obj_count,_objbody='tcbody'+obj_count,ntc_content=unescape(msg),ntc_width=wd,ntc_paused=false,ntc_left=0,tcwidth;function write_ticker(){if(document.getElementById(_obcontainer)!==null){document.getElementById(_obcontainer).className='ohidden';}}write_ticker();this.ntc_start=function(){if(document.getElementById(_obcontainer)!==null){ntc_left=document.getElementById(_obcontainer).scrollLeft;document.getElementById(_obcontainer).innerHTML='<table class="newsticker" cellspacing="0" cellpadding="0"><tr><td nowrap="nowrap">'+ntc_content+'&#160;<'+'/td><td nowrap="nowrap" id="'+_objbody+'">'+ntc_content+'&#160;<'+'/td><'+'/tr><'+'/table>';tcwidth=document.getElementById(_objbody).scrollWidth;while(tcwidth<=ntc_width){ntc_content+=' '+unescape(msg);document.getElementById(_obcontainer).innerHTML='<table class="newsticker" cellspacing="0" cellpadding="0"><tr><td nowrap="nowrap">'+ntc_content+'&#160;<'+'/td><td nowrap="nowrap" id="'+_objbody+'">'+ntc_content+'&#160;<'+'/td><'+'/tr><'+'/table>';tcwidth=document.getElementById(_objbody).scrollWidth;}}};this.ntc_tick=function(){if(document.getElementById(_obcontainer)!==null){if(!ntc_paused){ntc_left+=2;}if(ntc_left>=tcwidth){ntc_left=0;}document.getElementById(_obcontainer).scrollLeft=ntc_left;window.setTimeout(_obn+".ntc_tick()",36);}this.ntc_pause=function(x){ntc_paused=(x)?true:false;};};}function play_ntc(src,width,height,scale,salign,quality,play,name,bgcolor,id,swattr){str='<span class="flashc block" style="overflow:hidden;'+swattr+'"><span class="flash" style="'+swattr+'"><embed src="'+src+'"menu="false" wmode="transparent"';str+=(width)?' width="'+width+'"':'';str+=(height)?' height="'+height+'"':'';str+=(quality)?' quality="'+quality+'"':'';str+=(scale)?' scale="'+scale+'"':'';str+=(salign)?' salign="'+salign+'"':'';str+=(play)?' play="'+play+'"':'';str+=(name)?' name="'+name+'"':'';str+=(bgcolor)?' bgcolor="'+bgcolor+'"':'';str+='type="application/x-shockwave-flash"';str+=' pluginspage="http://www.macromedia.com/go/getflashplayer"><'+'/embed><'+'/span><'+'/span>';document.getElementById(id).innerHTML=str;}var xmlHttp=null,_fallback=(global_fbk!==undefined)?global_fbk:"";if(window.ActiveXObject){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}catch(f){}}}else if(window.XMLHttpRequest){try{xmlHttp=new XMLHttpRequest();}catch(g){}}function connectionclose(){if(xmlHttp){xmlHttp.open('GET',"./css/__ping",false);xmlHttp.setRequestHeader('304','Not Modified');xmlHttp.send(null);}}function check_close(closearray){if(closearray.length){$.each(closearray,function(i,val){var p=unescape(val).split(",");axinfo(p[0],p[1],p[2]);});}}function check_flh(str){var rexp=/<\!--:(.*?):-->/gi,flp=rexp.exec(str);if(flp){var fl=unescape(flp[1]).split(",");if(fl&&fl.length){if(!global_useflash||global_useflash<fl[0]){$("#"+fl[1]).html(global_gfplayer);$("#"+fl[2]).css('display','none');$("#"+fl[3]).css('display','block');}else{if(fl[7].match("videopath=")||fl[7].match("youtubepath=")){var rexp2=/((video|youtube)path=[^&]+)(.*)/,vp=rexp2.exec(fl[7]);fl[7]=vp[1]+".flv"+vp[3];}$("#"+fl[2]).append(play_flash(global_rdir+fl[4],fl[5],fl[6],"exactfit","","best","true","","",fl[2],fl[7])).css('zIndex','1001');$("#"+fl[1]).attr("src",global_flbgimg);}}}}function axinfo(inf,kennung,val){if(inf){$("#"+inf).load(global_rdir+"/js/switch.php?use=info&"+global_param+"&rsv_reset="+global_rsv+"&inf["+inf+"]="+val+"&div_id="+kennung+"&"+Math.random()+_fallback,function(response,status,xhr){if(!$.support.leadingWhitespace){response=response.replace(/^\s+|\s+$/g,'');}var rexp=/<\!--;(.*?);-->/gi,cl=rexp.exec(response);if(cl){check_close(cl[1].split("-;-"));}$("#"+inf).html(response);check_flh(response);});}}function replace_class(tag,sclass,rclass){$(tag+'.'+sclass).removeClass(sclass).addClass(rclass);}function bdb_next(t_id,alt,id){var container='bdb_info';$('#'+container).load(global_rdir+"/js/switch.php?use=bild_db&"+global_param+"&rsv_reset="+global_rsv+"&t_id="+t_id+"&alt="+alt+"&"+Math.random()+_fallback,function(response,status,xhr){$('#'+container).css('display','none');$('#'+id).html(response);});}function bdb_theme(t_id){var container='bdb_theme';$('#'+container).load(global_rdir+"/js/switch.php?use=bild_db_theme&"+global_param+"&rsv_reset="+global_rsv+"&t_id="+t_id+"&"+Math.random()+_fallback,function(response,status,xhr){$('#'+container).html(response);});}function bdb_download(bild_id,t_id,alt,id){var container='bdb_info';$('#'+container).load(global_rdir+"/js/switch.php?use=bild_db_dl&"+global_param+"&rsv_reset="+global_rsv+"&t_id="+t_id+"&bild_id="+bild_id+"&alt="+alt+"&"+Math.random()+_fallback,function(response,status,xhr){if(document.getElementById(container)){$('#'+container).css('display','block').html(response);if(!alt){replace_class("div","picture_selected","picture");$('#'+id).removeClass('picture').addClass('picture_selected');}location.replace("#bild_db");}});}function bdb_closedl(){$('#bdb_info').css('display','none');replace_class("div","picture_selected","picture");}(function($){var jQbrowser=navigator.userAgent.toLowerCase();$.os={mac:/mac/.test(jQbrowser),win:/win/.test(jQbrowser),linux:/linux/.test(jQbrowser)};$.printResult=function(str){if(window.console){console.log(str);}else{alert(str);}};})(jQuery);/* jQuery SWFObject v1.1.1 MIT/GPL @jon_nealhttp://jquery.thewikies.com/swfobject */(function(f,h,i){function k(a,c){var b=(a[0]||0)-(c[0]||0);return b>0||!b&&a.length>0&&k(a.slice(1),c.slice(1))}function l(a){if(typeof a!=g)return a;var c=[],b="";for(var d in a){b=typeof a[d]==g?l(a[d]):[d,m?encodeURI(a[d]):a[d]].join("=");c.push(b)}return c.join("&")}function n(a){var c=[];for(var b in a)a[b]&&c.push([b,'="',a[b],'"'].join(""));return c.join(" ")}function o(a){var c=[];for(var b in a)c.push(['<param name="',b,'" value="',l(a[b]),'" />'].join(""));return c.join("")}var g="object",m=true;try{var j=i.description||function(){return(new i("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}()}catch(p){j="Unavailable"}var e=j.match(/\d+/g)||[0];f[h]={available:e[0]>0,activeX:i&&!i.name,version:{original:j,array:e,string:e.join("."),major:parseInt(e[0],10)||0,minor:parseInt(e[1],10)||0,release:parseInt(e[2],10)||0},hasVersion:function(a){a=/string|number/.test(typeof a)?a.toString().split("."):/object/.test(typeof a)?[a.major,a.minor]:a||[0,0];return k(e,a)},encodeParams:true,expressInstall:"expressInstall.swf",expressInstallIsActive:false,create:function(a){if(!a.swf||this.expressInstallIsActive||!this.available&&!a.hasVersionFail)return false;if(!this.hasVersion(a.hasVersion||1)){this.expressInstallIsActive=true;if(typeof a.hasVersionFail=="function")if(!a.hasVersionFail.apply(a))return false;a={swf:a.expressInstall||this.expressInstall,height:137,width:214,flashvars:{MMredirectURL:location.href,MMplayerType:this.activeX?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}attrs={data:a.swf,type:"application/x-shockwave-flash",id:a.id||"flash_"+Math.floor(Math.random()*999999999),width:a.width||320,height:a.height||180,style:a.style||""};m=typeof a.useEncode!=="undefined"?a.useEncode:this.encodeParams;a.movie=a.swf;a.wmode=a.wmode||"opaque";delete a.fallback;delete a.hasVersion;delete a.hasVersionFail;delete a.height;delete a.id;delete a.swf;delete a.useEncode;delete a.width;var c=document.createElement("div");c.innerHTML=["<object ",n(attrs),">",o(a),"</object>"].join("");return c.firstChild}};f.fn[h]=function(a){var c=this.find(g).andSelf().filter(g);/string|object/.test(typeof a)&&this.each(function(){var b=f(this),d;a=typeof a==g?a:{swf:a};a.fallback=this;if(d=f[h].create(a)){b.children().remove();b.html(d)}});typeof a=="function"&&c.each(function(){var b=this;b.jsInteractionTimeoutMs=b.jsInteractionTimeoutMs||0;if(b.jsInteractionTimeoutMs<660)b.clientWidth||b.clientHeight?a.call(b):setTimeout(function(){f(b)[h](a)},b.jsInteractionTimeoutMs+66)});return c}})(jQuery,"flash",navigator.plugins["Shockwave Flash"]||window.ActiveXObject);/** youtube playlist jquery plugin Created by dan@geckonm.com www.geckonewmedia.com v1.1 - updated to allow fullscreen  - thanks Ashraf for the request*/(function($){$.ytplaylist=function(o){var options=$.extend({id:"",au:false,fv:"",sl:"ul.youtube"},o);var tid=options.id,selector="ul.youtube",autoPlay=false,FlashVars="",height="100%",current="",auto=true;if (options.au){autoPlay=true;}if (options.fv){FlashVars+=options.fv;}if (options.sl){selector=options.sl;}FlashVars=FlashVars.replace(/\&amp;/g,"&").replace(/\?/g,"");var fullscreen=(FlashVars.match(/fs=0/))?'false':'true';var isNotPlaying=(autoPlay)?false:true;if (fullscreen=='true'){FlashVars+="&fs=1";}function play(id,auto){FlashVars=FlashVars.replace(/\&autoplay\=1/g,"");if(auto){FlashVars+="&autoplay=1&";}var urlp=checkurlparam(FlashVars);if($.browser.opera&&$.os.win){height=$("#list_"+tid).width()/4*2.8;};$("#list_"+tid+"").flash({id:"flash_list_"+tid,swf:"http://www.youtube.com/v/"+id+(urlp?"?"+urlp:""),params:{allowScriptAccess:"always"},height:height,width:"100%",wmode:"transparent",encodeParams:false,allowscriptaccess:"allways",allowfullscreen:fullscreen});/*$.printResult($("#list_"+tid+"").html());*/}function checkvars(str){var result={};if(str.length){var check=str.split('&');var res=[];$.each(check,function(i,val){if(val){res=val.split('=');if(res[0]){result[res[0]]=""+res[1];}}});}return result;}function checkurlparam(str){var result=[];if(str.length){var check=str.split('&');$.each(check,function(i,val){if(val){result.push(val);}});}return result.join('&');}function pausePlayers(all){if(global_flowplayer.length){$f("*").each(function(){if(this.isPlaying()){this.pause();}});}if(global_jpl.length){$("*").jPlayer("pause");}if(all==undefined){all=true;}if(all&&global_ytactive){$.ytreset();}}function youtubeid(url){var ytid=url.match('([\\?&]v=|\\/v\\/)([^\\?&#]*)');ytid=ytid[2];return ytid;}function getState(id,isList){var ac=global_ytactive;if(!isList){pausePlayers(false);if(ac&&ac.cssid!=tid){isNotPlaying=true;pausePlayers(true);}global_ytactive={cssid:tid,id:id};if(isNotPlaying){auto=true;isNotPlaying=false;}else if (ac&&ac.cssid==tid){auto=false;isNotPlaying=true;}}else{if(ac&&ac.cssid!=tid||!ac){isNotPlaying=true;}pausePlayers(true);global_ytactive={cssid:tid,id:id};if(isNotPlaying){auto=true;isNotPlaying=false;}else if(!isNotPlaying&&current==id){auto=false;isNotPlaying=true;}else{auto=true;isNotPlaying=false;}}}$("#list_"+tid+"").css('display','block');var firstVid=$("#yt_"+tid+"").children(selector).children("li:first-child").addClass("currentvideo").children("a").attr("href");var first=youtubeid(firstVid);if(autoPlay){current=first;}$("#list_"+tid+"").append(function(){play(first,autoPlay);});$("#list_"+tid+"").click(function(){if(!current){current=first;}getState(current,false);global_ytactive={cssid:tid,id:current};return false;});$("#yt_"+tid+"").children(selector).css('margin-top','12px');$("#yt_"+tid+"").children(selector).children("li").children("a").click(function(){var id=youtubeid($(this).attr("href"));getState(id,true);current=id;$("#list_"+tid+"").append(function(){play(id,auto);});$(this).parent().parent("ul").find("li.currentvideo").removeClass("currentvideo");$(this).parent("li").addClass("currentvideo");locrep("#"+tid);return false;});return this;};$.ytreset=function(){function checkurlparam(str){var result=[];if(str.length){var check=str.split('&');$.each(check,function(i,val){if(val){result.push(val);}});}return result.join('&');}if(global_ytactive){$.each(global_youtube,function(i,val){if(val.id==global_ytactive.cssid){var height="100%";var urlp=val.fv;urlp=urlp.replace(/\&amp;/g,"&").replace(/\?/g,"");var fullscreen=(urlp.match(/fs=0/))?'false':'true';urlp=checkurlparam(urlp).replace(/\&autoplay\=1/g,"");if (fullscreen=='true'){urlp+="&fs=1";}urlp=(urlp)?"?"+urlp:"";if($.browser.opera&&$.os.win){height=$("#list_"+val.id).width()/4*2.8;};$("#list_"+val.id+"").flash({id:"flash_list_"+val.id,swf:"http://www.youtube.com/v/"+global_ytactive.id+urlp,params:{allowScriptAccess:"always"},height:height,width:"100%",wmode:"transparent",encodeParams:false,allowscriptaccess:"allways",allowfullscreen:fullscreen});/*$.printResult($("#list_"+val.id+"").html());*/global_ytactive="";return;}});}return this;};})(jQuery);
