/*
	Sudberry scripts
	Updated 7/29/04
*/


// Generic popup window functions
function popup(URL, width, height) {
	popWin = window.open(URL, "popWin", "width=" + width + ",height=" + height + ",resizable=0,scrollbars=0,location=0,toolbar=0");
	popWin.focus();
	return false;
}

function popupResize(URL, width, height) {
	popWin = window.open(URL, "popWin", "width=" + width + ",height=" + height + ",resizable=1,scrollbars=1,location=0,toolbar=0");
	popWin.focus();
	return false;
}


// Add function to any event handler (multibrowser)
function addEvent(obj, evType, fn) {

	if (obj.addEventListener) {
		obj.addEventListener(evType, fn, true);
		return true;
	} else if (obj.attachEvent) {
		var r = obj.attachEvent("on" + evType, fn);
		return r;
	} else
		return false;
}



var images=new Array(); 
images[0]="/images/quote1.gif";
images[1]="/images/quote2.gif";
images[2]="/images/quote3.gif";
images[3]="/images/quote4.gif";
images[4]="/images/quote8.gif";


function randomImage() { 
var i=Math.floor(Math.random()*images.length); 
document.getElementById("random").src=images[i]; 

}
onload=randomImage; 

