/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

jQuery(document).ready(function() {
      jQuery("#FloatContryMenu").mouseenter(function(){
             jQuery.data(this, 'hover', true);
      }).mouseleave(function(){
          jQuery(this).fadeOut("fast",function(){
                    jQuery.data(this, 'hover', false);
           });
       })
                                        
        jQuery(".topChoiseCurency").mouseenter(function(){
              jQuery("#FloatContryMenu").fadeIn("fast");
          }).mouseleave(function(){
                   setTimeout("if(!jQuery('#FloatContryMenu').data('hover')) { jQuery('#FloatContryMenu').fadeOut('fast');}",100);
         })
  

if(jQuery('.SpecialPlus').length) {
   jQuery('.SpecialPlus').each(function(index) {
       jQuery(this).click(function(){
           obj = jQuery(this).parent();
           jQuery(obj).children('input:first').val(parseInt(jQuery(obj).children('input:first').val())+1)
       })
    });
}

if(jQuery('.SpecialMinus').length) {
   jQuery('.SpecialMinus').each(function(index) {
       jQuery(this).click(function(){
           obj = jQuery(this).parent();
          if(parseInt(jQuery(obj).children('input:first').val()) > 0) { 
           jQuery(obj).children('input:first').val(parseInt(jQuery(obj).children('input:first').val())-1)
          }
       })
    });
}

  })
        


