function fishFunctions () {
	this.addLoadEvent = function (func) {
		var oldonload = window.onload;
		if (typeof window.onload != 'function') {	
			window.onload = func;
		} else {
			window.onload = function() {
			oldonload();
			func();
			}
		}
	}
	
	this.includeJS  = function (file) {
		this.newJS = document.createElement("script");
		this.newJS.setAttribute("type","text/javascript");
		this.newJS.setAttribute("src",file);
		document.getElementsByTagName("head")[0].appendChild(this.newJS);
	}
			
	this.checkClass = function (lookfor,className) {
		this.classArray = className.split(" ");
		this.ret = 0;
		for (this.i=0; this.i<this.classArray.length; this.i++) {
			if (this.classArray(this.i) == lookfor) {
				this.ret = 1;
			}
		}
		return this.ret;
	}
	
	this.pausescript = function (millis) {
		var date = new Date();
		var curDate = null;
	
		do { curDate = new Date(); } 
		while(curDate-date < millis);
	}
}
func    = new fishFunctions();


function addLoadEvent (func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {	
		window.onload = func;
	} else {
		window.onload = function() {
		oldonload();
		func();
		}
	}
}