﻿/// <reference path="../../webedit/dotnet/js/jquery-1.3.1-vsdoc.js" />

$(document).ready(function() {
    $("#leftNav li.tertiary").prev().css("background", "#FFF"); //REMOVES THE LINE BETWEEEN THE LI'S FOR THE LEFT MENU
    $('.searchbox').click(function() {
        if ($(this).val() == "Enter keywords") {
            $(this).val("");
        }
    });
    $('.searchbox').blur(function() {
        if ($(this).val() == "") {
            $(this).val("Enter keywords");
        }
    });

    $('#home_subscribe_email').click(function() {
        if ($(this).val() == "Enter your email address") {
            $(this).val("");
        }
    });
    $('#home_subscribe_email').blur(function() {
        if ($(this).val() == "") {
            $(this).val("Enter your email address");
        }
    });

    $('#home_subscribe_btn').click(function() {
        window.location = 'page.aspx?terid=105&e=' + $('#home_subscribe_email').val();
        return false;
    });

    $('.colorboximage').colorbox({ transition: 'fade', speed: 500 });

    $(".colorboxiframe").click(function() {
        var obj = eval($(this).attr("rel"));
        $(this).colorbox({ open: true, initialWidth: obj['width'], width: obj['width'], initialHeight: obj['height'], height: obj['height'], iframe: true, opacity: 0.7 });
        return false;
    });

    $("#btn_googlesearch").click(function() {
        var q = $("#txt_googlesearch").val();
        q = (q == "" || q == "Enter keywords") ? "" : "&q=" + q;
        window.location = 'google_search.asp?SecID=90' + q;
    });
});

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-5184527-2']);
_gaq.push(['_trackPageview']);

(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

