
function ven_size(documento,x,y){
flotante=window.open(documento,"video","toolbar=no,width="+x+",height="+y+",left=200,top=200,menubar=no,scrollbars=no,resizable=no");
                flotante.focus();
}
function ven_scroll(documento){
flotante=window.open(documento,"video","toolbar=no,width=445,height=500,left=0,top=0,menubar=no,scrollbars=yes,resizable=yes");
                flotante.focus();
}
function init(){
//recomentacion primero definir los layer despues del body
if (navigator.appName == "Netscape") {
                       layerStyleRef="layer.";
                       layerRef="document.layers";
                       styleSwitch="";
					   ancho=window.innerWidth;
					   inc=0;
					   derecha=".left";
					   arriba=".top";
					   }
else{
                       layerStyleRef="layer.style.";
                       layerRef="document.all";
                       styleSwitch=".style";
					   ancho=document.body.clientWidth;
					   inc=document.body.clientHeight; 
					   derecha=".pixelLeft";
					   arriba=".pixelTop";
					   }
}
function showRel(layerName,e){

if (document.all&&document.readyState=="complete"){
	posx=event.clientX+document.body.scrollLeft+10;
	posy=event.clientY+document.body.scrollTop+10;
	}
else if (document.layers){
	posx=e.pageX+10;
	posy=e.pageY+10;
}

if (posx+300>ancho){
		if (posx-300>0){
			posx=posx-300;}
		else {
			posx=2;
		}}
	
	eval(layerRef+'["'+layerName+'"]'+styleSwitch+derecha+'='+posx);
	eval(layerRef+'["'+layerName+'"]'+styleSwitch+arriba+'='+posy);
	eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
}
function hide(layerName){
eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
}
