// poptofront 0.1 - pop this window to front
// developed by Stuart Udall stu@cyberdelix.net
function poptofront() {
 window.focus();
}

// safemailto 0.3 - generate email address - antispam measure
// developed by Stuart Udall stu@cyberdelix.net (based on source from authors unknown)
function safemailto(email1, email2, linktext) {
 if (linktext) { // do nothing
  } else {
  linktext = email1 + '@' + email2;
 }
 document.write("<a h" + "ref=" + "mail" + "to:" + email1 + "@" + email2 + ">" + linktext + "</a>");
}

// safeformto 0.1 - generate recipient line for formmail - antispam measure
// developed by Stuart Udall stu@cyberdelix.net (based on source from authors unknown)
function safeformto(email1, email2) {
 document.write("<INPUT type=hidden NAME=recipient VALUE=" + email1 + "@" + email2 + ">");
}

// playflash 0.2 - play a flash movie
// developed by Stuart Udall stu@cyberdelix.net
function playflash(moviename, width, height, align) {
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="' + width + '" height="' + height + '" align="' + align + '">');
  document.write('<param name=movie value="' + moviename + '">');
  document.write('<param name=quality value=high>');
  document.write('<param name=menu value=false>');
  document.write('<embed src="' + moviename + '" menu=false quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" align="' + align + '">');
  document.write('</embed>');
  document.write('</object>');
}



