function showPreview(inputObj) {
	
		imageToShow = inputObj;
		var tmpImage = new Image();
		tmpImage.src = inputObj;
		
		
	document.getElementById("ImageGroot").src=inputObj;

}


function hide() {
	document.getElementById("ImageGroot").visability='hide';

}

function Startlight(foto) {
	
	pic1= new Image(100,25); 
	pic1.src=foto; 

	document.getElementById("First").style.display= 'none';
	myLightbox = new Lightbox();
	var firstLight=document.getElementById('first');
	myLightbox.start(pic1);
}


		function autoFireLightbox() {
			setTimeout(function() {
				if(document.location.hash && $(document.location.hash.substr(1)).rel.indexOf('lightbox')!=-1) {
					myLightbox.start($(document.location.hash.substr(1)));
				}},
				250
			);
		}
		Event.observe(window, 'load', autoFireLightbox, false);
	// ]]>

