// JavaScript Document

jQuery(document).ready(function($) {

      	  
	  $('.lightbox').lightBox(); 
	  $('.fancybox').fancybox({									  
			titleShow: false,
			overlayShow:true,
			hideOnContentClick:false,
			hideOnOverlayClick: false
			//transitionIn: 'elastic'
		});
	  
	   $("ul.sf-menu").superfish();
	  
	  
	  $('#catalog').accordion({ 
			header: 'div.title', 
			active: false, 
			alwaysOpen: false, 
			animated: true, 
			autoheight: false 
		});
	  
	  $(".slimbox").slimbox({/* Put custom options here */}, null, function(el) {
			return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
		});
	  
      /*$('.slideshow').cycle({
		fx: 'fade',
		speed:  500,
		speedIn:  1500, 
	    speedOut: 1500
 // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		});*/
	  
	  $(function() {
		$("#datepicker,#datepicker2").datepicker({
		
		 
		 showOn: 'button', 
		 buttonImage: base_url+'images/calendar.gif', 
		 buttonImageOnly: true,
		 dateFormat: 'yy-mm-dd'		
		 });
		
	});  
	  
	$(window).load(function() {
							
		$('#slideshow').nivoSlider({
			effect:'sliceDownRight', //Specify sets like: 'fold,fade,sliceDown'
			pauseTime:5000, 
			pauseOnHover:true,
			controlNav:false,
			keyboardNav:false,
			directionNav:false
		});
	
	});
	
	/*$('.kwicks').kwicks({
		max : 320,
		spacing : 0
	});*/
	
	$('#gallery').galleryView({
		panel_width: 690,
		panel_height: 630,
		frame_width: 80,
		frame_height: 60,		
		background_color: 'none',
		filmstrip_position: 'top',
		easing: 'easeInOutBack',		
		transition_speed: 1000,
		transition_interval: 0,
		fade_panels: true,
		border: 'none',		
		pause_on_hover: true,				
		overlay_height: 30,
		overlay_color: '#333',
		nav_theme: 'dark',
		overlay_position: 'top'
	});
	
	
	/*$('ul.menu li a').hover(function(){
				$(this).animate({top:'+2px'},{queue:false,duration:50});
			}, function(){
				$(this).animate({top:'0px'},{queue:false,duration:50});
			});
*/

	


	
});



