// JavaScript Document

function insertImage(id) {
	document.write("<img id='"+id+"' style='border:none;' src='images/spacer.gif'");
	if (arguments[1]) document.write(" height='"+arguments[1]+"'");
	if (arguments[2]) document.write(" width='"+arguments[2]+"'");
	if (arguments[3]) document.write(" align='"+arguments[3]+"'");
	if (arguments[4]) document.write(" alt='"+arguments[4]+"'");
	if (arguments[4]) document.write(" title='"+arguments[4]+"'");
	document.write("/>");
}

function switchImage(id, src) {
	var temp = document.getElementById(id);
	if (temp) {
		temp.src=src;
	}
}

function makeonmouseover() {
	this.src = this.oversrc;
}

function makeonmouseout() {
	this.src = this.outsrc;
}

function addMouseOverOut(id, oversrc, outsrc) {
	var temp = document.getElementById(id);
	temp.originalsrc = temp.src;
	if (temp) {
		temp.oversrc = oversrc;
		if (outsrc)
			temp.outsrc = outsrc;
		else temp.outsrc = temp.originalsrc; 
		temp.onmouseover = makeonmouseover;
		temp.onmouseout = makeonmouseout;
	}
}
