$(document).ready(function(){
  $("body").css({"background-attachment":"fixed","backgroundRepeat":"no-repeat","background-image":"url(" + wrapper_bg + ")"});
  resizeWrapper();

  function resizeWrapper() {
  if ($(window).width() < 1020) {
  $("#wrapperl").css({"display":"none"});
  $("#wrapperr").css({"display":"none"});
  }
  else {
  $("#wrapperl").width(($(window).width()-1020)/2);
  $("#wrapperl").height($(document).height()); 
  $("#wrapperl").css({"display":"block","cursor":"hand","marginLeft":-9,"styleFloat":"left","background-color":"white","opacity":0});

  $("#wrapperr").width(($(window).width()-1020)/2);
  $("#wrapperr").height($(document).height()); 
  $("#wrapperr").css({"display":"block","cursor":"hand","marginRight":-9,"styleFloat":"right","background-color":"white","opacity":0});  
  }
  }

$(window).resize(function() {
  resizeWrapper();
});

  $("#wrapperl").click( 
  function() 
  { 
    //window.location = $(this).attr("url");
    window.open(wrapper_rd);
    return false; 
  }); 
  $("#wrapperr").click( 
  function() 
  { 
    //window.location = $(this).attr("url"); 
    window.open(wrapper_rd);
    return false; 
  }); 

});
