
/* terra-landschaften.de
Autor: conpa IT Solutions
Version: 1.0, 17.10.2007
*/

window.defaultStatus = "Terra Landschaften :: ...Natur für das Tier";

function openwindow(hlpfile)
{
	window.open (hlpfile,"Help","toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=600,height=400");
}


//Funktionen zum Öffnen von neuen Fenstern

//Open Downloads
var Downloadswindow = null;
function myopen_Downloadswindow(page)
{
	if (Downloadswindow && !Downloadswindow.closed) {
					//Mainwindow.focus();					
					//Mainwindow.href = page;
					//Mainwindow.close();
					Downloadswindow = window.open(page,'Downloads','width=665,height=400,menubar=no,location=no,status=no,toolbar=no,resizable=yes,scrollbars=yes');
					Downloadswindow.focus();
	} else {
					Downloadswindow = window.open(page,'Downloads','width=665,height=400,menubar=no,location=no,status=no,toolbar=no,resizable=yes,scrollbars=yes');
					Downloadswindow.focus();
	}
}


//Open Shop Konfigurator
var Konfiguratorwindow = null;
function myopen_Konfiguratorwindow(page)
{
	if (Konfiguratorwindow && !Konfiguratorwindow.closed) {
					//Mainwindow.focus();					
					//Mainwindow.href = page;
					//Mainwindow.close();
					Konfiguratorwindow = window.open(page,'Planungstool','width=890,height=700,menubar=no,location=no,status=no,toolbar=no,resizable=yes,scrollbars=yes');
					Konfiguratorwindow.focus();
	} else {
					Konfiguratorwindow = window.open(page,'Planungstool','width=890,height=700,menubar=no,location=no,status=no,toolbar=no,resizable=yes,scrollbars=yes');
					Konfiguratorwindow.focus();
	}
}


//Text einblenden, ausblenden
//gefunden: http://www.web-toolbox.net/webtoolbox/diverses/text-expand/text-expand.htm
function toggleMe(a){
  var e=document.getElementById(a);
  if(!e)return true;
  if(e.style.display=="none"){
    e.style.display="block"
  } else {
    e.style.display="none"
  }
  return true;
}

function toggleMe2(a){
  var e=document.getElementById(a);
  var e11=document.getElementById("para11");
  var e12=document.getElementById("para12");
  var e13=document.getElementById("para13");
  var e14=document.getElementById("para14"); 
  if(!e)return true;
  
  if (e==e11) {	/*Schritt 1*/
    if(e11.style.display=="none"){
      e11.style.display="block"
	  e12.style.display="none"
	  e13.style.display="none"
	  e14.style.display="none"	  
	  location.href="#top-schritte-1";	  
    } else {
      location.href="#top-schritte-1";
    }
  }
  
  if (e==e12) {	/*Schritt 2*/
    if(e12.style.display=="none"){
      e11.style.display="none"
	  e12.style.display="block"
	  e13.style.display="none"
	  e14.style.display="none"	  
	  location.href="#top-schritte-2";	  
    } else {
      location.href="#top-schritte-2";
    }
  }
  
  if (e==e13) {	/*Schritt 3*/
    if(e13.style.display=="none"){      
	  e11.style.display="none"
	  e12.style.display="none"
	  e13.style.display="block"
	  e14.style.display="none"
	  location.href="#top-schritte-3";
    } else {
      location.href="#top-schritte-3";
    }
  }
  
  if (e==e14) {	/*Schritt 4*/
    if(e14.style.display=="none"){      
	  e11.style.display="none"
	  e12.style.display="none"
	  e13.style.display="none"
	  e14.style.display="block"
	  location.href="#top-schritte-4";
    } else {
      location.href="#top-schritte-4";
    }
  }
    
  return true;
}


