// Presentación de las capas de portada


function pag(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
		}

		pag_1.style.display="block"
		pag_1.style.left = thelefttotal + 97
		pag_1.style.top = thetoptotal + 108

		pag_2.style.display="block"
		pag_2.style.left = thelefttotal + 97
		pag_2.style.top = thetoptotal + 108

	}
	
    else if(document.images[name].x) {
		pag_1.style.display="block"
		pag_1.style.left = document.images[name].x + 80
		pag_1.style.top = document.images[name].y +90
		
		pag_2.style.display="block"
		pag_2.style.left = document.images[name].x + 80
		pag_2.style.top = document.images[name].y +90

	}                           

}

function pagb(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
		}

		pag_3.style.display="block"
		pag_3.style.left = thelefttotal + 300
		pag_3.style.top = thetoptotal + 20

		pag_4.style.display="block"
		pag_4.style.left = thelefttotal + 300
		pag_4.style.top = thetoptotal + 20

	}
	
    else if(document.images[name].x) {
		pag_3.style.display="block"
		pag_3.style.left = document.images[name].x + 142
		pag_3.style.top = document.images[name].y +90
		
		pag_4.style.display="block"
		pag_4.style.left = document.images[name].x + 142
		pag_4.style.top = document.images[name].y +90

	}                           

}


