
<!--
// Anti-Spam Email Displayer- By JavaScriptKit.com
// Visit JavaScript Kit (http://javascriptkit.com) for this script and more.
// This notice must stay intact for use

var contacts=new Array()
//Specify text and corresponding email address.
//Use [aux] and [point] in place of "@" and "." for anti spam purpose:
contacts[0]=["admin[aux]headandhands[point]ca", "admin[aux]headandhands[point]ca"]
contacts[1]=["membres[aux]headandhands[point]ca", "membres[aux]headandhands[point]ca"]
contacts[2]=["info[aux]headandhands[point]ca", "info[aux]headandhands[point]ca"]
contacts[3]=["info[aux]headandhands[point]ca", "info[aux]headandhands[point]ca"]
contacts[4]=["medical[aux]headandhands[point]ca", "medical[aux]headandhands[point]ca"]
contacts[5]=["healthed[aux]headandhands[point]ca", "healthed[aux]headandhands[point]ca"]
contacts[6]=["funds[aux]headandhands[point]ca", "funds[aux]headandhands[point]ca"]
contacts[7]=["j2000[aux]headandhands[point]ca", "j2000[aux]headandhands[point]ca"]
contacts[8]=["ypp_pjp[aux]headandhands[point]ca", "ypp_pjp[aux]headandhands[point]ca"]
contacts[9]=["legal[aux]headandhands[point]ca", "legal[aux]headandhands[point]ca"]
contacts[10]=["social[aux]headandhands[point]ca", "social[aux]headandhands[point]ca"]
contacts[11]=["streetwork[aux]headandhands[point]ca", "streetwork[aux]headandhands[point]ca"]
contacts[12]=["streetworker2[aux]headandhands[point]ca", "streetworker2[aux]headandhands[point]ca"]
contacts[13]=["web[aux]headandhands[point]ca", "web[aux]headandhands[point]ca"]
contacts[14]=["archives[aux]headandhands[point]ca", "archives[aux]headandhands[point]ca"]
contacts[15]=["ideas[aux]headandhands[point]ca", "ideas[aux]headandhands[point]ca"]

/************************************************************************************************/
contacts[800]=["Marlo", "admin[aux]headandhands[point]ca"]
contacts[801]=["Leah", "membres[aux]headandhands[point]ca"]
contacts[802]=["Amber", "info[aux]headandhands[point]ca"]
contacts[803]=["Jordan", "info[aux]headandhands[point]ca"]
contacts[804]=["Allison", "medical[aux]headandhands[point]ca"]
contacts[805]=["Jocelyn", "healthed[aux]headandhands[point]ca"]
contacts[806]=["Christina", "funds[aux]headandhands[point]ca"]
contacts[807]=["Neil", "j2000[aux]headandhands[point]ca"]
contacts[808]=["Helene", "ypp_pjp[aux]headandhands[point]ca"]
contacts[809]=["Ralph", "legal[aux]headandhands[point]ca"]
contacts[810]=["Rhonda", "social[aux]headandhands[point]ca"]
contacts[811]=["Anita", "streetwork[aux]headandhands[point]ca"]
contacts[812]=["Tyler", "streetworker2[aux]headandhands[point]ca"]
contacts[813]=["Jay", "web[aux]headandhands[point]ca"]
contacts[814]=["Meaghan", "archives[aux]headandhands[point]ca"]
contacts[815]=["Sarah Odell", "ideas[aux]headandhands[point]ca"]

// put external e-mail addresses here 
contacts[100]=["cwc[aux]alcor.concordia[point]ca", "cwc[aux]alcor.concordia[point]ca"]
contacts[101]=["info[aux]cooplamaisonverte[point]com", "info[aux]cooplamaisonverte[point]com"]
contacts[102]=["FaggityAssBooking[aux]yahoo[point]com", "FaggityAssBooking[aux]yahoo[point]com"]


//Specify caption text to display within SELECT menu. Only applicable if you're using the form option:
var dropmenucaption="CONTACT US FORM "

function displaycontact(emailarray, cssclass, displaymethod, extrainfo){
if (displaymethod=="text"){
document.write('<span class="' + cssclass + '">\n')
if (typeof emailarray[0]=="object"){ //if array passed consists of multiple elements
for (i=0; i<emailarray.length; i++){
var seperator=(i<emailarray.length-1)? extrainfo : ""
document.write('<a href="mailto:' + modifyemail(emailarray[i][1])+ '">'+ modifyemail(emailarray[i][1]) + '</a>' + seperator)
}
}
else if(/^[a-z]+$/i.test(emailarray[0]) ) // a person's name
document.write('<a href="mailto:' + modifyemail(emailarray[1])+ '">'+ emailarray[0] + '</a>')
else //else if it is a single array element
//alert(emailarray[0] +":"+typeof emailarray[0]);
document.write('<a href="mailto:' + modifyemail(emailarray[1])+ '">'+ emailarray[1].replace('[aux]','@').replace('[point]','.') + '</a>')
document.write('</span>')
}
else if (displaymethod=="form"){
document.write('<form>\n')
document.write('<select size="' + extrainfo + '" onChange="jumptooption(this)" class="' + cssclass + '">\n')
document.write('<option value="caption">' + dropmenucaption + '</option>\n')
for (i=0; i<emailarray.length; i++)
document.write('<option value="mailto:' + modifyemail(emailarray[i][1]) +'">' + emailarray[i][0] + ' </option>\n')
document.write('</select></form>\n')
}
}

function modifyemail(emailitem){
var modified=emailitem.replace(/\[aux]/gi, "@")
modified=modified.replace(/\[point]/gi, ".")
return modified
}

function jumptooption(themenu){
if (themenu.options[themenu.selectedIndex].value !="caption")
location=themenu.options[themenu.selectedIndex].value
}

//USAGE INSTRUCTION. displaycontact(1st paramter, "2nd paramter", "3rd paramter", "4th paramter")
//1st parameter: Input the name of the array containing the list of email addresses. To display one single email, input the corresponding array element.
//2nd parameter: Input the CSS Classname that is to be applied. Enter arbitrary name for none.
//3rd parameter: Input either "form" or "text." Former will display email in drop down menu. Later in plain text. Only "text" mode supports displaying of single email address!
//4th parameter: If in "form" mode, enter an integer to control the height of the <SELECT> tag. If "text" mode, enter any string to act as a divider between each email text. For example "|", "<br>" etc.

//SAMPLE USAGES (uncomment below to see)
//displaycontact(contacts, "textstyle", "text", " | ")

//displaycontact(contacts, "formstyle", "form", "1")