// JavaScript Document
function resizebg() {
	$("transparent").style.height = $("content").offsetHeight+"px";
//	alert();
	$("bgimage").style.height = document.body.clientHeight+"px";
	$("transparent").style.position = "absolute";
//	alert($("content").offsetLeft);
	$("transparent").style.left = ($("content").offsetLeft)+"px";
	

}
function $(n) {
	return document.getElementById(n);
}
function showHotelList() {
	if($("hotellist").style.display=="none") {
		$("hotellist").style.display="block";
		$("hotellist").style.visibility="visible";

	} else if($("hotellist").style.display=="block") {
		$("hotellist").style.display="none";
		$("hotellist").style.visibility="hidden";

	}
}
function liclik(s) {
	$("hotelName").value=s;
	showHotelList();
	$("sil").value=isOver;
	isOver=false;
}
var isOver=false;

function checkState() {
	if(!isOver) {
		showHotelList();
	}
}
function controls(n) {
	n.value="";
}
function rollback(n,s) {
	if(n.value=="") {
		n.value=s;
	}
}
function dilDegistir(dil) {
//	alert(document.URL.indexOf("="));
	if(document.URL.indexOf("=")=="-1") {
		location.href = document.URL+"?lang="+dil;
	} else {
		if(document.URL.indexOf("lang=")=="-1") {
			location.href = document.URL+"&lang="+dil;
		} else {
			location.href = document.URL.substr(0,document.URL.length-2)+dil;
		}
	}
}
