/*Вертикальное выравнивание тескта button для firefox*/
function buttons_fix_ff()
{
	buttons = document.getElementsByTagName('button');
	for(i=0; i<buttons.length; i++)
		buttons[i].style.paddingBottom = '3px';
}

if(navigator.userAgent.toLowerCase().indexOf('firefox') != -1)
{
	window.addEventListener("load", buttons_fix_ff, false);
}

$(document).ready(function()
{
	$('#gallery .thumbs a').click(function() {
		$('#gallery .thumbs .item').removeClass('active');
		$(this).parent().addClass('active');
		$('#gallery .main_img img').attr('src', $(this).attr('href'));
		return false;
	});
	
	$('#carrier_tab_container').minitabs();
});