var galleryScroll = null;
$(document).ready(
   function(){
      if($('div.gallery ul').length){
	      Gallery.enableMove();
      }
      // если это каталог, отключаем движение, но callback на стрелках по прежнему висит
      if($('input[name=catalogMode]').length){
    	  Gallery.disableMove();
      }
	  ContentWindow.initialize();
	  var jscroll = setInterval( 'ContentWindow.reinit()', 3000 );
	  
	  if($('#reloadJscroll').length){
	      $('#jscroll').css('width', 400).css('height', 450);
	  }
	  
	   $('div.gallery ul.init a[rel=gallery]').colorbox();
	   $('a[rel=gallery2]').colorbox();
	   
	   $('a[rel=lookbook-men]').each( function(){ $(this).colorbox({inline:true, href:"#" + $(this).attr('key')}); } );
	   $('a[rel=lookbook-women]').each( function(){ $(this).colorbox({inline:true, href:"#" + $(this).attr('key')}); } );
	   
	   Tools.enableTooltipBox($('.tooltip-box'));	   
	   
	   // $('a[rel=lookbook-women]').each( function(){ $(this).colorbox({inline:true, href:"#" + $(this).text()}); } );
	  
   }
);
if (!console) {
    var console = {
        log: function(){},
        debug: function(){},
        dir: function(){},
        firebug: null
    }
}
