/*
* How to detect browser width
* Ref: http://www.surfingsuccess.com/jquery/window-width.html#.Uw1RiV6Lfx4
*/
$(window).ready(function() {
var wi = $(window).width();
$("p.testp").text('Initial screen width is: ' + wi + 'px.');
$(window).resize(function() {
var wi = $(window).width();
$("p.testp").text('Width is currently: ' + wi + 'px.');
});
});