//hsy homepage specific scripts built on jquery library which is included in /_scripts/core/jquery.js

$(document).ready(function()
{
     $(".promoCarousel").jCarouselLite({
        btnNext: ".next",
        btnPrev: ".prev",
        auto: 5500,
        speed: 1600,
        circular: true,
        visible: 1,
        btnGo:
        ["#0","#1","#2","#3","#4"],
        dotNavigation: "#promoNav img",
        dotSrc: "/_imgs/hsy/home08/promo-nav-item.gif",
        dotOnSrc: "/_imgs/hsy/home08/promo-nav-active.gif"     
    });

    $("#topContent ul").removeClass("tabs-hide");
    
    //no more centered tabs so this calculation is deprecated - keeping here for reference.         
    //var navWidth = $("#tab1").width() + $("#tab2").width() + $("#tab3").width() + $("#tab4").width();
    //$("#topContent ul").css({ width: navWidth});
    
    //gets called every time text gets resized
    function resizeUtil()
    {
        var iBase = TextResizeDetector.addEventListener(onFontResize,null );
    }
    function onFontResize( e, args ){
    }
    TextResizeDetector.TARGET_ELEMENT_ID = 'homewrapper';
    TextResizeDetector.USER_INIT_FUNC = resizeUtil;
    
    // textbox blur/onfocus toggle labels inside
    $("#userid").textboxSelect();   
    $("#password").textboxSelect();
     
});