jQuery.noConflict();

/*
 * General DOM ready statemenets
 */
jQuery(function($) {
	
	if (($.browser.msie) && ($.browser.version <= 6)) {
		
		$('#social-links img').each(function(){		
			var png = this;
			src = png.src;
			//alert(src);
			png.src = '/trine/html/images/blank.gif';
			png.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='crop')";
		})
		
	}
	
	var $itemHeight = $('#social-links .social-links-bg').height();
	$('#social-links').css('margin-top',-$itemHeight/2)
	
	$('#social-links .button').each(function(){
		var $button = $(this).find('.text').hide();
		$(this).find('>span').mouseenter(function(){ if (!$button.is(':animated')) { $button.show().animate({ left: '0' }).addClass('animated'); }})
		$(this).mouseleave( function(){ if ($button.is('.animated')) { $button.animate({ left: '-500' }, function(){ $button.hide().removeClass('animated'); }); } });
	});

});