﻿/*|************************************************************|
  | script - (c) 2004 by m.fLo.thomann --- www.virtualvoid.net |
  |************************************************************|*/

var imgPtHide =new Image;
var imgPtRed =new Image;
imgPtHide.src = "/img/_pt_hide.gif";
imgPtRed.src = "/img/_pt_rot.gif";


var refs = new Array(// links
                     "http://www.eventlocation-rhein-main.de/web/event-location/atrium-eg/atrium-foyer-mieten.html",
                     "http://www.eventlocation-rhein-main.de/web/event-location/atrium-eg/atrium-foyer-mieten.html",
                     "http://www.eventlocation-rhein-main.de/web/event-location/lounge-og/lounge-veranstaltung-.html",
                     "http://www.eventlocation-rhein-main.de/web/event-location/palladium-eg/veranstaltung-saal.html",
                     "http://www.eventlocation-rhein-main.de/web/event-location/galerie-og/galerie-saal-gala-event.html",
                     "http://www.eventlocation-rhein-main.de/web/event-location/buehne-eg/buehne-location-rhein-main.html",
                     "http://www.eventlocation-rhein-main.de/web/event-location/universum-og/saal-seminar-raum-workshop.html",
                     "end");


var attr = new Array(// text fuer hover und leiste
                     "Atrium",                //0
                     "Bar Atrium",            //1
                     "Lounge (OG)",            //2
                     "Palladium (EG)",        //3
                     "Galerie (OG)",          //4
                     "Bühne",                 //5
                     "Universum (OG)",        //6
                     "end");

var posMain = new Array(// x,y,nr
                      pt(86,346,0),      // atrium
                      pt(143,341,1),     // atrium bar
                      pt(130,321,2),     // lounge
                      pt(245,348,3),     // pallad
                      pt(245,307,4),     // galerie
                      pt(333,331,5),     // buehne
                      pt(15,320,6)       // universum
                   );

var posUG = new Array(// x,y,nr
                      pt(265,510,0),      // atrium
                      pt(305,514,1),     // bar
                      pt(369,521,3)      // pall
                     );

var posOG = new Array(// x,y,nr
                      pt(287,710,2),      // lounge
                      pt(224,710,6),       // universum
                      pt(326,710,4),      // gal
                      pt(428,510,5)       // buehne
                     );


//---------------------------------------------------------------------
function setBar()
{
   for(var c=0; c<posMain.length; c++) {

      document.write("<a id='l"+c+"' onmouseover='hovOn("+c+")' onmouseout='hovOff("+c+")'"+
                     " title='Klicken Sie für diesen Raum' class='menRef'"+
                     " href='javascript:go("+c+")'>"+attr[c]+"</a>");

      if(c < posMain.length-1) document.write("&nbsp;&middot;&nbsp;");
   }
}

//---------------------------------------------------------------------
function setMainPts()
{
   for(var c=0; c<posMain.length; c++) {
      document.writeln("<div id='p"+posMain[c].sNr+"' style='position:absolute; left:"+posMain[c].x+"px; top:"+posMain[c].y+"px; width:13px; height:13px;'>"+
                       "<a title='"+attr[posMain[c].sNr]+"' href='javascript:go("+posMain[c].sNr+");'>"+
                       "<img name='im"+posMain[c].sNr+"' alt='"+attr[posMain[c].sNr]+"' onmouseout='hovOff("+posMain[c].sNr+");' onmouseover='hovOn("+posMain[c].sNr+");' border=0 hspace=0 vspace=0 src='/img/_pt_hide.gif'>"+
                       "</a>"+
                       "</div>");
   }
}

//---------------------------------------------------------------------
function setUGPts()
{
   for(var c=0; c<posUG.length; c++) {
      document.writeln("<div id='pUG"+posUG[c].sNr+"' style='position:absolute; left:"+posUG[c].x+"px; top:"+posUG[c].y+"px; width:13px; height:13px;'>"+
                       "<a title='"+attr[posUG[c].sNr]+"' href='javascript:go("+posUG[c].sNr+");'>"+
                       "<img name='imUG"+posUG[c].sNr+"' alt='"+attr[posUG[c].sNr]+"' onmouseout='hovOff("+posUG[c].sNr+");' onmouseover='hovOn("+posUG[c].sNr+");' border=0 hspace=0 vspace=0 src='/img/_pt_hide.gif'>"+
                       "</a>"+
                       "</div>");
   }
}

//---------------------------------------------------------------------
function setOGPts()
{
   for(var c=0; c<posOG.length; c++) {
      document.writeln("<div id='pUG"+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='/img/_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["imUG"+nr])  document.images["imUG"+nr].src = imgPtHide.src;
   if(document.images["imOG"+nr])  document.images["imOG"+nr].src = imgPtHide.src;
   document.getElementById("l"+nr).style.color = "#ffffff";
}


//---------------------------------------------------------------------
function hovOn(nr)
{
   document.images["im"+nr].src = imgPtRed.src;
   if(document.images["imUG"+nr]) document.images["imUG"+nr].src = imgPtRed.src;
   if(document.images["imOG"+nr]) document.images["imOG"+nr].src = imgPtRed.src;
   document.getElementById("l"+nr).style.color = "#ff0000";
}


//---------------------------------------------------------------------
function go(nr)
{
   document.location.href=refs[nr];
}









