	$(document).ready(function(){
		
		$("#toggle-nw").hide();
		
		$("#select-nw").mouseover(function(){
		    $("#toggle-nw").show();
		    return false;
		});
		
		$("#select-nw").mouseout(function(){
		    $("#toggle-nw").hide();
		    return false;
		});			

		$("#toggle-nw").mouseover(function(){
		    $(this).show();
		    return false;
		});	
		
		$("#toggle-nw").mouseout(function(){
		    $(this).hide();
		    return false;
		});	
		
		// cycle
		$('#slideshow img:not(:first)').hide();
		$('#slideshow').cycle({ 
		    timeout: 6000,
			speed: 3000
		})

		// newsletter
		
		$("#nl-input").focus(function(){
			$(this).val('');
		});	

		$(".news-button").click(function () { 
			var chkMail = $("#nl-input").val();
			$.get("/_inline/newsletter.php", { email: chkMail },
				function(data){
					$("#nl-alert").fadeIn('slow');
					$("#nl-alert p").html(data);
					$("#nl-alert").animate({opacity: 1.0}, 3000).fadeOut('slow');				
			});
			return false;
		});	

		// cats
		
		// $("#cats").hide();

		$("#show-nav").mouseover(function(){
		    $("#cats").show();
		    return false;
		});	
		
		$("#cats").hover(function(){
			$(this).show();
		},function(){
			// $(this).hide();
		});			
	});	
	
	
	// functions
	
	function loadTab(page){

		$.get(page,{},

			function(data){
			
				$(".loader-tab0").hide(),$(".loader-tab1").hide();
				$("#content-toggle").empty(),$("#content-toggle").append(data);		 
			}
		)		
	}