//
//   propertyList
//
//   This file contains controls for the property list page.
//
//
    //
    //    Property
    //
    //    Create a database entry with information needed for a property.
    //
    
     function Property (MLSid, longitude, latitude, price, street, city, state, bed_bath, picture, size, link, vlink, comment, oview, ofront, rview, rfront, land, home, mob, commercial, extraPhoto1, extraPhoto2) {

        this.MLSid = MLSid 				;    
        this.longitude  = longitude	;
        this.latitude   = latitude		;
        this.price      = price		;
        this.street     = street		;
        this.city       = city			;	
        this.state      = state		;
        this.comment    = comment		;
        this.bed_bath   = bed_bath		;
        this.picture    = picture		;
        this.size       = size			;
        this.link       = link          ;
        this.virtualLink = vlink        ;

        this.oceanview  = oview      	; //  1 = oview
        this.oceanfront = ofront		; // 1 = ofront
        this.riverview  = rview      	; // 1 = rview
        this.riverfront = rfront		; // 1 = rfront
        this.landOnly   = land			; // 1 = land
        this.home       = home       	; // 1 = home
        this.mob        = mob			; // 1 = mob
        this.comm       = commercial	; // 1= commercial
        this.extraPhoto1 = "(none)" 
        this.extraPhoto2 = "(none)"
        if (extraPhoto1 != undefined) {
             this.extraPhoto1 = extraPhoto1
             if (extraPhoto2 != undefined)  {
                 this.extraPhoto2 = extraPhoto2
             }
        }
       
    }
    //
    //    Property.infoBlock
    //
    //    Create a block of information about the property to be displayed.
    Property.prototype.infoBlock = function() {
        var str = '<font size="1"><table width="350"><tr><td><b>' + this.price + '</b></td></tr><tr><td>' + this.street + '</td></tr><tr><td> </td></tr><tr><td>' + this.city + ', ' + this.state + '</td></tr><tr><td>'+ this.comment + '</td></tr><tr><td><img border="0" src="' + this.picture + '" width="83" height="54"></td></tr></table></font>' ;     
        return (str) ;
     }
    var propertyList = new Array() ;
    var base = "http://www.mingtreerealestate.com/" ;

// ################ oview, ofront, rview, rfront, land, home, mob, commercial

    propertyList[1]      = new Property(61106, -124.208734, 41.764838, "165,000", "559 Reddy Avenue", "Crescent City", "CA", "3/1","images/59396.jpeg", "0.30 Acre", " ", "", "Cute little starter or investment property currently rents for \$800/month.  Some vinyl windows. Bathroom and kitchen floors are 2 years old, as is the carpet.  Great location in area of new homes and close to Del Norte High School, College of the Redwoods and grade school.<br/><br/>Submit offers; owner is motivated.",0,0,0,0,0,1,0,0) ;

    propertyList[2]      = new Property(61106, -124.208734, 41.764838, "165,000", "559 Reddy Avenue", "Crescent City", "CA", "3/1","images/59396.jpeg", "0.30 Acre", " ", "", "Cute little starter or investment property currently rents for \$800/month.  Some vinyl windows. Bathroom and kitchen floors are 2 years old, as is the carpet.  Great location in area of new homes and close to Del Norte High School, College of the Redwoods and grade school.<br/><br/>Submit offers; owner is motivated.",0,0,0,0,0,1,0,0) ;

// ################ oview, ofront, rview, rfront, land, home, mob, commercial




   

 

   







