<!--

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_closeBrWindow(theURL,winName) 
		{window.close(theURL,winName);
}

// '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
// 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

img1 = new Swap ("hai");
img1.add ("over", "http://www.peoplepact.com/images/hai_on.gif");

img2 = new Swap ("cs");
img2.add ("over", "http://www.peoplepact.com/images/cs_on.gif");

img3 = new Swap ("library");
img3.add ("over", "http://www.peoplepact.com/images/library_on.gif");

img4 = new Swap ("talk");
img4.add ("over", "http://www.peoplepact.com/images/talk_on.gif");

img5 = new Swap ("partners");
img5.add ("over", "http://www.peoplepact.com/images/partners_on.gif");

img6 = new Swap ("store");
img6.add ("over", "http://www.peoplepact.com/images/store_on.gif");

img7 = new Swap ("contact");
img7.add ("over", "http://www.peoplepact.com/images/contact_on.gif");

img8 = new Swap ("design");
img8.add ("over", "http://www.peoplepact.com/images/foot_design_on.gif");

window.onload = function () {
	Preload.run ();
}

//dropdowns

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;


//-->