// safemailto 0.2 - generate email address - antispam measure
// developed by Stuart Udall stu@cyberdelix.net (based on source from authors unknown)
function safemailto(email1, email2) {
 document.write("<a h" + "ref=" + "mail" + "to:" + email1 + "@" + email2 + ">" + email1 + "@" + email2 + "</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 + ">");
}

// nukeframes 0.1 - break out of any existing frameset
// developed by Stuart Udall stu@cyberdelix.net
function nukeframes() {
 if (window != top) { top.location.href = location.href; }
}

// poptofront 0.1 - pop this window to front
// developed by Stuart Udall stu@cyberdelix.net
function poptofront() {
 window.focus();
}

// insertcss 0.1 - insert Netscape-specific stylesheet if necessary
// developed by Stuart Udall stu@cyberdelix.net
function insertcss() {
 if (navigator.appName=="Netscape")
  { document.write('<link rel=stylesheet href=globalns.css type=text/css>'); }
 else 
  { document.write('<link rel=stylesheet href=global.css type=text/css>'); }
}

// playflash 0.2 - play a flash movie
function playflash(moviename, width, height) {
  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 + '">');
  document.write('<param name=movie value="' + moviename + '">');
  document.write('<param name=quality value=high>');
  document.write('<param name=menu value=false>');
  document.write('<param name=loop value=false>');
  document.write('<embed src="' + moviename + '" loop=false 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 + '">');
  document.write('</embed>');
  document.write('</object>');
}

// checkreferrer 0.2 - bounce visitor to homepage if they arrived from a remote site
// developed by Stuart Udall stu@cyberdelix.net
function checkreferrer() {
 var referrerOK = false;
 if (document.referrer.indexOf("acidmonkey.com") != -1) {
    var referrerOK = true;
    }
 else if (document.referrer.indexOf("unknown origin") != -1) {
    var referrerOK = true;
    }
 else if (document.referrer.indexOf("file:/") != -1) {
    var referrerOK = true;
    }
 else if (document.referrer == '') {
    var referrerOK = true;
    }
 if (referrerOK == false) {
    location.replace('index.htm');
    }
}

/* =============================================================================== */ 
/*  Name: fullscreen                                                               */
/*  Function: this is going to cause IE to go into a kind of fullscreen mode       */
/*  Call: fullscreen()                                                             */
/*  Supported Browsers: IE5.x,IE6.x                                                */
/*  Ignored Browsers: Netscape 4.x, Opera x.x                                      */
/*  Author: Dimitris Anoyatis                                                      */
/*  E-Mail(s):dosida@hotmail.com,dosida@f2s.com                                    */
/*  Version: 1.0.2                                                                 */
/*  Status: Freeware (Actually Mentionware; just mention me on your webpage)       */
/*  Requirements: Just keep this with the script please... Not 2 much 2 ask is it? */
/*                                                                                 */
/*                   Hope you find this script useful :)                           */
/* =============================================================================== */

function fullscreen(){
var hdiff;
if (navigator.userAgent.indexOf("MSIE") != -1) { // IE only
 window.moveTo(-4,-4);
 window.resizeTo(screen.width,screen.height);
 hdiff=window.screenTop;
 window.moveTo(-6,-hdiff-7);
 window.resizeTo(screen.width+13,screen.height+hdiff+35)
 }
}
