	
		
		// Used for 'photos' select navigation
		function gophotos(obj)
		{
			box = obj.parentNode.parentNode.photnav;
			destination = box.options[box.selectedIndex].value;

 			location.href = "photo.asp?photokey="+destination;
 			
		}
		
		
		// Used for 'newsletters' select navigation
		function gonews(obj)
		{
			box = obj.parentNode.parentNode.newsnav;
			destination = box.options[box.selectedIndex].value;

 			location.href = "newsletters.asp?articlekey="+destination;
		}

		
		// Swaps an image based on the image name
		function swapImage(obj) {
			
			// Setup variables
			var arrImg = document.images;
			var tempVar;
			
			// If the default image
			if ((obj.src.indexOf('_0') >0 )) {
				
				// Replace it with the new image
				obj.src = obj.src.replace('_0', '_1');
				
				// If a main nav image
				if ((obj.src.indexOf('mm_') > 0)) {
					
					// For all images
					for (var i = 0; i< document.images.length; i++) {
						
						// If the image is the icon
						if (document.images[i].src.indexOf('icon') > 0) {
							
							// Replace the image with the new one
							document.images[i].src = '/images/icon'+obj.alt+'.jpg';			
						}
					}
				}
			} else {
				
				obj.src = obj.src.replace('_1', '_0');	
				
				if ((obj.src.indexOf('mm_') > 0)) {
					for (var i = 0; i< document.images.length; i++) {
						if (document.images[i].src.indexOf('icon') > 0) {
						document.images[i].src = '/images/icon.jpg';			
						}
					}
				}
			}
		}


		function preloadImage(obj) {
			imgTmp=new Image();
		  	imgTmp.src=obj.src.replace('_0', '_1');
		}


		function preload() {
			var preloadcount=18;
			var imgarr = document.images;
			for (var i = 0; i < imgarr.length; i++) {
				
				if (imgarr[i].src.indexOf('_0.') > 0) {
					preloadImage(imgarr[i]);
					imgarr[i].onmouseover=function(){swapImage(this)};
					imgarr[i].onmouseout=function(){swapImage(this)};
				}
			}
		}
		
		
		// Execute functions on load
		window.onload=function(){
			preload();
		}
		
