(function ($) {
// VERTICALLY ALIGN FUNCTION
$.fn.vAlign = function() {
	return this.each(function(i){
	var ah = $(this).height();
	var ph = $(this).parent().height();
	var mh = (ph - ah) / 2;
	$(this).css('margin-top', mh);
	});
};
})(jQuery);


$(document).ready(function() {
 		var height = $(window).height();
 		var delta = (height/2) - 34;
		$("#preloader img").css("margin-top", delta+"px");
		$(window).load(function() {
		scTimer=setTimeout(function(){
				$("#preloader").css("display","none");
			clearTimeout(scTimer); 
		},1000)
		});
});
