function oculta_video() {
document.getElementById('capa_video').style.visibility="hidden";
document.getElementById('button_play').style.visibility="visible";
}

function reproducir_video(storeID, force){
	
	var xmlhttp = null;
	if (window.XMLHttpRequest) {
	// If IE7, Mozilla, Safari, and so on: Use native object.
    xmlhttp = new XMLHttpRequest();
    }
    else
    {
    if (window.ActiveXObject) {
     // ...otherwise, use the ActiveX control for IE5.x and IE6.
     xmlhttp = new ActiveXObject('MSXML2.XMLHTTP.3.0');
    }
   }
   
   // We use a timestamp argument to avoid browser caching ajax responses
   var timestamp = new Date();
  
   xmlhttp.onreadystatechange=function(){
		if(xmlhttp.readyState==4){
			document.getElementById("fl_video").innerHTML=xmlhttp.responseText;
			document.getElementById("capa_video").style.visibility= "visible";
			document.getElementById("button_play").style.visibility="hidden";
			if (document.getElementById("fl_video").innerHTML == '') {
				oculta_video();					
			}			
		}		
	}
	
	xmlhttp.open("GET","videoModerator/call_video.php?storeID=" + storeID + "&force=" + force + "&timestamp=" + timestamp.getTime(), true);
	xmlhttp.send(null);	
	
}