// 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 [at] and [dot] in place of "@" and "." for anti spam purpose:
contacts[0]=["m.steenhoek@xs4all.nl", "m.steenhoek[at]xs4all[dot]nl"]
contacts[1]=["info@mariekesteenhoek.com", "info[at]mariekesteenhoek[dot]com"]
contacts[2]=["mail webmaster", "webmaster[at]mariekesteenhoek[dot]com"]
contacts[3]=["stephan.brekelmans@kv-artists.nl", "stephan.brekelmans[at]kv-artists[dot]nl"]
contacts[4]=["info@reijndersmanagement.com", "info[at]reijndersmanagement[dot]com"]

function displaycontact(emailarray, cssclass, displaymethod, extrainfo){
if (displaymethod=="text"){
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 class="' + cssclass + '" href="mailto:' + modifyemail(emailarray[i][1])+ '">'+ emailarray[i][0] + '</a>' + seperator)
}
}
else //else if it is a single array element
document.write('<a class="' + cssclass + '" href="mailto:' + modifyemail(emailarray[1])+ '">'+ emailarray[0] + '</a>')
}
}

function modifyemail(emailitem){
var modified=emailitem.replace(/\[at]/gi, "@")
modified=modified.replace(/\[dot]/gi, ".")
return modified
}

function jumptooption(themenu){
if (themenu.options[themenu.selectedIndex].value !="caption")
location=themenu.options[themenu.selectedIndex].value
}
