function hoverImg(img)
{
  if (img.src.indexOf("hover") > -1)
    img.src = img.src.replace("button-hover", "button");
  else
    img.src = img.src.replace("button", "button-hover");
}

function blank(obj)
{
	return !window.open(obj.href,'_blank','');
}

function changeProduct(delta)
{
  if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
  }
  else
  {// code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
  xmlhttp.onreadystatechange=function()
  {
    if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
      document.getElementById("ajax-content").innerHTML = xmlhttp.responseText;
      Cufon.replace('h1', { fontFamily: 'Aller-display' } );
    }
  }
  xmlhttp.open("GET", "/product-change.php?delta=" + delta, true);
  xmlhttp.send();
}

