function get_position(id,postyp)
	{
	 var posx=0;
	 var posy=0;
	 var i=0,obj,objtxt;
	 var ua = navigator.userAgent.toLowerCase();
     var isSafari = (ua.indexOf('safari') > -1);
	 if (document.all) 
	    {
	     obj=document.all[id];
	     objtxt='o:'+obj.tagName;
	     if (postyp == 'x')
	     	{
	     	while(obj.offsetParent)
	     	{
				i++;
				posx += obj.offsetLeft;
				obj = obj.offsetParent;
				/*objtxt=objtxt+'(' + posx + '):o:'+ obj.tagName;*/
				
	     	 }
	     	 if(obj)
	     	 	{
	     	 	 posx += obj.offsetLeft;
				 objtxt=objtxt+'(' + posx + '):o:';
	     	 	}
	     	 /*alert('posx is '+ posx + ' number of objects ' + i + ' ' + objtxt);*/
	     	 return posx;
	     	 }
	     else if (postyp == 'y')
	     	{
	     	while(obj.offsetParent)
	     	{
				i++;
				if(i == 1)
					posy += obj.offsetTop + obj.offsetHeight;
				else
					posy += obj.offsetTop;
				obj = obj.offsetParent;
				/*objtxt=objtxt+'(' + posy + '):o:'+ obj.tagName;*/
				
	     	 }
	     	 if(obj)
	     	 	{
	     	 	 posy += obj.offsetTop;
				 objtxt=objtxt+'(' + posy + '):o:';
	     	 	}
	     	 /*alert('posy is '+ posy + ' number of objects ' + i + ' ' + objtxt);*/
	     	 return posy;
	     	 }
	    }
	 else if (document[id] && !document.getElementById(id))
	    {
	     if (postyp == 'x')
	     	{
	     	 return document[id].offsetLeft;
	     	 /*alert('this is a document id browser');*/
			}
	     else if (postyp == 'y')
	     	return (document[id].offsetTop + document[id].offsetHeight);
	    }
	 else
	    {
	     /*alert('this is a document getelementbyid browser');*/
	     obj=document.getElementById(id);
	     objtxt='o:'+obj;
	     if (postyp == 'x')
	     	{
	     	 while(obj.offsetParent)
	     	 {
				i++;
				posx += obj.offsetParent.offsetLeft;
				obj = obj.offsetParent;
				objtxt=objtxt+'(' + posx + '):o:'+obj;
	     	 }
	     	 if(obj)
	     	 	{
	     	 	 i++;
	     	 	 posx += obj.offsetLeft;
	     	 	}
	     	 /*alert(objtxt+ ' ' + postyp + ' x=' + posx + ' i=' + i);*/
	     	 /*add 3 pixels for border non-Safari*/
	     	 if(!isSafari)
	     	 		posx += 3;
	     	 return posx;
	     	 }
	     else if (postyp == 'y')
	     	 while(obj.offsetParent)
	     	 {
				i++;
				if(i == 1)
					posy += obj.offsetTop + obj.offsetHeight;
				else
					posy += obj.offsetTop;
				obj = obj.offsetParent;
	     	 }
	     	 if(obj)
	     	 	{
	     	 	 posy += obj.offsetTop;
	     	 	}
	     	 /*add 3 pixels for border non-Safari*/
	     	 if(!isSafari)
	     	 		posy += 3;
	     	 return posy;
	    }
	}
function hide_all_but(id)
	{var i,idtmp;
		for(i=1; i<5; i++)
			{idtmp='m' + i;
			 if(idtmp != id)
			 	hide_image(idtmp);}
		}
function hide_all_but2(id)
	{var i,idtmp;
		for(i=1; i<4; i++)
			{idtmp='t' + i;
			 if(idtmp != id)
			 	hide_image(idtmp);}
		}

var tid=0;