	var midWindow = 0;
	var nContainer = "";
	var IE = false;
	
	if (navigator.appName == 'Microsoft Internet Explorer'){IE = true}

	function stayHome(m){	
		
		if (IE)
			{
			 var currX = event.clientX;
			 var currY = event.clientY;
			}
		else	{
			 var currX = m.pageX;
			 var currY = m.pageY;
			}
		if (document.documentElement && document.documentElement.scrollLeft || document.documentElement && document.documentElement.scrollTop)
			{
			 var iL = document.documentElement.scrollLeft;	
			 var iV = document.documentElement.scrollTop;
			}
		else 	{
			 var iL = document.body.scrollLeft;	
			 var iV = document.body.scrollTop;	
			}
		if (currX > midWindow-30)
			{
			 var msgWidth = nContainer.clientWidth;
			 if (IE){nContainer.style.left = (currX-msgWidth-10+iL)+'px'}
			 else {nContainer.style.left = (currX-msgWidth-10)+'px'}
			}
		else	{
			 if (IE){nContainer.style.left = (currX+10+iL)+'px'}
			 else {nContainer.style.left = (currX+10)+'px'}
			}
		if (IE){nContainer.style.top = (currY+iV-(floatHeight/2)-12)+'px'}
		else {nContainer.style.top = (currY-(floatHeight/2)-12)+'px'}
	}

	function insertFloatMsg(){

		styleStr = "<style type='text/css'>.msgFloat {Position:Absolute;Top:0;Left:0;Border-Style:Solid;Border-Width:1px;Border-Color:#AED278;Background-Color:#FFFFFF;Padding-Right:1px;Padding-Left:1px;Padding-Top:1px;Padding-Bottom:1px;}<\/style>";
		divStr = "<div class='msgFloat' id='isFloat'>&nbsp<\/div>"
		document.write(styleStr);
		document.write(divStr);
		nContainer = document.getElementById('isFloat');
		document.onmousemove = stayHome;
	}

	function hideImage(){

		while (nContainer.lastChild)
			{nContainer.removeChild(nContainer.lastChild)}
		document.getElementById('isFloat').style.display = 'none';
	}

	function showImage(isImg,currItem,currCaption){

		document.getElementById('isFloat').style.display = 'inline';
		nIMG  = document.createElement('img');
		nContainer.appendChild(nIMG);
		nIMG.setAttribute('src',isImg);
		nIMG.setAttribute('width',floatWidth);
		nIMG.setAttribute('height',floatHeight);
		nCaption = document.createElement('div');
		nCaption.setAttribute('align','right');
  		nCaption.style.backgroundColor = '#FFFFFF';
  		nCaption.style.padding = '5px';
  		nCaption.style.color = '#000000';
		nCaption.style.fontSize = '10pt';
		nContainer.appendChild(nCaption);
		nCaption.innerHTML = currCaption;
		currItem.onmouseout=hideImage;
	}

	function getMidWindow(){

		if (document.documentElement && document.documentElement.scrollLeft || document.documentElement && document.documentElement.scrollTop)
			{
			 midWindow = document.documentElement.clientWidth/2;
			}
		else 	{
			 midWindow = document.body.clientWidth/2;
			}
	}

	function initFloatImg(){

		insertFloatMsg();
		hideImage();
		if (!IE){document.captureEvents(Event.mousemove)}
		getMidWindow();
	}
	
	onresize=getMidWindow;

function showimage1(src,width,height)  
{ 
var image = document.getElementById("display") 
image.src = src 
image.width = width 
image.height = height 
}