<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

var idxs = new Array();
var navs = new Array();

var idx_pages = new Array("a.htm", "artist.htm", "te_index.asp", "access.htm", "../intro/atr/11sm.htm", "../intro/atr/sro.htm", "../intro/atr/print.htm", "rulers.asp");

var nav_pages = new Array("artist.htm", 
"artist_b.htm", 
"artist_c.htm", 
"artist_d.htm", 
"artist_e.htm", 
"artist_f.htm", 
"artist_g.htm", 
"artist_h.htm", 
"artist_i.htm", 
"artist_j.htm", 
"artist_k.htm", 
"artist_l.htm", 
"artist_m.htm", 
"artist_n.htm", 
"artist_o.htm", 
"artist_p.htm", 
"artist_q.htm", 
"artist_r.htm", 
"artist_s.htm", 
"artist_t.htm", 
"artist_u.htm", 
"artist_v.htm", 
"artist_w.htm", 
"artist_x.htm", 
"artist_y.htm", 
"artist_z.htm");

// change from 1 up to 7 for the index page it is

function init() {
	for (var i=1;i<9;i++) {

		var idxID = 'idx_' + i;
		idxs[i] = document.getElementById(idxID);
		idxs[i].onmouseover = mouseGoesOverI;
		idxs[i].onmouseout = mouseGoesOutI;
		idxs[i].onclick = mouseGoesClickI;

		if(idxID == notidx) {
			idxs[i].className = 'idxon';
		} else {
			idxs[i].className = 'idxoff';
		}
	}
	
	for (var i=1;i<27;i++) {

		var navID = 'nav_' + i;
		navs[i] = document.getElementById(navID);
		navs[i].onmouseover = mouseGoesOverS;
		navs[i].onmouseout = mouseGoesOutS;
		navs[i].onclick = mouseGoesClickS;
		
		
		if(navID == notnav) {
			navs[i].className = 'alphaon';
		} else {
			navs[i].className = 'alphaoff';
		}		
	}	

	
}

function mouseGoesOverI() {
if(this.id != notidx) {
this.style.color = '#ffffff';
this.style.background = '#7791d7';
//this.style.cursor='hand';
}
}

function mouseGoesOutI() {
if(this.id != notidx) {
this.style.color = '#8a3d3d';
this.style.background = '#f4f4f2';
//this.style.cursor='default';
}
}

function mouseGoesClickI() {
if(this.id != notidx) {
var num = this.id.substring(this.id.indexOf('_')+1,this.id.length);
//alert(num+'foo');
//alert(this.className);
location.href=idx_pages[num-1];
}
}

function mouseGoesOverS() {
if(this.id != notnav) {
this.className = 'alphaon';
//this.style.color = '#ffffff';
//this.style.background = '#7791d7';
//this.style.cursor='hand';
}
}

function mouseGoesOutS() {
if(this.id != notnav) {
this.className = 'alphaoff';
//this.style.color = '#000000';
//this.style.background = '#f4f4f2';
//this.style.cursor='default';
}
}

function mouseGoesClickS() {
if(this.id != notnav) {
var num = this.id.substring(this.id.indexOf('_')+1,this.id.length);
//alert(num+'foo');
location.href=nav_pages[num-1];
}
}

//window.onload = init;
var stallVariable = 0;
function swapCategory(theID) {
	if (stallVariable == 0) {
		var el = document.getElementById(theID);
		var elArrow = document.getElementById(theID+'Arrow');
			if (el.style.display == 'none' || el.style.display == '') {
				$('#'+theID).slideDown("fast");
				elArrow.src = '/toah/art/thematic_arrow_down.gif';
			} else {
				$('#'+theID).slideUp("fast");
				elArrow.src = '/toah/art/thematic_arrow_right.gif';
			}
	}
	//alert(el.style.display);
}


