function zeigeSeite(seite, lang) {
  var neueAdresse;
  if (seite=="index" && lang=="de") {
    neueAdresse = "index.html";
  } else {
    neueAdresse = seite + "_" + lang + ".html";
  }
  if (seite == "BildgalerieDiaShow") {
    var newWindow = window.open(neueAdresse, 'jodland_diashow');
    newWindow.focus();
  } else {
    window.location = neueAdresse;
  }
}

function insertMenu() {
}

function menuOver(obj) {
	obj.style.color = '#FF0000';  
}
function menuOut(obj) {
	obj.style.color = '#FFFF00'; 
}

function menuClick(str) {
	document.location = "index.php?strona=" + str;
	//alert('Test click');
}

function extLink(url, target) {
	foto = window.open(url, target, 'height=700,width=1000,resizable=yes,scrollbars=yes');
	if (window.focus) {foto.focus()}
}

function extVideoLink(url, target) {
  removeAnimation();
	foto = window.open(url, target, 'resizable=yes,scrollbars=yes');
	foto.focus();
}

function insertAnimation() {
	str = "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' " + 
		  "codebase='http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0' " +
		  "width='700' height='120'> " +
		  "  <param name='MOVIE' value='pics/oceanFilm.swf'> " +
		  "  <param name='QUALITY' value='HIGH'> " +
		  "  <param name='PLAY' value='TRUE'> " +
		  "  <param name='LOOP' value='TRUE'> " +
		  "  <!--PARAM NAME='BGCOLOR' VALUE='#FFFFFF'--> " +
		  "  <embed src='pics/oceanFilm.swf' quality='HIGH' bgcolor='#FFFFFF' " +
		  "width='700' height='120' " +
		  "type='application/x-shockwave-flash' " +
		  "pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>  " +
		  "</embed> </object> ";
	animacja.innerHTML = str;
	//document.getElementById("animacja").innerHTML.value = str;
}

function removeAnimation() {
	str = "&nbsp;";
	animacja.innerHTML = str;
	//document.getElementByID("animacja").innerHTML.value = str;
}

function OpenNewWindow(Picture,Target,Breit,Hoch)
{
 xsize = Breit+40;// Zusatz für Rand rechts und links
 ysize = Hoch+60; //Zusatz für Rand oben und unten - damit Button angezeit werden kann

 ScreenWidth = screen.width;
 ScreenHeight = screen.height;

 xpos = (ScreenWidth/2)-(xsize/2);
 ypos = (ScreenHeight/2)-(ysize/2);

 NewWindow=window.open(Picture,Target,"height="+ysize+",width="+xsize+",scrollbars=yes,resizable=yes,top="+ypos+",left="+xpos+"");
// NewWindow.document.write ("<html><head><title>Jodland Fotogalerie");
// NewWindow.document.write ("</title>");
// NewWindow.document.write ("</head>");
// NewWindow.document.write ("<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' bgcolor='#000000' onload='focus()'  onClick='self.close()'>");

// NewWindow.document.write ("<table align='center' border='0' height='100%' width='100%'><tr>");
// NewWindow.document.write ("<td align='center' valign='middle' width='100%'>");
// NewWindow.document.write ("<table border='0' bgcolor='#000000' cellpadding='0' cellspacing='1'><tr><td align='center'>");
// NewWindow.document.write ("<img src=");
// NewWindow.document.write (Picture);
// NewWindow.document.write (" border='0'");

// NewWindow.document.write (" onClick='self.close()'>");
// NewWindow.document.write ("</td></tr></table>");
// NewWindow.document.write ("</td></tr><tr>");
// NewWindow.document.write ("<td align='center' valign='top'>");
// NewWindow.document.write ("<center><form> <input name=\"button\" style=\"font-family: Verdana; font-size: 10px\" type=\"button\" onClick=\"javascript:self.print();\" value=\"Drucken\">    <input type='button' value='FENSTER SCHLIESSEN' style='font-family: Verdana; font-size: 10px' onClick='self.close()'>");
// NewWindow.document.write ("</form></td></tr></table>");
// NewWindow.document.write ("</body></html>");
// NewWindow.document.close();

 NewWindow.resizeTo(xsize,ysize);
}



