var flag = false;

function imageLoad() {
////////////////////
// called with onLoad()
	if (document.images) {
		composers_on = new Image(); composers_on.src = "images/gray1_on.gif";
		supervisors_on = new Image(); supervisors_on.src = "images/gray2_on.gif";
		editors_on = new Image(); editors_on.src = "images/gray3_on.gif";
		recartists_on = new Image(); recartists_on.src = "images/gray4_on.gif";
         
// and so on until you load them all          
         return (flag = true);  
// set the flag and let the function know know it can work
	}
}

function popupWindow(url,w,h,doResize,doScroll,x0,y0) {
/////////////////////////////////////////////////////
//	adjust these if required
	if (doResize=="") doResize=0;
	if (doScroll=="") doScroll=0;
	if (w=="") w=500;
	if (h=="") h=500;
	if (x0=="") x0=30;
	if (y0=="") y0=120;
        WinAtts='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars='+doScroll+',resizable='+doResize+',left=50,top=50'
        WinAtts+=',copyhistory=0,width='+w+',height='+h+',alwaysRaised=1'
	if (x0!='') WinAtts+=',left='+x0+',top='+y0
	mediaWindow.close();
        mediaWindow=window.open(url,'mediaWindow',WinAtts)
        mediaWindow.focus();
}

function popupSite(url,w,h) {
///////////////////////////
        WinAtts='width='+w+',height='+h+',toolbar=0,location=1,directories=1,status=0,menubar=1,scrollbars=1,resizable=1,left=30,top=30'
        mediaWindow=window.open(url,'mediaWindow',WinAtts)
        mediaWindow.focus();
}

if (document.images) {
// load the off images 
	composers_off = new Image(); composers_off.src = "images/gray1.gif";
	supervisors_off = new Image(); supervisors_off.src = "images/gray2.gif";
	editors_off = new Image(); editors_off.src = "images/gray3.gif";
	recartists_off = new Image(); recartists_off.src = "images/gray4.gif";
 }

function move_in(imgName) {
/////////////////////////
	if(document.images && (flag == true)) {
		document[imgName].src = eval(imgName + "_on.src")
 	} 
}

function move_out(imgName) {
//////////////////////////
// the normal onMouseOut function
 	if(document.images) {
	 	document[imgName].src = eval(imgName + "_off.src")
	}
} 
// -->
