function expeditionPageLoadEvent(){

	//REGISTER VARIABLES
	var parent = document.getElementById("focus-parent");
	var mapBtn = document.getElementById("expedition-map");
	var mapParent = document.getElementById("map");
	var mapImg = document.getElementById("map-img");
	var mapW = 700;
	var mapH = 400;
	var marker = document.getElementById("marker");
	var isLoaded = false;
	var pid = document.getElementById("expedition-map").getElementsByTagName("a")[0].rel;	
	
	//INIT MARKER LOCATION
	marker.style.left = mapData[pid].m.x + "px";
	marker.style.top = mapData[pid].m.y + "px";
	

	//INIT MAP IMAGE PROPERTIES
	mapImg.style.left = parent.offsetLeft + mapBtn.offsetLeft + mapData[pid].m.x + "px";
	mapImg.style.top = parent.offsetTop + mapBtn.offsetTop + mapData[pid].m.y + "px";
	mapImg.getElementsByTagName("img")[0].src = baseImgPath + mapData[pid].r;
			
	
	//REGISTER EVENTS
	mapBtn.onclick = mapBtnEvt;
	mapBtn.onmouseover = mapBtnEvt;
	mapBtn.onmouseout = mapBtnEvt;
	mapParent.onclick = mapParentEvt;
	
	
	//MAP EVENTS
	function mapParentEvt(){
		var e = arguments[0] || window.event;
		
		if(e.type == "click"){
			e.cancelBubble = true;
				
		}
	
	}
	
	
	//MAP BTN EVENTS
	function mapBtnEvt(){
		var e = arguments[0] || window.event;
		var liveW = (window.innerWidth) ? window.innerWidth : document.body.clientWidth;
		var liveH = (window.innerHeight) ? window.innerHeight : document.body.clientHeight;
		var mapX = (liveW / 2) - (mapW / 2);
		var mapY = (liveH / 2) - (mapH /2);
			
			
		if(e.type == "mouseover"){
			this.style.backgroundPosition = "-212px 0";
			this.style.cursor = "pointer";
			this.getElementsByTagName("a")[0].style.color = "#a32e00";
											
		}
		
		//::
		
		if(e.type == "mouseout"){
			this.style.backgroundPosition = "0 0";
			this.getElementsByTagName("a")[0].style.color = "#000";
											
		}
		
		//::
	
		if(e.type == "click"){
			this.onclick = null;
					
		
			//DECLARE INTERVAL VARIABLES
			var motionType = "cubicEaseOut";
			var duration = 30;
			var fps = 500;
													
			
			//SET MAP WIDTH
			var a = new Interval();
			a.res = function(){
				if(arguments[0] != "END"){
					mapImg.style.width = arguments[0] + "px";
				
				}
				
			};
			a.setFPS(fps);
			a.setDuration(duration);
			a.setDisplaceMag(mapW);
			a.setMotionType(motionType);
			a.startInterval();
			
			
			//SET MARKER HEIGHT
			var b = new Interval();
			b.res = function(){
				if(arguments[0] != "END"){
					mapImg.style.height = arguments[0] + "px";
				
				}
				
			};
			b.setFPS(fps);
			b.setDuration(duration);
			b.setDisplaceMag(mapH);
			b.setMotionType(motionType);
			b.startInterval();
			
			
			//SET MARKER LEFT POSITION
			var c = new Interval();
			c.res = function(){
				if(arguments[0] != "END"){
					mapImg.style.left = arguments[0] + "px";
				
				}
				
			};
			c.setFPS(fps);
			c.setOffset(mapImg.offsetLeft);
			c.setDuration(duration);
			c.setDisplaceMag(mapX - mapImg.offsetLeft);
			c.setMotionType(motionType);
			c.startInterval();
			
			
			//SET MAP TOP POSITION
			var d = new Interval();
			d.res = function(){
				if(arguments[0] != "END"){
					mapImg.style.top = arguments[0] + "px";
				
				}
				
			};
			d.setFPS(fps);
			d.setOffset(mapImg.offsetTop);
			d.setDuration(duration);
			d.setDisplaceMag(mapY + $getViewportScrollY() - mapImg.offsetTop);
			d.setMotionType(motionType);
			d.startInterval();
			
							
			//CHANGES MAP OPACITY
			var e = new Interval();
			e.res = function(){
				if(arguments[0] == "END"){
					mapParent.style.display = "block";
					mapParent.style.top = mapY + $getViewportScrollY() + "px";
					mapParent.style.left = mapX + "px";
					mapParent.style.visibility = "visible";
					mapImg.style.display = "none";
					document.getElementsByTagName("body")[0].onclick = bodyEvt;
								
				}else{
					if(isIE){
						mapImg.style.filter = "alpha(opacity=" + arguments[0] + ")";
														
					}else{
						mapImg.style.opacity = arguments[0] / 100;
					
					}
												
				}
					
			};
			e.setFPS(fps);
			e.setDuration(duration);
			e.setDisplaceMag(100);
			e.setMotionType(motionType);
			e.startInterval();
										
		}
				
	}
		
	
	//BODY EVENTS			
	function bodyEvt(){
		var e = arguments[0] || window.event;
		
		
		if(e.type == "click"){
			this.onclick = null;
			map.closeInfoWindow();
			map.setCenter(new GLatLng(mapData[pid].d.lat, mapData[pid].d.lng), mapData[pid].d.zoom);
			mapParent.style.visibility = "hidden";
			mapParent.style.display = "none";
			mapImg.style.display = "block";
						
			
			//DECLARE INTERVAL VARIABLES
			var motionType = "cubicEaseOut";
			var duration = 30;
			var fps = 500;
			
			
			//SETS MAP WIDTH
			var a = new Interval();
			a.res = function(){
				if(arguments[0] != "END"){
					mapImg.style.width = arguments[0] + "px";
				
				}
				
			};
			a.setFPS(fps);
			a.setOffset(mapImg.offsetWidth);
			a.setDuration(duration);
			a.setDisplaceMag(marker.offsetWidth - mapImg.offsetWidth);
			a.setMotionType(motionType);
			a.startInterval();
			
			
			//SET MAP HEIGHT
			var b = new Interval();
			b.res = function(){
				if(arguments[0] != "END"){
					mapImg.style.height = arguments[0] + "px";
				
				}
				
			};
			b.setFPS(fps);
			b.setOffset(mapImg.offsetHeight);
			b.setDuration(duration);
			b.setDisplaceMag(marker.offsetHeight - mapImg.offsetHeight);
			b.setMotionType(motionType);
			b.startInterval();
			
			
			//SET MAP LEFT
			var c = new Interval();
			c.res = function(){
				if(arguments[0] != "END"){
					mapImg.style.left = arguments[0] + "px";
				
				}
				
			};
			c.setFPS(fps);
			c.setOffset(mapImg.offsetLeft);
			c.setDuration(duration);
			c.setDisplaceMag(parent.offsetLeft + mapBtn.offsetLeft + marker.offsetLeft - mapImg.offsetLeft);
			c.setMotionType(motionType);
			c.startInterval();
					
						
			//SET MAP TOP
			var d = new Interval();
			d.res = function(){
				if(arguments[0] != "END"){
					mapImg.style.top = arguments[0] + "px";
				
				}
				
			};
			d.setFPS(fps);
			d.setOffset(mapImg.offsetTop);
			d.setDuration(duration);
			d.setDisplaceMag(parent.offsetTop + mapBtn.offsetTop + marker.offsetTop - mapImg.offsetTop);
			d.setMotionType(motionType);
			d.startInterval();
			
							
			//SET MAP OPACITY
			var e = new Interval();
			e.res = function(){
				if(arguments[0] == "END"){
					mapBtn.onclick = mapBtnEvt;
																										
				}else{
					if(isIE){
						mapImg.style.filter = "alpha(opacity=" + arguments[0] + ")";
						
					}else{
						mapImg.style.opacity = arguments[0] / 100;
					
					}
													
				}
					
			};
			e.setFPS(fps);
			e.setOffset(100);
			e.setDuration(duration);
			e.setDisplaceMag(-100);
			e.setMotionType(motionType);
			e.startInterval();
		
		}
											
	}

}