$(function() {
	
// ПОДСКАЗКИ В h1	

$('.idea-golos').hover(function(e) {                  
                        $(this).find(".idea-hint").stop().show().animate({
                        opacity: 1,
                        bottom: '25px'
                          }, 400 );

        }, function(e) {
                        $(this).find(".idea-hint").stop().animate({
                        opacity: 0,
                        bottom: '5px'
                           }, 240, function() { $(this).hide(); });
                }); 
    
$('.idea-golos').hover(function(e) {                  
                        $(this).find(".idea-hint2").stop().show().animate({
                        opacity: 1,
                        bottom: '25px'
                          }, 400 );

        }, function(e) {
                        $(this).find(".idea-hint2").stop(true, true).animate({
                        opacity: 0,
                        bottom: '5px'
                           }, 240, function() { $(this).hide(); });
                }); 
                
                
$('.title').hover(function(e) {                  
                        $(this).find("span").stop().show().animate({
                        opacity: 0.9,
                        top: '15px'
                          }, 400 );

        }, function(e) {
                        $(this).find("span").stop().animate({
                        opacity: 0,
                        top: '40px'
                           }, 240, function() { $(this).hide(); });
                }); 
                
$('a.info').hover(function(e) {                  
                        $("span", this).stop().show().animate({
                        opacity: 0.9,
                        top: '15px'
                          }, 400 );

        }, function(e) {
                        $("span", this).stop().animate({
                        opacity: 0,
                        top: '40px'
                           }, 240, function() { $(this).hide(); });
                }); 
     
            
 });
 
 
 
 
 

$(document).ready(function(){
$("#idea-sost").change(onSelectChange);
});

function onSelectChange(){
    var selected = $("#idea-sost option:selected");    
    if(selected.val() == 2){
         $("#usercashdiv").fadeIn(500);
    }
    else {
    	if(($("#usercashdiv").css('display') == 'inline-block') || ($("#usercashdiv").css('display') == 'block'))
    	{
    	$("#usercashdiv").fadeOut(500);
    	}
    	}
}

