(function($){ $(document).ready(function(){ // document ready starts var $applychildrenscrollerplugin = $('[data-plugin~="childrenscroller"]'); //childrenscroller start for(i=0, j=$applychildrenscrollerplugin.length; i= child_height){ interval_id = setInterval(scroll, options.pause); } }; var scroll = function (){ if (pause) {return;} clearInterval(interval_id); var child_height = $this.children().eq(0).outerHeight(true); $this.animate({scrollTop:child_height}, options.speed, function(){ $this.append($this.children().eq(0)) $this.scrollTop(0); setTimeout(start, options.pause); }) }; $this.on("mouseover", function (){pause = true;}); $this.on("mouseout", function (){pause = false;}); setTimeout(start, options.delay); }) /* childrenscroller plugin ends */ }; $.fn.EqualHeight = function(){ var _this = $(this) var max = 0; this.each(function(){ max = Math.max( max, $(this).height()); }); _this.css('height',max) } })(jQuery); function fddcw(){ var s = $('.dynamic-data-container'); s.css('width', 'auto'); if(s && s.length){ s.children().hide(); var w = s.css('width'); s.children().show(); s.css({'width':w,'overflow-x':'auto'}) } } function imgDisplay(img,n) { document.getElementById('imgZoomThumb').src=img; document.getElementById('imgZoom').href=img; as=document.getElementById('imgCounter').getElementsByTagName('a'); for (i=0; i