var getBrowserHeight = function()
{
    if (window.innerHeight)
        return window.innerHeight;
    else if (document.documentElement && document.documentElement.clientHeight != 0)
        return document.documentElement.clientHeight;
    else if (document.body)
        return document.body.clientHeight;

    return 0;
};

$(document).ready(function() {
    
    var newHeight = getBrowserHeight() - 100;
    
    $('#website-preview').css({
        height: newHeight+'px'
    });
    
    $(window).bind("resize", function(){ 
	    var newHeight = getBrowserHeight() - 100;
        $('#website-preview').css({height: newHeight+'px'});
  	});
});

