function MiniMapBoxClass () {
	// Initialise Variables
	var map;
	
	this.init = function() {
		
		// Prepare Map-Container
		htmlString = "<div id='" + this.id + "Map' class='miniMapInt'></div>";
				
		// Fill Map-Container
		document.getElementById(this.id).innerHTML = htmlString;
		
		if(this.latitude && this.longitude) {
			this.loadMap();
		} else {
			// Load Coords
			this.loadMapCoords();
		}

	}

	this.loadMapCoords = function() {
		jsonGetData('json/maps/getMapCoords.php?boxId=' + this.boxId, this.name + '.loadMapCoordsInt');	
	}
	
	this.loadMapCoordsInt = function(Object) {
		this.latitude = Object["XCoord"];
		this.longitude = Object["YCoord"];
		
		this.loadMap();
	}
	
	// Load Google-Maps
	this.loadMap = function() {

      if (GBrowserIsCompatible()) {
       
        map = new GMap2(document.getElementById(this.id + "Map"));
        map.setCenter(new GLatLng(this.latitude, this.longitude), 15);
 
		// Set Pointer
		var point = new GLatLng(this.latitude, this.longitude);
		
		var marker = new GMarker(point, {draggable: false});
		
        map.addOverlay(marker); 
        
        map.disableDragging();

      }
	}
}

function BigMapBoxClass () {
	// Initialise Variables
	var map;
	
	this.init = function() {
      if (GBrowserIsCompatible()) {
       
        map = new GMap2(document.getElementById(this.id));
        map.setCenter(new GLatLng(this.latitude, this.longitude), 15);
 
 		var topRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(20, 20));

		if(this.controls) {
			map.addControl(new GLargeMapControl(), topRight);
		}
 
		// Set Pointer
		var point = new GLatLng(this.latitude, this.longitude);
		
		var marker = new GMarker(point, {draggable: false});
		
        map.addOverlay(marker); 
      }
	}
}

function mapsMapsjs() {}
