/*******************************************************************
* soopa-rollovers.js
* 7/28/2001
* www.youngpup.net
*
* easiest rollovers on earth, baby!
* see www.youngpup.net for documentation.
*******************************************************************/

function soopaSetup() {
       var img, sh, sn, sd;
       for (var i = 0; (img = document.images[i]); i++) {
               if (img.getAttribute) {

                       sn = img.getAttribute("src");
                       sh = img.getAttribute("hsrc");
                       sd = img.getAttribute("dsrc");

                       if (sn != "" && sn != null) {
                               img.n = new Image();
                               img.n.src = img.src;

                               if (sh != "" && sh != null) {
                                       img.h = new Image();
                                       img.h.src = sh;
                                       img.onmouseover = soopaSwapOn;
                                       img.onmouseout  = soopaSwapOff;
                               }

                               if (sd != "" && sd != null) {
                                       img.d = new Image();
                                       img.d.src = sd;
                                       img.onmousedown = soopaSwapDown;
                               }
                       }
               }
       }
}

// Turn off All Nav Items
function soopaClear() {
       for(var i = 0; (img = document.images[i]); i++) {
               if (img.getAttribute) {
                       sn = img.getAttribute("src");
                       sh = img.getAttribute("hsrc");
                       sd = img.getAttribute("dsrc");
                       if (sh != "" && sh != null) {
                               if(document.images[i].src == document.images[i].h.src) {
                                       document.images[i].src = document.images[i].n.src;
                               }
                       }
               }
       }
}

function soopaSwapOn() {
	soopaClear();
	this.src = this.h.src;
	window.status='';	/* Switch layers and		*/
	return true;		/* Keep window status clean	*/
}

function soopaSwapOff() {
	this.src  = this.n.src;
	window.status='';	/* Switch layers and		*/
	return true;		/* Keep window status clean	*/
}