function initPop() {
   $('#carusel').galleryScroll({
      duration:400,
      circleSlide:false
   });
   //_infoboxes = $("div.info-box");
	//_infoboxes.each(function(idx, el){
   $("div.info-box").each(function(idx, el){
      var jEl = $(el);
      var h = jEl.height();
      // if the height is < 300 push it 300 pixels away anyway for a better effect, i.e. the original
      jEl.data('top', -1 * ( ( h >= 300 )? h : 300 ) );
      jEl.css( {'top': jEl.data('top') } );
   });
	$('a.info-link').click(function(){
		$(this).animate({marginTop:-60},600);
		$(this.parentNode.getElementsByTagName("div")[0]).css({'display':'block'}).animate({top: 0},600);
	});
	$('a.btn-close').click(function(){
		/*$(this.parentNode.parentNode.parentNode).removeClass('active');*/
      var _infobox = $(this.parentNode.parentNode);
		_infobox.animate({'top': _infobox.data('top') },600);
		$(this.parentNode.parentNode.parentNode.getElementsByTagName("a")[0]).animate({marginTop:0},600);
		/*alert($(this.parentNode.parentNode).$('a.info-link').className);*/
	});
   $('a.link-next.disable').removeClass('disable');
}
$(document).ready(initPop);
