			var NameOfCookie = "Cookie_video_1";
			var value = "novideo";
			var theHeightx = theHeight + 20;
			var theWidthx = theWidth + 20;
			
			
			// THIS TO ALIGN THE PLAYER
		   
		   function changeAlign(divID) {
		document.getElementById(divID).style.textAlign = playerAlign;
	}
	changeAlign('video');
	
	/////////////////////////////////////////////////////////
	
		
		function getCookie(NameOfCookie){
    if (document.cookie.length > 0) {              
    begin = document.cookie.indexOf(NameOfCookie+"=");       
    if (begin != -1) {           
      begin += NameOfCookie.length+1;       
      end = document.cookie.indexOf(";", begin);
		if (end == -1) end = document.cookie.length;
        return unescape(document.cookie.substring(begin, end));
		
    } 
  }
  return null;
}

function setCookie(NameOfCookie, value, expiredays) {
var ExpireDate = new Date ();
ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));

  document.cookie = NameOfCookie + "=" + escape(value) + 
  ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}

		
		
		
		//alert('Hi there '+NameOfCookie+' - Good to see you again!');
		
		lagalleta=getCookie(NameOfCookie);
		
		//alert(lagalleta);
		

		// ESTO BORRA LA Cookie
		// document.cookie = NameOfCookie + "=" +"; expires=Thu, 01-Jan-70 00:00:01 GMT";
		
		      var FO = { 
              movie:"yatza_player_files/"+thePlayer+"?name_of_the_video="+theVideo+"&the_buffer="+theBuffer+"&closeAfterplays="+closeAfterplays+"&closebutton="+closeButton+"&videolink="+theLink+"", 
              width:""+theWidthx+"",height:""+theHeightx+"",majorversion:"8",build:"0",
              flashvars:"",menu:"false",wmode:"transparent"
            };
			
			if (playonce != "yes") {
			//alert("Si se va a poner siempre");
			// ESTO PONE EL VIDEO
			UFO.create(FO, "video");
			// ESTO LA BORRA POR SI ACASO SE HABIA INSTALADO ANTES
			document.cookie = NameOfCookie + "=" +"; expires=Thu, 01-Jan-70 00:00:01 GMT";
		} else {
		if (lagalleta == "novideo") {
			//alert("ya se puso hoy, asi que no se pondra de nuevo");
			
			} else {
			//alert("Si se va a poner esta vez");
			// ESTO PONE EL VIDEO
			UFO.create(FO, "video");
			//Instalar la cookie para que solo se ponga una vez
			setCookie(NameOfCookie,value,expiredays);
			}
		}
           