/*
Autor: Cruz Rosales
Última modificación: 20081104-1819
Contacto: crosalesc@gmail.com
~by__ _  __  |^|_  __  _ __ _ __  _   _ _ __   __
 / _ ` | _  \  __| _  \ '__| '_  \ | | | '_  \´  \
| (_)  | __ /  |_| ___/ |  | | | | |_| | | | | | |
 \ __,_|\___|\___|\___|_|  |_| |_|\___/|_| |_| |_|crc<>
*/
function getInnerWH() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
  	//IE 6+ in 'standards compliant mode'
  	myWidth = document.documentElement.clientWidth;
  	myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
  	//IE 4 compatible
  	myWidth = document.body.clientWidth;
  	myHeight = document.body.clientHeight;
  }
  return [ myWidth, myHeight ];
}

function fver_mas(detalle) {
	var dim = getInnerWH()
	var pantalla = document.getElementById('pantalla')
	Element.setStyle(pantalla,
		{
			top: '0px',
			left: '0px',
			width: dim[0] + 'px',
			height: dim[1] + 'px',
			backgroundColor:'#004e71',
			opacity:0.65
		}
	)
	Element.show(pantalla)
	Element.setStyle(detalle, {
		top:((dim[1] - Element.getHeight(detalle)) / 2 - 80) + 'px',
		left:((dim[0] - Element.getWidth(detalle)) / 2.9) + 'px'
		}
	)
	Element.show(detalle)
}

function fver_menos(detalle) {
	Element.hide(document.getElementById('pantalla'))
	Element.hide(detalle)
}
