﻿$().ready(function() {

    var loc = document.location.href;
    loc = loc.substr(7);
    loc = loc.substr(loc.indexOf("/"));
    $("a").each(function() { if ($(this).attr('href').toLowerCase() == loc.toLowerCase()) { $(this).addClass("active"); } });
    //$("a[@href=" + loc + "]").addClass(".active");


    $('#PartnerUp-Nav a:not(li.' + $("body").attr("class") + ' a)')
        .css({ backgroundPosition: "0 35px" })
        .mouseover(function() {
            $(this).stop().animate(
	            { backgroundPosition: "(0 0px)" },
	            { duration: 500, easing: "easeOutBounce" })
        })
        .mouseout(function() {
            $(this).stop().animate(
	            { backgroundPosition: "(0 35px)" },
	            { duration: 500, easing: "easeOutBounce" })
        });


    $(".submit").bind("mouseenter", function() {
        $(this).attr("src", $(this).attr("src").replace(".gif", "-hover.gif"));
    }).bind("mouseleave", function() {
    $(this).attr("src", $(this).attr("src").replace("-hover.gif", ".gif"));
    });

$('a.thickbox').tooltip({
	track: true,
	delay: 0,
	showURL: false, 
	bodyHandler: function() { 
        return "Click to enlarge."; 
  },
	fade: 250
});


});

 DD_roundies.addRule('img.figure, #Next img, .png');