﻿$(function(){

/*********скрыть/показать таблицу **************/

$('span[class=dashedcl]').toggle(
	function(){
		$('.table_formula').slideUp();
		$(this).text('Показать');
	},
	function(){
		$('.table_formula').slideDown();
		$(this).text('Скрыть');
	}
);




function twin(){
 	document.getElementById('t').style.visibility='visible';
}
function twin1(){
 	document.getElementById('t1').style.visibility='visible';
}
function twin2(){
 	document.getElementById('t2').style.visibility='visible';
}
function twin3(){
 	document.getElementById('t3').style.visibility='visible';
}
function twin4(){
 	document.getElementById('t4').style.visibility='visible';
}


function twinhide(){
	document.getElementById('t').style.visibility='hidden'; 
	document.getElementById('t1').style.visibility='hidden'; 
	document.getElementById('t2').style.visibility='hidden'; 
	document.getElementById('t3').style.visibility='hidden'; 
	document.getElementById('t4').style.visibility='hidden'; 	
}




/**************************************/
/********** при наведении на пукнты первой строки таблицы меняются цвета*****************/

/********переменные*************/
var tr1 = $(' .formula_tr1 td:not(.formula_tr1 td:first)');
var tr2 = $(' .formula_tr2 td:not(.formula_tr2 td:first)');
var div1 = $('.formula_tr_div1 div');
var div2 = $('.formula_tr_div2 div');
var block1=$('.tr_div .first_div');
var block2=$('.tr_div .second_div');

/****по умолчанию*********/
	block2.hide();	
	block1.show();
	$('.table_window').hide();




    $("#carousel").jCarouselLite({
        btnNext: "#next",
        btnPrev: "#prev",
        speed: 400,
        visible:4,
	mouseWheel:true
    });

/****боковой слайдер*******/

    $("#carousel2").jCarouselLite({
        btnNext: "#next2",
        btnPrev: "#prev2",
        speed: 400,
	vertical: true,
        visible:5,
	mouseWheel:true

    });


$('#photos').galleryView({
			panel_width: 598,
			panel_height: 380,
			frame_width: 122,
			frame_height: 80,
			transition_speed: 400,
			background_color: '#058cbb',
			border: 'none',
			easing: 'easeInOutBack',
			pause_on_hover: true,
			nav_theme: 'custom',
			overlay_opacity: 0,
			overlay_height: 70,
			transition_interval: '0',
		});



    $(".carousel").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
        speed: 400,
        visible:3,
	mouseWheel:true
    });



});//ready

