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