//main nav 

mn1 = new  Image();
mn1.src = "/images/blank.gif";

rl1 = new  Image();
rl1.src = "/images/mp/sbb_main_nav_01b.gif";

rl2 = new  Image();
rl2.src = "/images/mp/sbb_main_nav_02b.gif";

rl3 = new  Image();
rl3.src = "/images/mp/sbb_main_nav_03b.gif";

rl4 = new  Image();
rl4.src = "/images/mp/sbb_main_nav_04b.gif";

rl5 = new  Image();
rl5.src = "/images/mp/sbb_main_nav_05b.gif";

rl6 = new  Image();
rl6.src = "/images/mp/sbb_main_nav_06b.gif";

rl7 = new  Image();
rl7.src = "/images/mp/sbb_main_nav_07b.gif";

rl8 = new  Image();
rl8.src = "/images/mp/sbb_main_nav_08b.gif";

function hiLite(name, source)
{
	document.images[name].src = eval(source + ".src");
}


//images[id's] to get rollovers
var arRoll = new Array("ro_t1","ro_t2","ro_t3","ro_t4","ro_t5","ro_b1","ro_b2","ro_b3","ro_b4");
var over = new Array();
var out = new Array();
function addRollovers(idArr) {
	var imgs, a
	if (!document.images) return;

	for (i = 0; i < idArr.length; i++) {
		imgs = getObj(idArr[i]);
		if (!imgs) continue;
		a = imgs.parentNode;
		if (a && a.tagName == 'A'){
			over[i] = new Image();
			out[i] = new Image();
			over[i].src = getRollSrc(imgs.src,"gif",1);
			out[i].src = imgs.src;
			imgs.setAttribute('index',i);
			a.onmouseover = function() { this.childNodes[0].src = over[this.childNodes[0].getAttribute('index')].src; }
			a.onfocus = function() { this.childNodes[0].src = over[this.childNodes[0].getAttribute('index')].src; }
			a.onmouseout = function() { this.childNodes[0].src = out[this.childNodes[0].getAttribute('index')].src; }
			a.onblur = function() { this.childNodes[0].src = out[this.childNodes[0].getAttribute('index')].src; }
		}
	}
}
function getRollSrc(src, ext, hover) {
	return (hover) ? src.replace("a."+ext,"b."+ext) : src.replace("b."+ext,"a."+ext);
}

function initPage() {
	if (document.images) {
		addRollovers(arRoll);

		el = getObj('search');
		if (el) {
			shover = function() { this.src = getRollSrc(this.src,"gif",1); }
			snohover = function() { this.src = getRollSrc(this.src,"gif",0); }
			el.onmouseover = shover;
			el.onfocus = shover;
			el.onmouseout = snohover;
			el.onblur = snohover;
		}
		el = getObj('enewsgo');
		if (el) { 
			ehover = function() { this.src = getRollSrc(this.src,"gif",1); }
			enohover = function() { this.src = getRollSrc(this.src,"gif",0); }
			el.onmouseover = ehover;
			el.onfocus = ehover;
			el.onmouseout = enohover;
			el.onblur = enohover;
		}
	}
}
addEvent(window,'load',initPage);