﻿/**
 * Stream Namespace
 * Used for the new Stream Realty website.
 * Developed by Soho Pros., Inc.
 * ---------------------------------------
 */

var Stream = {
    
};


/** 
 * Stream.popup Namespace
 * Contains all javascript to display popup windows used in the new Stream Realty website.
 * Developed by Soho Pros., Inc.
 * ---------------------------------------------------------------------------------------
 */
 
Stream.popup = {
    
    // function showPopup(URL) 
    // Opens a popup window with an email form 
    showPopup: function(URL) { 
        day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + 
            "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=800');");
        return false;
    },
    
    showTimelinePopup: function(URL) { 
        day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + 
            "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=940,height=510');");
        return false;
    },
    
    showLocationPopup: function(URL) {
        day = new Date();
        id = day.getTime();
        eval("page" + id + " = window.open(URL, '" + id + 
            "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=950,height=800');");
        return false;
        return false;
    }
};


// Global reference to Stream.popup
var SPopup = Stream.popup;

