$(window).load(function(){ 
	$("#mainmenu").dropmenu({
			openAnimation: "slide",
			closeAnimation: "slide",
			openSpeed: 300,
			closeSpeed: 200,
			closeDelay: 100,
			zindex: 100
	});		



  	var total = $('#slider img').length;
	var rand = Math.floor(Math.random()*total);
    $('#slider').nivoSlider({
	    effect: 'fade', // Specify sets like: 'fold,fade,sliceDown'
        slices: 30, // For slice animations
        boxCols: 12, // For box animations
        boxRows: 6, // For box animations
        animSpeed: 800, // Slide transition speed
        pauseTime: 3000, // How long each slide will show
        startSlide:rand, // Set starting Slide (0 index)
        directionNav: false, // Next & Prev navigation
        directionNavHide: true, // Only show on hover
        controlNav: false, // 1,2,3... navigation
        controlNavThumbs: false, // Use thumbnails for Control Nav
        controlNavThumbsFromRel: false, // Use image rel for thumbs
        keyboardNav: false, // Use left & right arrows
        pauseOnHover: false, // Stop animation while hovering
        manualAdvance: false, // Force manual transitions
        captionOpacity: 0.7, // Universal caption opacity
		afterLoad: function(){$('#preloader').fadeOut(500);}
	});
	
	$('#top-banner-slider').nivoSlider({
	    effect: 'fade', // Specify sets like: 'fold,fade,sliceDown'
        slices: 30, // For slice animations
        boxCols: 12, // For box animations
        boxRows: 6, // For box animations
        animSpeed: 800, // Slide transition speed
        pauseTime: 3000, // How long each slide will show
        startSlide:rand, // Set starting Slide (0 index)
        directionNav: false, // Next & Prev navigation
        directionNavHide: true, // Only show on hover
        controlNav: false, // 1,2,3... navigation
        controlNavThumbs: false, // Use thumbnails for Control Nav
        controlNavThumbsFromRel: false, // Use image rel for thumbs
        keyboardNav: false, // Use left & right arrows
        pauseOnHover: false, // Stop animation while hovering
        manualAdvance: false, // Force manual transitions
        captionOpacity: 0.7, // Universal caption opacity
		afterLoad: function(){$('#top-banner-preloader').fadeOut(500);}
	});
	
	
	var total = $('#right-slider img').length;
	var rand = Math.floor(Math.random()*total);
    $('#right-slider').nivoSlider({
	    effect: 'fade', // Specify sets like: 'fold,fade,sliceDown'
        slices: 30, // For slice animations
        boxCols: 12, // For box animations
        boxRows: 6, // For box animations
        animSpeed: 800, // Slide transition speed
        pauseTime: 3000, // How long each slide will show
        startSlide:rand, // Set starting Slide (0 index)
        directionNav: false, // Next & Prev navigation
        directionNavHide: true, // Only show on hover
        controlNav: false, // 1,2,3... navigation
        controlNavThumbs: false, // Use thumbnails for Control Nav
        controlNavThumbsFromRel: false, // Use image rel for thumbs
        keyboardNav: false, // Use left & right arrows
        pauseOnHover: false, // Stop animation while hovering
        manualAdvance: false, // Force manual transitions
        captionOpacity: 0.7, // Universal caption opacity
		afterLoad: function(){$('#right-preloader').fadeOut(500);}
	});	
	var total = $('#righthalf-slider img').length;
	var rand = Math.floor(Math.random()*total);
    $('#righthalf-slider').nivoSlider({
	    effect: 'fade', // Specify sets like: 'fold,fade,sliceDown'
        slices: 30, // For slice animations
        boxCols: 12, // For box animations
        boxRows: 6, // For box animations
        animSpeed: 800, // Slide transition speed
        pauseTime: 3000, // How long each slide will show
        startSlide:rand, // Set starting Slide (0 index)
        directionNav: false, // Next & Prev navigation
        directionNavHide: true, // Only show on hover
        controlNav: false, // 1,2,3... navigation
        controlNavThumbs: false, // Use thumbnails for Control Nav
        controlNavThumbsFromRel: false, // Use image rel for thumbs
        keyboardNav: false, // Use left & right arrows
        pauseOnHover: false, // Stop animation while hovering
        manualAdvance: false, // Force manual transitions
        captionOpacity: 0.7, // Universal caption opacity
		afterLoad: function(){$('#righthalf-preloader').fadeOut(500);}
	});	
});
  
		
var addthis_config = {"data_track_clickback":true};



