// Common G I N T M  functions
	
	window.addEvent('unload',GUnload);
	
	var MapTypes = new Array("G_SATELLITE_MAP","G_NORMAL_MAP","G_PHYSICAL_MAP","G_MOON_VISIBLE_MAP","G_MARS_VISIBLE_MAP","G_MARS_INFRARED_MAP","G_SKY_VISIBLE_MAP");

	
	/*	TEXT STATEMENT BEHAVIOURS	*/
	var textStatement;
	
	function textStatementRresize() {
		if ((textStatement) && ($type(textStatement)=='element')) {
			textStatement.morph({
				'top':(window.getSize().y.toInt()-textStatement.getSize().y.toInt())/2+window.getScroll().y.toInt(),
				'left':(window.getSize().x.toInt()-textStatement.getSize().x.toInt())/2+window.getScroll().x.toInt()
			});
		}

	}
	window.addEvent('resize',textStatementRresize);
	window.addEvent('domready',function() {
			
		if ($('textStatement')) {
			textStatement = $('textStatement');
		
			$$('#textStatement').set('morph',{
				duration:300
			})
			.set('styles',{
				'top':(window.getSize().y.toInt()-$('textStatement').getSize().y.toInt())/2+window.getScroll().y.toInt(),
				'left':(window.getSize().x.toInt()-$('textStatement').getSize().x.toInt())/2+window.getScroll().x.toInt()
			});

		}
		
		$$('.gDirection').set('styles',{'opacity':.6})
		.set('events',{
		
			'mouseover':function() {
				this.fade(1)
			},
			'mouseout':function() {
				this.fade(.6)
			}
		
		})
		
		
			
	});
	/*	END TEXT STATEMENT BEHAVIOURS	*/
	
	
	
	
	
	/*var MapContainer = new Class({
		
		initialize:function(element,options) {
			
			this.options = {
				
			}
			$extend(this.options, options)
			
			if ($type(element)=='element') {
				this.mapContainer = element;
				
				
				
			}
			
			return this;
		},
		setFullScreenBehaviours:function() {
			
		},
		centerIntoScreen:function() {
			this.mapContainer.setStyles({
				left:(window.getSize().x.toInt()-this.mapContainer.getSize().x.toInt())/2,					
				top:(window.getSize().y.toInt()-this.mapContainer.getSize().y.toInt())/2						
			});
		}
		
		
	});*/
		