
// Array aller Inhalts-DIVs
var box = new Array();
box[0] = 'left-image-1';
box[1] = 'left-image-2';
box[2] = 'left-image-3';
box[3] = 'left-image-4';
box[4] = 'left-image-5';
box[5] = 'left-image-6';
box[6] = 'left-image-7';
box[7] = 'left-image-8';
box[8] = 'left-image-9';
box[9] = 'left-image-10';
box[10] = 'left-image-11';
box[11] = 'content-1';
box[12] = 'content-2';
box[13] = 'content-3';
box[14] = 'content-4';
box[15] = 'content-5';
box[16] = 'content-6';
box[17] = 'content-7';
box[18] = 'content-8';
box[19] = 'content-9';
box[20] = 'content-10';
box[21] = 'content-11';

var menue = new Array();
menue[0] = 'link1';
menue[1] = 'link2';
menue[2] = 'link3';
menue[3] = 'link4';
menue[4] = 'link5';
menue[5] = 'link6';
menue[6] = 'link7';
menue[7] = 'link8';
menue[8] = 'link9';
menue[9] = 'link10';
menue[10] = 'link11';

var helpbox = new Array();
helpbox[0] = 'content-1';
helpbox[1] = 'content-2';
helpbox[2] = 'content-3';
helpbox[3] = 'content-4';
helpbox[4] = 'content-5';
helpbox[5] = 'content-6';
helpbox[6] = 'content-7';
helpbox[7] = 'content-8';
helpbox[8] = 'content-9';
helpbox[9] = 'content-10';
helpbox[10] = 'content-11';
helpbox[11] = 'content-12';

var helpmenue = new Array();
helpmenue[0] = 'link1';
helpmenue[1] = 'link2';
helpmenue[2] = 'link3';
helpmenue[3] = 'link4';
helpmenue[4] = 'link5';
helpmenue[5] = 'link6';
helpmenue[6] = 'link7';
helpmenue[7] = 'link8';
helpmenue[8] = 'link9';
helpmenue[9] = 'link10';
helpmenue[10] = 'link11';
helpmenue[11] = 'link12';

var instbox = new Array();
instbox[0] = 'instcontent-1';
instbox[1] = 'instcontent-2';
instbox[2] = 'instcontent-3';
instbox[3] = 'instcontent-4';
instbox[4] = 'instcontent-5';

var instmenue = new Array();
instmenue[0] = 'instlink1';
instmenue[1] = 'instlink2';
instmenue[2] = 'instlink3';
instmenue[3] = 'instlink4';
instmenue[4] = 'instlink5';

var lastidLeft = 'left-image-1';
var lastidRight = 'content-1';
var lastidLink = 'link1';

function showLastClick(){
	showWidget(lastidLeft, lastidRight, lastidLink);
}

function setLastClick (idLeft,idRight,idLink) {
	lastidLeft = idLeft;
	lastidRight = idRight;
	lastidLink = idLink;
}

// Fkt. zum Darstellen des Inhaltes des selektierten Menüpunktes
function showWidget(idLeft,idRight,idLink)
{
	//Image und Content tauschen
	if(document.getElementById(idLeft).style.display!="block")
	{
			for(i=0;i<box.length;i++)
			{
				document.getElementById(box[i]).style.display="none";
			}

			document.getElementById(idLeft).style.display="block";
			document.getElementById(idRight).style.display="block";
			
	}
	else
	{
			//document.getElementById(idLeft).style.display="none";
	}
	
	//Link-Classe austauschen
	if(document.getElementById(idLink).className!="current")
	{
			for(i=0;i<menue.length;i++)
			{
					document.getElementById(menue[i]).className="notcurrent";
			}
			document.getElementById(idLink).className="current";
	}
	
	try {
		et_eC_Wrapper('kP3', 'Widget', 'Details_Page_'+idRight, 0, null, null, 0, 0, 0, 0, 0, 0, 0);
	} catch (e) {
		//nothing
	}
}

// Fkt. zum Darstellen des Inhaltes des selektierten Hilfepunktes
function showhelp(idRight,idLink)
{
	//Image und Content tauschen
	if(document.getElementById(idRight).style.display!="block")
	{
		for(i=0;i<helpbox.length;i++)
		{
			document.getElementById(helpbox[i]).style.display="none";
		}
		document.getElementById(idRight).style.display="block";
	}
	else
	{
		//document.getElementById(idRight).style.display="none";
		/* double-click would hide selection */
	}
	
	//Link-Classe austauschen
	if(document.getElementById(idLink).className!="current")
	{
		for(i=0;i<helpmenue.length;i++)
		{
			document.getElementById(helpmenue[i]).className="notcurrent";
		}
		document.getElementById(idLink).className="current";
	}
	
	try {
		et_eC_Wrapper('kP3', 'Widget', 'Installation_Page_'+idRight, 0, null, null, 0, 0, 0, 0, 0, 0, 0);
	} catch (e) {
		//nothing
	}
}

// Fkt. zum Darstellen des Inhaltes der selektierten Installationshilfe
function showinst(idRight,idLink)
{
	//Image und Content tauschen
	if(document.getElementById(idRight).style.display!="block")
	{
			for(i=0;i<instbox.length;i++)
			{
				document.getElementById(instbox[i]).style.display="none";
			}
			document.getElementById(idRight).style.display="block";
			
	}
	else
	{
			document.getElementById(idRight).style.display="none";
	}
	
	//Link-Classe austauschen
	if(document.getElementById(idLink).className!="current")
	{
		for(i=0;i<instmenue.length;i++)
		{
			document.getElementById(instmenue[i]).className="notcurrent";
		}
		document.getElementById(idLink).className="current";
	}
}



