// rollover and pop-up code

if(document.images) {
	var singlepixel = new Image();
	var singlepixedgrey = new Image();

	singlepixel.src = "images/spacer.gif";
	singlepixedgrey.src = "images/spacer_grey.gif";
	
	/* this is calling the arrow rollover for the navigation */
	/* arrow blue */
	var arrowmenu = new Array();
	for (var i = 0; i <= 15; i++) {
		arrowmenu[i] = new Image();
		arrowmenu[i].src = "images/arrow.gif";
	}   
	/* end arrorw a-g for navigation */
	
	/* this is calling the arrow rollover for the composers
		this will be dynamically generated via perl -> database */
	/* arrow gray */
	var arrow = new Array();
	for (var a = 0; a < 66; a++)	{
		arrow[a] = new Image();
		arrow[a].src = "images/arrow_gray.gif";
	}   

var arrowdl = new Array();


 for (var d = 0; d <= 4; d++){
	arrowdl[d]=new Image();
	arrowdl[d].src="images/arrow.gif";
	}

	
	/* this is calling the arrow rollover for the main letter navigation */
	/* arrow gray */
	var letter = new Array();
	for (var b = 0; b < 4; b++)	{
		letter[b] = new Image();
		letter[b].src = "images/arrow_gray.gif";
	}
	
	/* this is calling the arrow rollover for the about navigation */
	/* arrow gray */
	var about = new Array();
	for (var c = 0; c < 6; c++)	{
		about[c] = new Image();
		about[c].src = "images/arrow_gray.gif";
	}
	
	/* this is calling the arrow rollover for the about navigation */
	/* arrow gray */
	var aboutstaff = new Array();
	for (var c = 0; c < 4; c++)	{
		aboutstaff[c] = new Image();
		aboutstaff[c].src = "images/arrow_gray.gif";
	}
	
	/* this is for the audio icons */
	var iconsml_default = new Image();
	iconsml_default.src = "images/iconsml_default.gif";
	var iconsml_ro = new Image();
	iconsml_ro.src = "images/iconsml_ro.gif";
	var iconbig_default = new Image();
	iconbig_default.src = "images/iconbig_default.gif";
	var iconbig_ro = new Image();
	iconbig_ro.src = "images/iconbig_ro.gif";
	
}

/* this function uses the blue pixel */
function off(imgName) {
	if(document.images) {
		document[imgName].src = eval('singlepixel.src');
	}
}

/* this function uses the grey pixel */
function offgrey(imgName) {
	if(document.images) {
		document[imgName].src = eval('singlepixedgrey.src');
	}
}


function on(imgName) {
	if(document.images) {
		document[imgName].src = eval(imgName + '.src');
	}
}


function pop(str,len){
	
	if(len > 0) {
		
	} else {
	//  default
		len=450;
	}
	popup = window.open(str,'bio','height=' + len + ',width=400,scrollbars=YES,screenX=500,screenY=300');
	popup.focus();
}



function foc(){
    document.sform.sterm.focus();
}

/* for audio icon roll overs */
function iconOn(imgName,bigOrSmall) {
	if (document.images) {
		document[imgName].src = eval('icon' + bigOrSmall + '_ro.src');
	}
}
function iconOff(imgName,bigOrSmall) {
	if (document.images) {
		document[imgName].src = eval('icon' + bigOrSmall + '_default.src');
	}
}

