	id_save=null;
	img=null;
	cursor=null;
	
    //window.captureEvents(Event.CLICK);
    //window.captureEvents();
	window.onclick=getPosition;

	function showImage(id,side) {
	
		if (id_save != null) {
			if (id_save != id) {
		 		hideImage()
		 	}
		}
	
		document.getElementById('id'+id).style.display='block';	
		//cursor=getPosition();
		//document.getElementById('id'+id).style.display='block';	

		img=new Image();
		img.src="../shared/img/"+id+"euro"+side+"_HR.jpg";
		
		
		document.getElementById('img'+id).src=img.src;
		resizeBanknote(id);
		
		document.getElementById('cl'+id).style.position='absolute';
		//document.getElementById('cl'+id).style.marginTop='5px';
		//document.getElementById('cl'+id).style.marginLeft='5px';
		document.getElementById('cl'+id).style.backgroundColor='#fff';
		document.getElementById('cl'+id).style.padding='3px';

		id_save=id;
	}
	
	function resizeBanknote(id) {
		
		ws=browserContentWindow();
		
		if (! img.complete) {
			var t=setTimeout('resizeBanknote('+id+')',100)		
		}
		else {
			if (ws['width'] < img.width +70){ 
				document.getElementById('img'+id).width =  ws['width'] -70;
			}
		}

	}
	
	function hideImage() {
		document.getElementById('id'+id_save).style.display='none';	
	}
	
	function getPosition(e) {
	
    	var cursor = {x:0, y:0};
    	if (e.pageX || e.pageY) {
        	cursor.x = e.pageX;
        	cursor.y = e.pageY;
    	} 
    	else {
        	var de = document.documentElement;
        	var b = document.body;
        	cursor.x = e.clientX + 
            	(de.scrollLeft || b.scrollLeft) - (de.clientLeft || 0);
        	cursor.y = e.clientY + 
            	(de.scrollTop || b.scrollTop) - (de.clientTop || 0);
    	}
		//document.getElementById('id'+id).style.top=cursor.x+'px';	
    	return;
	}	
	
