function hideForm(id, what){
	        		
	        		if(what == ""){
	        			hide(id);
	        			
	        			document.getElementById('jsButton1').style.visibility = 'hidden';
	        			document.getElementById('jsButton2').style.visibility = 'hidden';
	        		}
	        		
	        		if(what == "show"){
	        			
	        			show(id, 'block');
	        			
	        			document.getElementById('jsButton1').style.visibility = 'visible';
	        			document.getElementById('jsButton2').style.visibility = 'hidden';

	        		}
	        		
	        		if(what == "hide"){
	        			
	        			hide(id);
	        			
	        			document.getElementById('jsButton1').style.visibility = 'hidden';
	        			document.getElementById('jsButton2').style.visibility = 'visible';
	        			
	        		}
	        		
	        	}
	        	
	        	function show(id, how){
	        		
	        		document.getElementById(id).className='';
					document.getElementById('commentDiv').className = 'contForm';
	        		document.getElementById('commentH').className = '';
					
	        		if (navigator.appName == 'Microsoft Internet Explorer') {
						element=document.getElementById(id).style;
						element.display = 'block';
					}
					else {
						element=document.getElementById(id).style;
						element.display = how;
					}
				}
	        	
	        	function hide(id){

					element=document.getElementById(id).style;
					element.display = 'none';
					document.getElementById('commentDiv').className = 'contFormTrans';
					document.getElementById('commentH').className = 'commNadp';
				}






$(document).ready(function(){
  
    $('ul#header-sport-menu li.first-level').hover(
                                       
    function(){
        
        $(this).find('ul').show();
        
    },
    function(){
    
        $(this).find('ul').hide();
    
    })
  
    
    
    /* homepage products */
    
    $('#main-top-products div').hover(function(){
        
        $(this).find('span').css('display', 'block');
    },function(){
        
    
        $(this).find('span').css('display', 'none');
    })
    
    
    /* homepage newsletter validator */
    
    $('form#newsletter_form').submit(function(){
    
                                var inEmail = $('input#newsletter_email');
                                validateEmpty(inEmail, 'e-mail');
                                validateMail(inEmail);

                                if($('input').hasClass('notValid')){
                                return false;
                            } else {
                                return true;
                            }
    
    })
    
    
    refillInputs('input');
})
