<!--

function swapImage(element, newSrc, newAlt){
	var image = document.getElementById(element);
	image.src = newSrc;
	image.alt = newAlt;
}


function writeEmail(user, domain, subject, text){
	// open up a mailto and combine the user and domain into an email address
	document.write('<a href="mailto:' + user + '@' + domain);
	if(subject){
		// if there's a subject tack it on
		document.write('?subject=' + subject);
	}
	document.write('">');
	if(text){
		// if there's text for the link add it and close the link
		document.write(text + '</a>');
	}
}


function openWin( windowURL, windowName, windowFeatures ){
	window.open( windowURL, windowName, windowFeatures );
}


function writeObject(objAttrs, params, embedAttrs) {
	var str = '<object ';
	for (var i in objAttrs){
		str += i + '="' + objAttrs[i] + '" ';
	}
	str += '>';
	for (var i in params){
		str += '<param name="' + i + '" value="' + params[i] + '" /> ';
	}
	str += '<embed ';
	for (var i in embedAttrs){
		str += i + '="' + embedAttrs[i] + '" ';
	}
	str += ' ></embed></object>';
	document.write(str);
}

// -->