<!--
function prepSkinBar()
{
	var skinBar = document.getElementById("skinBar");
	skinBar.images = skinBar.getElementsByTagName("img");
	skinBar.locked = true;
	
	for(var i = 0; i < skinBar.images.length; i++)
	{
		var currImage = skinBar.images.item(i);
		currImage.origSrc = currImage.src;
		currImage.origWidth = currImage.width;
		currImage.origHeight = currImage.height;
		
		var src = currImage.src;
		currImage.overSrc = src.substring(0, src.lastIndexOf("\/") + 1) + "on_" + src.substring(src.lastIndexOf("\/") + 1, src.length);
		currImage.overImage = new Image(currImage.width,currImage.height);
		currImage.overImage.src = currImage.overSrc;
		//switching, moving, zooming
		currImage.onmouseover = function imgover(){
			this.src = this.overSrc;
		};
		currImage.onmouseout = function imgout(){
			this.src = this.origSrc;
		};
	}
	skinBar.locked = false;
}

// All you have to do is put another text in the variable message.
// Don't forget to break all lines with a ^
// When you do not place a ^ at the end of all the message, the
// message will not repeat

message =	"iMad ... Instinctively Making A Difference ^" +
			"iMad ... Indescribable Moments and Days ^" +
			"iMad ... In Moulding And Designing for the better ^" +
		  	"iMad ... i Min And Derek... ^" +
	   		"please come in... take a seat... its always free... ^"+
		   	" ^";
			
scrollSpeed = 25;
lineDelay   = 1500;

// Do not change the text below //
txt = "";

function scrollText(pos) {
if (message.charAt(pos) != '^') {
  txt = txt + message.charAt(pos);
  status = txt;
  pauze  = scrollSpeed;
}
else 
{
  pauze = lineDelay;
  txt = "";
  if(pos == message.length-1) pos = -1;
}
pos++;
setTimeout("scrollText('"+pos+"')",pauze);
}

function checkAuthor(author)
{
	if(author=="derek")
		document.write("<img src=\"http://members.lycos.co.uk/derekfoo/images/his.txt\" height=\"25\"> ");
	else
		document.write("<img src=\"http://members.lycos.co.uk/derekfoo/images/hers.txt\" height=\"25\"> ");
}

var skin = "imac";
var locIndex = 0;
var ourPics = new Array(4);
for(var i = 0; i < 4; i++)
{
	ourPics[i] = new Image();
	ourPics[i].src = "http://members.lycos.co.uk/derekfoo/images/us" + i + ".txt";
}

if(location.search)
{
    var param = location.search;
	skin = param.substring(1, param.length);
}

function changeSkin(nextSkin)
{
	url = window.location.href;
	window.location.href = url.substring(0, url.indexOf("?")) + "?" + nextSkin;
}

function changePics()
{
	var rand1 = Math.round(Math.random()*3);
	var rand2 = Math.round(Math.random()*3);
	while(rand1 == rand2)	rand2 = Math.round(Math.random()*3);
	
	var pic1 = document.getElementById("pic1");
	var pic2 = document.getElementById("pic2");
	pic1.src = ourPics[rand1].src;
	pic2.src = ourPics[rand2].src;
}

document.write('<link rel=\"stylesheet\" type=\"text\/css\" href=\"http://members.lycos.co.uk/derekfoo/' + skin + '.css\" \/>');
document.write('<script language=\"javascript\" type=\"text\/javascript\" src=\"http://members.lycos.co.uk/derekfoo/' + skin + '.js\" ><\/script>');
-->