function hideDiv(theDivID)
{
 if (document.getElementById)
 {
  document.getElementById(theDivID).style.visibility = 'hidden';
 }
 else if (document.all)
 {
  document.all[theDivID].style.visibility = 'hidden';
 }
 else if (document.layers)
 {
  document.layers[theDivID].style.visibility = 'hidden';
 }
}

function largeVideo(v_id,v_url,v_name,id,v_width,v_height){
 hideDiv("udm");
 if(document.getElementById("goldsquares") != null) {
   hideDiv("goldsquares");
 }
 largewindow=dhtmlmodal.open(v_id, "iframe", v_url, v_name, "width="+v_width+"px,height="+v_height+"px,center=1,resize=0,scrolling=0","recal");
 view_video(id);
}

function showDiv(theDivID)
{
 if (document.getElementById)
 {
  document.getElementById(theDivID).style.visibility = 'visible';
 }
 else if (document.all)
 {
  document.all[theDivID].style.visibility = 'visible';
 }
 else if (document.layers)
 {
  document.layers[theDivID].style.visibility = 'visible';
 }
}

function view_video(idVideo){ 
var ajaxRequest; 
var retVal;
try { 
 ajaxRequest=new XMLHttpRequest();  
} catch (e) {
 try {    
  ajaxRequest=new ActiveXObject("Msxml2.XMLHTTP");    
 } catch (e) {    
  try {      
   ajaxRequest=new ActiveXObject("Microsoft.XMLHTTP");      
  } catch (e) {     
   //alert("Your browser does not support AJAX!");      
   return false;      
  }    
 }  
} 
ajaxRequest.onreadystatechange = function() {  
 if (ajaxRequest.readyState==4 && ajaxRequest.status == 200)  {   
  retVal = ajaxRequest.responseText;  
 } 
} 
ajaxRequest.open("POST", "/resources/videos/video_cc.php?vid="+idVideo, true); ajaxRequest.send(""); 
}
