function fondobotonera() {
	fondos = new Array();
	var number = 0;
	fondos[number] = "url(img/fndBotonera.jpg)";
	fondos[number++] = "url(img/fndBotonera1.jpg)";
	fondos[number++] = "url(img/fndBotonera.jpg)";
	fondos[number++] = "url(img/fndBotonera2.jpg)";
	fondos[number++] = "url(img/fndBotonera.jpg)";
	fondos[number++] = "url(img/fndBotonera3.jpg)";/*
	fondos[number++] = "url(img/fndBotonera4.jpg)";
	fondos[number++] = "url(img/fndBotonera5.jpg)";
	fondos[number++] = "url(img/fndBotonera3.jpg)";
	fondos[number++] = "url(img/fndBotonera3.jpg)";
	fondos[number++] = "url(img/fndBotonera3.jpg)";
	fondos[number++] = "url(img/fndBotonera.jpg)";
	fondos[number++] = "url(img/fndBotonera.jpg)";
	fondos[number++] = "url(img/fndBotonera.jpg)";
	fondos[number++] = "url(img/fndBotonera.jpg)";
	fondos[number++] = "url(img/fndBotonera.jpg)";*/
	
	fondo = Math.floor(Math.random() * fondos.length);
	document.getElementById("botonera").style.background = fondos[fondo];	
	}
	
/*///////////////QTIP//////////////////////*/
var qTipTag = "a";
var qTipX = -15;
var qTipY = 0;




tooltip = {
  name : "qTip",
  offsetX : qTipX,
  offsetY : qTipY,
  tip : null
}

tooltip.init = function () {
	var tipNameSpaceURI = "http://www.w3.org/1999/xhtml";
	if(!tipContainerID){ var tipContainerID = "qTip";}
	var tipContainer = document.getElementById(tipContainerID);

	if(!tipContainer) {
	  tipContainer = document.createElementNS ? document.createElementNS(tipNameSpaceURI, "div") : document.createElement("div");
		tipContainer.setAttribute("id", tipContainerID);
	  document.getElementsByTagName("body").item(0).appendChild(tipContainer);
	}

	if (!document.getElementById) return;
	this.tip = document.getElementById (this.name);
	if (this.tip) {
		document.getElementById("seccionfotos").onmousemove = function (evt) {tooltip.move (evt)};
		document.getElementById("seccionHabitaciones").onmousemove = function (evt) {tooltip.move (evt)};
	}

	var a, sTitle;
	var anchors = document.getElementsByTagName (qTipTag);
	qtipeado = eval('/^foto/gi');
	for (var i = 0; i < anchors.length; i ++) {
		if(anchors[i].className.match(qtipeado)){
			a = anchors[i];
			sTitle = a.getAttribute("title");
			if(sTitle) {
				a.setAttribute("tiptitle", sTitle);
				a.removeAttribute("title");
				a.onmouseover = function() {tooltip.show(this.getAttribute('tiptitle'));};
				a.onmouseout = function() {tooltip.hide()};
			}
		}
	}
}

tooltip.move = function (evt) {
	var x=50, y=50;
	if (document.all) {
		x = (document.documentElement && document.documentElement.scrollLeft) ? document.documentElement.scrollLeft : document.body.scrollLeft;
		y = (document.documentElement && document.documentElement.scrollTop) ? document.documentElement.scrollTop : document.body.scrollTop;
		x += window.event.clientX;
		y += window.event.clientY;
		
	} else {
		x = evt.pageX;
		y = evt.pageY;
	}
	this.tip.style.left = (x + this.offsetX) + "px";
	this.tip.style.top = (y + this.offsetY) + "px";
}

tooltip.show = function (text) {
	if (!this.tip) return;
	this.tip.innerHTML = text;
	this.tip.style.display = "block";
	this.tip.style.marginLeft = "30px";
}

tooltip.hide = function () {
	if (!this.tip) return;
	this.tip.innerHTML = "";
	this.tip.style.display = "none";
}

window.onload = function () {
	tooltip.init ();
}


function clase(boton) {
	arrayDivs = document.getElementsByTagName("div");
	elSeleccionado = eval('/^selected/gi');
	for (var i=0; i < arrayDivs.length; i++) {
		if(arrayDivs[i].className.match(elSeleccionado)) arrayDivs[i].className = "notSelected";
		
		}
	document.getElementById(boton).className = "selected";
	}
	
	
	
	
	
function mostrar(capa) {
	vista = (document.getElementById(capa).style.display == 'block') ? 'none' : 'block';
	document.getElementById(capa).style.display = vista;
	}



function grande(lang, hotelID){
var uri = "http://www.hotelsearch.com/search/maphotel.php?cid=T1sJ7wSaM9CkyDeeQZccfrXLs5OxL75KSC3BzPSZ-Zu55M2mhw&language="+lang+"&hotelid="+hotelID;
var nombre = "Google Maps";
var props = "resizable=yes";
window.open(uri,nombre,props);
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}




