<!--Podskazka-->
$(document).ready(function(){
    $(".under a").hover(function() {
        $(this).find("em").animate({opacity: "show"}, "slow");
    }, function() {
        $(this).find("em").animate({opacity: "hide"}, "slow");
    });
});

<!--Vkladki-->
//this.screenshotPreview = function(){};
$(document).ready(function(){

///tooltips
function getClientWidth()
{
    return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}

function getClientHeight()
{
    return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
			}

            
jQuery.fn.center = function() 
	{
	var w = $(window);
	this.css("position","absolute");
	this.css("top",(getClientHeight()-this.height())/2 + "px");
	this.css("left",(getClientWidth()-this.width())/2 + "px");
	return this;
	}
   $.fn.tipsy.defaults = {
    delayIn: 0,      // delay before showing tooltip (ms)
    delayOut: 0,     // delay before hiding tooltip (ms)
    fade: false,     // fade tooltips in/out?
    fallback: '',    // fallback text to use when no tooltip text
    gravity: 'n',    // gravity
    html: true,     // is tooltip content HTML?
    live: false,     // use live event support?
    offset: 0,       // pixel offset of tooltip from element
    opacity: 0.8,    // opacity of tooltip
    title: 'tooltip_content',  // attribute/callback containing tooltip text
    trigger: 'hover' // how tooltip is triggered - hover | focus | manual
};
   $('.tool_tip').tipsy({gravity: 'e'});

   jQuery.fn.center = function() 
	{
	var w = $(window);
	this.css("position","absolute");
	this.css("top",(w.height()-this.height())/2+w.scrollTop() + "px");
	this.css("left",(w.width()-this.width())/2+w.scrollLeft() + "px");
	return this;
	}
	var link=0;
   $('.tt_tool_tip_html').click(function(){
					$('.tooltip_manual').fadeIn(100);
					$('.tooltip_manual').center();
					link=$(this).attr('href');					
					return false;

					
				});
	$('.close_tip').click(function(){
		$('.tooltip_manual').css('display', 'none');
		top.location.href=link;
	});
	
	$('.tooltip_manual input').change(function(){
		top.location.href=link;
	});
	$('.tool_tip_other_direction').tipsy({gravity: 'w'});
//////tooltips

//	screenshotPreview();
		

		var index = $('.tab-header li').index($('.tab-header li.current'));

		$('.tab-body:eq('+index+')').show();

		

		$('.tab-header li a').click(function(){

			$('.tab-header li').removeClass('current');

			$(this).parent().addClass('current');

			index = $('.tab-header li').index($(this).parent());

			$('.tab-body').hide();

			$('.tab-body:eq('+index+')').show();

			return false;

		});

    $(".btn-slide2").click(function(){
        $("#panelpod2").slideToggle("slow");
        return false;
    });    
    $(".btn-slide1").click(function(){    	
        $(".panelpod1").show();
        $(this).addClass("active");
        $(".btn-slide1_").removeClass("active");
    });
    $(".btn-slide1_").click(function(){
    $(".panelpod1").hide();
    $(this).addClass("active");
    $(".btn-slide1").removeClass("active");
    });
});

<!--Ssilka podrobnee-->
$(document).ready(function() {
    $('.create-user').click(function() {
    var power = $(this).parents('tr').find('.power').text();
    $('#power_id').attr('value',power);
    var model = $(this).parents('tr').find('.model').text();
    $('#model_id').attr('value',model);
    var pressure = $(this).parents('tr').find('.pressure').text();
    $('#pressure_id').attr('value',pressure);
    return false;
    });
});

