function popUp(URL, desc) {
					day = new Date();
					id = day.getTime();
					//eval("page" + id + " = window.open(URL, desc, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=200,left = 490,top = 362');");
					window.open(URL, desc, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=200,height=200,left = 490,top = 362');
				}

function makeIcon(imgurl, w, h)
	{
		var icon = new GIcon();
		icon.image = imgurl;
		icon.iconSize = new GSize(w, h);		
		icon.infoWindowAnchor = new GPoint(5, 1);
		icon.iconAnchor = new GPoint(6, 20);
		
		return icon;		
	}
	
	//points are its lat and long
	//name is the name of the pop
	//icon is the icon to display
	//contacts is an html string to be displayed in the balloon
	function nlrPop(points, name, id, icon, contacts)
	{
		this.points = points;
		this.name = name;
		this.icon = icon;
		this.id = id;
		this.contacts = contacts;
		
	}
	//search for a nlrPop in the array based on the ID
	function findPop(pops, id)
	{	
		for (var i=0; i <pops.length; i++)
		{
			if (pops[i].id == id)
			{
				return pops[i];
			}
		}
	}
	function findPart(parts, id)
	{
		for (var i=0; i <parts.length; i++)
		{
			if (parts[i].id == id)
			{
				return parts[i];
			}
		}
	}
	//creates the GMarker based on our pop
	function createMarker(nlrpop) 
	{
  		var marker = new GMarker(nlrpop.points, nlrpop.icon);		
	  	// Show this pop's name and contact info in balloon  
  		var html = "<div style=\"color:black;white-space:nowrap;\" align=\"left\">"+nlrpop.contacts+ "<br></div>";
  		
  		GEvent.addListener(marker, 'click', function() {
		marker.openInfoWindowHtml(html);
		});

  	return marker;
	}
	
	function nlrPart(points, name, id, icon, url, type, box)
	{
		this.points = points;
		this.name = name;
		this.icon = icon;
		this.id = id;
		this.url = url;
		this.type = type;
		this.box = box;
	}
	
	function createPartMarker(part)
	{
		var marker = new GMarker(part.points, part.icon);
		var html = "<div style=\"white-space:nowrap;\" align=\"left\">"+part.box+"<br></div>";
		GEvent.addListener(marker, 'click', function() {
		marker.openInfoWindowHtml(html);
//		details.location.href = "http://www.aldea.com/nlrmaps/ncren/pdetail.php?id=" + part.id;
  		});

  	return marker;
	}	
	//google markers are 12,20
  	
