// JavaScript Document
	google.load("maps", "2.x");
    // Map & Pano delcarations
	    var map;
	    var myPano;   
	    var panoClient;
		var currentLatLng;
	    var currentYaw = 0;  
    
    // Field of view marker and icon declarations
	    var fovMarker; 
	    var fovIcon;
	    var iconSize = 150; 
	
	function handleInitialized(location) {
		currentLatLng = location.latlng;	
		placeFovMarker();			 
		return;	
	}
	function handleYawChange(yaw){
		currentYaw = Math.round(yaw);
		placeFovMarker();
		return;
	}
	function placeFovMarker(){
		map.removeOverlay(fovMarker);
        // we need to make sure we point in the right direction...   this is freakin slow tho
		fovIcon.image = "http://www.minorgods.com/fov.php5?yaw="+currentYaw+"&rand="+Math.random();	
		fovMarker = new google.maps.Marker(currentLatLng, {icon: fovIcon, clickable: false});
		map.addOverlay(fovMarker);
		return;
	}
