

$(document).ready
(
    function()
    {
        $('a[rel=fancy]').fancybox({showNavArrows: false});
		
		// Form input default handlers
        $('input').focus
        (
            function()
            {
                var defValue = $(this).attr('defValue');
                if( defValue )
                {
                    if( defValue == $(this).val() ) $(this).val('');
                }
            }
        );
        $('input').blur
        (
            function()
            {
                var defValue = $(this).attr('defValue');
                if( !$(this).val() && defValue )
                {
                    $(this).val( defValue );
                }
            }
        );
        // Form textarea default handlers
        $('textarea').focus
        (
            function()
            {
                var defValue = $(this).attr('defValue');
                if( defValue )
                {
                    if( defValue == $(this).html() )
                        $(this).html('');
                }
            }
        );
        $('textarea').blur
        (
            function()
            {
                var defValue = $(this).attr('defValue');
                if( !$(this).html() && defValue )
                {
                    $(this).html( defValue );
                }
            }
        );
        // Top menu
        $(".menu_item").hover
        (
            function()
            {
                $(this).addClass('hovered');
            },
            function()
            {
                $(this).removeClass('hovered');
            }
        );
        // Bottom menu
        $(".bottom_menu_item").hover
        (
            function()
            {
                $(this).addClass('hovered');
            },
            function()
            {
                $(this).removeClass('hovered');
            }
        );
    }
);



