$(function(){
	$('#leftmenu').css({height:$(window).height()});
	$('.bgmask').css({height:$(window).height()});
	$('#leftmenu').css({top:$(document).scrollTop()});

	$(function() {
	  $('#slide').switchable({
		triggers: '&bull;', // &amp;bull;
		putTriggers: 'insertBefore',
		effect: 'fade',
		/* fade effect only supports steps == 1 */
		// steps: 1,
		autoplay: 1,
		easing: 'ease-in-out',
		loop: true,
		prev: '#prev',
		next: $('#next'),
		onSwitch: function(event, currentIndex) {
		  var api = this;
		  // hide the prevBtn
		  api.prevBtn[currentIndex === 0 ? 'hide' : 'show']();
		  // disable the nextBtn
		  api.nextBtn[currentIndex === api.length - 1 ? 'addClass' : 'removeClass']('disabled');
		}
	  });
	});

});
