//SHADOW
$(function() {

    $(".lefttab3Copy3").append('<img class="shadow" src="images/icons-shadow.jpg" width="160" height="27" alt="" />');

    // Animate buttons, shrink and fade shadow

    $(".lefttab3Copy3").hover(function() {
        var e = this;
        $(e).find("a").stop().animate({ marginTop: "-14px" }, 250, function() {
            $(e).find("a").animate({ marginTop: "-10px" }, 250);
        });
        $(e).find("img.shadow").stop().animate({ width: "80%", height: "20px", marginLeft: "-20px", opacity: 0.25 }, 250);
    }, function() {
        var e = this;
        $(e).find("a").stop().animate({ marginTop: "4px" }, 250, function() {
            $(e).find("a").animate({ marginTop: "0px" }, 250);
        });
        $(e).find("img.shadow").stop().animate({ width: "160", height: "27px", marginLeft: "0px", opacity: 1 }, 250);
    });

});

jQuery.fn.anchorAnimate = function(settings) {

    settings = jQuery.extend({
        speed: 1100
    }, settings);

    return this.each(function() {
        var caller = this;
        $(caller).click(function(event) {
            event.preventDefault();
            var locationHref = window.location.href;
            var elementClick = $(caller).attr("href");

            var destination = $(elementClick).offset().top;
            $("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination }, settings.speed, function() {
                window.location.hash = elementClick;
            });
            return false;
        });
    });
}

function flashFixerPrice(fFile, fWidth, fHeight) {
    flash = "<embed src=\"" + fFile + "\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" menu=\"false\" width=\"" + fWidth + "\" height=\"" + fHeight + "\"></embed>";
    return flash;
}


