(function () {

    jQuery(function () {
        
        jQuery('div#head div.menu:first li').hover(function () {
            
            jQuery(this).addClass('active');
            
        }, function () {
            
            jQuery(this).removeClass('active');
            
        });
        
        jQuery('div#body div.menu:first li:has(ul) > *:first-child').each(function () {
        
            jQuery('<a class="menu" href="#">+</a>')
                .appendTo(this)
                .toggle(function () {
                    
                    jQuery(this).html('-').parent().parent().addClass('active');
                    
                }, function () {
                    
                    jQuery(this).html('+').parent().parent().removeClass('active');
                    
                });
                
        });
        
        jQuery('div#head div.search:first input:first')
            .focus(function () {
                
                var input = $(this);                
                if (input.val() === 'Model / Part Search') {
                    input.val('');
                }
                
            })
            .blur(function () {
                
                var input = $(this);                
                if (input.val() === '') {
                    input.val('Model / Part Search');
                }
                
            });
        
        jQuery('div#foot div.section.last:first input:first')
            .focus(function () {
                
                var input = $(this);                
                if (input.val() === 'Enter your email address') {
                    input.val('');
                }
                
            })
            .blur(function () {
                
                var input = $(this);                
                if (input.val() === '') {
                    input.val('Enter your email address');
                }
                
            });
        
    });
    
})();
