$(document).ready(function(){
	
	
	
	$("#container").hide();
	$("#container").slideDown(2000);
	
	
	$("#menu li").css({opacity: "0.0"});
	$("#menu li").hover(function(){
			$(this).fadeTo(200, 1);
		}, 
		function(){
			$(this).fadeTo(200, 0);
		});
	
	$("#container li").prepend('&raquo; ');
	
	$(".category-content").hide();
	
	$(".category h1").click(function(){
		//element.slideToggle('normal');
		
		var element = $(this).parent().next('.category-content');
		if(element.is(':visible')) {
			element.slideUp('slow');
			return false;
		}
		if(!element.is(':visible')) {
			$('.category-content').slideUp('slow');
			element.slideDown('slow');
			return false;
		}
	
	
	});		
	$(".category h1").hover(function () {
        $(this).css('color', '#fff');
      }, 
      function () {
        $(this).css('color', '#c1ddff');
    });
    
    
     $("div.tn img").hover(
      function () {
        $(this).fadeTo("fast", 0.5);
      },
      function () {
        $(this).fadeTo("slow", 1);
      }
    );
	
	mail = new Array("enquiries","smwelding.co.uk","Click here to contact us by e-mail");

	$("#email").html('<a href="mailto:' + mail[0] + "@" + mail[1] +'">' + mail[2] + "</a>");
	
    
});