////////////////////////////////////////////////////////////////////////////////
// BEGIN
//

	function showImage( obj )
	{
		// Objects
		var fDIV = document.getElementById( "floatDIV" );
		var fImg = document.getElementById( "floatImage" );
		var sideImg = document.getElementById( "sidebarImg" );
		var shadeElem = document.getElementById( "shade" );
		
		// Generate new path string
		var path = obj.src;
		path = path.replace( "thumbs/", "" );
		
		// New Image
		tmpImg = new Image();
		tmpImg.src = path;
		fImg.src = tmpImg.src;
		
		// Get image coordinates
		if( navigator.appName == "Netscape" )
		{
			winW = window.innerWidth;
			winH = window.innerHeight;
			
			scrollY = document.body.scrollTop;
			
			x = (winW - tmpImg.width) / 2;
			y = ((winH - tmpImg.height) / 2) + scrollY;
			height = document.height;
		}
		if( navigator.appName.indexOf( "Microsoft" ) != -1 )
		{
			winW = document.body.offsetWidth;
			winH = document.body.offsetHeight;
			
			scrollY = document.body.scrollTop;
			
			x = (winW - tmpImg.width) / 2;
			y = ((winH - tmpImg.height) / 2) + scrollY;
			height = document.body.scrollHeight
		}
		
		// Approximate the image position
		var approxY = (winH / 2) + (scrollY / 2);
		
		if( tmpImg.width == 0 ) { x = ( winW - 500 ) / 2; }
		if( tmpImg.height == 0 )
		{
			if( scrollY == 0 ) { y = 200; }
				else { y = scrollY + 200; }
		}
		
		fDIV.style.height = fImg.height;
		fDIV.style.top = y + "px";
		fDIV.style.left = x + "px";
		
		fDIV.className = "floatVisible";
		shadeElem.className = "shadeVisible";
		shadeElem.style.height = height;
	}
	
	function hideImage()
	{
		// Objects
		var fDIV = document.getElementById( "floatDIV" );
		var shadeElem = document.getElementById( "shade" );
		
		fDIV.className = "floatHidden";
		shadeElem.className = "shadeHidden";
		shadeElem.style.height = "1px";
	}
	
	var myImages = new Array();
	
	function preloadImages()
	{
		for( i = 0; i < document.images.length; i++ )
		{
			if( document.images[i].src.indexOf( "/layout" ) != -1 )
			{
				myImages[i] = new Image();
				myImages[i].src = document.images[i].src.replace( "/layout", "" );
			}
		}
	}

//
// END
////////////////////////////////////////////////////////////////////////////////