var iframe = function(  ) {
	return {
		start_height : '300',
		min_height : '600',
		el_id : 'map_container',
		el : '',
		nav_id : 'navigation',
		nav_el : '',
		nav_height : '',
		footer_id : 'footer',
		footer_el : '',
		foot_height : '',
		padding : '70',
		init : function(  ) {
			// iframe.el				= $(iframe.el_id);
			// 
			// iframe.nav_el			= $(iframe.nav_id);
			// iframe.nav_height		= iframe.nav_el.getStyle('height').toInt();
			// 
			// iframe.footer_el		= $(iframe.footer_id);
			// iframe.footer_height	= iframe.footer_el.getStyle('height').toInt();
			// 
			// window.addEvent('resize', iframe.resize_handler);
			// this.render();
		},
		
		render : function() {
			iframe.resize_handler();
		},
		
		resize_handler : function() {
			var temp_coords = window.getCoordinates();
			
			iframe.setCoords(temp_coords);
			iframe.resize_iframe();
		},
		
		resize_iframe : function() {
			var temp_coords 		= iframe.getCoords();
			var win_width			= temp_coords.width;
			var win_height			= temp_coords.height;
			var temp_iframe_height	= win_height - iframe.nav_height - iframe.footer_height - iframe.padding;
			
			if(temp_iframe_height < iframe.min_height) temp_iframe_height = iframe.min_height;
			
			iframe.el.setStyle('height', temp_iframe_height + 'px');
		},
		
		getCoords : function() {
			return iframe.coords;
		},
		
		setCoords : function(coords) {
			iframe.coords = coords;
		}
	}
}();
