

/*
tamanio.js
AUTOSELF.ES

Archivo destinado a ajustar al tamanio de los 
elementos de la pagina

###############################
Creado en 2008/06/01
NOVEMBRO S.l.
Todos los derechos reservados.
###############################
*/

$(document).ready(function () {
	
	size()
	
	$(window).resize(function(){
		size()
		})
	
	function size () {

		// ######################################
		// ALTURA
	
		if (jQuery.browser.safari) { h = $(window).height() -28 }
		else if (jQuery.browser.mozilla) { h = $(window).height() - 28 }
		else if (jQuery.browser.msie) {
			if (jQuery.browser.version == '6.0') {
				$('body').height($(window).height() - 30) 
				h = $(window).height() - 30
				}
			else { h = $(window).height() - 30 }
			}
		else { h = $(window).height() -28 }
		
		h = $(window).height();
		//######################################
		// ANCHURA
		ventana = $(window).width();
		left = document.body.scrollLeft;
		
		n = $('.contar').length;
		
		if (n) {
			// wrap + info + numero de modulos
			$('body').css({width: 1004 + 307 + (n*307)})
			}
			
		$('.full-width').css({ width:ventana})
		//$('.full-height').css({ height:h });
		}
});



