screen size
api = {
viewport: function() {
var e = window, a = 'inner';
if (!('innerWidth' in window )) {
a = 'client';
e = document.documentElement || document.body;
}
return { width : e[ a+'Width' ] , height : e[ a+'Height' ] };
}
};
var screenWidth = api.viewport().width;
var screenHeight = api.viewport().height;