$.clientCoords = function(){
    if(window.innerHeight || window.innerWidth){
        return {w:window.innerWidth, h:window.innerHeight}
    }
    return {
        w:document.documentElement.clientWidth,
        h:document.documentElement.clientHeight
    }
}

$(document).ready(function() {
  dimension = $.clientCoords();
  $('#wrap').attr('height',dimension['h']);
  $('#wrap').attr('width',dimension['w']);
  $('#wrap').show();
});


