$(document).ready(function() {
						   	
	$('.qtip-description').hide();
	$('.item').each(function(){
		$(this).qtip({
		   content: {text:$(this).parent().children('.qtip-description').html()},
		   show: {event: 'mouseover',  effect: { type: 'fade', length: 230 }},
		   hide: { when: 'mouseout', fixed: true },
		   position: { corner: { tooltip: 'bottomMiddle', target: 'topMiddle'}, adjust: { x: 0, y: 80 }} ,
		   style: {width: 195, height:140, border: { width: 2, radius: 5, color: '#e7e5df'}, padding: 5,  textAlign: 'center',tip: true}
		});
	});
	$('.sub-menu').each(function(){
		$(this).qtip({
		   content: {text:$(this).parent().children('.sub-menu-items').html()},
		   show: {event: 'mouseover',  effect: { type: 'fade', length: 230 }},
		   hide: { when: 'mouseout', fixed: true },
		   position: { corner: { tooltip: 'topMiddle', target: 'bottomMiddle'}} ,
		   style: {width: 195, border: { width: 2, radius: 5, color: '#e7e5df'}, padding: 5,  textAlign: 'center',tip: true}
		});
	});
    $('.picnic-scroll-item').cycle({
		fx: 'scrollHorz',
		next: '#next',
		prev: '#prev', 
		speed:  'slow', 
		pause:   1
	});
	$('.picnic-scroll-item').cycle('pause');
	$('.slide-goto').click(function() { 
		var slide_number  = $(this).attr('id') - 1;
		$('.picnic-scroll-item').cycle(slide_number); 
		$('.slide-goto').removeClass('active-item');
		$(this).addClass('active-item');
		return false; 
	});
	

	
	
	
});
