<!--  
    // Sites Definition - put into include file when we know how
   		function site(SIDN,Name,Address1,Address2,City,/* County, */ State,Zip,Organization,Lat,Lon,Foto)
		{// GLog.write("inside site SIDN is "+SIDN);
		this.SIDN=SIDN;
		this.Name=Name;
		this.Address1=Address1;
		this.Address2=Address2;
		this.City=City;
		this.County='';  // County;
		this.State=State;
		this.Zip=parseInt(Zip);
		this.Organization=Organization;
		this.Lat=parseFloat(Lat);
		this.Lon=parseFloat(Lon);
		this.Location=Location;
		this.Foto=Foto;
		this.NameAddressFoto_HTML = NameAddressFoto_HTML
		this.NameAddress_HTML=NameAddress_HTML
		this.Foto_HTML=Foto_HTML
		this.address_string = address_string
		this.CanonicalAddress = null;
				
function Location() {return (new GLatLng(this.Lat,this.Lon))}	

function LocationString() {return '('+this.Location().tourl(6)+')'}	

function address_string()
	{var temp = this.Address1 + ' ' + this.Address2 + ' ' +this.City+ ' ' +	
					this.County + ' ' + this.State + ' ' + this.Zip;
					alert('address_string is '+ temp);
		return temp};	

function NameAddressFoto_HTML()
	{	if (this.Foto != '') {return this.NameAddress_HTML()+'<br />'+this.Foto_HTML()}
				else {return this.NameAddress_HTML()}
	}
				
function NameAddress_HTML ()
	{var temp = this.Name
		temp += '<br />' + this.Address1
		if (this.Address2 != '') {temp += '<br />'+ this.Address2}
		if (this.City !='') {temp += '<br />' + this.City}
		if (this.State !='') {temp += ' ' + this.State}
		if (this.Zip > 0) {temp += ' ' + this.Zip}
		return temp
	}
			
function Foto_HTML ()
	{	if (this.Foto != '') { return '<img border="0" src="' + this.Foto + '">' }
			else {return '' }
	}
		}	
		
var Sites = new Array();
			
//-->
