function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_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 MM_showHideLayers() { 
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function auf(seite)

{var para = "resizable=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,toolbar=0,width=600,height=455";
Fenster = window.open(seite+'.htm','',para);
Fenster.focus();
}

function mieten(seite)

{var para = "resizable=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,toolbar=0,width=600,height=510";
Fenster = window.open(seite+'.htm','',para);
Fenster.focus();
}

function cam1()

{var para = "resizable=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,toolbar=0,width=620,height=470,top=0,left=0";
Fenster = window.open('webcam1.htm','camwindow',para);
Fenster.focus();
}
function cam2()

{var para = "resizable=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,toolbar=0,width=620,height=470,top=0,left=0";
Fenster = window.open('webcam2.htm','camwindow',para);
Fenster.focus();
}

// remove the rectangle around links for IE+Win only onClick-event, TAB function remains

function formcheck() {
	formarray = new Array("name","firma","email","qm");
	var emtycheck = 0;
	
	for (i=0;i<formarray.length;i++){
		if ((document.FormName[formarray[i]].value == "") ||(document.FormName[formarray[i]].value == "BITTE AUSFUELLEN")){
			emtycheck+=1;
			document.FormName[formarray[i]].value = "BITTE AUSFUELLEN";
		}
	}
	if (emtycheck > 0){
			alert ("Bitte f\xFCllen Sie die Felder mit Sternchen aus.");
			return false;
		}else{
			return true;
	}
	}



function Auswahl_kontrollieren(feld, index) {

if (index == 4 ) { 
if (feld[4].checked == true) {
for (index = 0; index < 4; index++)
feld[index].checked = false;
   }
}

if (index == 3 ) { 
if (feld[3].checked == true) {
feld[1].checked = false;
feld[0].checked = false;
   }
}

else  {
if (feld[4].checked == true) {
feld[0].checked = false;
feld[1].checked = false;
feld[2].checked = false;
feld[3].checked = false;
      }
   }
}



var Leerstring = " ist leer. Bitte f\xFCllen Sie dieses Feld aus."

function ueberpruefeForm(form) {
	return 	(pruefeString(document.forms[0].name, "Name") &&
                 pruefeString(document.forms[0].Company, "Firma") &&
                 pruefeString(document.forms[0].email, "E-Mail") &&
				 pruefeString(document.forms[0].qm, "Fl\xE4chenbedarf"))}

function KontrolleNull(eingabe) {
	if ( eingabe.length == 0 ) {
   	return false
	}
	else {
 	return NurSpace(eingabe)
	}
}

function NurSpace(eingabe) {
	for ( var i=0; i<eingabe.length; i++ ) {
   	if ( eingabe.charAt(i) != " " ) {
	   	return true
		}
	}
	return false
}

function zaehleZeichen(eingabe, anz) {
	if ( eingabe.length == anz ) {
		return true
	}
	else {
		return false  
	}
}


function ZahlinBereich(eingabe, unten, oben) {
	var zahl = parseInt(eingabe);
	return ((zahl >= unten) && (zahl <= oben))
}


function pruefeString(eingabe, str) {
	if ( KontrolleNull(eingabe.value) && NurSpace(eingabe.value)) {
		return true
	}	
	else {
		eingabe.focus()
		alert("Das Feld " + str + Leerstring)
		return false
	}
}

if (document.referrer.indexOf("stadtgrafiker-interaktiv.de/")!= -1) {window.location.href="http://www.01art.de/webdesign-koeln.htm"}

if ((document.referrer.indexOf("diestadtgrafiker.de/")!= -1) || (document.referrer.indexOf("stadtgrafiker.de/")!= -1)){window.location.href="http://www.01art.de/webdesign-koeln.htm"}

function operadiva() {
if (navigator.userAgent.toLowerCase().indexOf("opera") != -1){
MM_showHideLayers('a','','hide');
MM_showHideLayers('b','','hide');
MM_showHideLayers('c','','hide');
MM_showHideLayers('d','','hide');
MM_showHideLayers('e','','hide');
MM_showHideLayers('f','','hide');
MM_showHideLayers('g','','hide');
MM_showHideLayers('h','','hide');
MM_showHideLayers('i','','hide');
MM_showHideLayers('j','','hide');
MM_showHideLayers('t','','hide');
}
else {};
}

function email() {
	ju="&#110";
	dont_spam="&#105;&#110;&#102;&#111;";
document.write(dont_spam+'&#64;&#118;&#117;&#108;&#107;&#97;'+ju+'&#45;&#107;&#111;&#101;&#108;'+ju+'&#46;&#100;&#101;');
	}

function ain(){operadiva();
MM_showHideLayers('a','','show');
if (document.layers) document.Layer13.document.Villa.src='pics/Villa_f2.gif'
else document.Villa.src='pics/Villa_f2.gif';}
function aout(){
MM_showHideLayers('a','','hide');
if (document.layers) document.Layer13.document.Villa.src='pics/Villa.gif';
else document.Villa.src='pics/Villa.gif';}

function bin(){operadiva();
MM_showHideLayers('b','','show');
if (document.layers) document.Layer13.document.Turmhaus.src='pics/Turmhaus_f2.gif';
else document.Turmhaus.src='pics/Turmhaus_f2.gif';}
function bout(){MM_showHideLayers('b','','hide');
if (document.layers) document.Layer13.document.Turmhaus.src='pics/Turmhaus.gif';
else document.Turmhaus.src='pics/Turmhaus.gif';}

function cin(){operadiva();
MM_showHideLayers('c','','show');
if (document.layers) document.Layer13.document.Studio.src='pics/Studio_f2.gif';
else document.Studio.src='pics/Studio_f2.gif';}
function cout(){MM_showHideLayers('c','','hide');
if (document.layers) document.Layer13.document.Studio.src='pics/Studio.gif';
else document.Studio.src='pics/Studio.gif';}

function din(){operadiva();
MM_showHideLayers('d','','show');
if (document.layers) document.Layer13.document.Atelier.src='pics/Atelier_f2.gif';
else document.Atelier.src='pics/Atelier_f2.gif';}
function dout(){MM_showHideLayers('d','','hide');
if (document.layers) document.Layer13.document.Atelier.src='pics/Atelier.gif';
else document.Atelier.src='pics/Atelier.gif';}

function ein(){operadiva();
MM_showHideLayers('e','','show');
if (document.layers) document.Layer13.document.Vulkanhalle.src='pics/Vulkanhalle_f2.gif';
else document.Vulkanhalle.src='pics/Vulkanhalle_f2.gif';}
function eout(){MM_showHideLayers('e','','hide');
if (document.layers) document.Layer13.document.Vulkanhalle.src='pics/Vulkanhalle.gif';
else document.Vulkanhalle.src='pics/Vulkanhalle.gif';}

function fin(){operadiva();MM_showHideLayers('f','','show');
if (document.layers) document.Layer13.document.Sheds.src='pics/Sheds_f2.gif';
else document.Sheds.src='pics/Sheds_f2.gif';}
function fout(){MM_showHideLayers('f','','hide');
if (document.layers) document.Layer13.document.Sheds.src='pics/Sheds.gif';
else document.Sheds.src='pics/Sheds.gif';}

function gin(){operadiva();MM_showHideLayers('g','','show');
if (document.layers) document.Layer13.document.Kontorhaus.src='pics/Kontorhaus_f2.gif';
else document.Kontorhaus.src='pics/Kontorhaus_f2.gif';}
function gout(){MM_showHideLayers('g','','hide');
if (document.layers) document.Layer13.document.Kontorhaus.src='pics/Kontorhaus.gif';
else document.Kontorhaus.src='pics/Kontorhaus.gif';}

function hin(){operadiva();MM_showHideLayers('h','','show');
if (document.layers) document.Layer13.document.Lofthaus.src='pics/Lofthaus_f2.gif';
else document.Lofthaus.src='pics/Lofthaus_f2.gif';}
function hout(){MM_showHideLayers('h','','hide');
if (document.layers) document.Layer13.document.Lofthaus.src='pics/Lofthaus.gif';
else document.Lofthaus.src='pics/Lofthaus.gif';}

function iin(){operadiva();MM_showHideLayers('i','','show');
if (document.layers) document.Layer13.document.Lichthaus.src='pics/Lichthaus_f2.gif';
else document.Lichthaus.src='pics/Lichthaus_f2.gif';}
function iout(){MM_showHideLayers('i','','hide');
if (document.layers) document.Layer13.document.Lichthaus.src='pics/Lichthaus.gif';
else document.Lichthaus.src='pics/Lichthaus.gif';}

function jin(){operadiva();MM_showHideLayers('j','','show');
if (document.layers) document.Layer13.document.Terrassenhaus.src='pics/Terrassenhaus_nav_f2.gif';
else document.Terrassenhaus.src='pics/Terrassenhaus_nav_f2.gif';}
function jout(){MM_showHideLayers('j','','hide');
if (document.layers) document.Layer13.document.Terrassenhaus.src='pics/Terrassenhaus_nav.gif';
else document.Terrassenhaus.src='pics/Terrassenhaus_nav.gif';}

function tin(){operadiva();MM_showHideLayers('t','','show');
if (document.layers) document.Layer13.document.Villa.src='pics/Villa_f2.gif'
else document.Villa.src='pics/Villa_f2.gif';}
function tout(){MM_showHideLayers('t','','hide');
if (document.layers) document.Layer13.document.Villa.src='pics/Villa.gif';
else document.Villa.src='pics/Villa.gif';}

function ExplorerFix() {
	//var z = document.links[3].href;
	//alert (z)
	//for (i=0; i<document.links.length; i++) {document.links[i].target = '_new'; }
	
	}
	