function mudaFotoThumb(estado,ths){
	img = ths.childNodes[0].childNodes[0].src;
	if(estado == "1"){
		novaImg = img.replace(/(i_[0-9]+)a(.gif)/g, "$1d$2");
		ths.childNodes[0].childNodes[0].src = novaImg;
		ths.childNodes[1].innerHTML = "Depois";
	}else if (estado == "0"){
		novaImg = img.replace(/(i_[0-9]+)d(.gif)/g, "$1a$2");
		ths.childNodes[0].childNodes[0].src = novaImg;
		ths.childNodes[1].innerHTML = "Antes";
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
    return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}
