// JavaScript Document


var myWin = null;
var myWindetails = null;
window.myIndex = 1;
window.myWidth =1;
window.myHeight = 1;
var myFile = 1;


function openCollection (myfiles)
	{
	myFile= myfiles;

	window.open(myFile);
	}
function openSofa(theURL)
	{
	myURL=theURL;	
		window.myWidth =825;
	window.myHeight = 600;

    myWin=window.open(myURL,'myWindow','width=805,height=550, resizable=yes,top=10,left=10');

	myWin.focus();
	}
function openPresse(theURL)
	{
	myURL=theURL;	
	window.myWidth =805;
	window.myHeight = 350;
    myWin=window.open(myURL,'myWindow','width=805,height=300, resizable=yes,top=10,left=10');
	myWin.focus();
	}


function closeOpenVDS(image, theURL, winName, features)
	{
	window.myIndex=image;
	window.myWidth =980;
	window.myHeight = 560;

	myWin=window.open('vergroesserungVDS.htm','myWindow','width=950,height=495, resizable=no,top=10,left=10');
	myWin.focus();
	}

	
function closeOpen(image, breit, theURL, winName, features)
	{
	window.myIndex=image;
	window.myWidth =breit;
	window.myHeight = 640;
	myWin=window.open('vergroesserung.htm','myWindow','width=415,height=550, resizable=yes,top=10,left=10');
	myWin.focus();
	}
	
function closeOpenLeuchten(image, breit, theURL, winName, features)
	{
	window.myIndex=image;
	window.myWidth =640;
	window.myHeight = 660;
	myWin=window.open('vergroesserung_leuchten.htm','myWindow','width=620,height=580, resizable=yes,top=5,left=5');
	myWin.focus();
	}
	
function closeOpenVDS_cont(image, breit, theURL, winName, features)
	{
	window.myIndex=image;
	window.myWidth =740;
	window.myHeight = 660;
	myWin=window.open('vergroesserung_leuchten.htm','myWindow','width=740,height=660, resizable=yes,top=5,left=5');
	myWin.focus();
	}
function closeOpen_luester(image, breit, theURL, winName, features)
	{
	window.myIndex=image;
	window.myWidth =820;
	window.myHeight = 660;
	myWin=window.open('vergroesserung_leuchten.htm','myWindow','width=820,height=660, resizable=yes,top=5,left=5');
	myWin.focus();
	}

function closeOpenLeuchten_soon(image, breit, theURL, winName, features)
	{
	window.myIndex=image;
	window.myWidth =800;
	window.myHeight = 600;

	myWin=window.open('vergroesserung_leuchten_soon.htm','myWindow','width=600,height=600, resizable=yes,top=5,left=5');
	myWin.focus();
	}
function closeOpen_buehnenvorhang(image, breit, text, theURL, winName, features)
	{
	window.myIndex=image;
	window.myWidth =640;
	window.myHeight = 660;
	window.myText=text;
	myWin=window.open('vergroesserung_buehnenvorhang.htm','myWindow','width=620,height=580, resizable=yes,top=5,left=5');
	myWin.focus();
	}


function closeOpenDec(image, breit, theURL, winName, features)
	{
	window.myIndex=image;
	window.myWidth =breit;
	window.myHeight = 600;
	myWin=window.open('vergroesserungdec.htm','myWindow','width=415,height=550, resizable=yes,top=10,left=10, overflow=scroll');
	myWin.focus();
	}	
var imagename=null;

function closeOpenVorhangstangen_d(image, hoch, collection, storage1, theURL, winName, features)
	{
	var newHeight= hoch + 280;
    window.collection=collection;
	window.storage1=storage1;
	window.myIndex=image;
	window.myWidth = 640;
	window.myHeight = newHeight;
	myWin=window.open('vergroesserung_d.htm','myWindow','width=640,height=326, resizable=yes,top=10,left=10');
	myWin.focus();
	}	



function closeOpen_d(image, breit, collection, storage1, storage2, storage3, theURL, winName, features)
	{
	window.collection=collection;
	window.storage1=storage1;
	window.storage2=storage2;
	window.storage3=storage3;
	window.myIndex=image;
	window.myWidth =breit;
	window.myHeight = 640;
	myWin=window.open('vergroesserung_d.htm','myWindow','width=415,height=550, resizable=yes,top=10,left=10');
	myWin.focus();

	}
	
function openDetails(theURL, winName, features){
	if (opener.collection == "Park" ){
		if(opener.storage3 != 0){
			myWindetails=window.open('details_vorhang_3.htm','myWindowdetails','width=600,height=175, resizable=yes,top=10,left=10, overflow=scroll');
			myWindetails.focus();
		}
		else if(opener.storage2 != 0){
					myWindetails=window.open('details_vorhang_2.htm','myWindowdetails','width=400,height=175, resizable=yes,top=10,left=10, overflow=scroll');
					myWindetails.focus();
		}
		else {
					myWindetails=window.open('details_vorhang_1.htm','myWindowdetails','width=200,height=175, resizable=yes,top=10,left=10, overflow=scroll');
					myWindetails.focus();
		}
	}
	
   else if (opener.collection == "Moebel" ){
			myWindetails=window.open('details_moebel.htm','myWindowdetails','width=250,height=100, resizable=yes,top=10,left=10, overflow=scroll');
			myWindetails.focus();
		}
   else if (opener.collection == "endknoepfe" ){
			myWindetails=window.open('details_endknoepfe.htm','myWindowdetails','width=290,height=280, resizable=yes,top=10,left=10, overflow=scroll');
			myWindetails.focus();
		}
	

	
}

function closeDetails(){
myWindetails.close();
}