$(function() {
	var self = this;
	var h2Started = false;

	var i = $('div#boxShare ul li').length + 2;
    $('div#boxShare ul li').each(function() {
        $(this).css('z-index', i)
        i = i - 1;
    })
    .mouseover(function() {
    	$('div#boxShare').stopTime();
    	if(!h2Started)
    		$(this).animate({'marginLeft': '-1px'}, 200, 'swing');
    })
    .mouseout(function() {
    	if(!h2Started)
    		$(this).oneTime(10, function() { $(this).animate({'marginLeft': '-21px'}, 200, 'swing'); });
    });
    
    $('div#boxShare h2').mouseover(function() {
    	h2Started = true;
    	$('div#boxShare').stopTime();
    	$('div#boxShare ul li').stopTime().animate({'marginLeft': '-1px'}, 200, 'swing');
    });
    
    $('div#boxShare').mouseout(function(event) {
    	$(this).oneTime(10, function() {
    		h2Started = false;
    		$('div#boxShare ul li').animate({'marginLeft': '-21px'}, 200, 'swing');
    	});
    });
});
