var BildDummy = 'image/fronten/front2_1-comfort-1.jpg'; 

var Bilder3_1_1title = new Array('image/fronten/romantisch/title-pino465-1.gif','image/fronten/romantisch/title-pino465-2.gif','image/fronten/romantisch/title-pino465-3.gif','image/fronten/romantisch/title-pino465-4.gif');
var Bilder3_1_1 = new Array('image/fronten/romantisch/pino465-1.jpg','image/fronten/romantisch/pino465-2.jpg',
'image/fronten/romantisch/pino465-3.jpg','image/fronten/romantisch/pino465-4.jpg',
'image/fronten/romantisch/pino465-5.jpg');

var Kuechen3_1_1 = new Array('image/fronten/romantisch/1-pino465-gr.jpg','image/fronten/romantisch/1-pino465_2-gr.jpg',
'image/fronten/romantisch/1-pino465_3-gr.jpg');
//-------------------------------------------------------------------
//-------------------------------------------------------------------
function reboundSeite(SeiteName)
{
	self.document.location.href = SeiteName;
}
function zum_wunschzettel_neu(SeiteName){
	speichern_pg_und_pr_und_modelle(SeiteName);
}
function speichern_pg_und_pr_und_modelle(SeiteName)
{
	parent.frames[0].auswahl_preisgruppe=parent.frames[0].tmp_preisgruppe;
	parent.frames[0].auswahl_programme=parent.frames[0].tmp_programme;
	parent.frames[0].auswahl_modelle=parent.frames[0].tmp_model_name;
	
	parent.frames[0].auswahl_model_nummer=parent.frames[0].tmp_model_nummer;
	parent.frames[0].auswahl_front_nummer=parent.frames[0].tmp_front_nummer;
	
	reboundSeite(SeiteName);
	//alert("Wählen Sie bitte eine Front in der Preisgruppe 1, 2, oder 3 !");
}
function tmp_speichern_modelle(pr_nummer, pg_nummer, model_nm, front_nm, model_name)
{
	parent.frames[0].tmp_programme=pr_nummer;
	parent.frames[0].tmp_preisgruppe=pg_nummer;
	parent.frames[0].tmp_model_nummer=model_nm;
	parent.frames[0].tmp_front_nummer=front_nm;
	parent.frames[0].tmp_model_name=model_name;
	
	//alert("Wählen Sie bitte eine Front in der Preisgruppe 1, 2, oder 3 !");
}
//---------------------------------------------------------------------
function ShowStart3_1(Model,Farbe,ModelName){
	// 0 ist 1.programme, 0 ist 1PG
	if(parent.frames[0].auswahl_preisgruppe==0 & parent.frames[0].auswahl_programme==2 & parent.frames[0].auswahl_model_nummer==Model){
		Farbe = parent.frames[0].auswahl_front_nummer;
		ModelName = parent.frames[0].auswahl_modelle;
	}
	ShowFront3_1(Model,Farbe,ModelName);
	ShowKuechen3_1(Model,'0');
}
//--------------------------------------------------------------------
function ShowFront3_1(Model, Farbe, ModelName) {
	//modern,1PG,ModelName
	tmp_speichern_modelle("2","0",Model,Farbe,ModelName);
	if (Model == 0){
		self.document.images['FRONT_BILD'].src = Bilder3_1_1[Farbe];
		self.document.images['FRONT_TITLE'].src = Bilder3_1_1title[Farbe];
	}else if(Model == 1){
		self.document.images['FRONT_BILD'].src = Bilder3_1_2[Farbe];
		self.document.images['FRONT_TITLE'].src = Bilder3_1_2title[Farbe];
	}else if(Model == 2){
		self.document.images['FRONT_BILD'].src = Bilder3_1_3[Farbe];
		self.document.images['FRONT_TITLE'].src = Bilder3_1_3title[Farbe];
	}else if(Model == 3){
		self.document.images['FRONT_BILD'].src = Bilder3_1_4[Farbe];
		self.document.images['FRONT_TITLE'].src = Bilder3_1_4title[Farbe];
	}else if(Model == 4){
		self.document.images['FRONT_BILD'].src = Bilder3_1_5[Farbe];
		self.document.images['FRONT_TITLE'].src = Bilder3_1_5title[Farbe];
	}else if(Model == 5){
		self.document.images['FRONT_BILD'].src = Bilder3_1_6[Farbe];
		self.document.images['FRONT_TITLE'].src = Bilder3_1_6title[Farbe];
	}else{self.document.images['FRONT_BILD'].src = BildDummy;}
}
//----------------------------------------------------------------------
function ShowKuechen3_1(Model,Farbe) {
	if (Model == 0){
		self.document.images['KUECHEN_BILD'].src = Kuechen3_1_1[Farbe];
	}else if(Model == 1){
		self.document.images['KUECHEN_BILD'].src = Kuechen3_1_2[Farbe];
	}else if(Model == 2){
		self.document.images['KUECHEN_BILD'].src = Kuechen3_1_3[Farbe];
	}else if(Model == 3){
		self.document.images['KUECHEN_BILD'].src = Kuechen3_1_4[Farbe];
	}else if(Model == 4){
		self.document.images['KUECHEN_BILD'].src = Kuechen3_1_5[Farbe];
	}else if(Model == 5){
		self.document.images['KUECHEN_BILD'].src = Kuechen3_1_6[Farbe];
	}else{self.document.images['KUECHEN_BILD'].src = BildDummy;}
}



