﻿$(document).ready(function() {
    $("#powered_by a").click(function() { try { pageTracker._trackEvent('developed_by', 'click', window.location.pathname); } catch (err) { } }).mouseenter(function() { try { pageTracker._trackEvent('developed_by', 'mouseenter', window.location.pathname); } catch (err) { } });
    $("#cartShadow").hover(function() { $(this).css("opacity", "0.5"); }, function() { $(this).css("opacity", "0.3"); }); if ($("#page_menu li a")) { $("#page_menu li a").mouseenter(function(e) { if (!$(this).parent("li").hasClass("selected")) { $(this).stop(); $(this).parent("li").animate({ backgroundPosition: '-230px' }, 500, function() { $(this).find("a").css("background-image", "url(images/icons/" + $(this).find("a").attr("imgname") + ")"); }); } }).mouseleave(function(e) { if (!$(this).parent("li").hasClass("selected")) { $(this).stop(); $(this).parent("li").animate({ backgroundPosition: '0' }, 100, function() { $(this).find("a").css("background-image", ""); }); } }); }
    var href; var mylocation = window.location.toString(); $("#page_menu li").each(function() { href = $(this).children("a").attr("href"); if (mylocation.indexOf(href) > -1) { $(this).addClass("selected"); $(this).find("a").css("background-image", "url(images/icons/" + $(this).find("a").attr("imgname") + ")"); } }); ie6 = $.browser.msie && ($.browser.version == "6.0") && !window.XMLHttpRequest; if (ie6) { $.each($("img[src$=.png],img[src$=.PNG]"), function() { var img = $(this); img.css({ "width": img.width(), "height": img.height(), "filter": "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + img.attr("src") + "', sizingMethod='scale')" }); img.attr("src", "blank_jqPngFix.gif"); }); $(".adminDiv").css({ position: "absolute", top: 0, left: 0 }); }
    var oldLeft; var adminSpeed = 700; if ($(".adminDiv")) {
        $(".adminDiv").mouseenter(function() {
            if (typeof (oldLeft) != "number") { oldLeft = $(this).offset().left; }
            if (animateAdmin) { $(this).stop(); $(this).animate({ left: 0 }, adminSpeed); }
        }).mouseleave(function() { if (animateAdmin) { $(this).stop(); $(this).animate({ left: oldLeft - 5 }, adminSpeed); } });
    }
}); var animateAdmin = true; function anim(object) { animateAdmin = !animateAdmin; $(object).toggleClass("ui-icon-pin-w").toggleClass("ui-icon-pin-s").parents(".adminDiv").toggleClass("ui-state-highlight"); }