// JavaScript Document

//the following loads the sliders
$(function(){
    $(window).load(function() {
		//slider on index page
        $('#slider').nivoSlider({
			effect:'fade',
			directionNav:false
		});
		
		//slider on about us page
        $('#slider-about').nivoSlider({
			effect:'fade',
			directionNav:false
		});		
    });
});


//Loads lightbox (BEE Certificate on About Us Page)
$(function() {
	$('#bee a').lightBox();
});

//following code preloads nav images (right corner and left corner); when hover over happens it will be preloaded in the cache

$(document).ready(function(){
		img1 = new Image();
		img2 = new Image();
	
		img1.src = "images/nav-home-selected.jpg";
		img2.src = "images/nav-contact-selected.jpg";
});



