window.onload = function(e) { if(typeof ugCheckForErrors == "undefined"){ document.getElementById("unitegallery_15_1").innerHTML = "Unite Gallery Error - gallery js and css files not included";} else{ ugCheckForErrors("unitegallery_15_1", "jquery");} }; var ugapi1; jQuery(document).ready(function(){ var objUGParams = { gallery_theme:"tiles", gallery_width:"100%", tiles_type:"justified", tiles_justified_space_between:1 }; if(ugCheckForErrors('#unitegallery_15_1', 'cms')) ugapi1 = jQuery('#unitegallery_15_1').unitegallery(objUGParams); });