<!--
var B_L1,B_L2,B_R1,B_R2,B_Z0,iComplete=0,iCentro=0,iMedio=0,iZoomX=0,iZoomY=0;
var Book_Image_Width=360;

var Book_Image_Sources=new Array();
for(i=0;i<=parent.iTotPag;i++)
	Book_Image_Sources[i]='fr/' + String(i) + '.jpg';
Book_Image_Sources[Book_Image_Sources.length]='fr/99.jpg';

var B_Pre_Img=new Array(Book_Image_Sources.length);

function fVerifCarga(){
	iComplete=0;
	for(i=0;i<B_Pre_Img.length;i++){
		if(B_Pre_Img[i].complete){
			iComplete = iComplete +1;
			document.getElementsByName('imgRev_1')[0].width=parseInt(250*iComplete/(parent.iTotPag+2));
			document.getElementsByName('imgRev_2')[0].width=250-Number(document.getElementsByName('imgRev_1')[0].width);
			document.getElementById('imgRev_3').innerHTML=parseInt(100*iComplete/(parent.iTotPag+2));
		}
	}
	if(iComplete!=B_Pre_Img.length)
		setTimeout('fVerifCarga()', 500)
	else{
		parent.bLoad2 = 1;
	}
}

function fIniciar(){
	if(document.getElementById){
		Msj_Div = document.getElementById("Msg");
		Book_Div = document.getElementById("Book");
		Zoom_Div = document.getElementById("Zoom");
		
		B_L1=document.createElement("img"); Book_Div.appendChild(B_L1);
		B_L2=document.createElement("img"); Book_Div.appendChild(B_L2);
		B_R1=document.createElement("img"); Book_Div.appendChild(B_R1);
		B_R2=document.createElement("img"); Book_Div.appendChild(B_R2);
		B_Z0=document.createElement("img"); Zoom_Div.appendChild(B_Z0);  
		
		for(i=0;i<Book_Image_Sources.length;i++){
			B_Pre_Img[i]=new Image();
			B_Pre_Img[i].src=Book_Image_Sources[i];
		}
		
		B_L1.id = 'B_L1';	B_L2.id = 'B_L2';	B_R1.id = 'B_R1';	B_R2.id = 'B_R2';	B_Z0.id = 'B_Z0';
		
		B_L1.style.position=B_L2.style.position=B_R1.style.position=B_R2.style.position="absolute";
		B_L1.style.top=B_L2.style.top=B_R1.style.top=B_R2.style.top="0px";
		//B_Z0.style.height="805px";
		B_L1.style.height=B_L2.style.height=B_R1.style.height=B_R2.style.height=Book_Image_Height+"px";
		B_L1.border=B_L2.border=B_R1.border=B_R2.border=0;
		
		B_L1.src=Book_Image_Sources[0]; B_R1.src=Book_Image_Sources[1];
		B_L2.src=Book_Image_Sources[2]; B_R2.src=Book_Image_Sources[3];
		
		B_L1.onclick=parent.fAnterior;
		B_R1.onclick=parent.fSiguiente;
		
		B_L2.onclick=parent.fAnterior;
		B_R2.onclick=parent.fSiguiente;
		
		B_L1.style.cursor='e-resize'; B_L2.style.cursor='e-resize';
		B_R1.style.cursor='e-resize'; B_R2.style.cursor='e-resize';
		
	}
	fVerifCarga();
}

var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;

var tempX = 0;
var tempY = 0;

function getMouseXY(e) {
	if (IE) {
		tempX = event.clientX + document.body.scrollLeft;
		tempY = event.clientY + document.body.scrollTop;
	}
	else {
		tempX = e.pageX;
		tempY = e.pageY;
	}
	 
	if (tempX < 0)
		tempX = 0;
		
	if (tempY < 0)
		tempY = 0;
	
	if (tempX > 550)
		tempX = tempX - 160;
		
	if (tempY > 350)
		tempY = tempY - 50;
	
	document.getElementById('infosombra').style.left = tempX+10;
	document.getElementById('infosombra').style.top = tempY;
}

function vacio(){
	return true;
}

function fAlt(o, s){
	if(s==0){
		document.getElementById('info').style.display='none';
		
		B_L1.onclick=parent.fAnterior;
		B_R1.onclick=parent.fSiguiente;
		
		B_L2.onclick=parent.fAnterior;
		B_R2.onclick=parent.fSiguiente;
		
		B_L1.style.cursor='e-resize'; B_L2.style.cursor='e-resize';
		B_R1.style.cursor='e-resize'; B_R2.style.cursor='e-resize';
	}
	else{
		var arrO = o.split('|');
		document.getElementById('info').innerHTML = '<b>' + arrO[0] + '</b><br /><font size=1>Precio Normal : ' + arrO[1] + '</font><br/ ><font size=3 color=#CC0000><b>' + arrO[2] + '</b></font>';
		document.getElementById('info').style.display='';
				
		B_L1.onclick=vacio;
		B_R1.onclick=vacio;
		
		B_L2.onclick=vacio;
		B_R2.onclick=vacio;
		
		B_L1.style.cursor='pointer'; B_L2.style.cursor='pointer';
		B_R1.style.cursor='pointer'; B_R2.style.cursor='pointer';
	}
}

function fAlt2(o, s){
	if(s==0){
		document.getElementById('info').style.display='none';
		
		B_L1.onclick=parent.fAnterior;
		B_R1.onclick=parent.fSiguiente;
		
		B_L2.onclick=parent.fAnterior;
		B_R2.onclick=parent.fSiguiente;
		
		B_L1.style.cursor='e-resize'; B_L2.style.cursor='e-resize';
		B_R1.style.cursor='e-resize'; B_R2.style.cursor='e-resize';
	}
	else{
		document.getElementById('info').innerHTML = '<b><font size=3 color=#666666>Compra</font> <font size=3 color=#CC0000>OnLine</font></b><br /><b><center>' + o + '</center></b>';
		document.getElementById('info').style.display='';
				
		B_L1.onclick=vacio;
		B_R1.onclick=vacio;
		
		B_L2.onclick=vacio;
		B_R2.onclick=vacio;
		
		B_L1.style.cursor='pointer'; B_L2.style.cursor='pointer';
		B_R1.style.cursor='pointer'; B_R2.style.cursor='pointer';
	}
}
//-->