:
window.onload = function(e) {
if(typeof ugCheckForErrors == “undefined”){
document.getElementById(“unitegallery_3_1”).innerHTML = “Unite Gallery Error – gallery js and css files not included in the footer. Please make sure that wp_footer() function is added to your theme.”;}
else{ ugCheckForErrors(“unitegallery_3_1”, “jquery”);}
};