<!--

// '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
// Preload Object

Preload = new Object ();
Preload.images = new Array ();

Preload.add = function (src) {
	this.images[this.images.length] = src;
}
Preload.run = function () {
	if (!document.createElement) return;
	var holder, img;
	holder = document.createElement ("div");
	document.body.appendChild (holder);
	with (holder) {
		with (style) {
			position = "absolute";
			left = "0px";
			top = "0px";
			visibility = "hidden";
		}
	}
	for (var i = 0; i < this.images.length; i++) {
		img = document.createElement ("img");
		img.setAttribute ("src", this.images[i]);
		holder.appendChild (img);
	}
}

// '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
// Swap Class

Swap = function (name) {
	this.name = name;
	this.images = new Object ();
	this.restoresrc = null;
}
Swap.prototype.add = function (state, src) {
	this.images[state] = new Image ();
	this.images[state].src = src;
	Preload.add (src);
}
Swap.prototype.swap = function (state) {
	var img = document.images[this.name];
	this.restoresrc = img.src;
	img.src = this.images[state].src;
}
Swap.prototype.restore = function () {
	if (this.restoresrc) {
		document.images[this.name].src = this.restoresrc;
		this.restoresrc = null;
	}
}

// '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
// Test

img0 = new Swap ("home");
img0.add ("over", "images/nav_home_on.gif");

img1 = new Swap ("about");
img1.add ("over", "images/nav_about_on.gif");

img2 = new Swap ("services");
img2.add ("over", "images/nav_services_on.gif");

img3 = new Swap ("process");
img3.add ("over", "images/nav_process_on.gif");

img4 = new Swap ("resources");
img4.add ("over", "images/nav_resources_on.gif");

img5 = new Swap ("client");
img5.add ("over", "images/nav_client_on.gif");

img6 = new Swap ("contact");
img6.add ("over", "images/nav_contact_on.gif");

img7 = new Swap ("profile");
img7.add ("over", "images/profile_retired.gif");

img8 = new Swap ("profile");
img8.add ("over", "images/profile_family.gif");

img9 = new Swap ("profile");
img9.add ("over", "images/profile_sudden.gif");

img10 = new Swap ("profile");
img10.add ("over", "images/profile_woman.gif");

img11 = new Swap ("profile");
img11.add ("over", "images/profile_smbus.gif");

img13 = new Swap ("phase");
img13.add ("over", "images/phase_accumulate.jpg");

img14 = new Swap ("phase");
img14.add ("over", "images/phase_distribute.jpg");

img15 = new Swap ("phase");
img15.add ("over", "images/phase_protect.jpg");

img16 = new Swap ("phase");
img16.add ("over", "images/phase_transfer.jpg");

img17 = new Swap ("comp");
img17.add ("over", "images/comp_percentage.jpg");

img18 = new Swap ("comp");
img18.add ("over", "images/comp_flat.jpg");

img19 = new Swap ("comp");
img19.add ("over", "images/comp_commission.jpg");

img12 = new Swap ("comp");
img12.add ("over", "images/comp_hourly.gif");

img40 = new Swap ("guests");
img40.add ("over", "images/guests_on.gif");

img41 = new Swap ("clients");
img41.add ("over", "images/clients_on.gif");

window.onload = function () {
	Preload.run ();
}

// '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

// |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// 
// Coded by Travis Beckham
// http://www.squidfingers.com | http://www.podlob.com
// If want to use this code, feel free to do so, but please leave this message intact.
//
// |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// 7.23.02

// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

// remove outlines from anchor links
function blurMe(){
	this.blur();
}
function blurLinks(){
	if(!document.getElementById){
		return;
	}
	links = document.getElementsByTagName('a');
	for(i=0; i<links.length; i++){
		links[i].onfocus = blurMe;
	}
}
window.onload = blurLinks;

// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

// check dom
var w3c = document.getElementById ?true:false;
var ie4 = (document.all && !w3c) ?true:false;
var ns4 = document.layers ?true:false;

// show hide layers
function getStyle(name, nest){
	nest = nest ? 'document.'+nest+'.' : '';
	return w3c ? document.getElementById(name).style : ie4 ? document.all[name].style : ns4 ? eval(nest+'document.'+name) : false;
}
function showVis(name,nest){
	getStyle(name,nest).visibility = 'visible';
}
function hideVis(name,nest){
	getStyle(name,nest).visibility = 'hidden';
}

// write menu layers
function writeMenu(name,left,top,width){
	var d;
	if(ns4){
		d = '<layer name="'+name+'" width="'+width+'" z-index="1000" visibility="hidden" ';
	}else{
		d = '<div id="'+name+'" style="position:absolute; width:'+width+'px; z-index:1000; visibility:hidden" ';
	}
	d += 'onMouseOver="showVis(\''+name+'\')" onMouseOut="hideVis(\'' +name+ '\')">';
	return d;
}
function endMenu(){
	return ns4 ? '<\/layer>' : '<\/div>';
}

// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::


// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_closeBrWindow(theURL,winName) 
		{window.close(theURL,winName);
}

function showStock(orgName,miscData,cssClass)
{
	updateTime = miscData.split(" - ")[0];
	currentPrice = miscData.split(" - ")[1];

	document.write("<tr class=" + cssClass + "><td class=" + cssClass + ">" + orgName + "</td><td valign=top class=" + cssClass + ">" + currentPrice + "</td></tr>");	
}

//-->