function mycarousel_initCallback(carousel){    
  carousel.clip.hover(function() { carousel.stopAuto(); },function() { carousel.startAuto(); });  
  $('#buttons_middle li').bind('click', function() { carousel.scroll(jQuery.jcarousel.intval(this.id.replace('dot_','')));return false;});  	
}



$(document).ready(function(){  
       
        Cufon.replace('h2', {fontFamily: 'Gotham Bold'}); 
		Cufon.replace('h3', {fontFamily: 'Gotham Bold'}); 
	    Cufon.replace('.price_from', {fontFamily: 'Gotham Bold'});
		Cufon.replace('#top_menu a', {fontFamily: 'Gotham Bold',hover: {color: '#ffeb3a'}});
		Cufon.replace('#main_menu a', {fontFamily: 'Gotham Bold',hover: {textShadow: '1px 1px black',color: 'white'}});
		Cufon.replace('#top_description h1', {fontFamily: 'Gotham Light'});
		Cufon.replace('div.big_price span.price', {fontFamily: 'Gotham Light'});
		Cufon.replace('#sub_menu a', {fontFamily: 'Gotham Bold'});
		Cufon.replace('#categories_list li a.txt', {fontFamily: 'Gotham Bold'});
		Cufon.replace('#phone span', {fontFamily: 'Gotham Bold'});
		Cufon.replace('.see_more', {fontFamily: 'Gotham Bold'});
		Cufon.replace('.slide_info a', {fontFamily: 'Gotham Bold'});
		Cufon.replace('.slide_info p', {fontFamily: 'Gotham Light',textShadow: '2px 2px black'});
   
	
	$(".photos a").fancybox();
	$("#trip_photo a").fancybox();

	$('#top_carousel').jcarousel({ 
	 	    scroll: 1,
	 	    auto: 3,
			wrap: 'both',
		    initCallback: mycarousel_initCallback,
			itemFirstInCallback: function(carousel,item,i){ 
				$('#buttons_middle li').removeClass('full');
				$('#dot_'+i).addClass('full');  
			   
			},
			buttonNextHTML: null,
	        buttonPrevHTML: null
       });
	
   
  $('#sub_menu a').bind('mouseenter',function(){
     
	 if($(this).hasClass('hover') == false){
	   $(this).animate({margin: '-10px 0px 0px 0px',height:'28px'}, 100, function(){});  
	 }
	 
  });
  $('#sub_menu a').bind('mouseleave',function(){  
	if($(this).hasClass('hover') == false){  
      $(this).animate({margin: '0px 0px 0px 0px',height:'24px'}, 50, function(){});  
    }
  });        

  
  


});
