

$(document).ready(function() {	

// Page Slider
	$('#page-slide-panel').width(parseInt($('#page-slide-mask').width() * $('#page-slide-panel div').length));
	
	$('a[rel=page-slide-panel]').click(function () {
	
		var panelheight = $($(this).attr('href')).height();
		
//		$('a[rel=page-slide-panel]').removeClass('selected');
//		$(this).addClass('selected');
		
				
		$('#page-slide-mask').scrollTo($(this).attr('href'), 600);		
		
	return false;
	});

// Content Slider	
	$('.content-slide-panel').width(parseInt($('.content-slide-mask').width() * $('.content-slide-panel div').length));
	
	$('a[rel=content-slide-panel]').click(function () {
	
		var panelheight = $($(this).attr('href')).height();
		
		$('a[rel=content-slide-panel]').removeClass('selected');
		$(this).addClass('selected');
		
				
		$('.content-slide-mask').scrollTo($(this).attr('href'), 600);		
		
	return false;
	});
	
// Menu Gallery Slider
	$('#menu-gallery-panel').width(parseInt($('#menu-gallery-mask').width() * $('#menu-gallery-panel div').length));
	
	$('#menu-gallery-panel div').width($('#menu-gallery-mask').width());
	
	$('a[rel=menu-gallery-panel]').click(function () {
	
		var panelheight = $($(this).attr('href')).height();
		
		$('a[rel=menu-gallery-panel]').removeClass('selected');
		$(this).addClass('selected');
		
					
		
		$('#menu-gallery-mask').scrollTo($(this).attr('href'), 800);		
		
	return false;
	});
	
// Menu List Slider
	$('#menu-list-panel').width(parseInt($('#menu-list-mask').width() * $('#menu-list-panel div').length));
	
	$('#menu-list-panel div').width($('#menu-list-mask').width());
	
	$('a[rel=menu-list-panel]').click(function () {
	
		var panelheight = $($(this).attr('href')).height();
		
		$('a[rel=menu-list-panel]').removeClass('selected');
		$(this).addClass('selected');
		
					
		
		$('#menu-list-mask').scrollTo($(this).attr('href'), 800);		
		
	return false;
	});
	
});


// Menu Slider
$(function(){
	$(".menu-slider").hover(function(){
		$(".menu-wrap", this).stop().animate({right:"0px"},{queue:false,duration:400});
	}, function() {
		$(".menu-wrap", this).stop().animate({right:"-230px"},{queue:false,duration:800});
	});
});


// Segregate
$(function(){
	$("#segregate").hover(function(){
		$("#clean", this).stop().animate({right:"-210"},{queue:false,duration:400});
	}, function() {
		$("#clean", this).stop().animate({right:"-510"},{queue:false,duration:800});
	});
});


/* Image Caption
$(function(){
	$(".img-box").hover(function(){
		$(".caption", this).stop().animate({bottom:"0px"},{queue:false,duration:400});
	}, function() {
		$(".caption", this).stop().animate({bottom:"-100px"},{queue:false,duration:400});
	});
}); */


// Prev-Next Slider

		$(document).ready(function(){	
			$("#landingslider").easySlider({
				controlsBefore:	'<p id="control">',
				controlsAfter:	'</p>',
				continuous: true
			});								   
								   
			$("#slider").easySlider({
				controlsBefore:	'<p id="controls">',
				controlsAfter:	'</p>',
				continuous: true
			});
			$("#slider2").easySlider({
				controlsBefore:	'<p id="controls2">',
				controlsAfter:	'</p>',		
				prevId: 'prevBtn2',
				nextId: 'nextBtn2'	
			});	
			$("#slider3").easySlider({
				controlsBefore:	'<p id="controls3">',
				controlsAfter:	'</p>',		
				prevId: 'prevBtn3',
				nextId: 'nextBtn3'	
			});	
			$("#slider4").easySlider({
				controlsBefore:	'<p id="controls4">',
				controlsAfter:	'</p>',		
				prevId: 'prevBtn4',
				nextId: 'nextBtn4'	
			});	
			$("#slider5").easySlider({
				controlsBefore:	'<p id="controls5">',
				controlsAfter:	'</p>',		
				prevId: 'prevBtn5',
				nextId: 'nextBtn5'	
			});	
			$("#slider6").easySlider({
				controlsBefore:	'<p id="controls5">',
				controlsAfter:	'</p>',		
				prevId: 'prevBtn6',
				nextId: 'nextBtn6'	
			});	
		});	


/*preloader*/



