// JavaScript Document
var popupTimer;

function showPopup(callerRef,popupID){
	hidePopups();
	stopTimer();
	popupRef=document.getElementById(popupID);
	popupRef.style.visibility="visible";
	popupRef.style.left="90px";
	popupRef.style.top=(callerRef.offsetTop+5)+"px";
}

function hidePopups(){
	document.getElementById("menu-popup-baskets").style.visibility="hidden";
	document.getElementById("menu-popup-blooms").style.visibility="hidden";
	document.getElementById("menu-popup-flowers").style.visibility="hidden";
	document.getElementById("menu-popup-balloons").style.visibility="hidden";
}

function startTimer(){
	stopTimer();
	popupTimer=setTimeout("hidePopups()",300);
}

function stopTimer(){
	clearTimeout(popupTimer);
}