	
	function loadchosen(){
		var query = window.location.search;
		// Skip the leading ?, which should always be there,
		// but be careful anyway
		if (query.substring(0, 1) == '?') {
			query = query.substring(1);
		}
		var data = query.split(',');
		for (i = 0; (i < data.length); i++) {
			data[i] = unescape(data[i]);
		}
		for (i = 0; (i < data.length); i++) {
		//run the function
			
			if(data[i] != ""){
				//run the function
				showImageData(String(data[i]));
			}
		}
	}
	
	/*function hoverimg(imgData){
		imgData.className = "img";
	}
	
	function outimg(imgData){
		imgData.className = "img";
	}
	*/
	function executeimg(imgData){
		imgData.className = "imgactive";
		imgData.onmouseover=function(){};
		imgData.onmouseout=function(){};
	}
	
	
	
	function showImageData(idForDisplay){
		//Large Image
		var imgOne = document.getElementById('img_one'); 
		var imgTwo = document.getElementById('img_two');
		var imgThree = document.getElementById('img_three');
		
		// image Enlarge Button
		var oneEnlarge = document.getElementById('oneEnlarge');
		var twoEnlarge = document.getElementById('twoEnlarge');
		var threeEnlarge = document.getElementById('threeEnlarge');
		
		// image thumbs
		var oneimg = document.getElementById('oneimg');
		var twoimg = document.getElementById('twoimg');
		var threeimg = document.getElementById('threeimg');
		
		// Hide all large images
		imgOne.style.display = "none";
		imgTwo.style.display = "none";
		imgThree.style.display = "none";
		
		// Hide all Enlarge Buttons
		oneEnlarge.style.display = "none";
		twoEnlarge.style.display = "none";
		threeEnlarge.style.display = "none";
		
		// Turn all thumb images to default
		oneimg.className = "img_thumb_off";
		twoimg.className = "img_thumb_off";
		threeimg.className = "img_thumb_off";
		
		// Show correct large image, change status on thumb
		if (idForDisplay == "one"){	
			//imgOne.style.display = "block";
			oneEnlarge.style.display = "block";
			oneimg.className = "img_thumb_on";
		}else if(idForDisplay == "two"){
			//imgTwo.style.display = "block";
			twoEnlarge.style.display = "block";
			twoimg.className = "img_thumb_on";
		}else if(idForDisplay == "three"){
			//imgThree.style.display = "block";
			threeEnlarge.style.display = "block";
			threeimg.className = "img_thumb_on";
		}
 	}
	
	function showLargeImage(idForDisplay)
	{
		//var oneEnlarge = document.getElementById('oneEnlarge');
		
		var oneLRGimg = document.getElementById('oneLRGimg');
		var twoLRGimg = document.getElementById('twoLRGimg');
		var threeLRGimg = document.getElementById('threeLRGimg');
		
		//oneLRGimg.style.display = "none";
		//twoLRGimg.style.display = "none";
		//threeLRGimg.style.display = "none";
		
		if (idForDisplay == "one"){	
			//oneLRGimg.style.display = "block";
		}else if(idForDisplay == "two"){
			//twoLRGimg.style.display = "block";
		}else if(idForDisplay == "three"){
			//threeLRGimg.style.display = "block";
		}else if(idForDisplay == ""){
			
		}
		
	}

	$(function() {
		$("#img_one").show();
		$("#img_two").hide();
		$("#img_three").hide();
		
		$("#img_one").fadeTo("fast",1);
		$("#img_two").fadeTo("fast",0);
		$("#img_three").fadeTo("fast",0);
		
		$("#oneLRGimg").hide();
		$("#twoLRGimg").hide();
		$("#threeLRGimg").hide();
		//$("#bg").hide();
		$("#bg").fadeOut("fast");
	});


	$(document).ready(function(){
		
					
		 $("#A").click(function(){
			$("#img_one").fadeTo("slow",1);
			$("#img_one").show();
			$("#img_two").fadeTo("fast",0);
			$("#img_two").hide("fast");
			$("#img_three").fadeTo("fast",0);
			$("#img_three").hide("fast");
		});
		 
		 
		$("#B").click(function(){
			$("#img_one").fadeTo("fast",0);
			$("#img_one").hide("fast");
			$("#img_two").fadeTo("slow",1);
			$("#img_two").show();
			$("#img_three").fadeTo("fast",0);
			$("#img_three").hide("fast");
	
		});
		$("#C").click(function(){
			$("#img_one").fadeTo("fast",0);
			$("#img_one").hide("fast");
			$("#img_two").fadeTo("fast",0);
			$("#img_two").hide("fast");
			$("#img_three").fadeTo("slow",1);
			$("#img_three").show();
		});
		 
		 // FADE IN LARGE IMAGES:
		 
		$("#oneEnlarge").click(function(){
			$("#columns_wrapper").fadeOut("slow");	
			$("#oneLRGimg").fadeIn("slow");
			$("#bg").fadeIn(100);
			$("#bg").fadeTo("slow", .65);
		  });
		  
		$("#twoEnlarge").click(function(){
			$("#twoLRGimg").fadeIn("slow");
			$("#bg").fadeIn(100);
			$("#bg").fadeTo("slow", .65);
		  });
		  
		$("#threeEnlarge").click(function(){
			$("#threeLRGimg").fadeIn("slow");
			$("#bg").fadeIn(100);
			$("#bg").fadeTo("slow", .65);
		});
		
		// FADE OUT LARGE IMAGES:
		
		$(".LRGimage").click(function(){
			$("#threeLRGimg").fadeIn("slow");
			$("#bg").fadeIn(100);
			$("#bg").fadeTo("slow", .65);
		});
		
		
		
		$("#LRGimg1").click(function(){
			$("#oneLRGimg").fadeOut("fast");
			$("#twoLRGimg").fadeOut("fast");
			$("#threeLRGimg").fadeOut("fast");
			
			$("#bg").fadeOut("slow");
		});
		$("#LRGimg2").click(function(){
			$("#oneLRGimg").fadeOut("fast");
			$("#twoLRGimg").fadeOut("fast");
			$("#threeLRGimg").fadeOut("fast");
			
			$("#bg").fadeOut("slow");
		});
		$("#LRGimg3").click(function(){
			$("#oneLRGimg").fadeOut("fast");
			$("#twoLRGimg").fadeOut("fast");
			$("#threeLRGimg").fadeOut("fast");
			
			$("#bg").fadeOut("slow");
		});
		
		function fadeBG()
		{
			//$("#bg").fadeTo("slow",.5);
			//$("#bg").show("slow",1);
		};
	});