<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/**
 * theme1032 javascript core
 *
 * - Provides frequently used extensions to base javascript objects
 * - jQuery browser detection tweak
 * - Define functions used in events
 */

// Add String.trim() method
String.prototype.trim = function() {
	return this.replace(/\s+$/, '').replace(/^\s+/, '');
}

// Add Array.indexOf() method
if (!Array.prototype.indexOf) {
	Array.prototype.indexOf = function (obj, fromIndex) {
		if (fromIndex == null) {
			fromIndex = 0;
		} else if (fromIndex &lt; 0) {
			fromIndex = Math.max(0, this.length + fromIndex);
		}

		for (var i = fromIndex, j = this.length; i &lt; j; i++) {
			if (this[i] === obj) {
				return i;
			}
		}
		return -1;
	};
}

// jQuery Browser Detect Tweak For IE7
jQuery.browser.version = jQuery.browser.msie &amp;&amp; parseInt(jQuery.browser.version) == 6 &amp;&amp; window["XMLHttpRequest"] ? "7.0" : jQuery.browser.version;

// Console.log wrapper to avoid errors when firebug is not present
// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
window.log = function() {
	log.history = log.history || []; // store logs to an array for reference
	log.history.push(arguments);
	if (this.console) {
		console.log(Array.prototype.slice.call(arguments));
	}
};

// init object
var theme1032 = theme1032 || {};

/**
 * Image handling functions
 */
theme1032.image = { _cache : [] };

// preload images
theme1032.image.preload = function() {
	for (var i = arguments.length; i--;) {
		var cacheImage = document.createElement('img');
		cacheImage.src = arguments[i];
		theme1032.image._cache.push(cacheImage);
	}
}</pre></body></html>