$(document).ready(function() {	
	if ($('#slider').length > 0) {
		$('#slider').nivoSlider(
			{
				effect:"random",
				slices:15,
				boxCols:8,
				boxRows:4,
				animSpeed:1100,
				pauseTime:10000,
				captionOpacity: 0.7
			}
		);
	}	
	if($('#services-panel').length > 0){
		jQuery(function($){
			
			$('.circle').mosaic({
				opacity		:	0.8			//Opacity for overlay (0-1)
			});
			
			$('.fade').mosaic();
			
			$('.bar').mosaic({
				animation	:	'slide'		//fade or slide
			});
			
			$('.bar2').mosaic({
				animation	:	'slide'		//fade or slide
			});
			
			$('.bar3').mosaic({
				animation	:	'slide',	//fade or slide
				anchor_y	:	'top'		//Vertical anchor position
			});
			
			$('.cover').mosaic({
				animation	:	'slide',	//fade or slide
				hover_x		:	'400px'		//Horizontal position on hover
			});
			
			$('.cover2').mosaic({
				animation	:	'slide',	//fade or slide
				anchor_y	:	'top',		//Vertical anchor position
				hover_y		:	'80px'		//Vertical position on hover
			});
			
			$('.cover3').mosaic({
				animation	:	'slide',	//fade or slide
				hover_x		:	'400px',	//Horizontal position on hover
				hover_y		:	'300px'		//Vertical position on hover
			});
		
		});		
	}
 
	
	// select one or more elements to be overlay triggers
	if ($('#apple').length > 0) {
		$("#apple a[rel]").overlay({
			effect: 'apple',
			mask: '#789'
		});
	}	
	ddsmoothmenu.init({
	 mainmenuid: "smoothmenu1", //menu DIV id
	 orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	 classname: 'ddsmoothmenu', //class added to menu's outer DIV
	 //customtheme: ["#1c5a80", "#18374a"],
	 contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
	})	
});

