		
	var tt = new Array(
		['pack'],
		['troop'],
		['crew'],
		['order'],
		['news'],
		['train'],
		['swmc']
	);
	
	for (var i = 0; i < tt.length; i++) {
		myImage = new Image;
		myImage.src = "images/a_" + tt[i] + "_on.gif";
	}

	var NS4 = 0;
	var IE4 = 0;
	var NS6 = 0;

	if (document.layers){
		NS4 = 1;
	} else {
		if (document.all){
			IE4 = 1;
		} else {
			NS6 = 1;
		}
	}

	var timer = null;

	function ShowNav(showEl) {
		clearTimeout(timer);
		noNav();
		changeImage(showEl);
		var whichEl = '';
		if (NS4) {
			whichEl = '';
		} else if (NS6) { 
			whichEl = document.getElementById(showEl).style;
		} else if (IE4) {
			whichEl = document.all[showEl].style;
		}
		
		if (whichEl != '') {
			whichEl.visibility = "visible";
		}
	}

	function noNav() {
		revert();
		for (var i = 0; i < tt.length; i++) {
			var showEl = tt[i];
			var whichEl = '';
			if (NS4){
				whichEl = '';
			} else if (NS6) {
				whichEl = document.getElementById(showEl).style;
			} else {
				whichEl = document.all[showEl].style;
			}
			
			if (whichEl != '') {
				whichEl.visibility = 'hidden';
			}
		}
	}

	function NavOver() {
		clearTimeout(timer);
	}

	function NavOut() {
		clearTimeout(timer);
		timer = setTimeout("noNav()",200);
	}


	function onMenuItem(choose){
			NavOver();
			if (! NS4) choose.className='navigation';
	}
	
	function changeImage(imgName) {
		var whichIM = eval('document.' + imgName + '_pix');
		var imageSrc = "images/a_" + imgName + "_on.gif";
		if (whichIM != null) {
			whichIM.src = imageSrc;
		}
	}
	
	function revert() {
		for (var i = 0; i < tt.length; i++) {
			var imageSrc = "images/a_" + tt[i] + "_off.gif";
			whichIM = eval('document.' + tt[i] + "_pix");
			if (whichIM != null) {
				whichIM.src = imageSrc;
			}
		}
	}
		

function getObj(name) {
	if (document.getElementById) {
		this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
	} else if (document.all) {
		this.obj = document.all[name];
		this.style = document.all[name].style;
	} else if (document.layers) {
		this.obj = document.layers[name];
		this.style = document.layers[name];
	}
}

function turnon(theTag) {
	var x = new getObj(theTag);
	var y = new getObj('dshadow');

	switch (theTag) {
		case "notice1":
			document.images.dsimg.width = 190;
			document.images.dsimg.height = 185;
			y.style.top = 375;
			y.style.left = 155;
			break;
		case "notice2":
			document.images.dsimg.width = 170;
			document.images.dsimg.height = 135;
			if (NS6) {
				y.style.top = 247;
				y.style.left = 292;
			} else {
				y.style.top = 258;
		  	y.style.left = 290;
		  }
		  break;
		default:
		  break;
	}

	x.style.visibility = "visible";
	y.style.visibility = "visible";
}


function turnoff(theTag) {
	var x = new getObj(theTag);
	var y = new getObj('dshadow');
	
	x.style.visibility = "hidden";
	y.style.visibility = "hidden";
}
	
		
function setBookmark(url,title) {
	if (title == "") title = url;
	
	if (window.sidebar) {
		window.sidebar.addPanel(title, url,"");
	}	else if( window.opera && window.print ) {
		var mbm = document.createElement('a');
		mbm.setAttribute('rel','sidebar');
		mbm.setAttribute('href',url);
		mbm.setAttribute('title',title);
		mbm.click();
	} else if( document.all ) {
		window.external.AddFavorite( url, title);
	}
}
		
