/* * Javascript implementations for goldenLight 2008 website * (c) Papercut Media. No reproduction without permission. Feel free to ask. * Author: Patrick Pittman * Date: October 2007 * Version: 1.0 * Requires: Prototype.js framework, ufo.js for flash loading, Dreamgirl on the other end for AJAXy JSON communication */ function goldenLight() { this.loaderlock = false; this.baseHref = "http://www.goldenlight.com.au/"; this.ajaxBase = this.baseHref+"js/ajax/"; this.ajaxProgress = document.createElement('img'); this.ajaxProgress.src = this.baseHref+"images/icons/ajax-loader.gif"; this.anchors = $H({}); } goldenLight.prototype.init = function(e) { Element.extend(document.body); if (!document.location.href.match('login') && !document.body.hasClassName('editmode')) { } } function isDefined(variable) { return (!(!( variable||false ))) } function initgoldenLight() { goldenLight.init(); if (isDefined("setupZoom")) { $log('set up zoom!'); setupZoom(); } } var goldenLight = new goldenLight(); document.observe('dom:loaded',initgoldenLight);