//Highlight image script- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
//This credit MUST stay intact for use

function makevisible(cur,which){
strength=(which==0)? 1 : 0.2

if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
else if (cur.filters)
cur.filters.alpha.opacity=strength*100

visibleImg=cur;

}

function makeInvisible(cur,which)
{
	strength=(which==0)? 1 : 0.2

	if (cur.style.MozOpacity)
		cur.style.MozOpacity=strength
	else if (cur.filters)
		cur.filters.alpha.opacity=strength*100
}

function borderit(which,color)
{
	//if IE 4+ or NS 6+
	if (document.all||document.getElementById){
		which.style.borderColor=color
	}
}

function highlightImg(obj, idx)
{
//make invisible current img
	makeInvisible(visibleImg,1);
	borderit(visibleImg,'#C9DCF6');

//make visible mouseover img
	makevisible(obj,0);
	borderit(obj,'#8E0606');
	generatedescription(idx);
}

//above code is for fade/bright images
//below code is for mouseover image text

var visibleImg;
var description=new Array()
description[0]="Mouseover column<br>default text text text text texttext texttext texttext texttext text text texttext texttext texttext text<br>text text text texttext texttext texttext texttext text text texttext texttext texttext text";
description[1]=overviewText;//defined htmlVar js
description[2]=studentText;
description[3]=afrlText;

function generatedescription(which){
	document.getElementById("mCol").innerHTML = description[which];
}



function defaultDescription(objname, idx)
{
	var obj=document.getElementById(objname);
	makevisible(obj,0);
	borderit(obj,'#8E0606');
	generatedescription(idx);

}