/* code for table rollovers */

//SWAP CLASS(element object, classname)
function sC(elm,cn)
{
	if(!elm){return;}
	elm.className = cn;
}
//FIND LINK AND GO(element object [, target, linkid])
//target	- optional, "_self" by default, ie the same window
//lnkid		- optional, the value of the id attribute within an A element inside the element object
//			  if not specified, the script will attempt to find a the first A element with an href
//			  attribute inside the element object
function fLaG(elm,trgt,lnkid)
{
	if(!elm){return;}

	var t = "_self";
	if(trgt){t=trgt;}

		var a;
		if(lnkid){a=document.getElementById(lnkid);}
			else
			{
			var l = elm.getElementsByTagName('A');
			if(l)
			{
				for(var i=0;i<l.length;i++)
			{
				if(l[i].href){a = l[i];break;}
			}
		}
	}
		if(a)
	{
		if(a.href){window.open(a.href,t);}
		else{return;}
	}
	else{return;}
}