/************************************************************
 * This first part is for the main menu images for portlets.
 * (the images with the dotted outline in the top-left corner
 * of all of the portlets.
 * 
 * the array takes all of the names of the images (in h_NAME.gif format)
 * and the function below will preload the images.
 * also, the mouseover functions are defined below as well.
 ************************************************************/



// The functions: first mouseover, then mouseout

function over(id){
	if (document.images){
		document.images[id].src = document.images[id].getAttribute('hi')
	}
}

function out(id){
	if (document.images){
		document.images[id].src = document.images[id].getAttribute('low')
	}
}

// The functions: first mouseover, then mouseout

function over1(no, id)
{
	if (document.images)
	{
		document.images[ddimages1[no] + id].src = omo1[no].src
	}
}

function out1(no, id)
{
	if (document.images)
	{
		document.images[ddimages1[no] + id].src = nrm1[no].src
	}
}

//
function preload(path, imgAry){
	if (document.images){
		for (i=0;i<imgAry.length;i++){
			img = new Image;
			img.src = path + imgAry[i]
		}
	}	
}

