var total = 0;
var graphic = new Array();

function rollovergrap(width, height, name) {
	if (document.images){
		this.width = width;
		this.height = height;
		this.off = new Image(width,height);
		this.off.src = "images/"+name+".gif";
		this.on = new Image(width,height);
		this.on.src = "images/"+name+"R.gif";
	}
}

function rollover(width, height, name) {
	if (document.images){
		this.width = width;
		this.height = height;
		this.off = new Image(width,height);
		this.off.src = "images/"+name+".gif";
		this.on = new Image(width,height);
		this.on.src = "images/"+name+"R.gif";
	}
}


function createSwap(width,height,name) {
	if (document.images){
		graphic[total] = new rollovergrap(width,height,name);
		total++;
	}
}

function createSwap2(width,height,name) {
	if (document.images){
		graphic[total] = new rollover(width,height,name);
		total++;
	}
}


function swap(name,num) {
	if (document.images){
		document.images[name].src = graphic[num].on.src;
	}
}

function undoswap(name,num) {
	if (document.images){
		document.images[name].src = graphic[num].off.src;
	}
}

createSwap(119,24,"b_home");//0
createSwap(119,24,"b_portfolio");//1
createSwap(119,24,"b_contactme");//2


var now = new Date();
var eventDate = new Date("Jan 01 2002 00:00:00");
var seconds = (eventDate-now)/1000;
var minutes = seconds/60;
var hours = minutes/60;
var days = hours/24;
days = Math.round(days);
