// JavaScript Document

$(document).ready(function(){
	
	if (!spot && 1==2){
			
	}
})
function show_video(){
			var flashW = 690; 
			var flashH = 396; 
			
			var WindowW = $(window).width();
			var WindowH = $(window).height();
			
			
			var Top   = ((WindowH-flashH)/2);
			var Left   = ((WindowW-flashW)/2);
			
		
			
			$("body").append('<div  id="telon"></div>');
			$("#telon").css({
								'z-index':999999,
								'background':'#000',
								opacity : 0.5
							})
			$("#VIDEO").css({
							width  : flashW+"px",
							height : flashH+"px",
							left   : Left+"px",
							top	   : Top+"px",
							'z-index':9999999
		
							}).show();
			
			$("#telon").click(function(){
				tb_close('panel');
			})
}


function tb_close(Idclose) {
			$("#telon").fadeOut().remove();
			$("#VIDEO").fadeOut();
			$("#contenedor_control").click();
			
}


function close_all(){
	
	tb_remove();
	
	var pos = $("#contenedor").css("left");
	
	if (pos!="-773px"){
			$("#contenedor").animate({left:'-773px'});
			funciones.Nowinterblues('hide');
			$("#apDiv2").show();
	}
	
}