$(document).ready(function() {
        /*MENU HP*/
        $('#menuHP .sub').hide();
        $('#menuHP a.sub1').click(function() {
                $('#menuHP div.sub2').hide('slow');
                $('#menuHP div.sub1').toggle('slow');
        	if ($('#menuHP a.sub2').is('.active')) {
                        $('#menuHP a.sub2').removeClass('active');
        	}                
                $(this).toggleClass('active');                    
		return false;
	});
        $('#menuHP a.sub2').click(function() {
                $('#menuHP div.sub1').hide('slow');
                $('#menuHP div.sub2').toggle('slow');
        	if ($('#menuHP a.sub1').is('.active')) {
                        $('#menuHP a.sub1').removeClass('active');
        	}                
                $(this).toggleClass('active');                  
		return false;
	});	

	/*MENU PAGES*/
        $('#menu ul').hide();
        $('#menu a.sub1').click(function() {
                $('#menu ul.sub2').hide('slow');
                $('#menu ul.sub1').toggle('slow');
        	if ($('#menu a.sub2').is('.active')) {
                        $('#menu a.sub2').removeClass('active');
        	}                
                $(this).toggleClass('active');                                           
		return false;
	});
        $('#menu a.sub2').click(function() {
                $('#menu ul.sub1').hide('slow');
                $('#menu ul.sub2').toggle('slow');
        	if ($('#menu a.sub1').is('.active')) {
                        $('#menu a.sub1').removeClass('active');
        	}                    
                $(this).toggleClass('active');  
		return false;
	});	
	
	/*GALLERY MOUSEOVER*/
	$('.box150150Text').hide();
        $('.box150150').mouseover(function() {
                $(this).children('.box150150Text').show();
                return false;
	});	
        $('.box150150').mouseout(function() {
                $(this).children('.box150150Text').hide();
                return false;
	});
        	
        /*LIGHTBOX*/
        $('.gallery a').lightBox();

	/*HP SLIDESHOW*/
        $(function() {        
                $('#slideshow').cycle({
                        fx:      'fade',
                        speed:    2000, 
                        timeout:  2000,
                        pause:    1,
                        cleartype:  true,
                        cleartypeNoBg:  true
                });                    
        });
        
});

