function popup_window_map(width, height)
	{
	  popup = window.open( 'map.php', 'map', 'toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=yes,width='+width+',height='+height );
	  popup.focus();
	}

function popup_window_gallery(url, width, height)
	{
	  popup = window.open( url, 'gallery', 'toolbar=no,scrollbars=yes,location=no,statusbar=no,menubar=no,resizable=yes,width='+width+',height='+height );
	  popup.focus();
	}

function resizeOuterTo(w,h) {
 if (parseInt(navigator.appVersion)>3) {
   if (navigator.appName=="Netscape") {
    top.outerWidth=w + 24;
    top.outerHeight=h + 58;
   }
   else top.resizeTo(w,h);
 }
}

function mypopup(pic,title)
{
mywindow = window.open ("includes/pic.php?pic="+pic+"&title="+title,"mywindow","location=0,status=0,scrollbars=0,width=200,height=200");
mywindow.moveTo(0,0);
mywindow.focus();
}

function showMe(text, ev) {
	var theDiv = document.getElementById('showMeDiv');
	theDiv.style.left = (ev.clientX + 15 + document.body.scrollLeft)+ "px";
	theDiv.style.top = (ev.clientY + document.body.scrollTop)+ "px";
	theDiv.innerHTML = text;
	//theDiv.style.visibility = 'visible';
	
	new Effect.Opacity('showMeDiv',
    { duration: 1.0, 
      transition: Effect.Transitions.linear, 
      from: 0.0, to: 0.95,
	  beforeStart: function(){$('showMeDiv').style.zIndex=1;}});
}

function hideMe() {
	var theDiv = document.getElementById('showMeDiv');
	new Effect.Opacity('showMeDiv',
    { duration: 1.0, 
      transition: Effect.Transitions.linear, 
      from: 0.95, to: 0,
	  beforeStart: function(){$('showMeDiv').style.zIndex=1;}});
	//theDiv.style.visibility = 'hidden';
}

function moveMe(ev) {
	var theDiv = document.getElementById('showMeDiv');
	theDiv.style.left = (ev.clientX + 15 + document.body.scrollLeft)+ "px";
	theDiv.style.top = (ev.clientY + document.body.scrollTop)+ "px";
}
