$(document).ready(function() {
	$('.slideshow').cycle({
		cleartype: true,
		timeout: 5000,
		pause: true,
		before: function() {
			$('.slideshow span').css('display','none');
		},
		after: function() {
			$('span', this).css({opacity: '0.8'}).slideDown();
		}
	});
});

function fillthescreen(load_gmaps){
	winH = windowHeight(); //This returns the screen heigth
	heightNeeded=winH-0; //We need to substract the footer height
	if( typeof( window.innerWidth ) != 'number' ) { //Explorer doesn't recognize minHeight
		document.getElementById('col1').style.height=heightNeeded+'px'; //So, we use height (and explroer bug)
	}
	document.getElementById('col1').style.minHeight=heightNeeded+'px'; //For every other browser, we use minHeight
	
	if(load_gmaps == 1) {
		load();
	}
}

function windowHeight(){
	var alto= 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		alto= window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		alto= document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		alto= document.body.clientHeight;
	}
	return alto;
}
