/*
Здесь функция, которая анимирует кнопки слева
*/

/*
основная функция анимации
*/
jQuery.fn.rollOver = function(first,second){
	$(this).mouseover(function(){
	$(this)
	.animate({left:first},200);
});
	$(this).mouseout(function(){
	$(this)
	.animate({left:second},200)
});
};
/*
функция, скрывающая кнопки
*/
jQuery.fn.rollClose = function(victim){
	$(this).click(function(){
	$(victim)
	.animate({opacity:'hide'},600);
});
};
/*
функция, улучшающая вид картинок с классом .bordered
*/
jQuery.fn.wowPic = function(){
	$(this).mouseover(function(){
	$(this)
	.animate({opacity:"0.6"},0)
	.animate({opacity:"1"},1000);
});
};
/* исполняем функции */
$(function(){
	$("#left-button-01,#left-button-02,#left-button-03,#left-button-04,#left-button-close").rollOver('0','-116px');
	$("#left-button-close").rollClose('#left-button-box');
	$("#lacie-action-box").rollOver('0','-158px');
	$(".bordered").wowPic();
});