

(function($) {
	$(document).ready(function(){	
		if ($(".pageBg").length){		
			$(".pageBg").each(function (index, domEle) {				
				var MWPageBgImg= $("img:first", domEle).attr("src");
				var MWPageBgHeight= $("img:first", domEle).attr("class");		
				var MWPageBgImgPf = "url("+ MWPageBgImg +")";		
				$("img:first", this).addClass("mwPageBGImgImg");		
				$(".mwPageBGImgImg").css("display","none");	
				$(this).css("background-image", MWPageBgImgPf);		
				$(this).css("background-repeat", "no-repeat");
				$(this).css("background-position", "center 0");
			});
		};		
	});	
})(jQuery);
