$(function(){
	$('#m-col-r').slides({
		preload: true,
		slideSpeed: 'slow',
		play: 7000,
		pause: 3500,
		effect: 'fade',
		hoverPause: true
	});
	$('#s-col-r').slides({
		preload: true,
		slideSpeed: 'slow',
		play: 7000,
		pause: 3500,
		effect: 'fade',
		hoverPause: true
	});
	$('#products').slides({
		preload: true,
		effect: 'slide, fade',
		crossfade: true,
		slideSpeed: 200,
		fadeSpeed: 500,
		generatePagination: false
	});
$("div#column-center table tr:odd").css("background-color", "#f4f3f3");
$("tbody#bodycatalog tr:odd").css("background-color", "#f4f3f3");
$("table#specifications tr:last-child td").css("border-bottom", "0");
}); 

// Окно 3D модели
$(document).ready(function () {
	$('#window-close,.box-overlays').click(function () {
		$('.box-overlays, .box-infos').hide();
		return true;
	});       
	$(window).resize(function () {
		if (!$('.box-infos').is(':hidden')) popup();
	});
});
function box(id) {  
	var maskHeight = $(window).height();
	var maskWidth = $(window).width();
	var dialogTop =  (maskHeight/2) - ($('#box-infos'+id).height()/2);
	var dialogLeft = (maskWidth/2) - ($('#box-infos'+id).width()/2);
	$('#box-overlays'+id).css({height:maskHeight, width:maskWidth}).show();
	$('#box-infos'+id).css({top:dialogTop, left:dialogLeft}).show();
}

$(document).ready(function() {
	$('#tabvanilla > ul').tabs({
		fx: { height: 'toggle', opacity: 'toggle' },
		cookie: {
			expires: 1,
			path: '/'
		}  
	});
	$('#featuredvid > ul').tabs();
	$('.color').tooltip({
		track: true,
		delay: 0,
		showURL: false,
		fade: 200
	});
});


