/**
 * Dealer Locator.
 * Version: 1.0
 *
 * The use of this script is strictly forbidden without prior written
 * consent. You must obtain permission before copying, modifying, 
 * redistributing, deriving or selling any part of this program.
 *
 * Copyright (C) 2008 HYPERZOID
 * All Rights Reserved
 */

// The Dealer object.
var dealer = null;


/**
 * Initializes this program.
 */
function initDealer() {

    dealer = new Dealer();

}


/**
 * The constructor.
 */
function Dealer() {

}


/**
 * Shows dealer locations.
 */
Dealer.prototype.show = function(index) {

    for (i = 1; i < 9; i++) {

        if (i != index) {

            document.getElementById("results"+i).style.visibility = 'hidden';
            document.getElementById("results"+i).style.display = 'none';

        } else {

            document.getElementById("results"+i).style.visibility = 'visible';
            document.getElementById("results"+i).style.display = 'inline';

        }

    }

}


// Run this function upon the onload event.
addOnLoad(initDealer);
