$(document).ready(function() {
    $(".DynamicMenuItemStyle").each(function() {
        var href = $(this).attr("href");
        if (href != undefined) {
            if (href == "womens-sneakers.aspx" || 
                href == "womens-shoes.aspx" ||
                href == "womens-hightops.aspx" ||
                href == "mens-sneakers.aspx" ||
                href == "mens-shoes.aspx" ||
                href == "mens-sandals.aspx" ||
                href == "mens-hightops.aspx" ||
                href == "belts.aspx" ||
                href == "wallets.aspx" ||
                href == "key-rings.aspx" ||
                
                href == "prada.aspx" ||
                href == "gucci.aspx" ||
                href == "dolce-gabbana.aspx" ||
                href == "hogan.aspx" ||
                href == "designers-womens-lanvin-shoes.aspx" ||
                href == "fendi.aspx" ||
                href == "botticelli.aspx" ||
                
                href == "womens-clearance.aspx" ||
                href == "mens-clearance.aspx" ||
                href == "accessories-clearance.aspx") {
                $(this).addClass("submenu-title");
                $(this).removeClass(".DynamicMenuItemStyle");
            }
        }
    });
});

function openSizeChart() {
    var windowObj = window.open('/size-chart.htm', 'sizechart', "width=560,height=660,top=100,left=200,toolbars=no,scrollbars=yes,status=no,resizable=no");
    windowObj.focus();
}
var quotes = [ "NEW AUTUMN-WINTER ARRIVALS", "SAVE NOW ON FAVORITE DESIGNERS", "FREE WORLDWIDE SHIPPING*", "FALL FOR SAVINGS" ];
var currentQuote = quotes.length;
function changeQuote() {
    $("#hQuote").effect("slide", { mode: "hide", direction: "down", distance: 54, easing: "easeInBounce" }, 1200, function() {
        currentQuote++;
        if (currentQuote >= quotes.length)
            currentQuote = 0;
        $("#hQuote").html(quotes[currentQuote]);
        $("#hQuote").effect("slide", { mode: "show", direction: "down", distance: 54, easing: "easeOutBounce" }, 1200);
        setTimeout(changeQuote, 5000);
    });
}

var selectedID = 0;
function toggle(obj, value) {
    $(".sizebox-selected").attr('class', 'sizebox');
    var lst = document.getElementById('ctl00_ctl00_MainContent_uxProduct_uxProductAttributes_' + lstObj);
    if (lst.options[lst.selectedIndex].value == value) {
        obj.className = 'sizebox';
        lst.selectedIndex = 0;
        obj.onmouseover = function() { this.className='sizebox-hover'; };
        obj.onmouseout = function() { this.className='sizebox'; };
    } else {
        obj.className = 'sizebox-selected';
        for (var i=0; i < lst.options.length; i++)
            if (lst.options[i].value == value) {
                lst.selectedIndex = i;
                break;
            }
        obj.onmouseover = null;
        obj.onmouseout = null;
    }
    setTimeout('__doPostBack(\'ctl00$ctl00$MainContent$uxProduct$uxProductAttributes$' + lstObj + '\',\'\')', 0)
}
function fadePanel(id) {
    $("#" + id).fadeOut(2000);
}