var global_at="@",global_dt=".";function jmp(f,a){if(f.trg){f.trg.value=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];var versionMinor=versionArray[1];var 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;}document.getElementById(id).innerHTML=str;if(_adm===1){document.getElementById(id).style.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>';}var headID=document.getElementsByTagName("head")[0],cssNode=document.createElement("link");cssNode.type="text/css";cssNode.rel="stylesheet";cssNode.href=global_rdir+"/css/jsstyle.css";cssNode.media="screen";headID.appendChild(cssNode);var _scrollcontrol=0,_scht;function check_scrollbar(){_sc=global_bodymarg;if(window.innerHeight&&document.getElementById("body")){_scht=window.innerHeight;}if(document.getElementById("body").scrollHeight-_scht<=0&&document.getElementById("body").offsetWidth>=global_sc_rwd){_sc=_sc-global_sc_bar;}if(_scrollcontrol !=_sc){document.getElementById("body").style.marginLeft=_sc+'px';}_scrollcontrol=_sc;}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(str){var _rexp=/<\!--;(.*?);-->/gi;_cl=_rexp.exec(str);if(_cl){_closearray=_cl[1].split("-;-");_clcnt=_closearray.length;for(i=0;i<_clcnt;i++){eval('axinfo('+unescape(_closearray[i])+');');}}}function check_flh(str){var _rexp=/<\!--:(.*?):-->/gi;_flp=_rexp.exec(str);if(_flp){_fl=_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=")){_rexp2=/((video|youtube)path=[^&]+)(.*)/;vp=_rexp2.exec(_fl[i][7]);_fl[i][7]=vp[1]+".flv"+vp[3];}$("#"+_fl[2]+"").html(play_flash(global_rdir+_fl[4],_fl[5],_fl[6],"exactfit","","best","true","","",_fl[2],_fl[7]));$("#"+_fl[2]+"").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){check_close(response);if(document.getElementById(inf)){$('#'+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");}/** youtube playlist jquery plugin Created by dan@geckonm.com www.geckonewmedia.com v1.1 - updated to allow fullscreen  - thanks Ashraf for the request*/jQuery.fn.ytplaylist=function(o){var options=jQuery.extend({holderId:'ytvideo',playerHeight:'',playerWidth:'100%',autoPlay:false,showRelated:true,flVars:''},o);return this.each(function(){var selector=$(this);var autoPlay="";var showRelated="&rel=0";var playerHeight="300";var playerWidth="99.5%";var FlashVars="";if (options.playerHeight){playerHeight=options.playerHeight;}if (options.playerWidth){playerWidth=options.playerWidth;}if (options.autoPlay){FlashVars+="autoplay=1&";}if (options.showRelated){FlashVars+="rel=1&";}if (options.flVars){FlashVars+=options.flVars;}var fullscreen=(FlashVars.match(/fs=0/))?'false':'true';if (fullscreen == 'true'){FlashVars+="&fs=1";}function play(id){var html='';html+='<embed src="http://www.youtube.com/v/'+id+'"';html+=' FlashVars="'+checkvars(FlashVars)+'" ';html+='type="application/x-shockwave-flash" wmode="transparent" allowfullscreen="'+fullscreen+'" height="'+playerHeight+'" width="'+playerWidth+'"><'+'/embed>';return html;}function checkvars(str){var result=[];if(str.length){var check=str.split('&');for(i=0;i<check.length;i++){if(check[i].length){result.push(check[i]);}}}return result.join('&');}function youtubeid(url){var ytid=url.match('([\\?&]v=|\\/v\\/)([^\\?&#]*)');ytid=ytid[2];return ytid;}$("#list_"+options.holderId+"").css('padding-bottom','12px');var firstVid=$("#yt_"+options.holderId+"").children(selector).children("li:first-child").addClass("currentvideo").children("a").attr("href");$("#list_"+options.holderId+"").html(play(youtubeid(firstVid)));$("#yt_"+options.holderId+"").children(selector).children("li").children("a").click(function(){if (options.showInline){$("li.currentvideo").removeClass("currentvideo");$(this).parent("li").addClass("currentvideo").html(play(youtubeid($(this).attr("href"))));}else{$("#list_"+options.holderId+"").html(play(youtubeid($(this).attr("href"))));$(this).parent().parent("ul").find("li.currentvideo").removeClass("currentvideo");$(this).parent("li").addClass("currentvideo");}location.replace("#yt_"+options.holderId);return false;});});};