var gNecklaceFileName = "";



var rundherum1_NGgmnVP_option = "";

var g_DSrK_D20_option = "";

var schmetterling_NNtVJ_option = "";

var viereckmed_DSrsnVPT_option = "";

var verkehrt_DSubS_D19_option = "";

var tropf3_NSbS__D20_option = "";

var rioja_DSrsnJP_option = "";

var arlekin_NGnxJY_option = "";

var waage2_NSb0gVS_option = "";

var DNA_N0StnPT_option = "";

var spiralenergie_rot_option = "";

var gDetailName = "";





function OnLoadNecklaces()

{

	schmetterling_NNtVJ_small_1.style.fontWeight = "bold";

}



function OnLoadNecklaces2()

{

	rundherum1_NGgmnVP_small_1.style.fontWeight = "bold";

	DNA_N0StnPT_small_1.style.fontWeight = "bold";	

	g_DSrK_D20_small_1.style.fontWeight = "bold";	

	spiralenergie_rot_small_1.style.fontWeight = "bold";	

}



function OnLoadNecklaces3()

{

	viereckmed_DSrsnVPT_small_1.style.fontWeight = "bold";

	verkehrt_DSubS_D19_small_1.style.fontWeight = "bold";

	tropf3_NSbS__D20_small_1.style.fontWeight = "bold";	

	rioja_DSrsnJP_small_1.style.fontWeight = "bold";	

}



function OnLoadNecklaces4()

{

}



function OnLoadNecklaces5()

{

	arlekin_NGnxJY_small_1.style.fontWeight = "bold";

	waage2_NSb0gVS_small_1.style.fontWeight = "bold";	

}



function Verschluss(Name)

{

	var PictureName = "../images/jewellery/" + Name + ".jpg";

	window.open(PictureName,"","top=100, left=100, height=360,width=520");								

}



// on click necklace small:

function OnClickSmall(room, id)

