function reveal() {
	
	for (i = 1; i <= 20; i++)
	
	if (document.getElementById('col'+i)) {
		pokaz('col'+i);			
	}
	
	disp = false;
	
}

function setFooter() {
	
	var body = document.body,
	    html = document.documentElement;
	    
	    footerHeight = 97;

	var height = Math.max( body.scrollHeight, body.offsetHeight, 
	                       html.clientHeight, html.scrollHeight, html.offsetHeight );
		
			if ((body.offsetHeight + footerHeight) < html.clientHeight) {
			document.getElementById('footer').style.marginTop = (html.clientHeight - footerHeight) + 'px';
			} else {			
			document.getElementById('footer').style.marginTop = (body.scrollHeight) + 'px';
			}
			fadeIn('footer');
				
	}

function fixFooter() {

		//setTimeout("setFooter()",1250);
		
}
	
$(window).load(function() {
		reveal();
		setFooter();
		//fixFooter();
		//setTimeout("setFooter()",1250);
});	

//$(window).resize(function() {
	//window.location.href = window.location.href;
	//alert('ido');
//});


