function item_active(obj, ref) {
  obj.style.background = '#8D97A9';
  document.getElementById(ref).className = 'link_over';
  obj.style.cursor = 'hand';
}

function item_normal(obj, ref) {
  obj.style.background= '#CBD2D5';
  document.getElementById(ref).className = 'link_out';
}

function set_active(obj, ref) {
  document.getElementById(ref).className = 'box_over';
  obj.style.cursor = 'hand';
}

function set_normal(ref) {
  document.getElementById(ref).className = 'box_out';
}

function getImgName()
{
	// create the image group
	var imageGroup = new Array();
	
	// set the image files to go in the group
	imageGroup[0] = 'image0.jpg'; 
	imageGroup[1] = 'image1.jpg';
	imageGroup[2] = 'image2.jpg';
	imageGroup[3] = 'image3.jpg';
	imageGroup[4] = 'image4.jpg';
	imageGroup[5] = 'image5.jpg';
	imageGroup[6] = 'image6.jpg';
	imageGroup[7] = 'image7.jpg';
	

	
	// generate random number
	var index1 = Math.floor(Math.random() * imageGroup.length);

	// return image name from the image group, using random number
	return imageGroup[index1];
}