<!-- External JavaScript Library, crystal.js -->

<!-- SoftQuad Code -->

  function Is () {

     // convert all characters to lowercase to simplify testing
     var agt=navigator.userAgent.toLowerCase()

     // *** BROWSER VERSION ***
     this.major = parseInt(navigator.appVersion)
     this.minor = parseFloat(navigator.appVersion)

     this.nav = ((agt.indexOf('mozilla') != -1) && ((agt.indexOf('spoofer') == -1) && (agt.indexOf('compatible') == -1)))
     this.nav4up = this.nav && (this.major >= 4)
     this.navonly = (this.nav && (agt.indexOf(";nav") != -1))

     this.ie = (agt.indexOf("msie") != -1)
     this.ie4up = this.ie  && (this.major >= 4)

     this.opera = (agt.indexOf("opera") != -1)
  }

  var is = new Is()

<!-- Alpha Code -->	

  imgDir = "images/buttons/";

  imgCache = new Array;
  imgDataOvr = new Array;

		imgCache[30] = { imgo:imgDir+"default/3DeMail.gif", imgv:imgDir+"over/3DeMail.gif", status:true };
		imgCache[31] = { imgo:imgDir+"default/send.gif", imgv:imgDir+"over/send.gif", status:true };
		imgCache[32] = { imgo:imgDir+"default/clear.gif", imgv:imgDir+"over/clear.gif", status:true };				

	// preLoader of images
     
  function loadImg(n) {
     for (count=1; count <= n; count++) {
        imgDataOvr[count] = new Image(); 
        imgDataOvr[count].src = imgCache[count].imgv;
     }
  };
         
  // swap image for mouseOvers
      
  function swapImg(target, n) {
     if(document.images) {
        if (target && target.src) {
           target.src = (imgCache[n].status)?imgCache[n].imgv:imgCache[n].imgo;
           imgCache[n].status = !imgCache[n].status;
        }
     }
  };

  // do the status bar quick

  function quickStatus(quickText) {
    window.status = quickText;
    return true;
  };
	
  // open a window to spec or max

  function specWindow (urladdress, winName, Stats, MaxWidth, MaxHeight) {
    if (MaxWidth == 0) MaxWidth = screen.availWidth;
    if (MaxHeight == 0) MaxHeight = screen.availHeight;

    command = "window.open(urladdress, winName, 'dependent=yes,width=";
    if (MaxWidth > 820) MaxWidth = 820;
    command += MaxWidth;
    command += ",height="
    if (MaxHeight > 740) MaxHeight = 740;
		if (Stats == 'yes') MaxHeight -= 21;
    command += MaxHeight;
    command += ",menubar=no,scrollbars=no,personalbar=no,status=";
		command += Stats;
		command += ",titlebar=no,toolbar=no,resizable=no,screenX=0,screenY=0');";
    eval (command);
  };

	// right clickers

	var urlAddress="clicked/index.htm";
	function noway(go) { 
		if (document.all) { 
			if (event.button == 2) {
				specWindow(urlAddress, "RiGhTCLiCKeD", "no", 468, 0);
				return false;
			}
		} 
		if (document.layers) { 
			if (go.which == 3) {
				specWindow(urlAddress, "RiGhTCLiCKeD", "no", 468, 0);
				return false;
			}
		} 
	};
	
	if (RCdisable) { var byPass = RCdisable; } else { var RCdisable = false; }
	
	if (RCdisable == false) {
	
		if (document.layers) { document.captureEvents(Event.MOUSEDOWN); } 
		document.onmousedown=noway;
	}; 

	 