// JavaScript Document


var nameArray= new Array();
var titleArray= new Array();
var clickArray= new Array();

	nameArray[0]= "";
	titleArray[0]= "";
	clickArray[0]= "";	
	
	
	nameArray.push("site");
	titleArray.push("Site Map");
	clickArray.push("window.open('cgi-bin/filebrowser.cgi','_blank')");
	
	nameArray.push("email");
	titleArray.push("Email Nickolas");
	clickArray.push("window.location.href='mailto:nickolas@nickolasboyce.com';");
	
	nameArray.push("resume");
	titleArray.push("View Resume");
	clickArray.push("getDialog('resume',500,275);");
	
	nameArray.push("about");
	titleArray.push("About Nickolas");
	clickArray.push("window.open('placeholder.htm','_blank')");
	
	nameArray.push("bookmarks");
	titleArray.push("View Bookmarks");
	clickArray.push("window.open('bookmarks.htm','_blank')");
	
	nameArray.push("friendster");
	titleArray.push("View Friendster page");
	clickArray.push("window.open('http://profiles.friendster.com/nickolasboyce','_blank')");
	
	nameArray.push("linkedin");
	titleArray.push("View LinkedIn page");
	clickArray.push("window.open('http://www.linkedin.com/in/nickolasboyce','_blank')");
	
	
	nameArray.push("myspace");
	titleArray.push("Post to MySpace");
	clickArray.push("window.open('http://www.myspace.com/Modules/PostTo/Pages/?u='+encodeURIComponent(location.href),'_blank')");
	
	nameArray.push("facebook");
	titleArray.push("Share on Facebook");
	clickArray.push("window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(location.href),'_blank')");
	
	nameArray.push("delicious");
	titleArray.push("Bookmark on del.icio.us");
	clickArray.push("window.open('http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title),'_blank')");
	
	nameArray.push("digg");
	titleArray.push("Digg this page");
	clickArray.push("window.open('http://digg.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title),'_blank')");
	
	nameArray.push("stumbleupon");
	titleArray.push("Stumble Upon");
	clickArray.push("window.open('http://www.stumbleupon.com/submit?url='+encodeURIComponent(location.href),'_blank')");
	
	nameArray.push("reddit");
	titleArray.push("Submit to Reddit");
	clickArray.push("window.open('http://reddit.com/submit?url='+encodeURIComponent(location.href),'_blank')");
	
	nameArray.push("technorati");
	titleArray.push("Add to Technorati");
	clickArray.push("window.open('http://www.technorati.com/faves?add='+encodeURIComponent(location.href),'_blank')");

	nameArray.push("google");
	titleArray.push("Bookmark on Google");
	clickArray.push("window.open('http://www.google.com/bookmarks/mark?op=edit&bkmk='+encodeURIComponent(location.href),'_blank')");
	
	nameArray.push("furl");
	titleArray.push("Store on Furl");
	clickArray.push("window.open('http://furl.net/storeIt.jsp?u='+encodeURIComponent(location.href),'_blank')");
	
	nameArray.push("blinklist");
	titleArray.push("Add to BlinkList");
	clickArray.push("window.open('http://blinklist.com/index.php?Action=Blink/addblink.php&Url='+encodeURIComponent(location.href),'_blank')");
	
	nameArray.push("newsvine");
	titleArray.push("Save on Newsvine");
	clickArray.push("window.open('http://www.newsvine.com/_wine/save?u='+encodeURIComponent(location.href),'_blank')");
	
	nameArray.push("slashdot");
	titleArray.push("SlashDot It");
	clickArray.push("window.open('http://slashdot.org/slashdot-it.pl?op=basic&amp;url='+encodeURIComponent(location.href),'_blank')");


//	
function getIcon(param1) {

	var theName; var theTitle; var theClick;
	var i_n= nameArray.length;
	
	for (var i=0;i<i_n;i++) {
	
		if (param1==nameArray[i]) { 
			theName= nameArray[i];
			theTitle= titleArray[i];
			theClick= clickArray[i];
				break;
		}
	
	}
	writeIcon(theName,theTitle,theClick);

}

//
function writeIcon(param1,param2,param3) {
	
document.write('\
<a href="" title="'+param2+'">\
<img name="'+param1+'" class="icon00" onmouseover="this.style.border=\'3px solid #DDDDDD\';this.style.background=\'#DDDDDD\';" onmouseout="this.style.border=\'3px solid #FFFFFF\';this.style.background=\'#FFFFFF\';" onclick="'+param3+';return false;" src="images/icons/'+param1+'.gif"  />\
</a>');
	
}

//

