var Nummer=0;
var Zahl=0;

jetzt_klicken = new Image();
jetzt_klicken.src = "/gfx/klicken_withbg.png";


function showMenu(Zahl)
{
				
				
	if(document.all) 
	{ 
	    
		Nummer=Zahl;
		if(document.getElementById('menu'+Nummer+'Sub'))
		{
			document.getElementById('menu'+Nummer+'Sub').style.display = 'block';
			document.getElementById('menu'+Nummer+'Sub').style.borderTop = '1px solid #e3771d';
		}
		if(document.getElementById('menu'+Nummer+'Text'))
		{
			document.getElementById('menu'+Nummer+'Text').style.color = '#e3771d';
		}
		if(!document.getElementById('menu'+Nummer+'Sub'))
		{
			document.getElementById('menu'+Nummer+'But').style.borderBottom = '1px solid #e3771d';
		}
	}	
			
}
function hideMenu(Zahl)
{
	if(document.all) 
	{ 
		Nummer=Zahl;
		if(document.getElementById('menu'+Nummer+'Sub'))
		{
			document.getElementById('menu'+Nummer+'Sub').style.display = 'none';
			document.getElementById('menu'+Nummer+'Sub').style.borderTop = '0px solid #e3771d';
		}
		if(document.getElementById('menu'+Nummer+'Text'))
		{
			document.getElementById('menu'+Nummer+'Text').style.color = '#ffffff';
		}
		if(!document.getElementById('menu'+Nummer+'Sub'))
		{
			document.getElementById('menu'+Nummer+'But').style.borderBottom = '1px solid #3f3f3f';
		}
	}	
				
}	
function showKlicken()
{
	document.getElementById('jetztzuhoeren').setAttribute("src","/gfx/klicken_withbg.png");
}
function hideKlicken()
{
	document.getElementById('jetztzuhoeren').setAttribute("src","/gfx/zuhoeren_withbg.png");
}

function openPlayer()
{
	window.open('/livestream','Livestream','width=558,height=520,left=200,top=250,resizable=no,scrollbars=no,status=no');		
}
function openPlayerWMP()
{
	window.open('/livestream/wmp.html','Livestream','width=558,height=290,left=200,top=250,resizable=no,scrollbars=no,status=no');		
}
function openPlayerWinamp()
{
	window.open('/livestream/winamp.html','Livestream','width=558,height=290,left=200,top=250,resizable=no,scrollbars=no,status=no');		
}
function openPlayerITunes()
{
	window.open('/livestream/itunes.html','Livestream','width=558,height=290,left=200,top=250,resizable=no,scrollbars=no,status=no');		
}
function openPlayerReal()
{
	window.open('/livestream/real.html','Livestream','width=558,height=290,left=200,top=250,resizable=no,scrollbars=no,status=no');		
}


function openPlayerWMP2()
{
	window.open('/livestream/wmp2.html','Livestream','width=558,height=290,left=200,top=250,resizable=no,scrollbars=no,status=no');		
}
function openPlayerWinamp2()
{
	window.open('/livestream/winamp2.html','Livestream','width=558,height=290,left=200,top=250,resizable=no,scrollbars=no,status=no');		
}
function openPlayerITunes2()
{
	window.open('/livestream/itunes2.html','Livestream','width=558,height=290,left=200,top=250,resizable=no,scrollbars=no,status=no');		
}
function openPlayerReal2()
{
	window.open('/livestream/real2.html','Livestream','width=558,height=290,left=200,top=250,resizable=no,scrollbars=no,status=no');		
}


function openWunsch()
{
	window.open('http://www.cordless-radio.de/wunschbox/index.php','Wunschbox','width=240,height=240,left=200,top=250,resizable=no,scrollbars=no,status=no');		
}
function openFoto(uri, width, height)
{
	window.open('http://www.cordless-radio.de/foto_detail.php?pic='+uri,'Foto im Detail','width='+width+',height='+height+',left=200,top=250,resizable=no,scrollbars=no,status=no');		
}



