/*

File: custom.js

For: Aslan Companies
Author: Luke Smith - HisHandiwork.biz
Created: 06/21/11



--- TABLE OF CONTENTS ---


1. JMENU
2. NIVO SLIDER
3. IMAGE ZOOM



*/



/* 1 * JMENU */
jQuery(document).ready(function() {
    $('#main-nav ul').jmenu({
	    animation:'slide',
	    duration:300
    });
});

/* 2 * NIVO SLIDER */
jQuery(window).load(function() {
	$('.slider').nivoSlider({
		effect:             'fade',
		startSlide:         0, //Set starting Slide (0 index)
		animSpeed:          500, //Slide transition speed
		pauseTime:          3000,
		captionOpacity:     0.6, //Caption Opacity
		directionNavHide:   true, //Only show on hover
		pauseOnHover:       false //Stop animation while hovering
	});
});

/* 3 *** IMAGE ZOOM */
jQuery(document).ready(function() {
	$("a.zoom img").mouseover(function(){
		$(this).stop(true,true);
		$(this).fadeTo(100, 0.2);
	});
	
	$("a.zoom img").mouseout(function(){
		$(this).fadeTo(300, 1.0);
	});
 
});
