/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 */

/**
 * config.js
 *
 * Site-specific configuration class
 *
 * File Path: /scripts/
 *
 * $Id: config.js 119 2007-01-30 10:03:59Z topdog $
 *
 * LICENSE: copyright 2005, 2006 Edward Vermillion - Doggydoo Codeworks. Unless
 * otherwise stated ALL RIGHTS ARE RESERVED. Use or reuse without prior
 * written permission from the author or Doggydoo Codeworks is prohibited.
 * Visit http://www.doggydoo.net/license/v2.x for the full license.
 * Installation and use of this software implies agreement to the full
 * license.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL DOGGYDOO
 * CODEWORKS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
 * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 *
 * @package     DD-CMS
 * @author      Edward Vermillion <evermillion@doggydoo.net>
 * @copyright   2005, 2006 Edward Vermillion, Doggydoo Codeworks
 * @license     http://www.doggydoo.net/license/v2.x
 * @version     2.0.1
 */
DDJS.Config = new function () {

    /**
     * @type String - The root directory for the site. This is used to set
     *                DDJS.baseDir
     */
    this.baseDir = 'http://geschkegroup.com/';

    this.loadClasses = function (template) {

        DDJS.baseDir = this.baseDir;

        switch (template) {

            case 'noCycle':
                document.write("\n" + '<script type="text/javascript" src="/scripts/fader.js" language="javascript"></script>' + "\n");
                document.write('<script type="text/javascript" src="/scripts/geschke.js" language="javascript"></script>' + "\n");
                document.write('<script type="text/javascript" src="/scripts/navigation.js" language="javascript"></script>' + "\n");
                break;

            case 'cycle':
                document.write("\n" + '<script type="text/javascript" src="/scripts/fader.js" language="javascript"></script>' + "\n");
                document.write('<script type="text/javascript" src="/scripts/cycler.js" language="javascript"></script>' + "\n");
                document.write('<script type="text/javascript" src="/scripts/geschke.js" language="javascript"></script>' + "\n");
                document.write('<script type="text/javascript" src="/scripts/navigation.js" language="javascript"></script>' + "\n");
                break;
        }
    }
}


