// JScript File

if (window.addEventListener) {
	Object.prototype.attachEvent = function(e,f) {
		this.addEventListener(e.substring(2), f, false);
	}
	Object.prototype.detachEvent = function(e,f) {
		this.removeEventListener(e.substring(2), f, false);
	}
}
//if (typeof(Object.prototype.swapNode) == "undefined") {
//	var ph = document.createElement('span');
//	Object.prototype.swapNode = function(node) {
//		var item1 = this;
//		var item2 = node;
//		
//		var p1 = item1.parentNode;
//		var p2 = item2.parentNode;
//		
//		if (p1 == null & p2 != null) {
//			p2.replaceChild(item1,item2);
//		} else if (p1 != null & p2 == null) {
//			p1.replaceChild(item2,item1);
//		} else if (p1 == null & p2 == null) {
//			// Do nothing
//		} else {
//			// Presto Chango
//			p1.replaceChild(ph,item1);
//			p2.replaceChild(item1,item2);
//			p1.replaceChild(item2,ph);
//		}
//	}
//}

var startups = [];
function DoStartups() {
	for (var i = 0; i < startups.length; i++) {
		var f = startups[i];
		f();
	}
}
