//  Leasing Advertisement Random Property Generator -->
function writeNorthPropertiesMatt(){ 
var propertyLink //TBD
var propertyAvailability; // TBD
var propertyImage; // TBD
var propertyName; // TBD 
var propertyType; // TBD 
var num_of_properties = 4;
propertyNumber = Math.floor (num_of_properties * Math.random());

switch(propertyNumber) {
	case 0:
		propertyLink="../819-SE-Morrison-St.html";
		propertyAvailability="FOR LEASE";
		propertyImage="../images/ads/Ad-819-SE-Morrison.jpg";
		propertyName="819 SE Morrison";
		propertyType="High Quality Office Suites";
	break;
}

switch(propertyNumber) {
	case 1:
		propertyLink="../4152-NE-Sandy-Blvd.html";
		propertyAvailability="FOR LEASE";
		propertyImage="../images/ads/Ad-4152-NE-Sandy.jpg";
		propertyName="4152 NE Sandy";
		propertyType="High Quality Office &amp; Retail Suites";
	break;
}

switch(propertyNumber) {
	case 2:
		propertyLink="../10554-SE-Main-St.html";
		propertyAvailability="FOR LEASE";
		propertyImage="../images/ads/Ad-10554-SE-Main.jpg";
		propertyName="10554 SE Main";
		propertyType="Executive Office Suites";
	break;
}

switch(propertyNumber) {
	case 3:
		propertyLink="../123-E-Powell-Blvd.html";
		propertyAvailability="FOR LEASE";
		propertyImage="../images/ads/Ad-123-E-Powell.jpg";
		propertyName="123 E Powell";
		propertyType="High Quality Office &amp; Retail Suites";
	break;
}

 // THE ORIGIIONAL WAY:
document.write('<div class=ad>' + '<a href="'+ propertyLink +'">' + '<span class=red>' + propertyAvailability + '</span>' + '<img src="' + propertyImage + '"/>' + '<span>' + propertyName + '<br/>' + '<i>' + propertyType + '</i>' + '</span>' + '</a>' + '</div>');

}
//  End -->

//  Sales Advertisement Random Property Generator -->
function writeNorthPropertiesJeffrey(){ 
var propertyLink //TBD
var propertyAvailability; // TBD
var propertyImage; // TBD
var propertyName; // TBD 
var propertyType; // TBD 
var num_of_properties = 5;
propertyNumber = Math.floor (num_of_properties * Math.random());

switch(propertyNumber) {
	case 0:
		propertyLink="../12525-SW-Main.html";
		propertyAvailability="FOR SALE";
		propertyImage="../images/ads/Ad-12525-SW-Main.jpg";
		propertyName="12525 SW Main";
		propertyType="Zoned for Office &amp; Retail";
	break;
}

switch(propertyNumber) {
	case 1:
		propertyLink="../3103-NE-82nd-Ave.html";
		propertyAvailability="FOR SALE";
		propertyImage="../images/ads/Ad-3103-NE-82nd.jpg";
		propertyName="3103 NE 82nd";
		propertyType="High Traffic Location &amp; Drive Thru Ready";
	break;
}

switch(propertyNumber) {
	case 2:
		propertyLink="../4945-NE-7th-Ave.html";
		propertyAvailability="FOR SALE";
		propertyImage="../images/ads/Ad-4945-NE-7th.jpg";
		propertyName="4945 NE 7th";
		propertyType="High Quality Office Space";
	break;
}

switch(propertyNumber) {
	case 3:
		propertyLink="../2600-NE-Sandy-Blvd.html";
		propertyAvailability="FOR SALE";
		propertyImage="../images/ads/Ad-2600-NE-Sandy.jpg";
		propertyName="2600 NE Sandy";
		propertyType="High Traffic Retail Space";
	break;
}

switch(propertyNumber) {
	case 4:
		propertyLink="../8332-SW-21st-Ave.html";
		propertyAvailability="FOR SALE";
		propertyImage="../images/ads/Ad-8332-SW-21st.jpg";
		propertyName="8332 SW 21st";
		propertyType="Multi-Unit Apartment Complex";
	break;
}
 // THE ORIGIIONAL WAY:
document.write('<div class=ad>' + '<a href="'+ propertyLink +'">' + '<span class=red>' + propertyAvailability + '</span>' + '<img src="' + propertyImage + '"/>' + '<span>' + propertyName + '<br/>' + '<i>' + propertyType + '</i>' + '</span>' + '</a>' + '</div>');

}
//  End -->

//  Random Testimonial Generator -->
function writeNorthRimTestimonials(){ 
var quoteName; // TBD
var quoteBody; // TBD 
var num_of_quotes = 2;
quoteNumber = Math.floor (num_of_quotes * Math.random());

switch(quoteNumber) {
	case 0:
		quoteBody="<span>N</span>orth Rim Partners showed me all of the available properties in the market place that fit my criteria. When we found the right property, I knew that it was not only the right fit, but the best deal for me.<br><br>They provided a high level of service and market knowledge through the entire process.";
		quoteName="Dale Lovett, Lovett Excavating";
	break;
}
switch(quoteNumber) {
	case 1:
		quoteBody="<span>T</span>he team at North Rim was super super amazing & crazy to work with, not to mention how handsome they are. I was able to open my doors within 59 days of initially calling them.<br><br>They provided a tremendous amount of great service and value to me. They are the best of the best in Portland, Oregon and Thailand.";
		quoteName="Marc DePor, Owner - Sushi Mazi";
	break;
} 
 // THE ORIGIIONAL WAY:
document.write('<blockquote>' + quoteBody +'<br>' + '<span class=name>' + quoteName + '</span>' + '</blockquote>');
}
//  End -->

// Pop Up Function For the Contact Form THIS IS THE JAVASCRIPT ERROR IN IE-->
  jQuery(function($){
    $('#contact_us').submit(function(){ 
      $.post($(this).attr('action'), function(html) { 
        $('#content').html(html)
      })
      return false
    })
  })
//End Pop Up Function