function Mostrar_Articulo(Codigo,evt)
{
	Elem1=document.getElementById('ventana')
	Elem2=document.getElementById('ventana_contenido')
	if (Elem1) {Elem1.style.width="480px"; Elem1.style.height="500px"; Elem1.style.border="1px solid black"}
	if (Elem2) {Elem2.src=''; Elem2.src='articulo.cfm?codigo='+Codigo}
	if (mouseX(evt)>505) {difx=-500;} else {difx=40;}
	Difer=0;
	if (window.pageYOffset) {Difer=window.pageYOffset;}
	else if (document.body && document.body.scrollTop) {Difer=document.body.scrollTop}
	else if (document.documentElement) {Difer=document.documentElement.scrollTop}
	Mostrar('ventana',evt,difx,-mouseY(evt)+Difer+50)
}
function Mostrar_Cash(Codigo,evt,Posx)
{
	var Posicx = +Posx;
	if (Posicx != Posx) {Posicx = 0}
	Elem1=document.getElementById('ventana')
	Elem2=document.getElementById('ventana_contenido')
	if (Elem1) {Elem1.style.width="400px"; Elem1.style.height="115px"; Elem1.style.border="0"}
	if (Elem2) {Elem2.src=''; Elem2.src='articulo_cash.cfm?codigo='+Codigo}
	Mostrar('ventana',evt,-200+Posicx,-120)
}
function Mostrar(Nombre,evt,xdif,ydif)
{
	clearTimeout(t);
	Elem=document.getElementById(Nombre);
	Difer=0;
	if (window.pageYOffset) {Difer=window.pageYOffset}
	else if (document.body && document.body.scrollTop) {Difer=document.body.scrollTop}
	else if (document.documentElement) {Difer=document.documentElement.scrollTop}
	if (evt)  {Elem.style.left=(mouseX(evt)+xdif)+"px"; Elem.style.top=(mouseY(evt)+ydif)+"px";}
	if (Elem) {Elem.style.display="block";}
}
function Mostrar1(Nombre,evt)
{
	Elem=document.getElementById(Nombre);
	if (Elem) {Elem.style.left=(mouseX(evt)-170)+"px"; Elem.style.top=(mouseY(evt)-50)+"px"; Elem.style.display="block"; }
}
function Mostrar_b(Nombre,evt)
{
	setTimeout("Mostrar('"+Nombre+"',"+evt+")",500)
}
function Ocultar(Nombre,evt)
{
	Elem=document.getElementById(Nombre);
	if (Elem) {Elem.style.display="none"}
	Elem2=document.getElementById(Nombre+'_contenido')
	if (Elem2) {Elem2.src=''}
}
function Ocultar_b(Nombre,evt)
{
	t = setTimeout("Ocultar('"+Nombre+"',"+evt+")",700);
}
function Ventana (Direccion,Titulo,Parametros)
{
	var MVentana = window.open("",Titulo,Parametros)
	//MVentana.moveTo(10,10)
	MVentana.blur()
	MVentana.focus()
	MVentana.location=Direccion
}
function mouseX(evt) {
	if (evt.pageX) return evt.pageX;
	else if (evt.clientX)
	   return evt.clientX + (document.documentElement.scrollLeft ?
	   document.documentElement.scrollLeft :
	   document.body.scrollLeft);
	else return null;
}
function mouseY(evt) {
	if (evt.pageY) return evt.pageY;
	else if (evt.clientY)
	   return evt.clientY + (document.documentElement.scrollTop ?
	   document.documentElement.scrollTop :
	   document.body.scrollTop);
	else return null;
}
function Art_Ventana(Codigo)
	{
	Ventana('articulo.cfm?codigo='+Codigo+'&#aldagaiak#','#tweb2#_v','width=550,height=450,toolbar=yes,resizable=yes,scrollbars=yes')
}

