function simple_viewer ( was, lang)    {		
		sv = window.open ( "../_" + lang + "/anzeigen.html", was,"");	
		sv.focus();
}	
function view (lang )    {	
			var album = window.name;
			var de_pl = lang;
			var flashvars = {};
			flashvars.galleryURL = "../bilder/_" + de_pl + '/' + album + ".xml";
			var params = {};			
			params.allowfullscreen = false;
			params.allowscriptaccess = "always";
			params.bgcolor = "ccffcc";
			swfobject.embedSWF("../css/simpleviewer.swf", "flashcontent", "100%", "720", "9.0.124", false, flashvars, params);
  }

function zeit ()  {
   
   setTimeout ("javascript: monsol ('intro_postcard_viewer')",6000);
}

function Tilt_Viewer () {	
		var fo = new SWFObject("bilder/TiltViewer.swf", "viewer", "90%", "640", "9.0.28", "#c0f0c0");			
		
		// TILTVIEWER CONFIGURATION OPTIONS
		// To use an option, uncomment it by removing the "//" at the start of the line
		// For a description of config options, go to: 
		// http://www.airtightinteractive.com/projects/tiltviewer/config_options.html
															
		//FLICKR GALLERY OPTIONS
		// To use images from Flickr, uncomment this block
		//fo.addVariable("useFlickr", "true");
		//fo.addVariable("user_id", "48508968@N00");
		//fo.addVariable("tags", "jump,smile");
		//fo.addVariable("tag_mode", "all");
		//fo.addVariable("showTakenByText", "true");			
		
		// XML GALLERY OPTIONS
		// To use local images defined in an XML document, use this block		
		fo.addVariable("useFlickr", "false");
		fo.addVariable("xmlURL", "bilder/intro_tilt.xml");
		fo.addVariable("maxJPGSize","500");
		
		//GENERAL OPTIONS		
		fo.addVariable("useReloadButton", "false");
		fo.addVariable("columns", "5");
		fo.addVariable("rows", "5");
		fo.addVariable("showFlipButton", "false");
		fo.addVariable("showLinkButton", "false");		
		//fo.addVariable("linkLabel", "View image info");
		fo.addVariable("frameColor", "0xffff99");
		fo.addVariable("frameWidth", "-5");
		fo.addVariable("backColor", "0xc0f0c0");
		fo.addVariable("bkgndInnerColor", "0xffff99");
		fo.addVariable("bkgndOuterColor", "0xccffcc");				
		//fo.addVariable("langGoFull", "Go Fullscreen");
		//fo.addVariable("langExitFull", "Exit Fullscreen");
		//fo.addVariable("langAbout", "About");				
		
		// END TILTVIEWER CONFIGURATION OPTIONS
		
		fo.addParam("allowFullScreen","false");
		fo.write("flashcontent");			
}
		
function postcard_Viewer (lang) { 
		var de_pl = lang;		
		var fo = new SWFObject("../bilder/_" + de_pl + "/viewer.swf", "viewer", "100%", "640", "8", "#ccffcc");		
		//Optional Configuration
		//fo.addVariable("langOpenImage", "Open Image in New Window");
		//fo.addVariable("langAbout", "About");	
		
		fo.addVariable("xmlURL", "../bilder/_" + de_pl + "/intro_postcard.xml");							
		fo.write("flashcontent");	
}		

function window_close ()   {
   window.close ();
 }

function monsol(wohin)
 {
       location =  wohin + ".html";
}
function _monsol(wohin, pfad)
 {
       location =  "../_" + pfad + "/" + wohin + ".html";
}
function __monsol(wohin, pfad)
 {
       location =  "../neu/_" + pfad + "/" + wohin + ".html";
}

function _x_monsol(wohin, pfad)
 {
       
       location =  "_" + pfad + "/" + wohin + ".html";
}
function mail_ab(woher, pfad) {
	 
 alert("Besten Dank fuer Ihre Anfrage!");

 document.information.redirect.value="http://www.bauernhof-grimme.de/_" + pfad + "/" + woher + ".html";

 document.information.submit();
}

function check_information (woher, pfad) {

  if (document.information.realname.value == "") {
    alert("Bitte Ihren Namen eingeben!");
    document.information.realname.focus();
    return false;
  }
  if (document.information.email.value != "") {
   if (document.information.email.value.indexOf("@") == -1 ||
		   document.information.email.value.indexOf(".") == -1 	) {
    alert("Keine oder falsche E-Mail-Adresse angegeben!");
    document.information.email.focus();
    return false;
  }
	}
	mail_ab(woher, pfad);
}

function check_email (woher, pfad) {

  if (document.information.realname.value == "") {
    alert("Bitte Ihren Namen eingeben!");
    document.information.realname.focus();
    return false;
  }
  if (document.information.email.value != "") {
   if (document.information.email.value.indexOf("@") == -1 ||
		   document.information.email.value.indexOf(".") == -1 	) {
    alert("Keine oder falsche E-Mail-Adresse angegeben!");
    document.information.email.focus();
    return false;
   }
	 }
	mail_ab(woher, pfad);
}

function www (which) { 

 nw = window.open(which,"link","");
 nw.focus();
 } 
 

function webdesign (woher)
 {
 nw = window.open("webdesign.html",woher,"menubar=0,scrollbars=1,toolbar=0,location=0,directories=0,status=0,resizable=1,left=20,top=20,width=720,height=600" );
 nw.focus();
 }


