  // Java Document
  //
  // ----------------------------------------
  // Klaus Grünenthal
  // Last changes: 16.02.2010
  // ----------------------------------------

  var icon = "logo-eule.ico";


  // Nur bei IE
  // window.status = "Live to Ride!";

  var message = new Array ();
  var delay = 3000; // Zeit in Millisekunden zwischen den einzelnen Nachrichten
  var currMessage = 1; 
  message[1]  = "Zweirad Lenk";
  message[2]  = "Werftstr. 3";
  message[3]  = "24148 Kiel";
  message[4]  = "Tel. 0431 - 72 37 21";    
  message[5]  = "Fax 0431 - 729 74 35";
  message[6]  = "eule.zweirad@t-online.de";
  message[7]  = "www.zweirad-lenk.de";
  message[8]  = "Mo-Fr:10-18:30"; 
  message[9]  = "Sa:10:00-13:00"; 
  message[10] = "Immer für Sie da!";  
  // message[3] = "+++  +++"; 
  
   
  function changer() {
    document.title = (message[currMessage++]);
    setTimeout("changer()",delay);
    currMessage = ((currMessage >= message.length) ? 1 : currMessage);
  } 
  // --------------------------
  // Geändert 20100216 KGR
  // Nur Anzeige "Zweirad-Lenk"
  changer();
  // document.title = "Zweirad Lenk";
  // --------------------------  
 
 // Disable Right-Click 
  function disableRightClick(e)
{ var message = "Rechte Maustaste ausser Betrieb!";
  if(!document.rightClickDisabled) // initialize
  { if(document.layers) 
    { document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = disableRightClick;
    } else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  { if (e.which==2||e.which==3)
    { alert(message); return false; }
  } else
  { alert(message); return false; }
}

disableRightClick();


// Popup-Window  
var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

// ------------------------------------
// Link-Unterstreichung ausgeschaltet
// Im HEAD-Bereich einbauen
// <STYLE>
// A {	text-decoration: none;}
// A:Hover {text-decoration: underline;}
// </STYLE>
// ------------------------------------

////-=-=-=-= Gandalf

function OpenFoto(img){
foto= new Image();
foto.src=(img);
ControlFoto(img);
}

function ControlFoto(img){
if((foto.width!=0)&&(foto.height!=0)){
ViewFoto(img);
}
else{
interval_a="ControlFoto('"+img+"')";
interval_b=setTimeout(interval_a,20);
}
}

function ViewFoto(img){
// Bilder zu gross f&uuml;r screen
width=Math.floor (foto.width * 1.0) + 20;
height=Math.floor(foto.height * 1.0) + 24;

//width=foto.width+20;
//height=foto.height+24;

try {
if (output.closed == false) throw "offen";
}
catch (e) {
if (e=="offen") {
output.close();
}
}
output=window.open("","output","left=10,top=10,width="+width+",height="+height+",location=no,toolbar=no,menubar=no,status=no,scrol lbars=no,resizable=no");
output.document.writeln("<html><head><title>Eules Galerie - zum Schlie&szlig;en auf das Bild klicken<\/title><\/head>");
output.document.writeln("<body bgcolor=\"white\" text=\"white\" link=\"white\" vlink=\"white\" alink=\"white\" leftmargin=\"0\" marginwidth=\"0\" topmargin=\"0\" marginheight=\"0\">");
output.document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">");
output.document.writeln("<tr><td width=\"100%\" height=\"100%\" align=\"left\" valign=\"top\"><p><a href=\"javascript:self.close()\"><img src=\""+img+"\" width=\""+width+"\" height=\""+height+"\" border=\"0\" alt=\"Zum Schlie&szlig;en des Fensters hier klicken\"></a><\/p><\/td><\/tr>");
//output.document.writeln("<tr><td width=\"100%\" height=\"100%\" align=\"left\" valign=\"top\"><p><a href=\"javascript:self.close()\"><img src=\""+img+"\" width=\""+foto.width+"\" height=\""+foto.height+"\" border=\"0\" alt=\"click here to close the window\"></a><\/p><\/td><\/tr>");
output.document.writeln("<\/table><\/body><\/html>");
output.focus();
}

