﻿$(document).ready(function() {
    var arLen=housing_homeimages.length;
    if (arLen > 0)
    {
        for ( var i=0, len=arLen-1; i<len; ++i ){
            var image = "<image src=\"" + housing_homeimages[i] + "\" alt=\"\" width=\"" + width + "\" height=\"" + height + "\" >"
            $("#housing_pictures").html($("#housing_pictures").html() + image);
        };
    };
    $("#housing_pictures").cycle()
    
    arLen=construction_homeimages.length;
    if (arLen > 0)
    {
        for ( var i=0, len=arLen-1; i<len; ++i ){
            var image = "<image src=\"" + construction_homeimages[i] + "\" alt=\"\" width=\"" + width + "\" height=\"" + height + "\" >"
            $("#construction_pictures").html($("#construction_pictures").html() + image);
        };
    };
    $("#construction_pictures").cycle({timeout: 5000})
});