//To get past patent issue
function drawOutFlashGeneric(url, width, height) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '">');
	document.write('<param name="movie" value="'+ url +'" />');
	document.write('<param name="quality" value="best" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<embed src="'+ url +'" width="' + width + '" height="' + height + '" quality="best" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>');
	document.write('</object>');
}
function drawOutQuicktimeGeneric(url, width, height) {
	document.write('<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="' + width + '" height="' + height + '">');
	document.write('<param name="src" value="'+ url +'" />');
	document.write('<param name="controller" value="true" />');
	document.write('<embed src="'+ url +'" width="' + width + '" height="' + height + '" CONTROLLER="true" pluginspage="http://www.apple.com/quicktime/download/"></embed>');
	document.write('</object>');
}
function openCenteredWindow(url, height, width, name, parms) {
   var left = Math.floor( (screen.width - width) / 2);
   var top = Math.floor( (screen.height - height) / 2);
   var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width;
   if (parms) 
   { 
     winParms += "," + parms; 
   }
   var win = window.open(url, name, winParms);
   if (parseInt(navigator.appVersion) >= 4) 
   { 
     win.window.focus(); 
   }
   return win;
}
//This helps reduce ease-of-access for spam bots to email addresses
function drawEmailLink(user, domain, toplevel, customcaption) {
	if(customcaption.length > 0)
		document.write('<a href="mailto:' + user + "@" + domain + toplevel + '">' +customcaption + '</a>')
	else
		document.write('<a href="mailto:' + user + "@" + domain + toplevel + '">' + user + "@" + domain + toplevel + '</a>')	
}
//This is from the existing site
function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
	newWindow = window.open(URLtoOpen, windowName, windowFeatures);
}