/* 
 *  Top Box Windows hover effects
 */
$(document).ready( function()
{
    $('input[name="q"]').each(function(){
            var title = $(this).attr('title');
            $(this)
                    .focus(function(){if($(this).val() == title) $(this).val('');})
                    .blur(function(){if($(this).val() == '') $(this).val(title);});
    });
    
    $('#right-header a.option').live(
    {
        mouseenter: function()
        {
            $(this).siblings('div.top-window').show();
        },
        mouseleave: function()
        {
            $(this).siblings('div.top-window').hide();
        }
    });
});
/*
$(".option").live({
    mouseenter: function(){
        var onselected;
        onselected=$(this).attr("id");
        if((onselected=="login-username") || (onselected=="login-area")) {
             $("#login-area").css("display", "block");
             $("#login-username").css("background-color", "#2b0d28");
        } else {
            $("#cart-area").css("display", "block");
            $("#cart-basket").css(
                                {
                                    'background': 'none no-repeat scroll 0 0 #FFF',
                                    'color': '#431A3D'
                                }
                            );
        }
    },
    mouseleave: function(){
        var onselected;
        onselected=$(this).attr("id");
        if((onselected=="login-username") || (onselected=="login-area")) {
            $("#login-area").css("display", "none");
             $("#login-username").css("background", "none");
        } else {
            $("#cart-area").css("display", "none");
            $("#cart-basket").css("background", "none");
        }  
        onselected=null;
    }
});
*/
