/**
 * General Functions
 */


// clone an object
function clone(obj) {
	if ( obj == null || typeof(obj) != 'object' ) {
		return obj;
	}

	var temp = obj.constructor();

	for ( var key in obj ) {
		temp[key] = clone(obj[key]);
	}
    return temp;
}


// Set the Rules for the PNG Files and Backgrounds
function addPNGRule() {
	if (document.all && document.styleSheets && document.styleSheets[0] && document.styleSheets[0].addRule) {
		document.styleSheets[0].addRule('.png', 'behavior: url(/css/iepngfix.htc)');
	}
}

// Initialization Function
function init() { addPNGRule(); }

// Set DOMReady Events
window.addEvent('domready', init);
