// Shadowbox bug fix for small screens/browser windows.
// Check window height. If less that 640px, load default Shadowbox CSS else load Metropolis.

var height = $(window).height(); 
if (height <= 640) 
{ 
document.write('<link rel="stylesheet" type="text/css" href="javascript/shadowbox/shadowbox.css">'); 
}
else 
{ 
document.write('<link rel="stylesheet" type="text/css" href="javascript/shadowbox/shadowbox_met.css">'); 
}

// Reload the page on browser resize.
$(window).resize(function(){
  location.reload(); 
});


