var kiro = kiro || {};

kiro.init = function() {
	
	placeFooter();
	$(window).bind('resize', placeFooter);
    $('.lightbox, a[rel=lightbox]').fancybox({
        centerOnScroll: false,
        frameWidth: 1024
    });
};

 //placing footer in the bottom
	function placeFooter(){
		//non ie browsers
		if (window.innerHeight) {
			if (($('#primary').height()+502) < (window.innerHeight)) {
				//alert(window.innerHeight);
				$('#primary').height(window.innerHeight - 495);
			}
		}
		//ie browsers
		else if(document.documentElement.clientHeight)
		{
			if (($('#primary').height()+502) < (document.documentElement.clientHeight)) {
				//alert(document.documentElement.clientHeight);
				$('#primary').height(document.documentElement.clientHeight -495);
			}
		}
	}
 
	



/**
 * On document ready.
 */
$(document).ready(kiro.init);