/* == oeSis.js - file js per funzioni interne == */

jQuery(document).ready(function() {
	jQuery('.oeNoGo').click(function (e) {
		e.preventDefault();
	});


	jQuery('#doMeo').click( function() {
		jQuery('#boxVediRef').toggle();
	});
	jQuery('#boxVediRef').show();
	jQuery('#aaa').click(function (e) {
		e.preventDefault();
		alert("aaa");
	});


});


function geoCapable() {
	if ( navigator.geolocation ) {
		return true;
	} else {
		return false;
	}
}


function getPosition() {
	if (!navigator.geolocation) {
		alert('Unfortunately, your browser does not support Geo Services');
	} else {
//		navigator.geolocation.getCurrentPosition(displayCoordinates);
		setTimeout( navigator.geolocation.getCurrentPosition(getReferenti), 5000);

		
		return false;
	}
}
function displayCoordinates(curPos) {
	var arrCoords = new Object;
	arrCoords.Latitude  = curPos.coords.latitude;
	arrCoords.Longitude = curPos.coords.longitude;
	alert('Your current coordinates are: Lat='+arrCoords.Latitude+',Longitude='+arrCoords.Longitude);
	return false;
	// return arrCoords;
}
