$(document).ready(function(){	
    
    $('div.wpcf7-response-output').replaceWith('');
	$('.wpcf7').prepend('<div class="wpcf7-response-output wpcf7-display-none"></div>');
    
    if ( $('#header .menu ul li ul').size() > 0){
        $('#header .menu ul li ul').parent().addClass('has-submenu');
    }

	if ($('.rotate-box').length>0) {
		$('.rotate-box UL.pictures').cycle({
			fx: 'fade',
			speed: 500,
			timeout: 5000,
			pager:  '#nav'
		});
	}
	
  /*  if (($.browser.msie) && ($.browser.version == 6)) {
        $('#header .menu UL LI').hover(function(){
            if (! $(this).parent('.sub-menu').length > 0 ) {
                $(this).addClass('hover');
            }
        },
        function() {            
            $(this).removeClass('hover');     
        });
	}*/
	$('#header .menu UL LI.has-submenu').hover(function(){
		var submenu = $(this).find('.sub-menu');
		$(submenu).stop(true,true);
		$(this).css('z-index','23');
		$(submenu).slideDown(500);
	},
	function(){
        var cur = $(this);
        $(this).find('.sub-menu').slideUp(function(){
            cur.css('z-index','20');
        });		
	});
});
