// JavaScript Document
function switchPic(num){
	var elem = document.getElementById('bild');
	if(elem) elem.src = "../pics/"+this.prefix+""+num+".jpg";
	}

function setBGI(elem, url){
	if(elem){ elem.style.backgroundImage = url;	}
	}	
function switchSelected(elem){
	if(this.selected){ setBGI(this.selected, ''); elem.style.color = this.oldColor; }
	if(elem){setBGI(elem,'url("../pics/kreis.gif")');
			this.selected = elem;
			if(this.color) {this.oldColor = elem.style.color; elem.style.color = this.color;}
			}
	}	
	

function onLoad(color, prefix){
	preloadImages('../pics/Karte.gif');
	this.prefix = prefix;
	this.color = color;
	if(document.getElementById('one'))
	switchSelected(document.getElementById('one'));
	var sel = document.getElementById('selected');
	if(sel)sel.className='selected-link'; 

	}	
	
function preloadImages() { 
  var d=document; 
  if(d.images){ 
  	if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=preloadImages.arguments; 
	 for(i=0; i<a.length; i++)  if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image(); d.MM_p[j++].src=a[i]; }
	
 	 }
	}	
	
function mouseOver(id){
	setBGI(document.getElementById(id+'butt'), 'url("../pics/button_hotel_'+id+'.gif")');
	}
	
function mouseOut(id){
	setBGI(document.getElementById(id+'butt'), '');//'url("../pics/button.gif")');
	}	
	
var fenster;

function newWindow(title,location)
{
fenster = window.open (
"",//"_self",
"",//title, // Name des neuen Fensters
"toolbar=no" // Toolbar
+",location=no" // Adress-Leiste
+",directories=no" // Zusatzleisten
+",status=no" // Statusleiste
+",menubar=no" // Menü
+",scrollbars=no" // Scrollbars
+",resizable=no" // Fenstergrösse veränderbar?
+",width=1000" // Fensterbreite in Pixeln
+",height=700" // Fensterhöhe in Pixeln
);

fenster.moveTo(
10, // X-Koordinate
10 // Y-Koordinate
); // der linken oberen Ecke

if(fenster){fenster.location.href = location;fenster.focus();}
else window.location.href  =  location;
}
