// JavaScript Document

$(document).ready(function() {
    
      function addMega(){
        $(this).addClass("hovering");
        }

      function removeMega(){
        $(this).removeClass("hovering");
        }

    var megaConfig = {
         interval: 500,
         sensitivity: 4,
         over: addMega,
         timeout: 500,
         out: removeMega
    };

	$("li.mega").hoverIntent(megaConfig)

    $('#graphicbar').nivoSlider({
        effect:'boxRain', // Specify sets like: 'fold,fade,sliceDown'
        slices:16, // For slice animations
        boxCols: 8, // For box animations
        boxRows: 4, // For box animations
        animSpeed:500, // Slide transition speed
        pauseTime:3000, // How long each slide will show
        directionNav:true, // Next & Prev navigation
        directionNavHide:true, // Only show on hover
        controlNav:false, // 1,2,3... navigation
        controlNavThumbs:false, // Use thumbnails for Control Nav
        keyboardNav:false // Use left & right arrows
    });
	
	$("a[rel='lightbox']").fancybox();
	
	$("form.buynow tr:nth-child(odd)").addClass('highlight');
	
	
});
