var locationclicked	= 0;

function getDim(el){
        for (var lx=0,ly=0;el!=null;
                lx+=el.offsetLeft,ly+=el.offsetTop,el=el.offsetParent);
        return {x:lx,y:ly}
}

function showlocation(){
	if (locationclicked == 0) {
		locationclicked 					= 1;
		var imgName						= eval("document.images." + 'locationgif');		
		locationPlace 						= getDim(imgName);
		var locationbasex  					= locationPlace.x;
		var locationbasey  					= locationPlace.y;
	       	document.getElementById('locationmenu').style.left 	= (locationbasex  +0 ) + "px";
	       	document.getElementById('locationmenu').style.top 	= (locationbasey + 16) + "px";
		document.getElementById('locationmenu').style.display  	= "block";
	}
	else {
		locationclicked = 0;
		document.getElementById('locationmenu').style.display  =  "none";
	}
}

function hidelocation(){
	document.getElementById('locationmenu').style.display  =  "none";

}

