
image1 = new Image;
image1.src = "gfx/metalrollo2.jpg";

image2 = new Image;
image2.src = "gfx/metalrollo.jpg";


 var fotos=new Array('gfx/winternacht.jpg',
           'gfx/wintertag.jpg',
           'gfx/sommernacht.jpg');

 var speed=4000;
 var pos=0;

function doit () {

if (!(document.images)) {return;}

 document.bild.src=fotos[pos++];

 if (pos == fotos.length) { pos = 0; }
 setTimeout("doit();",speed);
}

	function zeigeArtikel(neueseite) {
    	window.open('bestellung/bestellen.php?artikel='+neueseite,"width=680,height=700,resizable=yes,scrollbars=no,menubar=no,status=yes,locationbar=no");
	}
	function zeigeAGB() {
    	window.open('agb/index.php',"width=680,height=700,resizable=yes,scrollbars=no,menubar=no,status=yes,locationbar=no");
	}
	function aktualisiereWarenkorb(gelesen) {
		if (document.agbs.gelesen.checked){ 
			// document.forms[0].eingabe.disabled = !document.forms[0].details_active.checked;
			document.agbs.gelesen.checked=false;
			// alert ("hier bin ich drin ");
		} 
		document.agbs.todo.value = "warenkorb";
		document.agbs.nav.value = "";
		document.agbs.menue.value = <?Print $menue;?>;				
		document.forms['agbs'].submit();
		// document.agbs.submit();
	}

function showImagesLarge(folienId, titel){
	var windowWidth=550;
	var windowHeight=400;
	var xPos=(screen.width-windowWidth)/2;
	var yPos=(screen.height-windowHeight)/2;
	window.open('folientypvorschau.php?folientyp='+folienId, 'titel', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width='+windowWidth+',height='+windowHeight+',screenX='+xPos+',screenY='+yPos+',top='+yPos+',left='+xPos)
}
function showImageLarge(bildname, titel){
	var windowWidth=500;
	var windowHeight=400;
	var xPos=(screen.width-windowWidth)/2;
	var yPos=(screen.height-windowHeight)/2;
	window.open("img/"+ bildname, titel, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+windowWidth+',height='+windowHeight+',screenX='+xPos+',screenY='+yPos+',top='+yPos+',left='+xPos)
}
function launchCarStyler(){
	var windowWidth=870;
	var windowHeight=635;
	var xPos=(screen.width-windowWidth)/2;
	var yPos=(screen.height-windowHeight)/2;
	window.open("carStyler/index.html", 'carStyler', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+windowWidth+',height='+windowHeight+',screenX='+xPos+',screenY='+yPos+',top='+yPos+',left='+xPos)
}

function launchColorChange(){
	var windowWidth=870;
	var windowHeight=635;
	var xPos=(screen.width-windowWidth)/2;
	var yPos=(screen.height-windowHeight)/2;
	window.open("colorChange/index.html", 'carStyler', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+windowWidth+',height='+windowHeight+',screenX='+xPos+',screenY='+yPos+',top='+yPos+',left='+xPos)
}