{

	//var srcName = event.srcElement.id;

	var srcName = id;



	// set option if available:

	switch(srcName)

	{

		case "rundherum1_NGgmnVP_small":	if (rundherum1_NGgmnVP_option != "") srcName = rundherum1_NGgmnVP_option; break;

		case "g_DSrK_D20_small":			if (g_DSrK_D20_option != "") srcName = g_DSrK_D20_option; break;

		case "schmetterling_NNtVJ_small":	if (schmetterling_NNtVJ_option != "") srcName = schmetterling_NNtVJ_option;	break;

		case "viereckmed_DSrsnVPT_small":	if (viereckmed_DSrsnVPT_option != "") srcName = viereckmed_DSrsnVPT_option; break;

		case "verkehrt_DSubS_D19_small":	if (verkehrt_DSubS_D19_option != "") srcName = verkehrt_DSubS_D19_option; break;

		case "tropf3_NSbS__D20_small":		if (tropf3_NSbS__D20_option != "") srcName = tropf3_NSbS__D20_option; break;

		case "rioja_DSrsnJP_small":			if (rioja_DSrsnJP_option != "") srcName = rioja_DSrsnJP_option; break;

		case "arlekin_NGnxJY_small":		if (arlekin_NGnxJY_option != "") srcName = arlekin_NGnxJY_option; break;

		case "waage2_NSb0gVS_small":		if (waage2_NSb0gVS_option != "") srcName = waage2_NSb0gVS_option; break;

		case "DNA_N0StnPT_small":			if (DNA_N0StnPT_option != "") srcName = DNA_N0StnPT_option;	break;

		

		case "spiralenergie_rot_small":		if (spiralenergie_rot_option != "") srcName = spiralenergie_rot_option; break;

		

	}



	var mediumFileName = "../images/jewellery/Necklaces/N" + room + "/" + srcName.substring(0, srcName.length - 5) + "medium.jpg";	

	gNecklaceFileName = mediumFileName;

	

	// prepare name to be shown in the detail window:

	switch(srcName)

	{

		case "umarmung_DGgrV_D17_small":		gDetailName = "UMARMUNG"; break;

		case "nebeneinander_DSntPT_small":		gDetailName = "NEBENEINANDER"; break;

		

		case "DNA_N0StnPT_small":				gDetailName = "DNA Spirale (türkis)"; break;		

		case "DNA_N0SrnPT_small":				gDetailName = "DNA Spirale (rot)"; break;		

		case "DNA_N0SubPT_small":				gDetailName = "DNA Spirale (uni dunkelblau)"; break;		

		

		case "rundherum1_NGgmnVP_small":		gDetailName = "RUNDHERUM (eine Windung)"; break;		

		case "rundherum2_NGgmnVP_small":		gDetailName = "RUNDHERUM (zwei Windungen)"; break;		

		case "rundherum3_DGgVPT_small":			gDetailName = "RUNDHERUM (drei Windungen)"; break;		

		

		case "g_DSrK_D20_small":				gDetailName = "BLITZ (Halsreifen)"; break;		

		case "g_original_small":				gDetailName = "BLITZ (offen vorne)"; break;		

		case "g_NDSumV_small":					gDetailName = "BLITZ (silberfärbig)"; break;		

		case "g_NDGmV_small":					gDetailName = "BLITZ (goldfärbig)"; break;		

		

		//case "spiralenergie_DSbhbPV_small":		gDetailName = "ENERGIE SPIRALE"; break;		

		case "spiralenergie_rot_small":			gDetailName = "ENERGIE SPIRALE"; break;		

				

		case "schmetterling_NNtVJ_small":		gDetailName = "SCHMETTERLING (türkis)"; break;		

		case "schmetterling_NGrVJ_D20_small":	gDetailName = "SCHMETTERLING (rot, Murano)"; break;		

		case "schmetterling_NSbS_D20_small":	gDetailName = "SCHMETTERLING (Tigerauge blau)"; break;		

		case "schmetterling_NSrJ_small":		gDetailName = "SCHMETTERLING (rot)"; break;		

		

		case "ahrenkranz_N0SrsnJPT_small":		gDetailName = "ÄHRENKRANZ"; break;		

		case "antenne_NGmgVR_small":			gDetailName = "ANTENNE"; break;		

		case "tango1_NDSrnJP_small":			gDetailName = "TANGO 1"; break;		

		case "tango_NDSrnJP_D20_small":			gDetailName = "TANGO 2"; break;		

		case "rundtanz_NSbS_D20_small":			gDetailName = "RUNDTANZ 3"; break;		

		case "rundtanz_NStJ_small":				gDetailName = "RUNDTANZ 5"; break;		

		

		case "viereckmed_DSrsnVPT_small":		gDetailName = "VIERECK (rot)"; break;		

		case "viereckmed_DStsnVPT_small":		gDetailName = "VIERECK (türkis)"; break;		

		

		case "verkehrt_DSubS_D19_small":		gDetailName = "UMGEKEHRT (dunkelblau)"; break;		

		case "verkehrt_DGmS_D20_small":			gDetailName = "UMGEKEHRT (braun)"; break;		

		

		case "tropf3_NSbS__D20_small":			gDetailName = "3 TROPFEN (Tigerauge blau)"; break;

		case "tropf3_NSubJ_D20_small":			gDetailName = "3 TROPFEN (dunkelblau)"; break;		

						

		case "rioja_DSrsnJP_small":				gDetailName = "RIOJA (rot schwarz)"; break;		

		case "rioja_DGnmgVPR_small":			gDetailName = "RIOJA (schwarz-gold)"; break;		

		case "rioja_DGmS_D20_small":			gDetailName = "RIOJA (Goldfluß braun)"; break;		

		

		case "tropf_NSubJ_D19_small":			gDetailName = "1 TROPFEN"; break;		

		case "tropf5_NSrnJ_D20_small":			gDetailName = "5 TROPFEN"; break;		

		

		case "augegottes_3DGnJ_small":			gDetailName = "AUGE GOTTES"; break;		

		case "girlande_N0zVMPR_small":			gDetailName = "GIRLANDE"; break;		

		case "perlenzug_DGnJM_small":			gDetailName = "PERLENZUG"; break;		

		case "tropical_DSubJS_D17_small":		gDetailName = "TROPICAL"; break;		



		case "arlekin_NGnxJY_small":			gDetailName = "ARLEKIN (bunt)"; break;		

		case "arlekin2_NGnryJC_small":			gDetailName = "ARLEKIN (rot-gelb Keramik)"; break;		

		case "arlekin_NGnryJV_D17_small":		gDetailName = "ARLEKIN (rot-gelb Glas)"; break;		

		

		case "waage2_NSb0gVS_small":			gDetailName = "WAAGE DOPPELT (blau)"; break;

		case "waage2_NNrnVJ_small":				gDetailName = "WAAGE DOPPELT (rot-schwarz)"; break;		

						

		case "jaaa_NDSbV_small":				gDetailName = "JAAA!"; break;		

		case "jaaa_mascherl_NNn0gV_small":		gDetailName = "MASCHERL"; break;		

		case "mondlocken_DSbV_small":			gDetailName = "MONDLOCKEN"; break;		

		case "waage_DSN0vV_D17_small":			gDetailName = "WAAGE"; break;				

	}



	// set landscape/portrait:

	if ((gNecklaceFileName.indexOf("rundherum3_DGgVPT_medium.jpg") != -1) ||

		(gNecklaceFileName.indexOf("DNA_N0SubPT_medium.jpg") != -1) ||

		(gNecklaceFileName.indexOf("viereckmed_DStsnVPT_medium.jpg") != -1) ||

		(gNecklaceFileName.indexOf("viereckmed_DSrsnVPT_medium.jpg") != -1) ||

		(gNecklaceFileName.indexOf("girlande_N0zVMPR_medium.jpg") != -1) ||		

		(gNecklaceFileName.indexOf("perlenzug_DGnJM_medium.jpg") != -1) ||				

		(gNecklaceFileName.indexOf("tropical_DSubJS_D17_medium.jpg") != -1) ||						

		(gNecklaceFileName.indexOf("g_original_medium.jpg") != -1))

	{

		// landscape

		//window.open("Necklace_big.html","","top=100, left=100, height=500,width=575");

		window.open("Necklace_big.html","","top=100, left=100, height=520,width=575");								

	}

	else

	{

		// portrait

		//window.open("Necklace_big.html","","top=100, left=100, height=655,width=445");

		window.open("Necklace_big.html","","top=100, left=100, height=635,width=420");

	}

}



