function GetHTTPRequest(){var req2=false;if(window.XMLHttpRequest){try{req2=new XMLHttpRequest();}catch(e){req2=false;}}else if(window.ActiveXObject){try{req2=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{req2=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){req2=false;}}}return(req2);}function CallFunction(url,asynchron,body,requestMethod,FunctionName){var req2=GetHTTPRequest();if(req2){req2.onreadystatechange=function(){eval(FunctionName+"(req2);")};req2.open(requestMethod,url,asynchron);req2.send(body);}}function ShowUserOnline(){var timestamp=new Date();CallFunction("http://www.regiomusik.de/fileadmin/scripts/ajax/useronline.php?timestamp="+timestamp,true,null,"GET","MakeShowUserOnline");}function MakeShowUserOnline(req2){if(req2.readyState==4){if(req2.status==200){UserOnlineBoxObj=document.getElementById("UserOnlineBox");UserOnlineBoxObj.innerHTML=URLDecode(req2.responseText);}else{}}}var CalendarBoxObj;function ShowCalendar(showMonth,showYear){if(showMonth==0){CalendarBoxObj=document.getElementById("CalendarBox");}CalendarBoxObj.innerHTML='<span class="AjaxLoading">laden ...</span>';CallFunction("http://www.regiomusik.de/fileadmin/scripts/ajax/kalenderbox.php?showMonth="+showMonth+"&showYear="+showYear,true,null,"GET","MakeShowCalendar");}function MakeShowCalendar(req2){if(req2.readyState==4){if(req2.status==200){CalendarBoxObj.innerHTML=URLDecode(req2.responseText);}else{}}}function ShowCalendarTip(obj,arg){if(arg==0){obj.firstChild.className="calinfobox";}else{obj.firstChild.className="calinfoboxOn";}}function URLDecode(arg){var HEXCHARS="0123456789ABCDEFabcdef";var encoded=arg;var plaintext="";var i=0;while(i<encoded.length){var ch=encoded.charAt(i);if(ch=="+"){plaintext+=" ";i++;}else if(ch=="%"){if(i<(encoded.length-2)&&HEXCHARS.indexOf(encoded.charAt(i+1))!=-1&&HEXCHARS.indexOf(encoded.charAt(i+2))!=-1){plaintext+=unescape(encoded.substr(i,3));i+=3;}else{alert('Bad escape combination near ...'+encoded.substr(i));plaintext+="%[ERROR]";i++;}}else{plaintext+=ch;i++;}}return plaintext;}function ShowRegioUser(){var timestamp=new Date();CallFunction("/fileadmin/scripts/ajax/regiouser.php?timestamp="+timestamp,true,null,"GET","MakeShowRegioUser");}function MakeShowRegioUser(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("RegioUserBox").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowMyBands(){var timestamp=new Date();CallFunction("/fileadmin/scripts/ajax/MyBands.php?timestamp="+timestamp,true,null,"GET","MakeShowMyBands");}function MakeShowMyBands(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("MyBandsBox").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowMyBandsSmall(){var timestamp=new Date();CallFunction("/fileadmin/scripts/ajax/MyBandsSmall.php?timestamp="+timestamp,true,null,"GET","MakeShowMyBandsSmall");}function MakeShowMyBandsSmall(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("MyBandsBoxSmall").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowBandLotto(arg){var jetzt=new Date();var timestamp=jetzt.getTime();CallFunction("/html.html?data=randomband&timestamp="+timestamp,true,null,"GET","MakeShowBandLotto");}function MakeShowBandLotto(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("RandomBandBox").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowSongLotto(arg){var timestamp=new Date();document.getElementById("SongLottoBox").innerHTML='<span class="AjaxLoading">laden ...</span>';CallFunction("/fileadmin/scripts/ajax/songlotto.php?RubrikLotto="+arg+"&timestamp="+timestamp,true,null,"GET","MakeShowSongLotto");}function MakeShowSongLotto(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("SongLottoBox").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowBandFreunde(arg){var timestamp=new Date();CallFunction("/fileadmin/scripts/bandfreundeliste.php?BandId="+arg+"&timestamp="+timestamp,true,null,"GET","MakeShowBandFreunde");}function MakeShowBandFreunde(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("BandFreundeBox").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowFreundeBand(arg){var timestamp=new Date();CallFunction("/fileadmin/scripts/userbandliste.php?BandId="+arg+"&timestamp="+timestamp,true,null,"GET","MakeShowFreundeBand");}function MakeShowFreundeBand(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("FreundeBandBox").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowBesteBand(){var timestamp=new Date();CallFunction("/fileadmin/scripts/ajax/besteBand.php?timestamp="+timestamp,true,null,"GET","MakeShowBesteBand");}function MakeShowBesteBand(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("BesteBandBoxNew").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowNewBand(){var jetzt=new Date();var timestamp=jetzt.getTime();CallFunction("/html.html?data=lastband&timestamp="+timestamp,true,null,"GET","MakeShowNewBand");}function ShowNewBand_en(){var timestamp=new Date();CallFunction("/fileadmin/scripts/ajax/en/newBand_en.php?timestamp="+timestamp,true,null,"GET","MakeShowNewBand");}function MakeShowNewBand(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("RegioNewBandBox").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowChartNo1(){var timestamp=new Date();CallFunction("/fileadmin/scripts/ajax/chart-no1.php?timestamp="+timestamp,true,null,"GET","MakeShowChartNo1");}function MakeShowChartNo1(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("RegioChartNo1Box").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowNewUser(){var jetzt=new Date();var timestamp=jetzt.getTime();CallFunction("http://www.regiomusik.de/html.html?data=lastusers&timestamp="+timestamp,true,null,"GET","MakeShowNewUser");}function MakeShowNewUser(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("newUserBox").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowMyArtikelBox(){var timestamp=new Date();CallFunction("/fileadmin/scripts/ajax/MeineArtikelBox.php?timestamp="+timestamp,true,null,"GET","MakeShowMyArtikelBox");}function MakeShowMyArtikelBox(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("MyArtikelBox").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowMyFriends(UserId,Count,PageNo){var timestamp=new Date();if(document.getElementById("WaitInTheMiddleMyFriends")!=null){document.getElementById("WaitInTheMiddleMyFriends").src="/fileadmin/template/NewDesign/images/progressbar_green.gif";}CallFunction("/fileadmin/scripts/ajax/MyFriends.php?UserId="+UserId+"&Count="+Count+"&PageNo="+PageNo+"&timestamp="+timestamp,true,null,"GET","MakeShowMyFriends");}function MakeShowMyFriends(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("MyFriendsBox").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowMyLieblingsBands(UserId,Count,PageNo){var timestamp=new Date();if(document.getElementById("WaitInTheMiddleLieblingsBands")!=null){document.getElementById("WaitInTheMiddleLieblingsBands").src="/fileadmin/template/NewDesign/images/progressbar_green.gif";}CallFunction("/fileadmin/scripts/ajax/MyLieblingsBands.php?UserId="+UserId+"&Count="+Count+"&PageNo="+PageNo+"&timestamp="+timestamp,true,null,"GET","MakeShowMyLieblingsBands");}function MakeShowMyLieblingsBands(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("MyLieblingsBandsBox").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowUserGuestbook(UserId,Count,PageNo){var timestamp=new Date();if(document.getElementById("WaitInTheMiddleUserGuestbook")!=null){document.getElementById("WaitInTheMiddleUserGuestbook").src="/fileadmin/template/NewDesign/images/progressbar_green.gif";}CallFunction("/fileadmin/scripts/ajax/UserGuestbook.php?UserId="+UserId+"&Count="+Count+"&PageNo="+PageNo+"&timestamp="+timestamp,true,null,"GET","MakeShowUserGuestbook");}function MakeShowUserGuestbook(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("UserGuestbookBox").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowBandGuestbook(BandId,Count,PageNo){var timestamp=new Date();if(document.getElementById("WaitInTheMiddleBandGuestbook")!=null){document.getElementById("WaitInTheMiddleBandGuestbook").src="/fileadmin/template/NewDesign/images/progressbar_green.gif";}CallFunction("/fileadmin/scripts/band/guestbook.php?BandId="+BandId+"&Count="+Count+"&PageNo="+PageNo+"&timestamp="+timestamp,true,null,"GET","MakeShowBandGuestbook");}function MakeShowBandGuestbook(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("BandGuestbookBox").innerHTML=URLDecode(req2.responseText);}else{}}}function goBundesland(sel){var landObj=document.getElementById('RegioComUserCountry');land=landObj[landObj.selectedIndex].value;ShowBundesland(land,sel);}function ShowBundesland(land,sel){CallFunction("/fileadmin/scripts/ajax/bundesland.php?country="+land+"&sel="+sel,true,null,"GET","MakeShowBundesland");}function MakeShowBundesland(req2){if(req2.readyState==4){if(req2.status==200){var RegioComUserZoneObj=document.getElementById("RegioComUserZone");if(RegioComUserZoneObj.outerHTML){RegioComUserZoneObj.outerHTML="<select name=\"tx_cwtcommunity_pi1[zone]\" id=\"RegioComUserZone\" size=\"1\" style=\"width:210px;font-size:12px;\">"+URLDecode(req2.responseText)+"</select>";}else{RegioComUserZoneObj.innerHTML=URLDecode(req2.responseText);}}else{}}}function goBundeslandForMap(sel){var landObj=document.getElementById('locationCountryFlag');land=landObj[landObj.selectedIndex].value;ShowBundeslandForMap(land,sel);}function ShowBundeslandForMap(land,sel){var timestamp=new Date();CallFunction("/fileadmin/scripts/ajax/bundeslandForMap.php?country="+land+"&sel="+sel+"&timestamp="+timestamp,true,null,"GET","MakeShowBundeslandForMap");}function MakeShowBundeslandForMap(req2){if(req2.readyState==4){if(req2.status==200){var RegioComUserZoneObj=document.getElementById("locationZoneFlag");var TempOption=URLDecode(req2.responseText);RegioComUserZoneObj.innerHTML=TempOption;if(RegioComUserZoneObj.innerHTML.substr(0,7).toLowerCase()!="<option"){var selectString=RegioComUserZoneObj.outerHTML.match(/<SELECT[^>]*>/);RegioComUserZoneObj.outerHTML=selectString+TempOption+"</select>";}}else{}}}function ShowBirthdayAll(){var timestamp=new Date();CallFunction("/fileadmin/scripts/ajax/birthday_all.php?timestamp="+timestamp,true,null,"GET","MakeShowBirthdayAll");}function MakeShowBirthdayAll(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("RegioBirthdayAllBox").innerHTML=URLDecode(req2.responseText);}else{}}}function ShowBirthdayFriends(){var timestamp=new Date();CallFunction("/fileadmin/scripts/ajax/birthday_friends.php?timestamp="+timestamp,true,null,"GET","MakeShowBirthdayFriends");}function MakeShowBirthdayFriends(req2){if(req2.readyState==4){if(req2.status==200){document.getElementById("RegioBirthdayFriendsBox").innerHTML=URLDecode(req2.responseText);}else{}}}function goAjax(url,method){CallFunction(url,true,null,"GET",method);}function openchat(){window.open('/chat/login.php','chat','resizable=yes,scrollbars=no,width=630,height=600');}function sNOn(obj){obj.className+=" over "+obj.id+"Color";}function sNOff(obj){obj.className=obj.className.replace(" over "+obj.id+"Color","");}var PlayerPopup=null;function GoToPlayer(arg){if(arg){PlayerPopup=window.open('/regioplayer/player.php?BandIdAdd='+arg,'RegioPlayer','width=465, height=320');}else{PlayerPopup=window.open('/regioplayer/player.php','RegioPlayer','width=468, height=195');}}var VideoPlayerPopup=null;function GoToVideoPlayer(arg){VideoPlayerPopup=window.open('/regioplayer/videoplayer.php','RegioVideoPlayer','width=625, height=385, statusbar=1');}function amz_js_PopWin(url,name,options){var ContextWindow=window.open(url,name,options);ContextWindow.focus();return false;}var MainTeaserInterval;var MainTeaserAktiv=0;function startMainTeaser(){setMainTeaser(parseInt(Math.random()*5));MainTeaserInterval=window.setInterval("nextMainTeaser()",4000);}function setMainTeaser(counter){window.clearInterval(MainTeaserInterval);setMainTeaserImg(counter);MainTeaserInterval=window.setInterval("restartMainTeaser()",20000);}function restartMainTeaser(){window.clearInterval(MainTeaserInterval);MainTeaserInterval=window.setInterval("nextMainTeaser()",4000);}function setMainTeaserImg(counter){imgObj=document.getElementById('smallteaser_'+counter);document.getElementById('smallteaser_'+MainTeaserAktiv).style.borderLeft="15px solid #ffffff";imgObj.style.borderColor="#999999";MainTeaserAktiv=counter;imgArr=eval('new Array('+imgObj.getAttribute('rel')+')');titletemp=imgObj.getAttribute('title');document.getElementById('mainTeaserImg').src="/"+imgArr[0];document.getElementById('mainTeaserImg').title=titletemp;document.getElementById('mainTeaserImg').alt=titletemp;document.getElementById('TitleBoxHref').title=titletemp;if(imgArr[2].length>0){document.getElementById('TitleBoxHref').innerHTML='<div class="artikelhead">'+imgArr[2]+'</div>'+titletemp;}else{document.getElementById('TitleBoxHref').innerHTML=titletemp;}document.getElementById('TitleBoxHref').href=imgArr[1];document.getElementById('headTitleBoxHref').href=imgArr[1];}function nextMainTeaser(){counttemp=MainTeaserAktiv+1;if(counttemp>4){counttemp=0;}setMainTeaserImg(counttemp,document.getElementById('smallteaser_'+counttemp))}function ToggleTeaser(arg){if(arg==2){document.getElementById("SmallTeaser1").className="SmallTeaserNormal";document.getElementById("SmallTeaser2").className="SmallTeaserBig";document.getElementById("SmallTeaser3").className="SmallTeaserNormal";}else if(arg==3){document.getElementById("SmallTeaser1").className="SmallTeaserNormal";document.getElementById("SmallTeaser2").className="SmallTeaserNormal";document.getElementById("SmallTeaser3").className="SmallTeaserBig";}else{document.getElementById("SmallTeaser1").className="SmallTeaserBig";document.getElementById("SmallTeaser2").className="SmallTeaserNormal";document.getElementById("SmallTeaser3").className="SmallTeaserNormal";}}
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
var msie4 = (browserName == "Microsoft Internet Explorer" && browserVer >= 4);
if ((browserName == "Netscape" && browserVer >= 3) || msie4 || browserName=="Konqueror" || browserName=="Opera") {version = "n3";} else {version = "n2";}
function blurLink(theObject)	{
	if (msie4)	{theObject.blur();}
}
function swapNav(obj, type){
 if(type==1){
   obj.className+=" over";
 }else{
   obj.className=obj.className.replace(" over","");
 }
}
 