// JavaScript Document

function setClass(pId, pClass){
	var elmt = getID(pId);
	if(elmt) {
		elmt.className = pClass;
	}
}



// Slybook
// a function to get an element by ID according to the nvigator used
// return the element

function getID(pID) {
	var ns4 = (document.layers) ? true:false;         	//NS 4
	var ie4 = (document.all) ? true:false;         		//IE 4
	var dom = (document.getElementById) ? true:false;   //NS 6 ou IE 5
    if (dom) return document.getElementById(pID);
    if (ie4) return document.all[pID];
	if (ns4) return eval('document.'+pID+'.document');
}