/*
JavaScript Document
Place functions within this document
Call functions within the dom ready in the html page 
*/

window.addEvent('domready', function() {
	DropDowns();
/*
$each($$('select.select_dropdown'), function(MenuNav){
		$(MenuNav.id).addEvent('change', function(e){
			window.location.href=("/" + MenuNav.id + "/" + MenuNav.value);
		});
	});
*/
});

function GetWebcamImage() {
};


function DropDowns() {
	$each($$('select.select_dropdown'), function(MenuNav){
		$(MenuNav.id).addEvent('change', function(e){
			window.location.href=("/" + MenuNav.id + "/" + MenuNav.value);
		});
	});
}


function SurfReport() {
		$('SurfReport').addEvent('submit', function(e) {
		//Prevents the default submit event from loading a new page.
		e.stop();
		//Empty the log and show the spinning indicator.
		var log = $('SurfReportResponse').empty().addClass('ajax-loading');
		//Set the options of the form's Request handler. 
		//("this" refers to the $('myForm') element).
		this.set('send', {onComplete: function(response) { 
			log.removeClass('ajax-loading');
			log.set('html', response);
		}});
		//Send the form.
		this.send();
		});
	
}