' + '
'); for (var i = 0; i
'); } jQuerGall('#sharing' + id.split('-')[1]).append( '' + '
' + '
' + '
'); if (jQuerGall.isEmptyObject(button)) { jQuerGall('.icons_download').css('top', '5px'); } } }); jQuerGall(".gallery-fanc-next,.gallery-fanc-prev").on('click', function(){ jQuerGall(".gallery-fanc-next,.gallery-fanc-prev").unbind(); }); }, wrapCSS : osg.params.fancSettings.wrapCSS, openEffect : osg.params.fancSettings.openEffect, openSpeed : osg.params.fancSettings.openSpeed, closeEffect : osg.params.fancSettings.closeEffect, closeSpeed : osg.params.fancSettings.closeSpeed, prevEffect : osg.params.fancSettings.prevEffect, nextEffect : osg.params.fancSettings.nextEffect, nextSpeed: osg.params.fancSettings.nextSpeed, prevSpeed: osg.params.fancSettings.prevSpeed, loop: osg.params.fancSettings.loop, closeBtn: osg.params.fancSettings.closeBtn, arrows: osg.params.fancSettings.arrows, arrowsPosition: osg.params.fancSettings.arrowsPosition, nextClick: osg.params.fancSettings.nextClick, mouseWheel: osg.params.fancSettings.mouseWheel, autoPlay: osg.params.fancSettings.autoPlay, playSpeed: osg.params.fancSettings.playSpeed, helpers : { title : {type : 'float'}, overlay : {locked: false,closeClick : 1,css : {'background' : 'rgba(238,238,238,0)'}} ,buttons : {} ,thumbs : {width : 50,height : 50} } }); } }); //album click jQuerGall(container+" .album-main-image").click(function(event) { albumId = jQuerGall(this).data("cat-id"); var curCatId = jQuerGall("#cat-"+albumId).attr('data-cat-id'); jQuerGall("#load-more-1").attr('data-cat-id', curCatId); var curEnd = jQuerGall("#cat-"+albumId).attr('data-end'); if(curEnd != -1) jQuerGall("#load-more-1").removeAttr("disabled"); jQuerGall("#load-more-1").attr('data-end', curEnd); jQuerGall(container+" .back-to-albums").data("cat-id", albumId); //show album jQuerGall(container+" .os-gallery-album-"+albumId).parent().fadeTo( "slow", 1 ); jQuerGall(container+" .os-gallery-album-"+albumId+","+container+" .back-to-albums").fadeTo( "slow", 1 ); jQuerGall("#load-more-1").fadeTo( "slow", 1 ); //hide albums main image jQuerGall(container+" .album-main-image").parent().hide(); }); jQuerGall(container+" .back-to-albums").click(function(event) { //hide images albumId = jQuerGall(this).data("cat-id"); jQuerGall(container+" .os-gallery-album-"+albumId).parent().hide(); jQuerGall(container+" .os-gallery-album-"+albumId+","+container+" .back-to-albums").hide(); jQuerGall("#cat-"+albumId+" .img-block").hide(); jQuerGall("#load-more-1").hide(); //show albums jQuerGall(container+" .album-main-image").parent().fadeTo( "slow", 1 ); }); osg.resizeGallery = function (){ imgBlockW = osg.getImgBlockWidth(); jQuerGall(container+" .album-block .img-block").css("width",imgBlockW+"%"); } jQuerGall(window).resize(function(event) { osg.resizeGallery(); }); } osg.init(); } window.osGallery1 = osGallery1; })(); jQuery(window).on('load',function($) { var gallery = new osGallery1(".os-gallery-album-tabs-main-1",{ minImgEnable : 1, spaceBetween: 5, minImgSize: 200, numColumns: 3, fancSettings:{ wrapCSS: 'os-os_fancybox-window', openEffect: "elastic", openSpeed: 800, closeEffect: "elastic", closeSpeed: 800, prevEffect: "fade", nextEffect: "fade", nextSpeed: 800, prevSpeed: 800, loop: 0, closeBtn: 1, arrows: 1, arrowsPosition: 1, nextClick: 1, mouseWheel: 1, autoPlay: 1, playSpeed: 5000, buttons: {"os_image_id-877":["","","",""],"os_image_id-876":["","","",""],"os_image_id-875":["","","",""],"os_image_id-874":["","","",""],"os_image_id-873":["","","",""],"os_image_id-872":["","","",""],"os_image_id-871":["","","",""],"os_image_id-870":["","","",""],"os_image_id-869":["","","",""],"os_image_id-868":["","","",""],"os_image_id-867":["","","",""],"os_image_id-866":["","","",""],"os_image_id-865":["","","",""],"os_image_id-864":["","","",""],"os_image_id-863":["","","",""],"os_image_id-862":["","","",""],"os_image_id-861":["","","",""],"os_image_id-1123":["","","",""],"os_image_id-1122":["","","",""],"os_image_id-1121":["","","",""],"os_image_id-1120":["","","",""],"os_image_id-860":["","","",""],"os_image_id-859":["","","",""],"os_image_id-858":["","","",""],"os_image_id-857":["","","",""],"os_image_id-856":["","","",""],"os_image_id-855":["","","",""],"os_image_id-854":["","","",""],"os_image_id-853":["","","",""],"os_image_id-852":["","","",""],"os_image_id-851":["","","",""],"os_image_id-850":["","","",""],"os_image_id-849":["","","",""],"os_image_id-848":["","","",""],"os_image_id-847":["","","",""],"os_image_id-846":["","","",""],"os_image_id-845":["","","",""],"os_image_id-844":["","","",""],"os_image_id-843":["","","",""],"os_image_id-842":["","","",""],"os_image_id-841":["","","",""],"os_image_id-840":["","","",""],"os_image_id-839":["","","",""],"os_image_id-838":["","","",""],"os_image_id-837":["","","",""],"os_image_id-836":["","","",""],"os_image_id-835":["","","",""],"os_image_id-834":["","","",""],"os_image_id-833":["","","",""],"os_image_id-832":["","","",""],"os_image_id-831":["","","",""],"os_image_id-830":["","","",""],"os_image_id-1494":["","","",""],"os_image_id-1495":["","","",""],"os_image_id-1024":["","","",""],"os_image_id-1023":["","","",""],"os_image_id-1022":["","","",""],"os_image_id-1021":["","","",""],"os_image_id-1020":["","","",""],"os_image_id-1019":["","","",""],"os_image_id-1018":["","","",""],"os_image_id-1017":["","","",""],"os_image_id-1016":["","","",""],"os_image_id-1015":["","","",""],"os_image_id-1014":["","","",""],"os_image_id-1008":["","","",""],"os_image_id-1007":["","","",""],"os_image_id-1006":["","","",""],"os_image_id-1005":["","","",""],"os_image_id-1004":["","","",""],"os_image_id-1003":["","","",""],"os_image_id-1002":["","","",""],"os_image_id-1001":["","","",""],"os_image_id-1000":["","","",""],"os_image_id-999":["","","",""],"os_image_id-998":["","","",""],"os_image_id-997":["","","",""],"os_image_id-996":["","","",""],"os_image_id-995":["","","",""],"os_image_id-994":["","","",""],"os_image_id-993":["","","",""],"os_image_id-992":["","","",""],"os_image_id-991":["","","",""],"os_image_id-990":["","","",""],"os_image_id-989":["","","",""],"os_image_id-988":["","","",""],"os_image_id-987":["","","",""],"os_image_id-986":["","","",""],"os_image_id-985":["","","",""],"os_image_id-984":["","","",""],"os_image_id-983":["","","",""],"os_image_id-982":["","","",""],"os_image_id-981":["","","",""],"os_image_id-980":["","","",""],"os_image_id-979":["","","",""],"os_image_id-1013":["","","",""],"os_image_id-1012":["","","",""],"os_image_id-1011":["","","",""],"os_image_id-1010":["","","",""],"os_image_id-1009":["","","",""],"os_image_id-978":["","","",""],"os_image_id-977":["","","",""],"os_image_id-976":["","","",""],"os_image_id-975":["","","",""],"os_image_id-974":["","","",""],"os_image_id-973":["","","",""],"os_image_id-972":["","","",""],"os_image_id-971":["","","",""],"os_image_id-970":["","","",""],"os_image_id-969":["","","",""],"os_image_id-968":["","","",""],"os_image_id-1038":["","","",""],"os_image_id-1037":["","","",""],"os_image_id-1036":["","","",""],"os_image_id-1035":["","","",""],"os_image_id-1034":["","","",""],"os_image_id-1033":["","","",""],"os_image_id-1032":["","","",""],"os_image_id-1054":["","","",""],"os_image_id-1053":["","","",""],"os_image_id-1052":["","","",""],"os_image_id-1051":["","","",""],"os_image_id-1050":["","","",""],"os_image_id-1049":["","","",""],"os_image_id-1048":["","","",""],"os_image_id-1047":["","","",""],"os_image_id-1046":["","","",""],"os_image_id-1045":["","","",""],"os_image_id-1044":["","","",""],"os_image_id-1043":["","","",""],"os_image_id-1042":["","","",""],"os_image_id-1041":["","","",""],"os_image_id-1040":["","","",""],"os_image_id-1039":["","","",""],"os_image_id-1031":["","","",""],"os_image_id-1030":["","","",""],"os_image_id-1029":["","","",""],"os_image_id-1028":["","","",""],"os_image_id-1027":["","","",""],"os_image_id-1026":["","","",""],"os_image_id-1025":["","","",""],"os_image_id-828":["","","",""],"os_image_id-821":["","","",""],"os_image_id-825":["","","",""],"os_image_id-823":["","","",""],"os_image_id-822":["","","",""],"os_image_id-818":["","","",""],"os_image_id-806":["","","",""],"os_image_id-805":["","","",""],"os_image_id-812":["","","",""],"os_image_id-808":["","","",""],"os_image_id-817":["","","",""],"os_image_id-809":["","","",""],"os_image_id-813":["","","",""],"os_image_id-807":["","","",""],"os_image_id-816":["","","",""],"os_image_id-814":["","","",""],"os_image_id-815":["","","",""],"os_image_id-811":["","","",""],"os_image_id-810":["","","",""],"os_image_id-829":["","","",""],"os_image_id-827":["","","",""],"os_image_id-826":["","","",""],"os_image_id-824":["","","",""],"os_image_id-819":["","","",""],"os_image_id-820":["","","",""],"os_image_id-1097":["","","",""],"os_image_id-1096":["","","",""],"os_image_id-1095":["","","",""],"os_image_id-1093":["","","",""],"os_image_id-1092":["","","",""],"os_image_id-1091":["","","",""],"os_image_id-1090":["","","",""],"os_image_id-1089":["","","",""],"os_image_id-1088":["","","",""],"os_image_id-1087":["","","",""],"os_image_id-1086":["","","",""],"os_image_id-1085":["","","",""],"os_image_id-1489":["","","",""],"os_image_id-1490":["","","",""],"os_image_id-1491":["","","",""],"os_image_id-1492":["","","",""],"os_image_id-1493":["","","",""],"os_image_id-673":["","","",""],"os_image_id-681":["","","",""],"os_image_id-680":["","","",""],"os_image_id-672":["","","",""],"os_image_id-678":["","","",""],"os_image_id-685":["","","",""],"os_image_id-693":["","","",""],"os_image_id-688":["","","",""],"os_image_id-684":["","","",""],"os_image_id-683":["","","",""],"os_image_id-682":["","","",""],"os_image_id-692":["","","",""],"os_image_id-691":["","","",""],"os_image_id-689":["","","",""],"os_image_id-694":["","","",""],"os_image_id-690":["","","",""],"os_image_id-687":["","","",""],"os_image_id-686":["","","",""],"os_image_id-675":["","","",""],"os_image_id-676":["","","",""],"os_image_id-677":["","","",""],"os_image_id-671":["","","",""],"os_image_id-679":["","","",""],"os_image_id-674":["","","",""],"os_image_id-696":["","","",""],"os_image_id-697":["","","",""],"os_image_id-695":["","","",""],"os_image_id-1337":["","","",""],"os_image_id-1338":["","","",""],"os_image_id-1339":["","","",""],"os_image_id-1341":["","","",""],"os_image_id-1500":["","","",""],"os_image_id-1501":["","","",""],"os_image_id-654":["","","",""],"os_image_id-653":["","","",""],"os_image_id-665":["","","",""],"os_image_id-657":["","","",""],"os_image_id-660":["","","",""],"os_image_id-658":["","","",""],"os_image_id-664":["","","",""],"os_image_id-645":["","","",""],"os_image_id-648":["","","",""],"os_image_id-661":["","","",""],"os_image_id-662":["","","",""],"os_image_id-651":["","","",""],"os_image_id-647":["","","",""],"os_image_id-656":["","","",""],"os_image_id-663":["","","",""],"os_image_id-646":["","","",""],"os_image_id-643":["","","",""],"os_image_id-659":["","","",""],"os_image_id-652":["","","",""],"os_image_id-644":["","","",""],"os_image_id-649":["","","",""],"os_image_id-642":["","","",""],"os_image_id-670":["","","",""],"os_image_id-669":["","","",""],"os_image_id-650":["","","",""],"os_image_id-655":["","","",""],"os_image_id-668":["","","",""],"os_image_id-666":["","","",""],"os_image_id-667":["","","",""],"os_image_id-1108":["","","",""],"os_image_id-1107":["","","",""],"os_image_id-1106":["","","",""],"os_image_id-1105":["","","",""],"os_image_id-1104":["","","",""],"os_image_id-1103":["","","",""],"os_image_id-1102":["","","",""],"os_image_id-1101":["","","",""],"os_image_id-1100":["","","",""],"os_image_id-1099":["","","",""],"os_image_id-1098":["","","",""],"os_image_id-1119":["","","",""],"os_image_id-1118":["","","",""],"os_image_id-1117":["","","",""],"os_image_id-1116":["","","",""],"os_image_id-1115":["","","",""],"os_image_id-1114":["","","",""],"os_image_id-1113":["","","",""],"os_image_id-1112":["","","",""],"os_image_id-1111":["","","",""],"os_image_id-1110":["","","",""],"os_image_id-1109":["","","",""],"os_image_id-1496":["","","",""],"os_image_id-1497":["","","",""],"os_image_id-1498":["","","",""],"os_image_id-1499":["","","",""],"os_image_id-1503":["","","",""],"os_image_id-1505":["","","",""],"os_image_id-1504":["","","",""],"os_image_id-1084":["","","",""],"os_image_id-1083":["","","",""],"os_image_id-1082":["","","",""],"os_image_id-1081":["","","",""],"os_image_id-1080":["","","",""],"os_image_id-1079":["","","",""],"os_image_id-1078":["","","",""],"os_image_id-1077":["","","",""],"os_image_id-1076":["","","",""],"os_image_id-1075":["","","",""],"os_image_id-1074":["","","",""],"os_image_id-1073":["","","",""],"os_image_id-1072":["","","",""],"os_image_id-1071":["","","",""],"os_image_id-1070":["","","",""],"os_image_id-1069":["","","",""],"os_image_id-1068":["","","",""],"os_image_id-1067":["","","",""],"os_image_id-1066":["","","",""],"os_image_id-1065":["","","",""],"os_image_id-1064":["","","",""],"os_image_id-1063":["","","",""],"os_image_id-1062":["","","",""],"os_image_id-1061":["","","",""],"os_image_id-1060":["","","",""],"os_image_id-1059":["","","",""],"os_image_id-1058":["","","",""],"os_image_id-1057":["","","",""],"os_image_id-1056":["","","",""],"os_image_id-1055":["","","",""],"os_image_id-1342":["","","",""],"os_image_id-733":["","","",""],"os_image_id-734":["","","",""],"os_image_id-713":["","","",""],"os_image_id-737":["","","",""],"os_image_id-744":["","","",""],"os_image_id-740":["","","",""],"os_image_id-741":["","","",""],"os_image_id-735":["","","",""],"os_image_id-739":["","","",""],"os_image_id-736":["","","",""],"os_image_id-742":["","","",""],"os_image_id-743":["","","",""],"os_image_id-738":["","","",""],"os_image_id-732":["","","",""],"os_image_id-723":["","","",""],"os_image_id-727":["","","",""],"os_image_id-726":["","","",""],"os_image_id-731":["","","",""],"os_image_id-725":["","","",""],"os_image_id-724":["","","",""],"os_image_id-710":["","","",""],"os_image_id-715":["","","",""],"os_image_id-711":["","","",""],"os_image_id-716":["","","",""],"os_image_id-721":["","","",""],"os_image_id-717":["","","",""],"os_image_id-729":["","","",""],"os_image_id-728":["","","",""],"os_image_id-709":["","","",""],"os_image_id-730":["","","",""],"os_image_id-718":["","","",""],"os_image_id-722":["","","",""],"os_image_id-712":["","","",""],"os_image_id-720":["","","",""],"os_image_id-714":["","","",""],"os_image_id-719":["","","",""]}, downloadButton: 1 } }); // add load more script var limEnd = 6; jQuerGall("#load-more-1").hide(); jQuerGall("#load-more-1").on("click", function() { var path = "index.php?option=com_osgallery&format=raw"; var endId = jQuerGall.post( path, { task : "loadMoreButton", Itemid: '149', end : jQuerGall("#load-more-1").attr('data-end'), catId : jQuerGall("#load-more-1").attr('data-cat-id'), galId : 1 }, function(data) { if(data.success){ jQuerGall("#cat-"+data.catId).append(data.html); jQuerGall("#cat-"+ data.catId+ ", #load-more-1").attr('data-end', data.limEnd); if(data.limEnd == -1) jQuerGall("#load-more-1").attr("disabled","disabled"); limEnd = data.limEnd; gallery.resizeGallery(); } }, 'json'); }); // end load more script // add social sharing script var href = window.location.href; var img_el_id = ''; var pos = href.indexOf('os_image_id'); if (pos > -1) img_el_id = href.substring(pos); if(img_el_id && img_el_id.indexOf('os_image_id') > -1) { if(document.getElementById(img_el_id) !== null){ jQuerGall('#' + img_el_id).trigger('click'); } } // end sharing script });