// Anti-Klau
function right(e){
	if ((navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) || (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) ){
		window.alert(unescape('Wenn Sie auf unserer Seite Fotos oder Clip Arts'+
		' downloaden, verletzten Sie bis auf wenige Ausnahmen'+
		' die Rechte der Zeichner und Fotografen. Diejenigen Bilder,'+
		' die frei von Copyrights sind, werden wir Ihnen gerne'+
		' zur Verf%FCgung stellen. Wir bitten Sie aber unbedingt,'+
		' uns vor jeglichem "Leihvorgang" zu fragen.'+
		' Danke und viele Gr%FC%DFe vom webmaster@nordseetraum.de. '));
		return false;
	}
/*
UTF-8-Kodierung
Ä  %C4
Ö 	%D6
Ü 	%DC
ä 	%E4
ö 	%F6
ü 	%FC
ß 	%DF
€ 	%u20AC
$ 	%24
% 	%25
*/
	return true;
}
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;

// prototype-Funktionen
function $(el){return document.getElementById(el);}

// @-Domains
function atDomains(){
   var url= window.location.href;
   if(url.charAt(url.length- 1)== '/') { url= url.substring(0, url.length- 1); }
   url= url+ '/';
   var s= url.indexOf("//")+ 2;
   var e= url.indexOf("@");
   if(e > 0) {
      var atpart= url.substring(s, e);
      window.location.href= url+ atpart;
   }
}

// Impressum
function impressum (){
   var win;
   win=window.open ("http://www.nordseetraum.de/konfiguration/impressum/impressum.php?id_imp=15&block=v&popup=1","impressum","width=600,height=350,screenX=0,screenY=20, left=0,top=20,resizable=no,scrollbars=yes");
}

// Popupfenster für Besucherstatistik
function counterpopup (){
   var win;
   win=window.open ("http://www.nordseetraum.de/counter/ausgabe-nst.php","","width=550,height=550,screenX=0,screenY=0, left=0,top=0,fullscreen=0,directories=0,location=0,menubar=0,resizable=1,scrollbars=yes,status=1,toolbar=0,depend=no");
}

// Reiseversicherung
function versicherung (){
   var vers;
   vers=window.open ("reiseversicherung.htm","reiseversicherung","width=625,height=523,resizable=no,scrollbars=no,screenX=20,screenY=0, left=20,top=0,fullscreen=no,directories=0,location=0,menubar=0,status=0,toolbar=0,depend=no");
}

function toggleLogoImage(obj){
   var bg = document.getElementById('innerCircle');
   bg.style.cursor = 'pointer';
   switch(obj.circle){
      case "tee-shop":
         bg.style.backgroundImage = 'url(http://www.ressourcen.nordseetraum.de/images/nordseetraum-logo-tee-shop.gif)';
         break;
      case "bannerinfo":
         bg.style.backgroundImage = 'url(http://www.ressourcen.nordseetraum.de/images/nordseetraum-logo-bannerinfo.gif)';
         break;
      case "ferienunterkuenfte":
         bg.style.backgroundImage = 'url(http://www.ressourcen.nordseetraum.de/images/nordseetraum-logo-ferienunterkuenfte.gif)';
         break;
      case "gaestebuch":
         bg.style.backgroundImage = 'url(http://www.ressourcen.nordseetraum.de/images/nordseetraum-logo-gaestebuch.gif)';
         break;
      case "impressum":
         bg.style.backgroundImage = 'url(http://www.ressourcen.nordseetraum.de/images/nordseetraum-logo-impressum.gif)';
         break;
      case "kontakt":
         bg.style.backgroundImage = 'url(http://www.ressourcen.nordseetraum.de/images/nordseetraum-logo-kontakt.gif)';
         break;
      case "nordseetraum":
         bg.style.backgroundImage = 'url(http://www.ressourcen.nordseetraum.de/images/nordseetraum-logo-nordseetraum.gif)';
         break;
      case "reiseversicherung":
         bg.style.backgroundImage = 'url(http://www.ressourcen.nordseetraum.de/images/nordseetraum-logo-reiseversicherung.gif)';
         break;
      default:
         bg.style.backgroundImage = 'url(http://www.ressourcen.nordseetraum.de/images/0.gif)';
         bg.style.cursor = 'default';
         break;
   }
}

// kein Rahmen um Links
function Deblur(mylink){if(document.all)mylink.blur();}

// onload-Funktion
function onloadFunction(){
   atDomains();
}