var loadMessage = '<h2 class="country-header">Finding the Hotels for you...</h2>';
var headerVisible = true;
var FF; if (navigator.userAgent.indexOf("Firefox")!=-1){FF=true;}

function kill_focus(obj) {
	obj.blur();
	$('unfocus').focus();
}

function get_content(state,city)
{
	new Ajax.Request('get-content.php',
	{
		method:'get',
		parameters: {state: state, city: city},
		onSuccess: function(transport){
		  var response = transport.responseText;
		$('title_bar').innerHTML = city;
	  	$('result').innerHTML = response;
		},
		onFailure: function(){$('result').innerHTML = '<h2>Error connecting to server</h2>';}
	});	
}
function get_city(state)
{
	new Ajax.Request('get-city.php',
	  {
		method:'get',
		parameters: {state: state},
		onSuccess: function(transport){
		  var response = transport.responseText || "No content for this category";
		  $('city').innerHTML = response;
		  
		},
		onFailure: function(){$('city').innerHTML = '<h2>Error connecting to server</h2>';}
	  });
}
function get_city2(state)
{
	new Ajax.Request('get-city2.php',
	  {
		method:'get',
		parameters: {state: state},
		onSuccess: function(transport){
		  var response = transport.responseText || "No content for this category";
		  $('city').innerHTML = response;
		  
		},
		onFailure: function(){$('city').innerHTML = '<h2>Error connecting to server</h2>';}
	  });
}
function loadImage(propID) {
var thumb = propID.toString()
$(thumb).setStyle({display:'block'});
//Effect.Appear(thumb, { duration: 0.5 });
}

function unLoadImage(propID) {
var thumb = propID.toString()
$(thumb).setStyle({display:'none'});
//Effect.Fade(thumb, { duration: 0.2 });
}

function photoPopup(propID) {
	window.open('http://www.starwoodhotels.com/preferredguest/property/photos/popup.html?propertyID='+propID,'photosPopUp','width=600,height=416,resizable=no,scrollbars=no,status=no');
}

