
$(document).ready(function(){

    $('input[type="text"]').blur(function() {
        if(this.value=='')
        {
            this.value=this.defaultValue; $(this).css("color","#cbcbcb");
        }
        else
        {
            $(this).css("color","#6f6f6f");
        }
    });

    /* Homepage rotating banner transition */
    if ($.browser.msie) /* Hide opacity toggle from IE - problem with font rendering when */
        {
            $(function() {$('#tabs').tabs();
            $('#tabs').tabs('rotate', 20000, true);
        });
    }
    else
        {
            $(function() {$('#tabs').tabs({ fx: { opacity: 'toggle' } });
            $('#tabs').tabs('rotate', 20000, true);
        });
    }

    /* Homepage main content span effect */
    $("ul#featuredHolder li").hover(function() {
        $(this).children("span").css("color","#7fade0","text-decoration","underline");
        $(this).children("span").css("backgroundPosition", "0 -10px")
    },
    function(){
        $(this).children("span").css("color","#798188","text-decoration","none")
        $(this).children("span").css("backgroundPosition", "0 2px")
    });
    
    $(window).resize(function(){
        var dw = $('body').width();
        var x = (dw < 1280) ? -1 * ((1280 - dw)/2) : 0;
        $("#tabs").css('margin-left', x).width(x ? 1280 : '100%'); 
    }).trigger('resize');

});



