/**
 * Set iFrame height
 * @return nothing
 */
function esSetIFrameHeight() {
	var hght = $(window).height() - $('#esOsmToolbar').height() - $('#footer').height();
	$('#esOsmIframe').css('height',hght);
}
/**
 * onLoad Handler
 */
$(document).ready(function(){
	// Get the weather when the document is finished loading
	$.ajax({
	   type: "GET",
	   url: dataUrl+"getweatherFwix",
	   data: "zip="+osmZipCode,
	   success: function(msg){
		wdata = msg.split("|");
		weatherData = "<img class='osmWIcon' src='"+top.location.protocol+"//dev.portal.onsiteconcierge.com/images/weather/"+wdata[4]+"_t.png'/>\n";
		weatherData += "<div id='esOsmWeatherText'>"+wdata[0]+"&deg; F</div>\n";
		document.getElementById("esOsmWeather").innerHTML = weatherData;
	   }
	 });
	// Set the height of the content frame
	esSetIFrameHeight();
	// Enable enter key behavior for URL bar
	$('#webaddress').keyup(function(event){
		if( event.keyCode == 13) {
			changeBottomFrame();
		}
	});
});
