	
	var myTO = 0;
	
	function initImage( url )
	{
		objId = "theImage";
		image = document.getElementById( objId );
		image.style.backgroundImage = "url('" + url + "')";
		setOpacity(image, 0);
		image.style.visibility = "visible";
		fadeIn(objId,0);
	}
	
	function fadeIn(objId,opacity)
	{
		if (document.getElementById) {
			obj = document.getElementById(objId);
			if (opacity <= 100) {
				setOpacity(obj, opacity);
				opacity += 1;
				myTO = window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 15);
			}
		}
	}
	
	function setOpacity(obj, opacity)
	{
		opacity = (opacity == 100)?99.999:opacity;
		// IE/Win
		obj.style.filter = "alpha(opacity:"+opacity+")";
		// Safari<1.2, Konqueror
		obj.style.KHTMLOpacity = opacity/100;
		// Older Mozilla and Firefox
		obj.style.MozOpacity = opacity/100;
		// Safari 1.2, newer Firefox and Mozilla, CSS3
		obj.style.opacity = opacity/100;
	}
	
	function showImage( url, text )
	{
		clearTimeout( myTO );
		document.getElementById( "theText" ).style.display = "none";
		setOpacity( document.getElementById( "theImage" ), 0 );
		setOpacity( document.getElementById( "theTitle" ), 80 );
		myImage = new Image();
		myImage.onload = function() { initImage( url ); }
		myImage.src = url;
		document.getElementById( "theTitle" ).innerHTML = text;
	}
	
	var message="xxxxx";

	function clickIE()
	{
		if( document.all )
		{
			(message);
			return false;
		}
	}
	
	function clickNS( e )
	{
		if( document.layers || ( document.getElementById && !document.all ) )
		{
			if( e.which==2 || e.which==3 )
			{
				(message);
				return false;
			}
		}
	}
	if( document.layers ) 
	{
		document.captureEvents( Event.MOUSEDOWN );
		document.onmousedown = clickNS;
	}
	else
	{
		document.onmouseup = clickNS;
		document.oncontextmenu = clickIE;
	}
	
	document.oncontextmenu = new Function("return false")

