if(typeof($) != 'undefined'){
	$(document).ready(function(){
		$('.menu_l2_item').live('mouseover', function(){
			var pos = $(this).offset();
			var width = $(this).width();
			
			$(this).children('ul').css( { "left": "0 px", "top":"0 px" } );
			
			$(this).children('ul').removeClass('hidden');
		});
		
		$('.menu_l2_item').live('mouseout', function(){
			$(this).children('ul').addClass('hidden');
		});
		
		mySlideShow.f_run();
		
		jQuery('#bigmenu_ul').jcarousel({
	        auto: 3,
	        wrap: 'circular',
	        visible: 5,
	        animation: 'slow',
	        scroll: 1,
	        initCallback: mycarousel_initCallback
	    });
	});
	
	function dump(obj) {
	    var out = '';
	    for (var i in obj) {
	        out += i + ": " + obj[i] + "\n";
	    }
		
	    alert(out);
		
	    // or, if you wanted to avoid alerts...
	
	    var pre = document.createElement('pre');
	    pre.innerHTML = out;
	    document.body.appendChild(pre)
	}
	
	function mycarousel_initCallback(carousel){
	    // Disable autoscrolling if the user clicks the prev or next button.
	    carousel.buttonNext.bind('click', function() {
	        carousel.startAuto(0);
	    });
	
	    carousel.buttonPrev.bind('click', function() {
	        carousel.startAuto(0);
	    });
	
	    // Pause autoscrolling if the user moves with the cursor over the clip.
	    carousel.clip.hover(function() {
	        carousel.stopAuto();
	    }, function() {
	        carousel.startAuto();
	    });
	};
}

