//scripts fuer Hotel-Verwaltung
//copyright 2007 by backslash - artists of new media

function launchMovie(newID){
	var typ = "hotel";
	if(launchMovie.arguments.length > 1) typ = "sendung"; 
	highHotel(newID);
	//Parameter-Uebergabe an Flash
	flashProxy.call('extStartHotel',newID,typ);
	}
function launchMovieList(newIDList){
	//Parameter-Uebergabe an Flash
	flashProxy.call('startRandomHotel',newIDList);
	}
	
function highHotel(newID){
	var i;
	var el  = getElementsByClassName("active");
	for(i=0; i<el.length; i++){
		if(el[i].id.indexOf("hotel_") != -1 ){
			el[i].className = el[i].className.replace("active","");
			}
		}
	if(getE("hotel_"+newID))getE("hotel_"+newID).className+=" active";
	}
	