function menuOver(id) {
	var img1 = jsGetObject('img_td'+id+'_1');
	if (img1) img1.src = __strMainDir + 'images/bgmenu_l.png';
	var img2 = jsGetObject('img_td'+id+'_2');
	if (img2) img2.style.backgroundImage = 'url('+__strMainDir+'images/bgmenu_c.png)';
	var img3 = jsGetObject('img_td'+id+'_3');
	if (img3) img3.src = __strMainDir + 'images/bgmenu_r.png';
}

function menuOut(id) {
	var img1 = jsGetObject('img_td'+id+'_1');
	if (img1) img1.src = __strMainDir + 'images/blank.gif';
	var img2 = jsGetObject('img_td'+id+'_2');
	if (img2) img2.style.backgroundImage = 'none';
	var img3 = jsGetObject('img_td'+id+'_3');
	if (img3) img3.src = __strMainDir + 'images/blank.gif';
}

function setScrollValue(id,value){
	id = 'content_' + id;
	if(document.getElementById(id)) document.getElementById(id).scrollLeft = value; 
}

function getScrollValue(id){
	id = 'content_' + id;
	if (document.getElementById(id)) return document.getElementById(id).scrollLeft;
}

var idTimeOut=null;
function slideStart(funcao){
	try {
		slideStop();
		idTimeOut = setInterval(funcao,100);
	} catch(err) {
		//jsShowErrors("llamar", err);
	}
}

function slideStop(){
	try {
		if(idTimeOut) clearInterval(idTimeOut);
	} catch(err) {
	//jsShowErrors("alto", err);
	}
}

/*FUNCIÓN PARA FILTRAR LA BÚSQUEDA*/
function loadHotel() {
	var c_value = "";
	var c_value1 = "";
	for (var i=0; i < document.getElementsByName('var_index').length; i++) {
	   if (document.getElementsByName('var_index')[i].checked) {
		   c_value = c_value + document.getElementsByName('var_index')[i].value + ",";
		}
	}
	//alert(c_value);
	
	for (var i=0; i < document.getElementsByName('var_index1').length; i++) {
	   if (document.getElementsByName('var_index1')[i].checked) {
		   c_value1 = c_value1 + document.getElementsByName('var_index1')[i].value + ",";
		}
	}
	//alert(c_value1);
	
	//setTimeout('jsSetStyle("loading", "display", "block")', 10000);
	document.location.href = "index.php?p=hotel&categorias=" + 
			c_value + "&ubicaciones=" + c_value1;

}
/*FUNCIÓN PARA FILTRAR LA BÚSQUEDA*/


function loadContenido(parentid) {
	var p = new SetAjax();
	p.FilePath = __strMainDir + "includes/procesos/cargar_contenido.php";
	p.setVar = [["parentid", parentid]];
	p.Element = jsGetObject('map');
	p.ElementPlainText = false;
	p.RunScript = false;
	p.onLoading = function() {
		//jsSetStyle("Loading", "display", "block");
		document.body.style.cursor = "wait";
	}
	p.onCompletion = function() {
		//jsSetStyle("Loading", "display", "none");
		document.body.style.cursor = "default";
	}
	p.Execute();
	delete p;
}

function openWin(eURL,eName,features) {	
	window.open(eURL,eName,features);
}

function openCenterWin(eURL,eName,eFeatures,eWidth,eHeight) {
	var _features = "", percent = 80;
	if(window.screen && (!eWidth || !eHeight)){
		eWidth = window.screen.availWidth * percent / 100;
		eHeight = window.screen.availHeight * percent / 100;
	}
	_features = (eFeatures == "") ? "resizable=yes,status=yes,scrollbars=yes" : eFeatures;
	_features += ",width="+eWidth+",height="+eHeight+",left="+((screen.width/2)-(eWidth/2))+",top="+((screen.height/2)-(eHeight/2));
	openWin(eURL,eName,_features);
}

/*FUNCIÓN PARA FILTRAR LA BÚSQUEDA*/
/*function loadHotel() {
	var c_value = "";
	var c_value1 = "";
	for (var i=0; i < document.getElementsByName('var_index').length; i++) {
	   if (document.getElementsByName('var_index')[i].checked) {
		   c_value = c_value + document.getElementsByName('var_index')[i].value + ",";
		}
	}
	//alert(c_value);
	
	for (var i=0; i < document.getElementsByName('var_index1').length; i++) {
	   if (document.getElementsByName('var_index1')[i].checked) {
		   c_value1 = c_value1 + document.getElementsByName('var_index1')[i].value + ",";
		}
	}
	//alert(c_value1);
	
	var p = new SetAjax();
	p.FilePath = __strMainDir + "includes/procesos/busqueda.php";
	p.setVar = [["categorias", c_value], ["ubicaciones", c_value1]];
	p.Element = jsGetObject('hoteles');
	p.ElementPlainText = false;
	p.RunScript = false;
	p.onLoading = function() {
		document.getElementById('Loading').style.display="block";
		document.body.style.cursor = "wait";
	}
	p.onCompletion = function() {
		document.getElementById('Loading').style.display="none";
		document.body.style.cursor = "default";
	}
	p.Execute();
	delete p;
}*/
/*FUNCIÓN PARA FILTRAR LA BÚSQUEDA*/