﻿$(document).ready(function() {
    //    $('#modelImage').tooltip({
    //        delay: 0,
    //        showURL: false,
    //        bodyHandler: function() {
    //            var src = $(this).attr('tooltip')
    //            return $("<img/>").attr("src", src);
    //        }
    //    });
    $('#modelImage').colorbox({});
    $(".colorbox.features").colorbox({ href: "/flash/vtwin/vtwin_features.htm", width: 1000, height: 675, iframe: true });
    $(".colorbox.features-verticle").colorbox({ href: "/flash/vtwin/vtwin_features_verticle.htm", width: 1000, height: 675, iframe: true });
    //$(".colorbox.specification").colorbox({ width: "50%", inline: true, href: "#Specifications" });
    //$(".colorbox.performancecurve").colorbox({ width: "50%", inline: true, href: "#PeformanceCurve" });
    $(".colorbox.modelconfigurator").colorbox({ width: 950, height: 725, iframe: true, href: "/flash/ModelConfigurator/ModelConfigurator.html" });
    $(".colorbox.ptoshaft").colorbox({ width: 1000, height: 875 });
    $(".colorbox.muffler").colorbox({ width: 650, height: 525 });

    $("a[rel='pto']").colorbox({ transition: "elastic" });

    $("#Specifications tr > td:nth-child(odd)").addClass("specname")
    $("#Specifications tr > td:nth-child(even)").addClass("specdesc")
});       // document.ready