﻿    var FeaturePropertyIndex = 1;
    $(document).ready(function() {
        $("#featured_properties_prev").hide();
        FeaturePhotoLoadedArray[1] = true;
        $("#featured_prop1").attr("src", FeaturePhotoArray[1]);
    });
    
    function OnChangeFeatureProperty(Index)
    {
        FeaturePropertyIndex += Index;
        if (!FeaturePhotoLoadedArray[FeaturePropertyIndex]) {
            FeaturePhotoLoadedArray[FeaturePropertyIndex] = true;
            $("#featured_prop" + FeaturePropertyIndex).attr("src", FeaturePhotoArray[FeaturePropertyIndex]);
        }
        if ((FeaturePropertyIndex)<=1) $("#featured_properties_prev").hide(); else $("#featured_properties_prev").show();
        if ((FeaturePropertyIndex)>=5) $("#featured_properties_next").hide(); else $("#featured_properties_next").show();
    }
    function ShowMarketLanding() {
    
    $.colorbox({ href: '/Popup_MarketTracker.aspx',height: "700px", width: "1010px", onClosed: function() { $.colorbox.remove(); $.colorbox.init(); } });
}


