// JavaScript Document
function changeImage(obj, src)
{
	obj.src = src;
}

var iFond=0;

function changeFondR(obj, src)
{
	if (obj.style.backgroundImage.indexOf("?")!=-1)
		srcact = obj.style.backgroundImage.substr(0, obj.style.backgroundImage.indexOf("?")) + ")";
	else
		srcact = obj.style.backgroundImage;
	
	if (srcact != src)
	{
		obj.style.backgroundImage="url('"+src+"?p="+iFond+"')";
		iFond++;
	}
}

function changeFond(obj, src)
{	
	//alert(obj.style.backgroundImage);
	if (obj.style.backgroundImage!="url('"+src+"')")
		obj.style.backgroundImage="url('"+src+"')";
}