
//*-----------------------------------------------------
// function to mask email addresses from spammers
//----------------------------------------------------*/
var first = 'ma';
var second = 'il';
var third = 'to:';
var domain = '&#112;&#114;&#105;&#100;&#101;&#111;&#102;&#107;&#101;&#110;&#116;&#117;&#99;&#107;&#121;&#99;&#104;&#111;&#114;&#117;&#115;&#46;&#111;&#114;&#103;';

function writeEmailLink(address,description) {
     document.write('<a href="');
     document.write(first+second+third);
	 document.write(address);
	 document.write('&#64;');
	 document.write(domain);
	 document.write("?subject=Request for Information from the Pride of Kentucky");
	 document.write('" title="">');
	 document.write(description);
	 document.write('<\/a>');
}
function writeExternalEmailLink(address, description) {
    document.write('<a href="');
    document.write(first + second + third);
    document.write(address);
    document.write('" title="">');
    document.write(description);
    document.write('<\/a>');
}

//Popup Window
function openpopup(url, parameters) {
    winpops = window.open(url, "", parameters)
}

//Get Cookie
function get_cookie(Name) {
    var search = Name + "="
    var returnvalue = "";
    if (document.cookie.length > 0) {
        offset = document.cookie.indexOf(search)
        if (offset != -1) { // if cookie exists
            offset += search.length
            // set index of beginning of value
            end = document.cookie.indexOf(";", offset);
            // set index of end of cookie value
            if (end == -1)
                end = document.cookie.length;
            returnvalue = unescape(document.cookie.substring(offset, end))
        }
    }
    return returnvalue;
}	 
//-->

