/*function FullScreenBackground(theItem,theContainer){
	$window = $(window);
	$theItem = $(theItem);
	$theItem.css("width",$window.width());
	$theItem.css("height",$window.height());
}*/
var loadBG = function(params){
	
	$('#backstretch').remove();
	$('#loading').show();
	
	if(params.color){
		$('#zoom-photo-description').css({'color':params.color});
	} else {
		$('#zoom-photo-description').css({'color':'#000'});
	}
	
	var speed = (params.speed)? params.speed : 0;
	
	$.backstretch(params.img, {speed: speed});
	
	/*var $loading = $('#loading');
	
	$loading.show();
	
	var $target = $target;
	
	$('#bgimg').remove();
	
	$img = $('<img />')
		.attr('src',img)
		.attr('id','bgimg')
		.hide()
		.load(
			function(){
				$loading.hide();
				$(this)
					.appendTo($target)
					.stop(true, true)
					.fadeIn(500);
				$(window).resize(function() {
					FullScreenBackground('#bgimg');
				})
				.trigger('resize');
			}
		)*/
}

$(function(){
	
});
