// Document Ready
jQuery(document).ready(function() { 
        // superfish menus
		jQuery('ul.sf-menu').superfish({ 
            delay:       1000, // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'fast',  // faster animation speed 
            autoArrows:  false, // disable generation of arrow mark-up 
            dropShadows: false  // disable drop shadows 
        }); 
		jQuery("#button, #sitemap").hover(
            function () {
            jQuery(this).addClass("hover");
            },
            function () {
            jQuery(this).removeClass("hover");
            });
	
		// open a link in a new window
		jQuery("a[href$='.pdf'], ._blank").click(function(){
			var newwindow = window.open(this.href, '_blank');
			newwindow.focus();
			return false;
		});

    $("#top-btn li a").click(function() {
        $("link").attr("href",$(this).attr('rel'));
        return false;
    });
	$(".externalControl .jCarouselLite").jCarouselLite({
	visible: 1,
	start: 0,
	auto: 10000,
	speed: 2000,
    btnNext: ".externalControl .next",
    btnPrev: ".externalControl .prev",
    btnGo:
    [".externalControl .1", ".externalControl .2",
    ".externalControl .3", ".externalControl .4"]
   });
	$(function() {
	// Use this example, or...
	$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
	
});
});



