<script>
function centerWindow() {
"use strict";
var wrapper404 = jQuery('.wrapper404');
var set404Top = (parseInt(jQuery('.main_wrapper').css('min-height'), 10) - wrapper404.height())/2;
if (set404Top < 0) {
var set404Top = 0;
}
wrapper404.css('padding-top', set404Top +'px');
}
jQuery(document).ready(function(){
"use strict";
centerWindow();
});
jQuery(window).load(function(){
"use strict";
centerWindow();
});
jQuery(window).resize(function(){
"use strict";
var centertimer = setTimeout(function(){
centerWindow();
clearTimeout(centertimer);
}, 500);
});
</script>
|