Cufon.replace('#gns', { fontFamily: 'Helvetica LT Std',separate: "words",
	hover:true });

Cufon.replace('#banner-left h2,#intro-links h2', { fontFamily: 'Helvetica Light',separate: "words",
	hover:true });
Cufon.replace('#banner-left p,#banner-right p,.home-cols h2', { fontFamily: 'Helvetica Roman',separate: "words",
	hover:true });

$(document).ready(function() {
$('#director-list li:first').addClass("first");
$('#gallery li:nth-child(4n)').addClass("last");
$('#footer ul#links li:nth-child(1) a,#footer ul#links li:nth-child(2) a').after("|");

 $('.s').val('Search Site');
    $('.s').click(function() {
    if ($('.s').val() == "Search Site")
        $('.s').val('');
});


if (querySt() == false) {
    $('a').each(function () {
        var url = this.href
        if (this.href.indexOf("javascript") == -1) {

            var a = new RegExp('/' + window.location.host + '/');
            if (!a.test(this.href)) {
                $(this).click(function (event) {
                    event.preventDefault();
                    event.stopPropagation();
                    window.open(this.href, '_blank');
                });
            }
        }

        if (url.lastIndexOf(".") > 0) {

            if (url.substring(url.lastIndexOf("."), url.length) == ".ashx") {

                $(this).attr("target", "_blank").attr("title", "Opens new window").addClass("external");
            }
        }
    });
}


	

});



function emailme() {
    var title = document.title;
    var url = document.location.href;
    var subject = "DAA";
    var bodyText = "I saw this page and thought you might like to see it " + url;

    window.location.href = "mailto:?subject=" + subject + "&body=" + bodyText;

}



function querySt() {
    hu = window.location.search.substring(1);
    gy = hu.split("&");
    for (i = 0; i < gy.length; i++) {
        ft = gy[i].split("=");
        if (ft[0] == "cmspagemode") {
            return true;
        }
    }
    return false;
}
