/*|************************************************************|
  | script - (c) 2004 by m.fLo.thomann --- www.virtualvoid.net |
  |************************************************************|*/

var imgPtHide = new Image;
var imgPtRed = new Image;
imgPtHide.src = "/images/_pt_hide.gif";
imgPtRed.src = "/images/_pt_rot.gif";

var y_offset_EG = 0;
var y_offset_OG = 0;
if (document.all)
{
	y_offset_EG = 10;
	y_offset_OG = 30;
}
var refs = new Array(// links
					"/of-location/nebenraeume/nebenraeume.html",
					"/of-location/grosser-saal-und-buehne/grosser-saal-buehne.html",
					"/of-location/grosser-saal-und-buehne/grosser-saal-buehne.html/#buehne",
					"/of-location/neues-foyer/neues-foyer.html",
					"/of-location/backstage/backstage.html",
					"/of-location/barrierefreiheit/barrierefreiheit.html",
					"/of-location/backstage/backstage.html/#crewcatering",
					"/of-location/backstage/backstage.html/#bueros",
					
					"/of-location/nebenraeume/nebenraeume.html",
					"/of-location/backstage/backstage.html/#vip",
					"/of-location/nebenraeume/nebenraeume.html/#wandel",
					"end");


var attr = new Array(// text fuer hover und leiste
					"Empfangsbereich Foyer",	//0
					"Der große Saal",			//1
					"Die Bühne",				//2
					"Das Neue Foyer",			//3
					"Backstage",				//4
					"(Rollstuhl-) Rampe",		//5
					"Crewcatering",				//6
					"Produktion / Garderobe",	//7
					
					"Garderobe",				//8
					"VIP-Räume",				//9
					"Wandelgang",				//10
					"end");


var posOG = new Array(// x,y,nr
					pt(236,699+y_offset_EG,0),		// foyer
					pt(236,534+y_offset_EG,1),		// saal
					pt(155,547+y_offset_EG,2),		// buehne
					pt(391,495+y_offset_EG,3),		// neues foyer
					pt(111,452+y_offset_EG,4),		// backstage
					pt(377,704+y_offset_EG,5),		// rampe
					pt(102,371+y_offset_EG,6),		// catering
					pt(99,515+y_offset_EG,7)		// produktion
					);

var posEG = new Array(// x,y,nr
					pt(118,1000+y_offset_OG,8),		// garderobe
					pt(105,1025+y_offset_OG,9),		// vip
					pt(392,1104+y_offset_OG,10)		// wandelgang
					);



//---------------------------------------------------------------------
function setOGPts()
{
	for(var c=0; c<posOG.length; c++)
	{
		document.writeln("<div id='pOG"+posOG[c].sNr+"' style='position:absolute; left:"+posOG[c].x+"px; top:"+posOG[c].y+"px; width:13px; height:13px;'>"+
						"<a title='"+attr[posOG[c].sNr]+"' href='javascript:go("+posOG[c].sNr+");'>"+
						"<img name='imOG"+posOG[c].sNr+"' alt='"+attr[posOG[c].sNr]+"' onmouseout='hovOff("+posOG[c].sNr+");' onmouseover='hovOn("+posOG[c].sNr+");' border=0 hspace=0 vspace=0 src='/images/_pt_hide.gif'>"+
						"</a>"+
						"</div>");
	}
}

//---------------------------------------------------------------------
function setEGPts()
{
	for(var c=0; c<posEG.length; c++)
	{
		document.writeln("<div id='pEG"+posEG[c].sNr+"' style='position:absolute; left:"+posEG[c].x+"px; top:"+posEG[c].y+"px; width:13px; height:13px;'>"+
						"<a title='"+attr[posEG[c].sNr]+"' href='javascript:go("+posEG[c].sNr+");'>"+
						"<img name='imEG"+posEG[c].sNr+"' alt='"+attr[posEG[c].sNr]+"' onmouseout='hovOff("+posEG[c].sNr+");' onmouseover='hovOn("+posEG[c].sNr+");' border=0 hspace=0 vspace=0 src='/images/_pt_hide.gif'>"+
						"</a>"+
						"</div>");
	}
}

//---------------------------------------------------------------------
function pt(x,y,sNr)
{
	return new point(x,y,sNr);
}
//---------------------------------------------------------------------
function point(x,y,sNr)
{
	this.x = x;
	this.y = y;
	this.sNr = sNr;
	return this;
}



//---------------------------------------------------------------------
function hovOff(nr)
{
	//document.images["im"+nr].src = imgPtHide.src;
	if(document.images["imOG"+nr])  document.images["imOG"+nr].src = imgPtHide.src;
	if(document.images["imEG"+nr])  document.images["imEG"+nr].src = imgPtHide.src;
	document.getElementById("hover_"+nr).style.color = "";
	document.getElementById("hover_"+nr).style.textDecoration = "none";
}


//---------------------------------------------------------------------
function hovOn(nr)
{
	//document.images["im"+nr].src = imgPtRed.src;
	if(document.images["imOG"+nr]) document.images["imOG"+nr].src = imgPtRed.src;
	if(document.images["imEG"+nr]) document.images["imEG"+nr].src = imgPtRed.src;
	document.getElementById("hover_"+nr).style.color = "#000000";
	document.getElementById("hover_"+nr).style.textDecoration = "underline";
}


//---------------------------------------------------------------------
function go(nr)
{
	document.location.href=refs[nr];
}
