jQuery('#menu').ready(function() {
	var currentcolor = '#99ffcc';
	var hovercolor = '#eee';
	// set opacity to nill on page load
	jQuery("#menu ul li span").show();
	// on mouse over
	jQuery("#menu ul li a").hover(function () {
		if(jQuery(this).parent('li').hasClass('current') !== true)
			jQuery(this).css('color', '#000');
		// animate opacity to full
		jQuery(this).parent().find('span').stop().animate( {opacity: 1} , "slow", "swing" );
	},
	// on mouse out
	function () {
		if(jQuery(this).parent('li').hasClass('current') !== true)
			jQuery(this).css('color', '#99ffcc');
		// animate opacity to nill
		jQuery(this).parent().find('span').stop().animate({
			opacity: 0
		}, "slow", "swing");
	});
	
	
	jQuery('#menu #searchform input').focus(function() {
		if(jQuery(this).val() == jQuery(this).attr('title') ) 
			jQuery(this).val('');
	});
//	jQuery('#menu .mailinglist input[type="submit"]').click(function() {
//		jQuery('#menu .mailinglist input[type="text"]').each(function() {
//			if(jQuery(this).val() == jQuery(this).attr('title') ) 
//				jQuery(this).val('');	
//			});
//	});
	jQuery('#menu #searchform input').blur(function() {
		if(jQuery(this).val() == '') 
			jQuery(this).val( jQuery(this).attr('title') );
	});
    
        	
	jQuery('#menu .mailinglist input[type="text"]').focus(function() {
		if(jQuery(this).val() == jQuery(this).attr('title') ) 
			jQuery(this).val('');	
	});
	jQuery('#menu .mailinglist input[type="submit"]').click(function() {
		jQuery('#menu .mailinglist input[type="text"]').each(function() {
			if(jQuery(this).val() == jQuery(this).attr('title') ) 
				jQuery(this).val('');	
			});
	});
	jQuery('#menu .mailinglist input[type="text"]').blur(function() {
		if(jQuery(this).val() == '') 
			jQuery(this).val( jQuery(this).attr('title') );
	});

	
	jQuery('#menu .link').mouseover(function() {
    jQuery('#menu .hidden').fadeOut();	
		jQuery(this).parent('li').eq(0).find('.hidden').fadeIn();
	});
	
	jQuery('#menu .hidden').mouseleave(function() {	
jQuery('#menu .hidden').fadeOut();	
	});
    
    
    
    jQuery('#contactbutton').toggle(
        function() {
            jQuery('#contactinfo').css({'border':'1px solid white'});
            jQuery('#contactus').stop().animate({
                left: -1           
            }, 1000, function() {
            // Animation complete.
            })
        }
        ,
        function() {
            jQuery('#contactinfo').css({'border':'1px solid white'});
                jQuery('#contactus').stop().animate({
                    left: -500
                }, 1000, function() {
                // Animation complete.
                })
        } 
    );
});

jQuery('#content').ready(function() {

jQuery('.arelease, .releases li').mouseover(function(){
	jQuery(this).find("img").eq(0).stop(true, true).fadeTo('slow', 0.4);
	jQuery(this).children("h3").stop(true, true).fadeTo('slow', 1.0);
	jQuery(this).children(".more").stop(true, true).fadeTo('slow', 1.0);
});
jQuery('.arelease, .releases li').mouseleave(function() {
	jQuery(this).children("h3").stop(true, true).fadeTo('slow', 0);
	jQuery(this).children(".more").stop(true, true).fadeTo('slow', 0);
	jQuery(this).find("img").eq(0).stop(true, true).fadeTo('slow', 1.0);
});
jQuery('.more .buy').mouseover(function(){
	jQuery(this).parent("li").find(".buylinks").stop(true, true).fadeTo('slow', 1.0);
});
jQuery('.more .buylinks').mouseleave(function() {
	jQuery(this).parent("li").find(".buylinks").stop(true, true).fadeTo('slow', 0);
});
});



