﻿Cufon.replace('h1', { textShadow: '#fff 0px 1px' });
Cufon.replace('h2');
Cufon.replace('h3');
Cufon.replace('h6');
Cufon.replace('h5.sub');
Cufon.replace('h4.smaller');
Cufon.replace('h3.smaller');

window.onload = function () {

    var uri = window.location.pathname;
    if (uri.indexOf("/spindoctor/") == 0) $("nav_spin").className = "selected";
    else if (uri.indexOf("/turbotech/") == 0) $("nav_spin").className = "selected";
    else if (uri.indexOf("/parts/") == 0) $("nav_parts").className = "selected";
    else if (uri.indexOf("/contact/") == 0) $("nav_contact").className = "selected";
    else if (uri.indexOf("/publications/") == 0) $("nav_pub").className = "selected";
    else if (uri.indexOf("/remanufacture/") == 0) $("nav_remanu").className = "selected";
    else if (uri.indexOf("/services/") == 0) $("nav_services").className = "selected";
    else if (uri.indexOf("/") == 0 && uri.length == 1) $("nav_home").className = "selected";
}


function quickLinks() {
    var obj = $("quicklinks");
    if (obj == null) return;

    if (obj.style.display == "none") {

        obj.style.display = "block";
        new Effect.ScrollTo(obj, { duration: 0.7 });

    } else {
        obj.slideUp({ duration: 0.5 });
    }
}


function submitForm(formObj) { };
