// JavaScript Document

 $(function() {
            $("#navigation ul").lavaLamp({
                fx: "backout",
                speed: 700,
                click: function(event, menuItem) {
                    return false;
                }
            });
        });
 
$(function() {
			$("div#smallScroller").smoothDivScroll({mouseDownSpeedBooster: 2, scrollingSpeed: 7, autoScroll: "onstart", autoScrollDirection: "endlessloop"});
		});

 $(function(){
			$("#navigation ul li a").hover(function(){
					$("#navigation ul li a").removeClass("active");									
				},function(){
						$("#navigation ul li.current").find("a").addClass("active");
				});
			});

 $(function(){
			$("#navigation ul li a").click(function(){
				var thisurl= $(this).attr('href');
					//alert (thisurl);
					window.location = thisurl;
				});
			});
 
(function($) {
			$(document).ready(function() {
				
				/*$(".scrollingHotSpotLeft").click(function(){
									  
							$('#image_gallery').spChangeDir('right');
							
							
					 });*/
					$(".scrollingHotSpotLeft").click(function(){
							$('#image_gallery').spChangeDir('right');							  
							$('#image_gallery').spSpeed(5);
							
					});
					$(".scrollingHotSpotRight").click(function(){
							$('#image_gallery').spChangeDir('left'); 									   
							$('#image_gallery').spSpeed(5);
							
					});
					$(".scrollingHotSpotLeft").hover(function(){
							
							
					},function(){
						$('#image_gallery').spSpeed(1);	
					});
					$(".scrollingHotSpotRight").hover(function(){
							
							
					},function(){
						$('#image_gallery').spSpeed(1);	
					});
					
				
				/*$(".scrollingHotSpotRight").click(function(){
							$('#image_gallery').spChangeDir('left'); 							 
					 });*/
				
				$('#image_gallery').pan({fps: 50, speed: 1, dir: 'left'});
				
			});
		})(jQuery);
