var initGallery = true; var heapshot_category_id= 1244; var heapshot_hash = window.location.hash; heapshot_hash = heapshot_hash.replace('#',''); var heapshot_cat_id_click= ''; if (heapshot_hash !== '') { var hasha = heapshot_hash.split('-'); var re = new RegExp("^([0-9]+)$"); var hash_category_id = hasha[0]; if (!re.test(hash_category_id)) { hash_category_id = 0;} if(hash_category_id) {initGallery = false; } }