// jQuery SmoothScroll | Version 10-04-30
$('a[href*=#seitenanfang]').click(function() {

   // duration in ms
   var duration=1000;

   // easing values: swing | linear
   var easing='swing';

   // get / set parameters
   var newHash=this.hash;
   var target=$(this.hash).offset().top;
   var oldLocation=window.location.href.replace(window.location.hash, '');
   var newLocation=this;

   // make sure it's the same location      
   if(oldLocation+newHash==newLocation)
   {
      // set selector
      if($.browser.safari) var animationSelector='body:not(:animated)';
      else var animationSelector='html:not(:animated)';

      // animate to target and set the hash to the window.location after the animation
      $(animationSelector).animate({ scrollTop: target }, duration, easing, function() {

         // add new hash to the browser location
         window.location.href=newLocation;
      });

      // cancel default click action
      return false;
   }
});

// jQuery SmoothScroll | Version 10-04-30
$('a[href*=#promoter]').click(function() {

   // duration in ms
   var duration=1000;

   // easing values: swing | linear
   var easing='swing';

   // get / set parameters
   var newHash=this.hash;
   var target=$(this.hash).offset().top;
   var oldLocation=window.location.href.replace(window.location.hash, '');
   var newLocation=this;

   // make sure it's the same location      
   if(oldLocation+newHash==newLocation)
   {
      // set selector
      if($.browser.safari) var animationSelector='body:not(:animated)';
      else var animationSelector='html:not(:animated)';

      // animate to target and set the hash to the window.location after the animation
      $(animationSelector).animate({ scrollTop: target }, duration, easing, function() {

         // add new hash to the browser location
         window.location.href=newLocation;
      });

      // cancel default click action
      return false;
   }
});



// jQuery SmoothScroll | Version 10-04-30
$('a[href*=#partyshooter]').click(function() {

   // duration in ms
   var duration=1000;

   // easing values: swing | linear
   var easing='swing';

   // get / set parameters
   var newHash=this.hash;
   var target=$(this.hash).offset().top;
   var oldLocation=window.location.href.replace(window.location.hash, '');
   var newLocation=this;

   // make sure it's the same location      
   if(oldLocation+newHash==newLocation)
   {
      // set selector
      if($.browser.safari) var animationSelector='body:not(:animated)';
      else var animationSelector='html:not(:animated)';

      // animate to target and set the hash to the window.location after the animation
      $(animationSelector).animate({ scrollTop: target }, duration, easing, function() {

         // add new hash to the browser location
         window.location.href=newLocation;
      });

      // cancel default click action
      return false;
   }
});



// jQuery SmoothScroll | Version 10-04-30
$('a[href*=#specials]').click(function() {

   // duration in ms
   var duration=1000;

   // easing values: swing | linear
   var easing='swing';

   // get / set parameters
   var newHash=this.hash;
   var target=$(this.hash).offset().top;
   var oldLocation=window.location.href.replace(window.location.hash, '');
   var newLocation=this;

   // make sure it's the same location      
   if(oldLocation+newHash==newLocation)
   {
      // set selector
      if($.browser.safari) var animationSelector='body:not(:animated)';
      else var animationSelector='html:not(:animated)';

      // animate to target and set the hash to the window.location after the animation
      $(animationSelector).animate({ scrollTop: target }, duration, easing, function() {

         // add new hash to the browser location
         window.location.href=newLocation;
      });

      // cancel default click action
      return false;
   }
});



