/*
RESIZZLE
By Lane Goldberg (www.lanegoldberg.com)
Website: www.lanegoldberg.com

Props: James Padolsey - Delay
Website: http://james.padolsey.com/javascript/jquery-delay-plugin/

Why are you reading this?

*/

// function resizeBG(showit) {
// 	var ratio = Math.max($(window).width()/$('#bg-img').width(),$(window).height()/$('#bg-img').height());
// 	var moveUp= $(window).height()-$('#bg-img').height()+100+"px";
// 	if ($(window).width() > $(window).height()) {
// 		$('#bg-img').css({width:$('#bg-img').width()*ratio+200,height:'auto','margin-top':moveUp});
// 	
// 	} else {
// 		$('#bg-img').css({width:'auto',height:$('#bg-img').height()*ratio +200,'margin-top':moveUp});
// 	}
// 	// if (showit==true)
// 	// 	$('#bg-img').fadeIn("slow");
//  };
// 
// $.fn.delay = function(time, callback){
//     jQuery.fx.step.delay = function(){};
//     return this.animate({delay:1}, time, callback);
// }
// // $(window).bind("resize", function(){
// // 	// resizeBG(); why? because it slow everything down!
// // });
// 
// $(document).ready(function(){
// 	// $('#bg-img').hide();
// 	// 		 resizeBG(false);
// 	// 		
// 	// 	 	  $('#bg td img').delay(500, function(){
// 	// 	 	 	  	 		resizeBG(false);
// 	// 	 	 	  	 	});
// 				// $('#bg td img').delay(1200, function(){
// 				// 				resizeBG(true);
// 				// 			});
// });


