<!--
var nMOVEBYPIXEL = 3;

// Returns element's DOM object handle
function GetHandle(sElmID)
{
	var obj;

	if(document.all)
	{
		obj = document.all(sElmID);
	}
	else if(document.getElementById)
	{
		obj = document.getElementById(sElmID);
	}
	else
	{
		obj = NULL;
	}

	return obj;
}


var oTimer = null;
var sDIR = "RIGHT";

function startScrollerlodging(sDIRTemp)
{
	oTimer = window.clearTimeout(oTimer);

	sDIR = sDIRTemp;
	oTimer =  window.setTimeout("moveScrollerDiv()",10);
}

function stopScrollerlodging()
{
	window.clearTimeout(oTimer);
	oTimer = null;
}


function moveScrollerDiv()
{
	if	(sDIR == "LEFT")
	{
		moveScrollerLeft();
	}
	else
	{
		moveScrollerRight();
	}
	oTimer =  window.setTimeout("moveScrollerDiv()",10);
}


function moveScrollerLeft()
{
	oDiv = GetHandle("divWrapperHotel");
	
	sLeft = parseInt(oDiv.scrollLeft);

	sLeft -= nMOVEBYPIXEL;
	if(sLeft < 0) sLeft = 0;

	oDiv.scrollLeft = sLeft;
}
function moveScrollerRight()
{
	oDiv = GetHandle("divWrapperHotel");
	
	sRight = parseInt(oDiv.scrollLeft);

	sRight += nMOVEBYPIXEL;
	if(sRight >  oDiv.scrollWidth) sRight = oDiv.scrollWidth;

	oDiv.scrollLeft = sRight;
}

function InitializeScreen()
{
	//alert("here");

	//if(is_firefox)
	{
		GetHandle("divWrapperHotel").style.width = "864" //"296";
		GetHandle("divWrapperHotel").style.height = "220" //"296";
	}

}
//-->

//============ list of hotes ============
	function show_next_hotel(flag) {
		
		ID = document.getElementById('curIDH').value;
		BG = document.getElementById('BGH').value;
		Total = document.getElementById('TotalH').value;
var strURL="info_hotel_get_name.php?ID="+ID+"&flag="+flag;

		var req = getXMLHTTP();
		if (req) {
			
			req.onreadystatechange = function() {
				if (req.readyState == 4) {
					// only if "OK"
					if (req.status == 200) {
							
							if(req.responseText!=''){
									if(flag == 'MIN'){
									BG = eval(BG) - eval(1);
									} else{
									BG = eval(BG) + eval(1);	
									}
									
								ID	= req.responseText;
								show_info_lodging_hotels_list(ID, BG, Total );
								
							}
					} else {
						alert("There was a problem while using XMLHTTP:\n" + req.statusText);
					}
				}	
				
				else {
	//document.getElementById('hotels_list').innerHTML="<img align='center' src='images/ajax-loader.gif' style='padding:55px;' >";
					
				}
					
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}	
		
	}
	



