function card_on_click(page)
{
	//redir to 
	if (page)
		window.location = "/"+page+"/";
}

function card_on_mouseover (hotel_id,img_File,col,index)
{
	var c = elemById("card_" + hotel_id);
	//if (c) c.className ="dv_card_selected";
	//if (c) c.style.background = col;
	if (c) c.style.background = "#fff1e4";
	var city = elemById("city_"+index);
	city.style.color="#002C52";
	var dot = elemById("dot_" + hotel_id);
	//if (dot) dot.className ="dot_map_selected";
	if (c || dot) dot.style.background = 'url("'+ img_File +'") no-repeat';
	
}

function card_on_mouseout(hotel_id,index)
{
	var c = elemById("card_" + hotel_id);
	//if (c) c.className ="dv_card";
   if (c) c.style.background ="white";
	var city = elemById("city_"+index);
	city.style.color="#AD824D";
	var dot = elemById("dot_" + hotel_id);
	//if (dot) dot.className ="dot_map";
	if (dot) dot.style.background = 'url("../gfx/dotffffff.png") no-repeat';
}

function markMap(hotel_id){
	hotel_id= Number(hotel_id);
	//make the dot
	var p = $_("bigmap");
	var arrA = elemsChilds(p);
	for (i=0; i < arrA.length;i++)
	{
		if (arrA[i].id == "dot_" + hotel_id)
			arrA[i].className="dot_map_selected";
		else 
			arrA[i].className="dot_map";
	}
	
}

function markme(e)
{
	var posx=0, posy=0;
	if (!e) var e = window.event;
	if (e.pageX || e.pageY) 	{
		posx = e.pageX;
		posy = e.pageY;
	}
	else if (e.clientX || e.clientY) 	{
		posx = e.clientX + document.body.scrollLeft
			+ document.documentElement.scrollLeft;
		posy = e.clientY + document.body.scrollTop
			+ document.documentElement.scrollTop;
	}
	alert((posx-347) + " : " + (posy-152));
}