// jQuery SmoothScroll | Version 10-04-30
$('a[href*=#residents]').click(function() {

   // duration in ms
   var duration=1000;

   // easing values: swing | linear
   var easing='swing';

   // get / set parameters
   var newHash=this.hash;
   var target=$(this.hash).offset().top;
   var oldLocation=window.location.href.replace(window.location.hash, '');
   var newLocation=this;

   // make sure it's the same location      
   if(oldLocation+newHash==newLocation)
   {
      // set selector
      if($.browser.safari) var animationSelector='body:not(:animated)';
      else var animationSelector='html:not(:animated)';

      // animate to target and set the hash to the window.location after the animation
      $(animationSelector).animate({ scrollTop: target }, duration, easing, function() {

         // add new hash to the browser location
         window.location.href=newLocation;
      });

      // cancel default click action
      return false;
   }
});



// jQuery SmoothScroll | Version 10-04-30
$('a[href*=#clubdjs]').click(function() {

   // duration in ms
   var duration=1000;

   // easing values: swing | linear
   var easing='swing';

   // get / set parameters
   var newHash=this.hash;
   var target=$(this.hash).offset().top;
   var oldLocation=window.location.href.replace(window.location.hash, '');
   var newLocation=this;

   // make sure it's the same location      
   if(oldLocation+newHash==newLocation)
   {
      // set selector
      if($.browser.safari) var animationSelector='body:not(:animated)';
      else var animationSelector='html:not(:animated)';

      // animate to target and set the hash to the window.location after the animation
      $(animationSelector).animate({ scrollTop: target }, duration, easing, function() {

         // add new hash to the browser location
         window.location.href=newLocation;
      });

      // cancel default click action
      return false;
   }
});



// jQuery SmoothScroll | Version 10-04-30
$('a[href*=#streamleitung]').click(function() {

   // duration in ms
   var duration=1000;

   // easing values: swing | linear
   var easing='swing';

   // get / set parameters
   var newHash=this.hash;
   var target=$(this.hash).offset().top;
   var oldLocation=window.location.href.replace(window.location.hash, '');
   var newLocation=this;

   // make sure it's the same location      
   if(oldLocation+newHash==newLocation)
   {
      // set selector
      if($.browser.safari) var animationSelector='body:not(:animated)';
      else var animationSelector='html:not(:animated)';

      // animate to target and set the hash to the window.location after the animation
      $(animationSelector).animate({ scrollTop: target }, duration, easing, function() {

         // add new hash to the browser location
         window.location.href=newLocation;
      });

      // cancel default click action
      return false;
   }
});



// jQuery SmoothScroll | Version 10-04-30
$('a[href*=#projektleitung]').click(function() {

   // duration in ms
   var duration=1000;

   // easing values: swing | linear
   var easing='swing';

   // get / set parameters
   var newHash=this.hash;
   var target=$(this.hash).offset().top;
   var oldLocation=window.location.href.replace(window.location.hash, '');
   var newLocation=this;

   // make sure it's the same location      
   if(oldLocation+newHash==newLocation)
   {
      // set selector
      if($.browser.safari) var animationSelector='body:not(:animated)';
      else var animationSelector='html:not(:animated)';

      // animate to target and set the hash to the window.location after the animation
      $(animationSelector).animate({ scrollTop: target }, duration, easing, function() {

         // add new hash to the browser location
         window.location.href=newLocation;
      });

      // cancel default click action
      return false;
   }
});

// jQuery SmoothScroll | Version 10-04-30
$('a[href*=#freunde]').click(function() {

   // duration in ms
   var duration=1000;

   // easing values: swing | linear
   var easing='swing';

   // get / set parameters
   var newHash=this.hash;
   var target=$(this.hash).offset().top;
   var oldLocation=window.location.href.replace(window.location.hash, '');
   var newLocation=this;

   // make sure it's the same location      
   if(oldLocation+newHash==newLocation)
   {
      // set selector
      if($.browser.safari) var animationSelector='body:not(:animated)';
      else var animationSelector='html:not(:animated)';

      // animate to target and set the hash to the window.location after the animation
      $(animationSelector).animate({ scrollTop: target }, duration, easing, function() {

         // add new hash to the browser location
         window.location.href=newLocation;
      });

      // cancel default click action
      return false;
   }
});


