$(document).ready(function() {
  $.fn.add_layer = function(bg,params) {
    $(this).each(function() {
  
      s = $(this).extend({},params || {});      
      
      $last = ($(this).find('.add_background:last').length > 0 ? $(this).find('.add_background:last') : $(this));
  		$last.html('<div class="add_background"><div>'+$last.html()+'</div></div>');
  		$last = $(this).find('.add_background:last');
  		$last.css({'background':bg,'width':'100%','height':'100%'});

      $last = $(this).find('.add_background div:last');
            
      if(s.insideCss){
   		  $last.css(s.insideCss);
  		}
      if(s.insideClass)
  		  $last.addClass(s.insideClass);  		  
    });
  }      
});

$(function(){
	if ($.browser.msie && $.browser.version.substr(0,1)<7) { 
	}else{
		   $('.Box').add_layer("#0094d0");  
		   $('.Box').add_layer("url('images/bg_top.jpg') no-repeat center top fixed");  
		   $('.Box').add_layer("url('images/bg_bottom.jpg') no-repeat center bottom fixed");    
		 }
	 }
);

