function MM_preloadImages() {
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImage() {
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() {
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function winOpen(theURL,winName,breite,hoehe) {
  links = (screen.width/2)-(breite/2);
  oben = (screen.height/2)-(hoehe/2);
  fenster = window.open(theURL,winName,"height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,fullscreen = no,top ="+oben+",left ="+links);
  fenster.focus();
}
function embedwrite ( arc ) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="640" height="290" id="Galerie" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="movie" value="Galerie.swf?arc='+ arc +'" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<param name="arc" value="'+ arc +'" />');
document.write('<embed src="Galerie.swf?arc='+ arc +'" quality="high" bgcolor="#ffffff" menu="false" width="640" height="290" name="Galerie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}
function embedwrite_uk ( arc ) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="640" height="290" id="Galerie" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="movie" value="Galerie_uk.swf?arc='+ arc +'" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<param name="arc" value="'+ arc +'" />');
document.write('<embed src="Galerie_uk.swf?arc='+ arc +'" quality="high" bgcolor="#ffffff" menu="false" width="640" height="290" name="Galerie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}
openLink = function (sel) {
	if ( sel.value != "" ) {
		self.location.href=sel.value;
	}
}
function checkForm() {
 	fehlermeldung = "";
	if(document.kontaktform.name.value == "") {
		fehlermeldung += "Bitte geben Sie einen Vornamen ein!";
	} else if(document.kontaktform.nachname.value == "") {
		fehlermeldung += "Bitte geben Sie einen Nachnamen ein!";
	} else if(document.kontaktform.email.value == "") {
		fehlermeldung += "Bitte geben Sie eine e-Mail Adresse ein!";
	} else if(document.kontaktform.nachricht.value == "") {
		fehlermeldung += "Bitte geben Sie eine Nachricht ein!";
	}
	if(fehlermeldung) {
		alert(fehlermeldung);
		return false;
	} else {
		return true;
	}
}
function checkForm_uk() {
 	fehlermeldung = "";
	if(document.kontaktform.name.value == "") {
		fehlermeldung += "Please enter a first name!";
	} else if(document.kontaktform.nachname.value == "") {
		fehlermeldung += "Please enter a last name!";
	} else if(document.kontaktform.email.value == "") {
		fehlermeldung += "Please enter an e-mail adress name!";
	} else if(document.kontaktform.nachricht.value == "") {
		fehlermeldung += "Please enter a message name!";
	}
	if(fehlermeldung) {
		alert(fehlermeldung);
		return false;
	} else {
		return true;
	}
}
function Kalender08 (cLan) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="500" height="700" id="PG_Kalender_2008.swf" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="PG_Kalender_2008.swf?cLan='+ cLan +'" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="bgcolor" value="#F3F3F3" />');
document.write('<embed src="PG_Kalender_2008.swf?cLan="'+ cLan +'" menu="false" quality="high" bgcolor="#F3F3F3" width="500" height="700" name="PG_Kalender_2008.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}
function videoPlayer (movie) {
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="240" height="180" id="player" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="movie" value="player.swf?movURL='+ movie +'&skinURL=artbalance_skin.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<embed src="player.swf?movURL='+ movie +'&skinURL=artbalance_skin.swf" quality="high" bgcolor="#ffffff" width="240" height="180" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
}