<!--
if(typeof Array.prototype.push == "undefined") {
	Array.prototype.push = function() {
		var i=0;
		b=this.length,a=arguments;
		for(i;i<a.length;i++)this[b+i]=a[i];
		return this.length
	};
}

function getElement(elementName) {
	if (document.getElementById) {
		return document.getElementById(elementName);
	}
	else if (document.all) {
		return document.all[elementName];
	}
	else if (document.layers) {
		return document[elementName];
	}
}

if (/Mozilla\/5\.0/.test(navigator.userAgent)) {
   document.write('<script type="text/javascript" src="/images/mozExtraCode.js"></sc'+'ript>');
}
function offsetBG(imgTag,isInitial)
{
	if(isInitial) {
		imgTag.style.backgroundPosition = '0% 0%';
	} else {
		imgTag.style.cursor = 'pointer';
		imgTag.style.backgroundPosition = '100% 0%';
	}
}

// Functions to trim beginning/trailing whitespace
String.prototype.trim=function() { return this.replace(/^\s*|\s*$/g,''); }	// Trim both
String.prototype.ltrim=function() { return this.replace(/^\s*/g,''); }		// Trim beginning only
String.prototype.rtrim=function(){ return this.replace(/\s*$/g,''); }		// Trim end only

// ====================== DHTML ======================
// Function to attach events to dynamically created elements
// obj		is the object to attach event to
// strEvent	is the event without the prefix "on"
// fn		is the event-handler function
function attachEvent(obj, strEvent, fn)
{
    if(obj.addEventListener)
    {
        obj.addEventListener(strEvent,fn,false);
    }
    else if(obj.attachEvent)
    {
        obj.attachEvent("on"+strEvent,fn);
    }
}

// Function to remove all child nodes of an object
function removeChildren(oObject)
{
	for (var count = oObject.childNodes.length - 1; count != -1; --count)
	{
		if (oObject.childNodes[count].childNodes.length != 0)
		{
			removeChildren(oObject.childNodes[count]);
		}
		oObject.removeChild(oObject.childNodes[count]);
	}
}
-->