

// JavaScript Document

function swapLink(path)
{
	document.getElementById("hiResLink").href=path;
}

function swapTagOff(obj) 
{
	var liste = document.getElementsByTagName('img');
	for(var i=0;i<liste.length;i++){ 
		attName = liste[i].getAttribute('name');
		if(attName.match('tag') && attName!=obj.name) {
			attSrc = liste[i].getAttribute('src');
			index = attSrc.lastIndexOf('_');
			before = attSrc.substring(0, index);
			document.getElementById(attName).src=before+"_reg.gif";
		}
	}
}

function swapTag(obj)
{
	tagName = obj.name;
	attSrc = document.getElementById(tagName).src;
	index = attSrc.lastIndexOf('_');
	before = attSrc.substring(0, index);
	document.getElementById(tagName).src=before+"_hov.gif"; 
	id = 'laCouleur';
	text = document.getElementById(tagName).alt;
	if (document.getElementById)
	{
		x = document.getElementById(id);
		x.innerHTML = '';
		x.innerHTML = text;
		x.setAttribute('alt', text);
	}
	else if (document.all)
	{
		x = document.all[id];
		x.innerHTML = text;
	}
	else if (document.layers)
	{
		x = document.layers[id];
		text2 = '<P CLASS="testclass">' + text + '</P>';
		x.document.open();
		x.document.write(text2);
		x.document.close();
	}
	
}

function writeColor(text,id)
{

}


function setClass(objet,dmcNom){objet.className=dmcNom;} 
/* Objet : Objet HTML ou XHTML 
dmcClass : nom de la class à assigner à l'objet HTML 
*/
