	var isDebug = false
	function showMapPDF()
    {
        var pdfWnd = null;
        try
        {
            if (isMapPDFExist.toLowerCase()=='false')
            {
		        showAlert("Resort Map", "Sorry no resort map currently available for printing.", "OK", "200", "100", getPosition(), '', 'undefined');
            }
            else
            {
                pdfWnd = window.open(jsMapPDFName);        
            }
        }
        catch(e)
        {
            if(isDebug)
            {
                alert("showMapPDF() :"+e);
            }
        }
    }

	
	function resortMap(f)
	{
		window.location.replace("resortmap.asp?swf="+f);
	}
	
	function viewResort(id,shortName)
	{
		try
		{
		    if(id==0)
		    {
			    showAlert("Resort Map", "No information available for this resort.", "OK", "200", "100", getPosition(), '', 'undefined');
		    }
		    else
		    {
			    var a=window.open("../center/resortspagedetails.asp?placesid="+id+"&shortName="+shortName,"resorts");
			    a.focus();
		    }
		}
		catch(e)
		{
		    if(isDebug)
            {
                alert("getVilla() :"+e);
            }
		}
	}
	function getVilla(id)
	{
		try
		{
		    if(id==0 || id=="0")
		    {
			    alert("No information currently available for this villa.");
		    }
		    else
		    {
			    var a=window.open("../villas/villaindividual.asp?id="+id,"resorts");
			    a.focus();
		    }
		}
		catch(e)
		{
		    if(isDebug)
            {
                alert("getVilla() :"+e);
            }
		}
	}	
	function getBeach(shortName)
	{
		try
		{
		    var a=window.open("../common/details.asp?placetype=B#"+shortName,"resorts");
		    a.focus();
		}
		catch(e)
		{
		    if(isDebug)
            {
                alert("getBeach() :"+e);
            }
		}
	}
	function getGolf(shortName)
	{
		try
		{
		    var a=window.open("../common/details.asp?placetype=G#"+shortName,"resorts");
		    a.focus();
		}
		catch(e)
		{
		    if(isDebug)
            {
                alert("getGolf() :"+e);
            }
		}
	}
	function getRestaurants(f)
	{
		try
		{
		    showAlert("Resort Map", "Link not yet activated.", "OK", "200", "100", getPosition(), '', 'undefined');
		}
		catch(e)
		{
		    if(isDebug)
            {
                alert("getRestaurants() :"+e);
            }
		}
	}			
	function noInfo(f)
	{
		try
		{
		    if (f=='undefined')
		    {
			    showAlert("Resort Map", "No information currently available.", "OK", "200", "100", getPosition(), '', 'undefined');
		    }
		    else
		    {
			    switch (f)
			    {
				    case "beaches":
		            showAlert("Resort Map", "There are no beaches on this map.", "OK", "200", "100", getPosition(), '', 'undefined');
				    break;
    				
				    case "golf":
		            showAlert("Resort Map", "There are no golf courses on this map.", "OK", "200", "100", getPosition(), '', 'undefined');
				    break;
    				
				    case "restaurants":
		            showAlert("Resort Map", "There are no restaurants on this map.", "OK", "200", "100", getPosition(), '', 'undefined');
				    break;
    				
				    case "villas":
		            showAlert("Resort Map", "There are no villas on this map.", "OK", "200", "100", getPosition(), '', 'undefined');
				    break;
    				
				    default:
		            showAlert("Resort Map", "No information on " + f + " currently available", "OK", "200", "100", getPosition(), '', 'undefined');
			    }
    			
		    }
		}
		catch(e)
		{
		    if(isDebug)
            {
                alert("noInfo() :"+e);
            }
		}
	}
	function regionMap(f)
	{
		try
		{
		    var a=window.open("../center/regionmap.asp","_self");
		    a.focus();
		}
		catch(e)
		{
		    if(isDebug)
            {
                alert("regionMap() :"+e);
            }
		}
	}
	
	function getPosition()
	{
	    var anchorObject = null;
	    try
	    {
	        anchorObject = getAnchorPosition("tblMap");
	        anchorObject.y = anchorObject.y ;
            anchorObject.x = anchorObject.x + 165 ;
        }
        catch(e)
		{
		    if(isDebug)
            {
                alert("getPosition() :"+e);
            }
		}
	    return anchorObject;
	}
