﻿
function validateCaptcha() {
    if (document.getElementById("Captcha").value.length == 0 || document.getElementById("Captcha").value == "Enter the text you see above here") {
        alert("Please complete the CAPTCHA field.");
        $("#Captcha").focus();
        return false;
    }
    return true;
}


$(function() {

    $("#Navigation img.link").mouseover(function() {
        if ($(this).hasClass("one")) {
            $("#Navigation img.tab.one").animate({ top: "185px" }, 250);
            $("#Navigation img.label.one").animate({ top: "193px" }, 250);
        } else if ($(this).hasClass("two")) {
            $("#Navigation img.tab.two").animate({ top: "185px" }, 250);
            $("#Navigation img.label.two").animate({ top: "193px" }, 250);
        } else if ($(this).hasClass("three")) {
            $("#Navigation img.tab.three").animate({ top: "185px" }, 250);
            $("#Navigation img.label.three").animate({ top: "193px" }, 250);
        } else if ($(this).hasClass("four")) {
            $("#Navigation img.tab.four").animate({ top: "185px" }, 250);
            $("#Navigation img.label.four").animate({ top: "193px" }, 250);
        } else if ($(this).hasClass("five")) {
            $("#Navigation img.tab.five").animate({ top: "185px" }, 250);
            $("#Navigation img.label.five").animate({ top: "193px" }, 250);
        }
    }).mouseout(function() {
        if ($(this).hasClass("one")) {
            $("#Navigation img.tab.one").animate({ top: "201px" }, 250);
            $("#Navigation img.label.one").animate({ top: "201px" }, 250);
        } else if ($(this).hasClass("two")) {
            $("#Navigation img.tab.two").animate({ top: "201px" }, 250);
            $("#Navigation img.label.two").animate({ top: "201px" }, 250);
        } else if ($(this).hasClass("three")) {
            $("#Navigation img.tab.three").animate({ top: "201px" }, 250);
            $("#Navigation img.label.three").animate({ top: "201px" }, 250);
        } else if ($(this).hasClass("four")) {
            $("#Navigation img.tab.four").animate({ top: "201px" }, 250);
            $("#Navigation img.label.four").animate({ top: "201px" }, 250);
        } else if ($(this).hasClass("five")) {
            $("#Navigation img.tab.five").animate({ top: "201px" }, 250);
            $("#Navigation img.label.five").animate({ top: "201px" }, 250);
        }
    });

    $("#Captcha").focus(function() { if (this.value == "Enter the text you see above here") $(this).css("color", "#000000").val(""); }).blur(function() { if (this.value == "") $(this).css("color", "#aaaaaa").val("Enter the text you see above here"); })

    if ($.browser.isIE6) {
        $("#Navigation").enableIE6BackgroundTransparency({ blankImageUrl: "/blog/i/_.gif" });
        $("img[src$=png]").enableIE6Transparency({ blankImageUrl: "/blog/i/_.gif" });
    }

});

