function AJAXInteraction(url, callback){
        var req = init();
        req.onreadystatechange = processRequest;
        function init(){
                if(window.XMLHttpRequest){
                        return new XMLHttpRequest();
		}
		else if(window.ActiveXObject){
			return new ActiveXObject("Microsoft.XMLHTTP");
		}
	}

	function processRequest(){
		//readyState of 4 signifies request is complete
		if(req.readyState == 4){
			//status of 200 signifies successful HTTP call
			
			if(req.status == 200){
				if(callback) callback(req.responseXML);
			}
			else{
					var selectModel;
					document.selectModel.submit();
					openMenu('loadingMsg');
				}
			}
		}
	

	this.doGet=function(){
		req.open("GET", url, true);
		req.send(null);
	}
	this.doPost=function(str) {
		req.open("POST", url, true);
		req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");
		req.send(str);
	}
}



var map; 
	
function initialize() {
	///-8.548404  	125.559468
var latitude = -8.548404;//document.forms['form_res'].latitude_.value;
var longitude = 125.559468;//document.forms['form_res'].longitude_.value;
	
  var myOptions = {
    infoWindow: null,
    zoom: 14,
    center: new google.maps.LatLng(parseFloat(latitude),parseFloat(longitude)),
    mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  var map = new google.maps.Map(document.getElementById("map_canvas"),
                                myOptions);

var beaches = [
  ['Bondi Beach', -8.568224, 125.578165, 4],
  ['Coogee Beach', -8.552224, 125.618165, 5],
  ['Cronulla Beach', -8.658224, 125.628165, 3],
  ['Manly Beach', -8.565224, 125.538165, 2],
  ['Dili Beach Hotel', parseFloat(latitude),parseFloat(longitude), 1]
];  
  
  setMarkers(map, beaches);
}

/**
 * Data for the markers consisting of a name, a LatLng and a zIndex for
 * the order in which these markers should display on top of each
 * other.
 */


function setMarkers(map, locations) {
  // Add markers to the map

  // Marker sizes are expressed as a Size of X,Y
  // where the origin of the image (0,0) is located
  // in the top left of the image.

  // Origins, anchor positions and coordinates of the marker
  // increase in the X direction to the right and in
  // the Y direction down.
  var image = new google.maps.MarkerImage('images/beachflag.png',
      // This marker is 20 pixels wide by 32 pixels tall.
      new google.maps.Size(20, 32),
      // The origin for this image is 0,0.
      new google.maps.Point(0,0),
      // The anchor for this image is the base of the flagpole at 0,32.
      new google.maps.Point(0, 32));
  var shadow = new google.maps.MarkerImage('images/beachflag_shadow.png',
      // The shadow image is larger in the horizontal dimension
      // while the position and offset are the same as for the main image.
      new google.maps.Size(37, 32),
      new google.maps.Point(0,0),
      new google.maps.Point(0, 32));
      // Shapes define the clickable region of the icon.
      // The type defines an HTML <area> element 'poly' which
      // traces out a polygon as a series of X,Y points. The final
      // coordinate closes the poly by connecting to the first
      // coordinate.
  var shape = {
      coord: [1, 1, 1, 20, 18, 20, 18 , 1],
      type: 'poly'
  };

  
  for (var i = 0; i < locations.length; i++) {

    var beach = locations[i];
    var myLatLng = new google.maps.LatLng(beach[1], beach[2]);
    var marker = new google.maps.Marker({
        position: myLatLng,
        map: map,
        shadow: shadow,
        icon: image,
        shape: shape,
        title: beach[0],
        zIndex: beach[3]
    });
    var marker = new google.maps.Marker({
        position: myLatLng,
        map: map
    });
    var j = i + 1;
    marker.setTitle(j.toString());
    attachInfowindow(marker, i);
    
  }
}  
  
function attachInfowindow(marker, number) {
	var infowindowLevel = 0;
  var infowindow = new google.maps.InfoWindow(
      { content: "I like to be on top!"
      });
  google.maps.event.addListener(marker, 'click', function() {
    infowindow.setZIndex(++infowindowLevel);
    infowindow.open(map,marker);
  });
} 


function showModal(which, Obj, event)
{
		//langage = document.getElementById('hiddenLang').value;
		
		var box = document.getElementById("show-message");
		if (box){box.parentNode.removeChild(box);}
		
		var h4 = document.getElementById('h4-title');
		if(!h4){var h4 = document.createElement('div'); h4.setAttribute('id','h4-title');}
		h4.style.backgroundImage= 'none';
		h4.innerHTML = '';
		var all=document.getElementById('message-box');
		all.style.width="420px";
		all.style.marginLeft="-200px";
		
	
	if(which == "messageRoom"){	
			var y = event.clientY;	
			var z = document.getElementById('all').offsetHeight;
			
			var h = document.createTextNode("Dili Beach Hotel");
		
			var h4 = document.getElementById('h4-title');
			h4.innerHTML = "ROOM FOR YOUR RESERVATION";
			h4.style.margin="0";
			h4.style.paddingBottom="12px";
			h4.style.paddingTop="12px";
			h4.style.textTransform="uppercase";
			all = document.getElementById('message-box');
			all.style.backgroundImage="none";
			spanTitle = document.getElementById('pseudoMember');
	
			divall = document.getElementById('divall');
			if(divall){divall.parentNode.removeChild(divall);}
			
			divcanevas = document.getElementById('map_canvas');//map-canvas
			if(divcanevas){divcanevas.parentNode.removeChild(divcanevas);}
			
			if(spanTitle){
			spanTitle.innerHTML = '';
			}
			
			inputButtonClose = document.createElement('a');
			var oTxt5 = document.createTextNode("CLOSE");
			inputButtonClose.appendChild(oTxt5);
			var img = document.createElement('img');
			img.src="images/close.png";
			img.setAttribute('id', 'btn-close-fly');
			inputButtonClose.appendChild(img);
			inputButtonClose.setAttribute('href', 'javascript:void(0)');
			inputButtonClose.onclick = function() {hideModal();};
			inputButtonClose.setAttribute('id', 'btn-close-fly');
			inputButtonClose.setAttribute('class','btn-close');
			inputButtonClose.setAttribute('className','btn-close');
			inputButtonClose.style.height="25px";
	
			divall = document.createElement('div');
			divall.setAttribute('id','divall');
			divmiddle = document.createElement('div');
			divmiddle.setAttribute('id','divmiddle');
			var image = document.createElement('img');
			var id = document.getElementById('search-hotels').selroom.value;
			image.src="imgKeys?id="+id;
			image.setAttribute('alt','Keys');
			image.setAttribute('title','Keys');			

			divmiddle.style.padding="10px";
			divmiddle.style.backgroundColor="white";
			divmiddle.style.color="#333";
			divmiddle.style.fontSize="12px";
			divmiddle.style.padding="25px";
			divmiddle.style.textAlign="center";
			var message = document.createTextNode("You have choosen the room ");
			var message1 = document.createTextNode(Obj);
			var sp = document.createElement('div');
			
			sp.style.color="#d00";
			sp.style.fontSize="15px";
			sp.style.fontWeight="bold";
			//sp.appendChild(message1);
			
			

			
			

			var from = document.getElementById('search-hotels').checkin.value;
			var to = document.getElementById('search-hotels').checkout.value;
			message2 = document.createTextNode("From ");
			message3 = document.createTextNode(from);
			message4 = document.createTextNode(" to ");
			message5 = document.createTextNode(to);
			
			var sp1 = document.createElement('span');
			var sp2 = document.createElement('span');
			var sp3 = document.createElement('span');
			var sp4 = document.createElement('span');
			
			sp2.style.color="#d00";
			sp2.style.fontSize="15px";
			sp2.style.fontWeight="bold";
			sp4.style.color="#d00";
			sp4.style.fontSize="15px";
			sp4.style.fontWeight="bold";			
			
			sp1.appendChild(message2);
			sp2.appendChild(message3);
			sp3.appendChild(message4);
			sp4.appendChild(message5);
			
			var br = document.createElement('br');
			
			
			
			divmiddle.appendChild(message);
			br = document.createElement('br');
			divmiddle.appendChild(br);
			divmiddle.appendChild(br);
			divmiddle.appendChild(image);

			divmiddle.appendChild(sp);
			divmiddle.appendChild(br);
			divmiddle.appendChild(message2);
			divmiddle.appendChild(sp1);
			divmiddle.appendChild(sp2);
			divmiddle.appendChild(sp3);
			divmiddle.appendChild(sp4);
			
			divclose = document.createElement('div');
			divclose.setAttribute('id','divclose');
			divclose.style.color="#97e7de";
			divclose.style.padding="10px";
			divclose.appendChild(inputButtonClose);
			
			divall.appendChild(divmiddle);
			divall.appendChild(divclose);
			divall.style.height ="auto";
			
			all = document.getElementById('message-box');
			all.appendChild(divall);


			var dim = (window.pageYOffset + 200);
			document.getElementById("message-box").style.top = dim +"px";

			
			
			
	}
		
	if(which == "show_map"){

			var y = event.clientY;	
			var z = document.getElementById('all').offsetHeight;
			
			var h = document.createTextNode("Dili Beach Hotel");
		
			var h4 = document.getElementById('h4-title');
			//h4.innerHTML = "MAP TO ACCESS THE "+ h;
			h4.style.marginBottom="0";
			h4.style.paddingBottom="19px";
			h4.style.textTransform="uppercase";
			all = document.getElementById('message-box');
			all.style.width="650px";
			all.style.marginLeft="-320px";
			spanTitle = document.getElementById('pseudoMember');
	
			divall = document.getElementById('divall');
			if(divall){divall.parentNode.removeChild(divall);}
			
			divcanevas = document.getElementById('map_canvas');//map-canvas
			if(divcanevas){divcanevas.parentNode.removeChild(divcanevas);}
			
			if(spanTitle){
			spanTitle.innerHTML = '';
			}
			
			inputButtonClose = document.createElement('a');
			var oTxt5 = document.createTextNode("CLOSE");
			inputButtonClose.appendChild(oTxt5);
			var img = document.createElement('img');
			img.src="images/close.png";
			img.setAttribute('id', 'btn-close-fly');
			inputButtonClose.appendChild(img);
			inputButtonClose.setAttribute('href', 'javascript:void(0)');
			inputButtonClose.onclick = function() {hideModal();};
			inputButtonClose.setAttribute('id', 'btn-close-fly');
			inputButtonClose.setAttribute('class','btn-close');
			inputButtonClose.setAttribute('className','btn-close');
			inputButtonClose.style.height="25px";
	
			divall = document.createElement('div');
			divall.setAttribute('id','divall');
			divmiddle = document.createElement('div');
			divmiddle.setAttribute('id','divmiddle');
			divmiddle.style.padding="10px";
			divmiddle.style.backgroundColor="white";
			
			var mapping = document.createElement('div');
			mapping.setAttribute('id','map_canvas');
			mapping.style.height="300px";
			mapping.style.width="450px";
			mapping.style.color="#333";
			mapping.style.border="1px solid green";
			divmiddle.appendChild(mapping);

			var image = 1;
			divright = document.createElement('div');
			divright.setAttribute('id','divright');
			var imgright = document.createElement('img');
			imgright.src="photos/1/map-img.jpg";
			imgright.style.marginLeft="10px";
			imgright.setAttribute('id', 'btn-close-fly');
			divright.appendChild(imgright);
			br = document.createElement('br');
			divright.appendChild(br);
			var bottomTxt = document.createElement('div');
			bottomTxt.style.marginRight="3px";
			bottomTxt.style.marginLeft="442px";
			bottomTxt.style.lineHeight="17px";

			bottomTxt.style.color="#333";
			
			var ultxt = document.createElement('ul');
			ultxt.setAttribute('id', 'ul-map');
			ultxt.style.marginLeft="0px";
			var litxt = document.createElement('li');
			var oTxt9 = document.createTextNode("We provide comfort");
			litxt.appendChild(oTxt9);
			ultxt.appendChild(litxt);
			var oTxt10 = document.createTextNode("Friendly athmosphere");
			var litxt1 = document.createElement('li');
			litxt1.appendChild(oTxt10);
			ultxt.appendChild(litxt1);
			var oTxt11 = document.createTextNode("The swimming pool");
			var litxt2 = document.createElement('li');
			litxt2.appendChild(oTxt11);
			ultxt.appendChild(litxt2);
			var oTxt12 = document.createTextNode("Internet WiFi");
			var litxt3 = document.createElement('li');
			litxt3.appendChild(oTxt12);
			ultxt.appendChild(litxt3);
			var oTxt13 = document.createTextNode("Generous breakfast");
			var litxt4 = document.createElement('li');
			litxt4.appendChild(oTxt13);
			ultxt.appendChild(litxt4);
			var oTxt14 = document.createTextNode("Room service");
			var litxt5 = document.createElement('li');
			litxt5.appendChild(oTxt14);
			ultxt.appendChild(litxt5);
			var oTxt15 = document.createTextNode("Very easy access");
			var litxt6 = document.createElement('li');
			litxt6.appendChild(oTxt15);
			ultxt.appendChild(litxt6);
			var oTxt16 = document.createTextNode("And much more...");
			var litxt7 = document.createElement('li');
			litxt7.appendChild(oTxt16);
			ultxt.appendChild(litxt7);
			
			bottomTxt.appendChild(ultxt);
			divright.appendChild(bottomTxt);
			divmiddle.appendChild(divright);
			
			divclr = document.createElement('div');
			divclr.style.clear="left";
			divmiddle.appendChild(divclr);
			divclose = document.createElement('div');
			divclose.setAttribute('id','divclose');
			divclose.style.color="#97e7de";
			divclose.style.padding="10px";
			divclose.appendChild(inputButtonClose);
			
			divall.appendChild(divmiddle);
			divall.appendChild(divclose);
			divall.style.height ="auto";
			
			all = document.getElementById('message-box');
			all.appendChild(divall);

			initialize();

			var dim = (window.pageYOffset + 200);
			document.getElementById("message-box").style.top = dim +"px";

	}
		
		
	if(which == "display_video"){
		
			var y = event.clientY;	
			var z = document.getElementById('all').offsetHeight;
			
			var h4 = document.getElementById('h4-title');
			h4.setAttribute('class','h4-title-video');
			h4.setAttribute('className','h4-title-video');
			h4.style.backgroundImage= 'url(../images/bg-video.png)';
			all = document.getElementById('message-box');
			spanTitle = document.getElementById('pseudoMember');
	
			divall = document.getElementById('divall');
			if(divall){divall.parentNode.removeChild(divall);}
	
			if(spanTitle){
			spanTitle.innerHTML = '';
			}
	
			divall = document.createElement('div');
			divmiddle = document.createElement('div');
			
			divclose = document.createElement('div');
			table = document.createElement('table');
			formulaire = document.createElement('form');
	
			divall.setAttribute('id','divall');
			divmiddle.setAttribute('id','divmiddle');
			video = document.createElement('div');
			video.setAttribute('id','FlabellComponent');
			divmiddle.appendChild(video);
			divclose.setAttribute('id','divclose');
			divclose.style.color="#97e7de";

			inputButtonClose = document.createElement('a');
			var oTxt5 = document.createTextNode("CLOSE");
			inputButtonClose.appendChild(oTxt5);
			var img = document.createElement('img');
			img.src="images/close.png";
			img.setAttribute('id', 'btn-close-fly');
			inputButtonClose.appendChild(img);
			inputButtonClose.setAttribute('href', 'javascript:void(0)');
			inputButtonClose.onclick = function() {hideModal();};
			inputButtonClose.setAttribute('id', 'btn-close-fly');
			inputButtonClose.setAttribute('class','btn-close');
			inputButtonClose.setAttribute('className','btn-close');
			inputButtonClose.style.height="25px";
			
			var vid = document.getElementById('videoid');

			var s1 = new SWFObject("http://www.timor-hotels.com/Flash/player.swf","player","420","275","9");
			s1.addParam("allowfullscreen","true");
			s1.addParam("wmode","transparent");
			s1.addVariable("width","424");
			s1.addVariable("height","275");
			s1.addVariable("autostart","true");
			s1.addVariable("streamscript","lighttpd");
			s1.addVariable("skin", "http://www.timor-hotels.com/Flash/stijl.swf");
			s1.addVariable("file",'http://127.0.0.1:85/hotels/'+vid.value+'/1.flv');
			
		
			divall.appendChild(divmiddle);
			divclose.appendChild(inputButtonClose);
			divclr = document.createElement('div');
			divclr.style.clear="right";
			divclose.appendChild(divclr);
			divall.appendChild(divclose);
			
			all = document.getElementById('message-box');
			all.appendChild(divall);
			
			var y = event.clientY;	
			var z = document.getElementById('all').offsetHeight;

			var dim = (window.pageYOffset + 200);
			document.getElementById("message-box").style.top = dim +"px";	
			s1.write("FlabellComponent");
	}

	if(which == "display_video"){
		
			var y = event.clientY;	
			var z = document.getElementById('all').offsetHeight;
			
			var h4 = document.getElementById('h4-title');
			h4.setAttribute('class','h4-title-video');
			h4.setAttribute('className','h4-title-video');
			h4.style.backgroundImage= 'url(../images/bg-video.png)';
			all = document.getElementById('message-box');
			spanTitle = document.getElementById('pseudoMember');
	
			divall = document.getElementById('divall');
			if(divall){divall.parentNode.removeChild(divall);}
	
			if(spanTitle){
			spanTitle.innerHTML = '';
			}
	
			divall = document.createElement('div');
			divmiddle = document.createElement('div');
			
			divclose = document.createElement('div');
			table = document.createElement('table');
			formulaire = document.createElement('form');
	
			divall.setAttribute('id','divall');
			divmiddle.setAttribute('id','divmiddle');
			video = document.createElement('div');
			video.setAttribute('id','FlabellComponent');
			divmiddle.appendChild(video);
			divclose.setAttribute('id','divclose');
			divclose.style.color="#97e7de";

			inputButtonClose = document.createElement('a');
			var oTxt5 = document.createTextNode("CLOSE");
			inputButtonClose.appendChild(oTxt5);
			var img = document.createElement('img');
			img.src="images/close.png";
			img.setAttribute('id', 'btn-close-fly');
			inputButtonClose.appendChild(img);
			inputButtonClose.setAttribute('href', 'javascript:void(0)');
			inputButtonClose.onclick = function() {hideModal();};
			inputButtonClose.setAttribute('id', 'btn-close-fly');
			inputButtonClose.setAttribute('class','btn-close');
			inputButtonClose.setAttribute('className','btn-close');
			inputButtonClose.style.height="25px";
			
			var vid = document.getElementById('videoid');

			var s1 = new SWFObject("http://www.dili-beach-hotel.com/Flash/player.swf","player","420","275","9");
			s1.addParam("allowfullscreen","true");
			s1.addParam("wmode","transparent");
			s1.addVariable("width","424");
			s1.addVariable("height","275");
			s1.addVariable("autostart","true");
			s1.addVariable("streamscript","lighttpd");
			s1.addVariable("skin", "http://www.dili-beach-hotel.com/Flash/stijl.swf");
			s1.addVariable("file",'http://127.0.0.1:85/DiliBeach/'+vid.value+'/1.flv');
			
		
			divall.appendChild(divmiddle);
			divclose.appendChild(inputButtonClose);
			divclr = document.createElement('div');
			divclr.style.clear="right";
			divclose.appendChild(divclr);
			divall.appendChild(divclose);
			
			all = document.getElementById('message-box');
			all.appendChild(divall);
			
			var y = event.clientY;	
			var z = document.getElementById('all').offsetHeight;

			var dim = (window.pageYOffset + 200);
			document.getElementById("message-box").style.top = dim +"px";	
			s1.write("FlabellComponent");
	}
	
			document.getElementById('gray_out').style.height = z+"px";

			var modalBox = document.getElementById("modalBox");
			modalBox.style.display = 'block';
	
}

function hideModal()
{
			var modalBox = document.getElementById("modalBox");
			modalBox.style.display = '';
}		
		




function checkFields(){

		var arr = document.getElementById("search-hotels").checkin.value;
		var dep = document.getElementById("search-hotels").checkout.value;
		var chi = document.getElementById("search-hotels").children.value;
		var adu = document.getElementById("search-hotels").adults.value;
		var roo = document.getElementById("search-hotels").rooms.value;
		var ro1 = document.getElementById("search-hotels").room.value;
		var ch1 = document.getElementById("search-hotels").btndropdown1;
		//var ch2 = document.getElementById("search-hotels").btndropdown2;
		var ch3 = document.getElementById("search-hotels").btndropdown3;
		var ch4 = document.getElementById("search-hotels").btndropdown4;
		var ch5 = document.getElementById("search-hotels").btndropdown5;

		
			        if( ch1.checked == false && ch3.checked == false && ch4.checked == false && ch5.checked == false ){
			                alert("You must choose a type of room!");
			        return false;
			        } 
		
		
			if(arr != "" && dep != ""  && chi != ""  && adu != ""  && roo != ""  && ro1 != "" )
			{
				document.getElementById("search-hotels").submit();
				return true;
			}else{			        
				alert("All fields MUST be filled!");
				return false;
			}
}

function checkFieldsToSend(){
		var nam = document.getElementById("search-hotel").name.value;
		var add = document.getElementById("search-hotel").address.value;
		var mai = document.getElementById("search-hotel").email.value;
		var cit = document.getElementById("search-hotel").city.value;
		var cou = document.getElementById("search-hotel").country.value;
		
			if(nam != "" && add != ""  && mai != ""  && cit != ""  && cou != "" )
			{
				document.forms['sendResForm'].submit();
				return true;
			}else{
				alert("All fields MUST be filled!");
				return false;
			}

}

function updateRooms(id){

		var url = "updateRooms.php?id="+id;
		var ajax = new AJAXInteraction(url, UpdateCallback);
		ajax.doGet();
		
}

function UpdateCallback(responseXML){

  if(responseXML){
  	  		
  	  var fees = responseXML.getElementsByTagName("Gtotal")[0];

  	  if(fees.childNodes.length > 0){
		  var ans = fees.getElementsByTagName("total")[0];
		  var ans1 = ans.childNodes[0].nodeValue.split('|');
		  var answer = ans1[0];
		  var rented = ans1[1];
		  var ansimg = ans1[2];
	
		  if(rented == '1'){
			  if(ansimg == 101 || ansimg == 102 || ansimg == 103 || ansimg == 104 || ansimg == 105 || ansimg == 106 || ansimg == 107 ){
			  document.getElementById('image'+ansimg).src='images/N_red.png';
			  }else if(ansimg == 110 || ansimg == 111 || ansimg == 112 || ansimg == 113 ){
			  document.getElementById('image'+ansimg).src='images/L_red.png';	   	  
			  }else{
			  document.getElementById('image'+ansimg).src='images/red.png';
			  }
		  }else{
			  if(ansimg == 101 || ansimg == 102 || ansimg == 103 || ansimg == 104 || ansimg == 105 || ansimg == 106 || ansimg == 107 ){
			  document.getElementById('image'+ansimg).src='images/N_green.png';
			  }else if(ansimg == 110 || ansimg == 111 || ansimg == 112 || ansimg == 113 ){
			  document.getElementById('image'+ansimg).src='images/L_green.png';
			  }else{
			  document.getElementById('image'+ansimg).src='images/green.png';
			  }
		  }
		  alert(answer);
	  }

  }

}

function CheckAvailable(){
	
	var arrival = document.getElementById("search-hotels").checkin.value;
	var departure = document.getElementById("search-hotels").checkout.value;
	
	if(arrival!= '' && departure != '' && arrival!= 'Arrival' && departure != 'Departure' ){
	
		var url = "checkAvailability.php?arr="+arrival+'&dep='+departure;
		var ajax = new AJAXInteraction(url, CheckDatesCallback);
		ajax.doGet();
	
	}else{
	
		alert('You must enter the dates of arrival and departure');
	
	}

}

function CheckDatesCallback(responseXML){
	  if(responseXML){
	var fees = responseXML.getElementsByTagName("Gtotal")[0];
  	  if(fees.childNodes.length > 0){
		  var ans = fees.getElementsByTagName("total")[0];
		  var ans1 = ans.childNodes[0].nodeValue.split('|');
	  }
	  	window.location.href='available.php';
	  }
}
function selRoom(id, Obj, event){

	document.getElementById('search-hotels').selroom.value=id;
	if(id.length == 1){var newId = '0'+id;}else{newId = id;}
	showModal('messageRoom', newId, event);

}


function checkDatesFields(){
	
	var cin = document.getElementById('search-hotels').checkin.value;
	var cout = document.getElementById('search-hotels').checkout.value;
	
	if(cin == "" || cout == "" || cin == "Arrival" || cout == "Departure" ){
		alert("ERROR : The Arrival and Departure fields MUST be filled ");
	}else{
		window.location.href='available';
	}
}



















