var xmlHttp

function showPhoto(dir)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  return;
var url=dir+"?md=faces&action=show_face&no_index_page=1";
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{if(document.getElementById('faces_tag'))
document.getElementById('faces_tag').innerHTML=xmlHttp.responseText;
}else{if(document.getElementById('faces_tag'))
	document.getElementById('faces_tag').innerHTML = "<p align='center'>Please wait...</p>";
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

function initAll(param){
	setInterval("showPhoto('"+param+"');", 15*1000);
	showPhoto(param);
}

function update_shipping(value)
{
	if(value)
		document.getElementById('shipping').innerHTML='8.75';
	else
		document.getElementById('shipping').innerHTML='5';

}