$(document).ready(function() {
    $('a').focus(function() {
        $(this).blur();
    });
    
    
    
    if ($("#box-weather").length) {
        $.simpleWeather({
            zipcode: '06880',
            unit: 'f',
            success: function(weather) {
                 $("#box-weather").append('<h2 class="private_title">WEATHER</h2>');
                $("#box-weather").append('<div class="weatherpic"><img width="120" src="'+weather.image+'" /></div>');
                $("#box-weather").append('<h2 class="f">'+weather.temp+'&deg; '+weather.units.temp+'</h2>');
                $("#box-weather").append("<span>"+weather.currently+"</span>");
            
               	$("#box-weather").append('<a href="'+weather.link+'" target="_blank">View Forecast &raquo;</a>');
            },
            error: function(error) {
                $("#box-weather").html('<p>'+error+'</p>');
            }
        });
    }
});


function css_callback_fix() {
    $(".club_scripts_member_member_search table > tbody > tr > td > table > tbody > tr > td > table > tbody > tr > td > a").css("color","#5F1512");
    
    $(".club_scripts_member_member_profile table").css("background","none").css("width","100%");
    $(".club_scripts_member_member_profile table tr").removeAttr("bgcolor");
    $(".club_scripts_member_member_profile table tr").removeAttr("bgColor");
}
