$(function(){
  $('a[rel*=external]').click( function() {
    window.open(this.href);
    return false;
  });

	$('#navmenu td').each(function() {
		if ($(this).hasClass('color1') || $(this).hasClass('color2'))
			$(this).show();
		else
			$(this).hide();
	});
	
	$('#moreCriteria').hide();
	$('#moreCriteriaLink').show();
	$('#lessCriteriaLink').hide();
	
	
	$('.t-ops tr:last-child').addClass('last');
	
	$( "#calInput1, #calInput2").datepicker({
			showOn: "both",
			buttonImage: "http://ibe01.merlinx.pl/customgraphics/calendar/type1.gif",
			buttonImageOnly: true
		});
	

//-------------------------------------------------- home ------------------------------------------------
  if($('.special').length>0)
  {
    
		$('#LastMinute .last').cycle({
      speed:   800,
      timeout: 5000    
    });		
		$('#slides').cycle({
      speed:   800,
      timeout: 5000     
    });
		
		$('#zimowe').cycle({
      speed:   800,
      timeout: 5000     
    });
		
		$('#letnie').cycle({
      speed:   800,
      timeout: 5000     
    });
		
		$('#special').cycle({
      speed:   800,
      timeout: 5000     
    });		

  }
	
	$('#slideIn').jcarousel({ auto:3, buttonNextHTML: null, visible:7, buttonPrevHTML: null, wrap: 'circular', initCallback:
		function(carousel) {
			$('#moveLeft').bind('click', function() {
				carousel.prev();
				return false;
			});
			$('#moveRight').bind('click', function() {
				carousel.next();
				return false;
			});
		}
	});
	
	Cufon.replace('h3.cufon, .contactUs a, h3.cfon, .contentMid h2',{ fontFamily: 'Daxline Bold' });
	Cufon.replace('a.allOffers', { fontFamily: 'Daxline Bold', textShadow: '#a63317 0 2px'});
	
});
