$(document).ready(function(){

//***********************************
// Initiate Crossfading Slideshow
 
  $.preload( '#slideshow img', {
    onFinish: function() {
      $('#slideshow img').removeClass('gone');
      $('#slideshow').slideshow({ timeout: 4000, fadetime: 600, type: 'sequence' });
    }
  });



$("a[rel='cbox'], a[rel='cbox2'], a[rel='floorplan'], a[rel='floorplan_enlarge'], a[rel='site_map'], a[rel='floorplans_image'], a[rel='floorplans']").colorbox();

// Walkscore colorbox
$(".cboxwalkscore").colorbox({width:"540px", height:"356px", inline:true, href:"#thewalkscore"});
//***********************************

// For photo gallery
$("#btn_gallery:first").css("display", "block");

$(".container_amenities:odd").css("margin-right", "0px");


// For photo gallery


  $("div.floorplan_brochure a.printbutton").click(function(){
    $(this).parent().parent().parent().parent().jqprint();
    return false;
  });



}); // end
