Gallery

function spider_page_0(cur, x, y, load_more) { if (typeof load_more == "undefined") { var load_more = false; } if (jQuery(cur).hasClass('disabled')) { return false; } var items_county_0 = 1; switch (y) { case 1: if (x >= items_county_0) { document.getElementById('page_number_0').value = items_county_0; } else { document.getElementById('page_number_0').value = x + 1; } break; case 2: document.getElementById('page_number_0').value = items_county_0; break; case -1: if (x == 1) { document.getElementById('page_number_0').value = 1; } else { document.getElementById('page_number_0').value = x - 1; } break; case -2: document.getElementById('page_number_0').value = 1; break; case 0: document.getElementById('page_number_0').value = x; break; default: document.getElementById('page_number_0').value = 1; } bwg_ajax('gal_front_form_0', '0', 'bwg_thumbnails_0', '0', '', 'gallery', 0, '', '', load_more, '', 1); } jQuery('.first-page-0').on('click', function () { spider_page_0(this, 1, -2, 'numeric'); return false; }); jQuery('.prev-page-0').on('click', function () { spider_page_0(this, 1, -1, 'numeric'); return false; }); jQuery('.next-page-0').on('click', function () { spider_page_0(this, 1, 1, 'numeric'); return false; }); jQuery('.last-page-0').on('click', function () { spider_page_0(this, 1, 2, 'numeric'); return false; }); /* Change page on input enter. */ function bwg_change_page_0( e, that ) { if ( e.key == 'Enter' ) { var to_page = parseInt(jQuery(that).val()); var pages_count = jQuery(that).parents(".pagination-links").data("pages-count"); var current_url_param = jQuery(that).attr('data-url-info'); if (to_page > pages_count) { to_page = 1; } spider_page_0(this, to_page, 0, 'numeric'); return false; } return true; } jQuery('.bwg_load_btn_0').on('click', function () { spider_page_0(this, 1, 1, true); return false; });
if (document.readyState === 'complete') { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_0").height() ) { bwg_main_ready(jQuery("#bwg_container1_0")); } } } else { document.addEventListener('DOMContentLoaded', function() { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_0").height() ) { bwg_main_ready(jQuery("#bwg_container1_0")); } } }); }

function spider_page_1(cur, x, y, load_more) { if (typeof load_more == "undefined") { var load_more = false; } if (jQuery(cur).hasClass('disabled')) { return false; } var items_county_1 = 1; switch (y) { case 1: if (x >= items_county_1) { document.getElementById('page_number_1').value = items_county_1; } else { document.getElementById('page_number_1').value = x + 1; } break; case 2: document.getElementById('page_number_1').value = items_county_1; break; case -1: if (x == 1) { document.getElementById('page_number_1').value = 1; } else { document.getElementById('page_number_1').value = x - 1; } break; case -2: document.getElementById('page_number_1').value = 1; break; case 0: document.getElementById('page_number_1').value = x; break; default: document.getElementById('page_number_1').value = 1; } bwg_ajax('gal_front_form_1', '1', 'bwg_thumbnails_1', '0', '', 'gallery', 0, '', '', load_more, '', 1); } jQuery('.first-page-1').on('click', function () { spider_page_1(this, 1, -2, 'numeric'); return false; }); jQuery('.prev-page-1').on('click', function () { spider_page_1(this, 1, -1, 'numeric'); return false; }); jQuery('.next-page-1').on('click', function () { spider_page_1(this, 1, 1, 'numeric'); return false; }); jQuery('.last-page-1').on('click', function () { spider_page_1(this, 1, 2, 'numeric'); return false; }); /* Change page on input enter. */ function bwg_change_page_1( e, that ) { if ( e.key == 'Enter' ) { var to_page = parseInt(jQuery(that).val()); var pages_count = jQuery(that).parents(".pagination-links").data("pages-count"); var current_url_param = jQuery(that).attr('data-url-info'); if (to_page > pages_count) { to_page = 1; } spider_page_1(this, to_page, 0, 'numeric'); return false; } return true; } jQuery('.bwg_load_btn_1').on('click', function () { spider_page_1(this, 1, 1, true); return false; });
if (document.readyState === 'complete') { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_1").height() ) { bwg_main_ready(jQuery("#bwg_container1_1")); } } } else { document.addEventListener('DOMContentLoaded', function() { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_1").height() ) { bwg_main_ready(jQuery("#bwg_container1_1")); } } }); }

function spider_page_2(cur, x, y, load_more) { if (typeof load_more == "undefined") { var load_more = false; } if (jQuery(cur).hasClass('disabled')) { return false; } var items_county_2 = 1; switch (y) { case 1: if (x >= items_county_2) { document.getElementById('page_number_2').value = items_county_2; } else { document.getElementById('page_number_2').value = x + 1; } break; case 2: document.getElementById('page_number_2').value = items_county_2; break; case -1: if (x == 1) { document.getElementById('page_number_2').value = 1; } else { document.getElementById('page_number_2').value = x - 1; } break; case -2: document.getElementById('page_number_2').value = 1; break; case 0: document.getElementById('page_number_2').value = x; break; default: document.getElementById('page_number_2').value = 1; } bwg_ajax('gal_front_form_2', '2', 'bwg_thumbnails_2', '0', '', 'gallery', 0, '', '', load_more, '', 1); } jQuery('.first-page-2').on('click', function () { spider_page_2(this, 1, -2, 'numeric'); return false; }); jQuery('.prev-page-2').on('click', function () { spider_page_2(this, 1, -1, 'numeric'); return false; }); jQuery('.next-page-2').on('click', function () { spider_page_2(this, 1, 1, 'numeric'); return false; }); jQuery('.last-page-2').on('click', function () { spider_page_2(this, 1, 2, 'numeric'); return false; }); /* Change page on input enter. */ function bwg_change_page_2( e, that ) { if ( e.key == 'Enter' ) { var to_page = parseInt(jQuery(that).val()); var pages_count = jQuery(that).parents(".pagination-links").data("pages-count"); var current_url_param = jQuery(that).attr('data-url-info'); if (to_page > pages_count) { to_page = 1; } spider_page_2(this, to_page, 0, 'numeric'); return false; } return true; } jQuery('.bwg_load_btn_2').on('click', function () { spider_page_2(this, 1, 1, true); return false; });
if (document.readyState === 'complete') { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_2").height() ) { bwg_main_ready(jQuery("#bwg_container1_2")); } } } else { document.addEventListener('DOMContentLoaded', function() { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_2").height() ) { bwg_main_ready(jQuery("#bwg_container1_2")); } } }); }

function spider_page_3(cur, x, y, load_more) { if (typeof load_more == "undefined") { var load_more = false; } if (jQuery(cur).hasClass('disabled')) { return false; } var items_county_3 = 1; switch (y) { case 1: if (x >= items_county_3) { document.getElementById('page_number_3').value = items_county_3; } else { document.getElementById('page_number_3').value = x + 1; } break; case 2: document.getElementById('page_number_3').value = items_county_3; break; case -1: if (x == 1) { document.getElementById('page_number_3').value = 1; } else { document.getElementById('page_number_3').value = x - 1; } break; case -2: document.getElementById('page_number_3').value = 1; break; case 0: document.getElementById('page_number_3').value = x; break; default: document.getElementById('page_number_3').value = 1; } bwg_ajax('gal_front_form_3', '3', 'bwg_thumbnails_3', '0', '', 'gallery', 0, '', '', load_more, '', 1); } jQuery('.first-page-3').on('click', function () { spider_page_3(this, 1, -2, 'numeric'); return false; }); jQuery('.prev-page-3').on('click', function () { spider_page_3(this, 1, -1, 'numeric'); return false; }); jQuery('.next-page-3').on('click', function () { spider_page_3(this, 1, 1, 'numeric'); return false; }); jQuery('.last-page-3').on('click', function () { spider_page_3(this, 1, 2, 'numeric'); return false; }); /* Change page on input enter. */ function bwg_change_page_3( e, that ) { if ( e.key == 'Enter' ) { var to_page = parseInt(jQuery(that).val()); var pages_count = jQuery(that).parents(".pagination-links").data("pages-count"); var current_url_param = jQuery(that).attr('data-url-info'); if (to_page > pages_count) { to_page = 1; } spider_page_3(this, to_page, 0, 'numeric'); return false; } return true; } jQuery('.bwg_load_btn_3').on('click', function () { spider_page_3(this, 1, 1, true); return false; });
if (document.readyState === 'complete') { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_3").height() ) { bwg_main_ready(jQuery("#bwg_container1_3")); } } } else { document.addEventListener('DOMContentLoaded', function() { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_3").height() ) { bwg_main_ready(jQuery("#bwg_container1_3")); } } }); }

function spider_page_4(cur, x, y, load_more) { if (typeof load_more == "undefined") { var load_more = false; } if (jQuery(cur).hasClass('disabled')) { return false; } var items_county_4 = 1; switch (y) { case 1: if (x >= items_county_4) { document.getElementById('page_number_4').value = items_county_4; } else { document.getElementById('page_number_4').value = x + 1; } break; case 2: document.getElementById('page_number_4').value = items_county_4; break; case -1: if (x == 1) { document.getElementById('page_number_4').value = 1; } else { document.getElementById('page_number_4').value = x - 1; } break; case -2: document.getElementById('page_number_4').value = 1; break; case 0: document.getElementById('page_number_4').value = x; break; default: document.getElementById('page_number_4').value = 1; } bwg_ajax('gal_front_form_4', '4', 'bwg_thumbnails_4', '0', '', 'gallery', 0, '', '', load_more, '', 1); } jQuery('.first-page-4').on('click', function () { spider_page_4(this, 1, -2, 'numeric'); return false; }); jQuery('.prev-page-4').on('click', function () { spider_page_4(this, 1, -1, 'numeric'); return false; }); jQuery('.next-page-4').on('click', function () { spider_page_4(this, 1, 1, 'numeric'); return false; }); jQuery('.last-page-4').on('click', function () { spider_page_4(this, 1, 2, 'numeric'); return false; }); /* Change page on input enter. */ function bwg_change_page_4( e, that ) { if ( e.key == 'Enter' ) { var to_page = parseInt(jQuery(that).val()); var pages_count = jQuery(that).parents(".pagination-links").data("pages-count"); var current_url_param = jQuery(that).attr('data-url-info'); if (to_page > pages_count) { to_page = 1; } spider_page_4(this, to_page, 0, 'numeric'); return false; } return true; } jQuery('.bwg_load_btn_4').on('click', function () { spider_page_4(this, 1, 1, true); return false; });
if (document.readyState === 'complete') { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_4").height() ) { bwg_main_ready(jQuery("#bwg_container1_4")); } } } else { document.addEventListener('DOMContentLoaded', function() { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_4").height() ) { bwg_main_ready(jQuery("#bwg_container1_4")); } } }); }

function spider_page_5(cur, x, y, load_more) { if (typeof load_more == "undefined") { var load_more = false; } if (jQuery(cur).hasClass('disabled')) { return false; } var items_county_5 = 1; switch (y) { case 1: if (x >= items_county_5) { document.getElementById('page_number_5').value = items_county_5; } else { document.getElementById('page_number_5').value = x + 1; } break; case 2: document.getElementById('page_number_5').value = items_county_5; break; case -1: if (x == 1) { document.getElementById('page_number_5').value = 1; } else { document.getElementById('page_number_5').value = x - 1; } break; case -2: document.getElementById('page_number_5').value = 1; break; case 0: document.getElementById('page_number_5').value = x; break; default: document.getElementById('page_number_5').value = 1; } bwg_ajax('gal_front_form_5', '5', 'bwg_thumbnails_5', '0', '', 'gallery', 0, '', '', load_more, '', 1); } jQuery('.first-page-5').on('click', function () { spider_page_5(this, 1, -2, 'numeric'); return false; }); jQuery('.prev-page-5').on('click', function () { spider_page_5(this, 1, -1, 'numeric'); return false; }); jQuery('.next-page-5').on('click', function () { spider_page_5(this, 1, 1, 'numeric'); return false; }); jQuery('.last-page-5').on('click', function () { spider_page_5(this, 1, 2, 'numeric'); return false; }); /* Change page on input enter. */ function bwg_change_page_5( e, that ) { if ( e.key == 'Enter' ) { var to_page = parseInt(jQuery(that).val()); var pages_count = jQuery(that).parents(".pagination-links").data("pages-count"); var current_url_param = jQuery(that).attr('data-url-info'); if (to_page > pages_count) { to_page = 1; } spider_page_5(this, to_page, 0, 'numeric'); return false; } return true; } jQuery('.bwg_load_btn_5').on('click', function () { spider_page_5(this, 1, 1, true); return false; });
if (document.readyState === 'complete') { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_5").height() ) { bwg_main_ready(jQuery("#bwg_container1_5")); } } } else { document.addEventListener('DOMContentLoaded', function() { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_5").height() ) { bwg_main_ready(jQuery("#bwg_container1_5")); } } }); }

There is no gallery selected or the gallery was deleted.

function spider_page_7(cur, x, y, load_more) { if (typeof load_more == "undefined") { var load_more = false; } if (jQuery(cur).hasClass('disabled')) { return false; } var items_county_7 = 1; switch (y) { case 1: if (x >= items_county_7) { document.getElementById('page_number_7').value = items_county_7; } else { document.getElementById('page_number_7').value = x + 1; } break; case 2: document.getElementById('page_number_7').value = items_county_7; break; case -1: if (x == 1) { document.getElementById('page_number_7').value = 1; } else { document.getElementById('page_number_7').value = x - 1; } break; case -2: document.getElementById('page_number_7').value = 1; break; case 0: document.getElementById('page_number_7').value = x; break; default: document.getElementById('page_number_7').value = 1; } bwg_ajax('gal_front_form_7', '7', 'bwg_thumbnails_7', '0', '', 'gallery', 0, '', '', load_more, '', 1); } jQuery('.first-page-7').on('click', function () { spider_page_7(this, 1, -2, 'numeric'); return false; }); jQuery('.prev-page-7').on('click', function () { spider_page_7(this, 1, -1, 'numeric'); return false; }); jQuery('.next-page-7').on('click', function () { spider_page_7(this, 1, 1, 'numeric'); return false; }); jQuery('.last-page-7').on('click', function () { spider_page_7(this, 1, 2, 'numeric'); return false; }); /* Change page on input enter. */ function bwg_change_page_7( e, that ) { if ( e.key == 'Enter' ) { var to_page = parseInt(jQuery(that).val()); var pages_count = jQuery(that).parents(".pagination-links").data("pages-count"); var current_url_param = jQuery(that).attr('data-url-info'); if (to_page > pages_count) { to_page = 1; } spider_page_7(this, to_page, 0, 'numeric'); return false; } return true; } jQuery('.bwg_load_btn_7').on('click', function () { spider_page_7(this, 1, 1, true); return false; });
if (document.readyState === 'complete') { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_7").height() ) { bwg_main_ready(jQuery("#bwg_container1_7")); } } } else { document.addEventListener('DOMContentLoaded', function() { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_7").height() ) { bwg_main_ready(jQuery("#bwg_container1_7")); } } }); }