//
// Begin date script
//

	var months = new Array(13);
		months[1] = "January";
		months[2] = "February";
		months[3] = "March";
		months[4] = "April";
		months[5] = "May";
		months[6] = "June";
		months[7] = "July";
		months[8] = "August";
		months[9] = "September";
		months[10] = "October";
		months[11] = "November";
		months[12] = "December";
	
	var days = new Array(8);
		days[1] = "Sun";
		days[2] = "Mon";
		days[3] = "Tue";
		days[4] = "Wed";
		days[5] = "Thu";
		days[6] = "Fri";
		days[7] = "Sat";
		
	var time = new Date();
	var lmonth = months[time.getMonth() + 1];
	var lday = days[time.getDay() + 1];
	var date = time.getDate();
	var year = time.getYear();
	
	if ((navigator.appName == "Microsoft Internet Explorer") && (year < 2000))		
		year = "19" + year;
	if (navigator.appName == "Netscape")
		year = 1900 + year;
	
	function printDate() {
		document.write(lmonth + " " + date + ", " + year);
	}


//
// end date script
//

//
//
//


// ******************************************************
// Script from Stefan Koch - Voodoo's Intro to JavaScript
//     http://rummelplatz.uni-mannheim.de/~skoch/js/ 
//       JS-book: http://www.dpunkt.de/javascript
//    You can use this code if you leave this message
// ******************************************************

  // ok, we have a JavaScript browser
  var browserOK = false;
  var pics;



  // JavaScript 1.1 browser - oh yes!
  browserOK = true;
  pics = new Array();



var objCount = 0; // number of (changing) images on web-page

function preload(name, first, second) {  

  // preload images and place them in an array

  if (browserOK) {     
    pics[objCount] = new Array(25);
    pics[objCount][0] = new Image();
    pics[objCount][0].src = first;
    pics[objCount][1] = new Image();
    pics[objCount][1].src = second;
    pics[objCount][2] = name;
    objCount++;
  }
}

function on(name){
  if (browserOK) {
     for (i = 0; i < objCount; i++) {
      if (document.images[pics[i][2]] != null)
        if (name != pics[i][2]) { 
          // set back all other pictures
          document.images[pics[i][2]].src = pics[i][0].src;
        } else {
           // show the second image because cursor moves across this image
           document.images[pics[i][2]].src = pics[i][1].src;
        }
    }
  }
}

function off(){
  if (browserOK) {
     for (i = 0; i < objCount; i++) {
      // set back all pictures
      if (document.images[pics[i][2]] != null) 
        document.images[pics[i][2]].src = pics[i][0].src;
    }
  }
}

// preload images - you have to specify which images should be preloaded
// and which Image-object on the wep-page they belong to (this is the first
// argument). Change this part if you want to use different images (of course
// you have to change the body part of the document as well)
// ADD THE NAMES OF YOUR IMAGES HERE

preload("link1","pics/colin-baxter.gif" , "pics/whatwedo1.gif");
preload("link2","pics/advancedsystems.gif" , "pics/enter-site2.gif");


//
//
//



var message="Copyright Colin Baxter. All Rights Reserved."; // Message for the alert box
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;

//
//
//
//


//
//
//


// EMAIL HIDER
// Code written by Fajar Siswandaru 
// fajar@bdg.centrin.net.id
function showemail() {
    var name = "office";
    var host = "colin-baxter.com";
    var delim = "\@";
    var href = 'mailto:';
    var text = '\<a href="' + href + name + delim + host + '">';
document.write(text); 
}

//
//
//

// ANOTHER EMAIL HIDER
// Code written by Fajar Siswandaru - modified by COLIN BAXTER 
// fajar@bdg.centrin.net.id
function showessexmail() {
    var name = "colinb";
    var host = "essex.ac.uk";
    var delim = "\@";
    var href = 'mailto:';
    var text = '\<a href="' + href + name + delim + host + '">';
document.write(text); 
}

//
//
//

// (C) 2001 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header

var howLong = 900000;

t = null;
function closeMe(){
t = setTimeout("self.close()",howLong);
}

//
// Chromeless calculator - js script and gifs in calculator directory 
//

function openIT(theURL,W,H, wname) {
   CLOSEdwn = "close_dwn.gif"
   CLOSEup = "close_up.gif"
   CLOSEovr = "close_ovr.gif"
   MINIdwn = "mini_dwn.gif"
   MINIup = "mini_up.gif"
   MINIovr = "mini_ovr.gif"
   NONEgrf = "none.gif"
   CLOCKgrf = "clock.gif"
   titHTML = "Calculator" //change to your desired window title
   titWIN = "Calculator" //your desired status bar title
   winBORDERCOLOR = "#000000" //change to your desired border color
   winBORDERCOLORsel = "#FFFFFF" //change to your desired selected border color
   winBGCOLOR = "#FF0000" //change to your desired top bar background color
   winBGCOLORsel = "#00FF00" //change to your desired top bar selected background color
   mywin = openchromeless(theURL, wname, W, H, NONEgrf, CLOSEdwn, CLOSEup, CLOSEovr, MINIdwn, MINIup, MINIovr, CLOCKgrf, titHTML, titWIN, winBORDERCOLOR, winBORDERCOLORsel, winBGCOLOR, winBGCOLORsel)
}








