// script

function carrier(who, what, where) {
//	document.write("<!-- who: "+who+"; what: "+what+"; where: "+where+" -->");
	
	protocol="mailto:";
	name="";
	site="";
	domain="";
	subject="";
	extra="";
	
	if (who == 0) {
		name="vic.bomber";
		site="gmail";
		domain=".com";
	} else if (who == 1) {
		name="john.bomber";
		site="bombereyewear";
		domain=".com";
	} else if (who == 2) {
		name="cgespam";
		site="gmail";
		domain=".com";
	}

	subjects = new Array(9);
	subjects[0] = "000";
	subjects[1] = "FDSB Question";
	subjects[2] = "FDSB Speakers";
	subjects[3] = "FDSB Topic Suggestion";
	subjects[4] = "FDSB Service Suggestion";
	subjects[5] = "other FDSB Link/Affiliation";
	subjects[6] = "Add a FDSB event";
	subjects[7] = "FDSB Question";
	subjects[8] = "FDSB Question";

	openers = new Array(9);
	openers[0] = "Victor,%0A%0AAfter reading the About Us / FAQ page, I still have a question... ";
	openers[1] = "Victor,%0A%0AAfter reading the About Us / FAQ page, I still have a question... ";
	openers[2] = "Victor,%0A%0AI was looking at the list of speakers on the Speakers Bureau website, and...";
	openers[3] = "Victor,%0A%0AI was looking at the list of topics on the Speakers Bureau website, and... ";
	openers[4] = "Victor,%0A%0AI was looking at the list of services on the Speakers Bureau website, and... ";
	openers[5] = "Victor,%0A%0AI was looking at the links and affiliations listed on the Speakers Bureau website, and... ";
	openers[6] = "Victor,%0A%0AI was looking at the calendar of events on the Speakers Bureau website, and... ";
	openers[7] = "Victor,%0A%0AI am contacting you regarding... ";
	openers[8] = "Victor,%0A%0AI still have a question... ";

	pageTitles = new Array(9);
	pageTitles[0] = "About Us / FAQ";
	pageTitles[1] = "About Us / FAQ";
	pageTitles[2] = "Speaker Profiles";
	pageTitles[3] = "Topics";
	pageTitles[4] = "Services";
	pageTitles[5] = "Links";
	pageTitles[6] = "Events";
	pageTitles[7] = "Contact";
	pageTitles[8] = "other";

	aText = new Array(9);
	aText[0] = "Let us know";
	aText[1] = "Let us know";
	aText[2] = "give a shout";
	aText[3] = "suggestion";
	aText[4] = "suggestion";
	aText[5] = "drop us a line";
	aText[6] = "Drop us a line";
	aText[7] = "get in touch";
	aText[8] = "Let us know";
	
	if (where > 0) {
		extra="?subject="+subjects[where]+"&body="+openers[where];
	}
	
	switch (where) {
		case 99: // no such case
			// some command
			break;
		default:
			// do nothing
	}
	
	
	p="";
	for (i=0;i<protocol.length;i++) {
		p+="&#"+protocol.charCodeAt(i)+";"
	}

	n="";
	for (i=0;i<name.length;i++) {
		n+="&#"+name.charCodeAt(i)+";"
	}

	h = "&#064;";

	s="";
	for (i=0;i<site.length;i++) {
		s+="&#"+site.charCodeAt(i)+";"
	}

	d="";
	for (i=0;i<domain.length;i++) {
		d+="&#"+domain.charCodeAt(i)+";"
	}	
	
	document.write("\n\t");
	if (what == "nil") {
		document.write("<span class=\"pointy\" ");
	} else {
		document.write("<span class=\"pointy "+what+"\" ");
	}
	document.write("onMouseOver=\"window.status='"+p+n+h+s+d+"'\" onMouseOut=\"window.status=''\" ");	
	if (who == 0) { // webmaster
		document.write("onclick=\"location.href='"+p+n+h+s+d+"'\">webmaster</span>");
	} else {
		if (what == "on_red") {
			document.write("onclick=\"location.href='"+p+n+h+s+d+extra+"'\">"+aText[where]+"</span>");
		} else {
			document.write("onclick=\"location.href='"+p+n+h+s+d+extra+"'\">"+n+h+s+d+"</span>");
		}
	}
}
