// Presentación de las capas de portada


function bestiario(name,IEname)	{

	if(document.all) {
	
		thelefttotal=0
		thesuffex=".offsetParent"
		while(eval(IEname+thesuffex)) {
		thelefttotal+=eval(IEname+thesuffex+".offsetLeft")
		thesuffex=".offsetParent"+thesuffex
		}
		
		thetoptotal=0
		thesuffex=".offsetParent"
		while(eval(IEname+thesuffex)) {
		thetoptotal+=eval(IEname+thesuffex+".offsetTop")
		thesuffex=".offsetParent"+thesuffex
		thesuffex=thesuffex
		}

		bestiario_1.style.display="block"
		bestiario_1.style.left = thelefttotal + 97
		bestiario_1.style.top = thetoptotal + 108

		bestiario_2.style.display="block"
		bestiario_2.style.left = thelefttotal + 97
		bestiario_2.style.top = thetoptotal + 108

	}
	
    else if(document.images[name].x) {
		bestiario_1.style.display="block"
		bestiario_1.style.left = document.images[name].x + 80
		bestiario_1.style.top = document.images[name].y +90
		
		bestiario_2.style.display="block"
		bestiario_2.style.left = document.images[name].x + 80
		bestiario_2.style.top = document.images[name].y +90

	}                           

}

function bestiariob(name,IEname)	{

	if(document.all) {
	
		thelefttotal=0
		thesuffex=".offsetParent"
		while(eval(IEname+thesuffex)) {
		thelefttotal+=eval(IEname+thesuffex+".offsetLeft")
		thesuffex=".offsetParent"+thesuffex
		}
		
		thetoptotal=0
		thesuffex=".offsetParent"
		while(eval(IEname+thesuffex)) {
		thetoptotal+=eval(IEname+thesuffex+".offsetTop")
		thesuffex=".offsetParent"+thesuffex
		thesuffex=thesuffex
		}

		bestiario_3.style.display="block"
		bestiario_3.style.left = thelefttotal + 300
		bestiario_3.style.top = thetoptotal + 20

		bestiario_4.style.display="block"
		bestiario_4.style.left = thelefttotal + 300
		bestiario_4.style.top = thetoptotal + 20

	}
	
    else if(document.images[name].x) {
		bestiario_3.style.display="block"
		bestiario_3.style.left = document.images[name].x + 142
		bestiario_3.style.top = document.images[name].y +90
		
		bestiario_4.style.display="block"
		bestiario_4.style.left = document.images[name].x + 142
		bestiario_4.style.top = document.images[name].y +90

	}                           

}


