light				= new Image();
light.src			= RefPath + '_images/BloxL.gif';
medium				= new Image();
medium.src			= RefPath + '_images/BloxM.gif';
dark				= new Image();
dark.src			= RefPath + '_images/BloxD.gif';
orange				= new Image();
orange.src			= RefPath + '_images/BloxO.gif';



var MyLocation	= new Array();
MyLocation[1]		= RefPath + '01_KUECHENAUSSTELLUNG/index.htm';
MyLocation[2]		= RefPath + '02_MARKENKUECHEN/index.htm';
MyLocation[3]		= RefPath + '03_ABOUT/index.htm';
MyLocation[4]		= RefPath + '04_KUECHENTIPPS/index.htm';
MyLocation[5]		= RefPath + '05_NEWS/index.asp';
MyLocation[6]		= RefPath + '06_KONTAKT/index.htm';
MyLocation[7]		= RefPath + '07_KUECHENPROSPEKTE/index.htm';
MyLocation[8]		= RefPath + '08_WETTBEWERB/index.htm';



function ResetIt()
{
	document.b1.src = RefPath + '_images/BloxL.gif';
	document.b2.src = RefPath + '_images/BloxL.gif';
	document.b3.src = RefPath + '_images/BloxL.gif';
	document.b4.src = RefPath + '_images/BloxL.gif';
	document.b5.src = RefPath + '_images/BloxL.gif';
	document.b6.src = RefPath + '_images/BloxL.gif';
	document.b7.src = RefPath + '_images/BloxL.gif';
	document.b8.src = RefPath + '_images/BloxL.gif';
	if (tmpActive > 0)
	{
		eval('document.b' + tmpActive).src = orange.src;
	}
}



function ChangeIt(Bnr)
{
	ResetIt();
	if (Bnr-1 >= 1 && Bnr-1 != tmpActive)
	{
		eval('document.b' + (Bnr-1)).src = medium.src;
	}
	if (Bnr != tmpActive)
	{
		eval('document.b' + Bnr).src = dark.src;
	}
	if (Bnr+1 <= 8 && Bnr+1 != tmpActive)
	{
		eval('document.b' + (Bnr+1)).src = medium.src;
	}
}


			
function FixIt(Bnr)
{
	document.b1.src = RefPath + '_images/BloxL.gif';
	document.b2.src = RefPath + '_images/BloxL.gif';
	document.b3.src = RefPath + '_images/BloxL.gif';
	document.b4.src = RefPath + '_images/BloxL.gif';
	document.b5.src = RefPath + '_images/BloxL.gif';
	document.b6.src = RefPath + '_images/BloxL.gif';
	document.b7.src = RefPath + '_images/BloxL.gif';
	document.b8.src = RefPath + '_images/BloxL.gif';
	eval('document.b' + Bnr).src = orange.src;
	tmpActive = Bnr;
}



function OpenIt(theURL)
{
	window.open(theURL, 'MediaFenster', 'width=425, height=710, resizable=yes, location=no, menubar=no, scrollbars=no,status=no, toolbar=no');
}

