function insertBM(whichWay,whichRate)
{
var Del = "http://del.icio.us/post?title=" + escape(document.title) + "&url=" + document.location.href;
var Digg = "http://digg.com/submit?phase=2&title=" + escape(document.title) + "&url=" + document.location.href;
var Furl = "http://www.furl.net/storeIt.jsp?t=" + escape(document.title) + "&u=" + document.location.href;
var Reddit = "http://reddit.com/submit?title=" + escape(document.title) + "&url=" + document.location.href;
var Blinklist = "http://www.blinklist.com/index.php?Action=Blink/addblink.php&Title=" + escape(document.title) + "&Url=" + document.location.href;
var Google = "http://www.google.com/bookmarks/mark?op=add&title=" + escape(document.title) + "&bkmk=" + document.location.href;
var Shadows = "http://www.shadows.com/features/tcr.htm?title=" + escape(document.title) + "&url=" + document.location.href;
var Simpy = "http://www.simpy.com/simpy/LinkAdd.do?title=" + escape(document.title) + "&href=" + document.location.href;
var Spurl = "http://www.spurl.net/spurl.php?title=" + escape(document.title) + "&url=" + document.location.href;
var Stumbleupon = "http://www.stumbleupon.com/submit?title=" + escape(document.title) + "&url=" + document.location.href;
var Tech = "http://www.technorati.com/faves?add=" + document.location.href;
var Yahoo = "http://myweb2.search.yahoo.com/myresults/bookmarklet?title=" + escape(document.title) + "&u=" + document.location.href;


if (whichWay == 0)
{
document.write("<table border=0 cellpadding=4 cellspacing=0><tr>");	
document.write('<td colspan=12 align=center><b>Like the ' + whichRate +'? Tell your friends!</b></td></tr>');	
document.write("<td><a href=");
document.write(Del);
document.write(" style='padding-left: 20px; background: url(/icons/delicious.gif) center left no-repeat;' target='_blank'>del.icio.us</a></td>");
document.write("<td><a href=");
document.write(Digg);
document.write(" style='padding-left: 20px; background: url(/icons/digg.gif) center left no-repeat;' target='_blank'>Digg</a></td>");
document.write("<td><a href=");
document.write(Furl);
document.write(" style='padding-left: 20px; background: url(/icons/furl.gif) center left no-repeat;' target='_blank'>Furl</a></td>");
document.write("<td><a href=");
document.write(Reddit);
document.write(" style='padding-left: 20px; background: url(/icons/reddit.gif) center left no-repeat;' target='_blank'>Reddit</a></td>");
document.write("<td><a href=");
document.write(Shadows);
document.write(" style='padding-left: 20px; background: url(/icons/shadows.gif) center left no-repeat;' target='_blank'>Shadows</a></td>");
document.write("<td><a href=");
document.write(Simpy);
document.write(" style='padding-left: 20px; background: url(/icons/simpy.gif) center left no-repeat;' target='_blank'>Simpy</a></td>");
document.write("<td><a href=");
document.write(Spurl);
document.write(" style='padding-left: 20px; background: url(/icons/spurl.gif) center left no-repeat;' target='_blank'>Spurl</a></td>");
document.write("<td><a href=");
document.write(Tech);
document.write(" style='padding-left: 20px; background: url(/icons/technorati.gif) center left no-repeat;' target='_blank'>Technorati</a></td>");
document.write("<td><a href=");
document.write(Yahoo);
document.write(" style='padding-left: 20px; background: url(/icons/yahoo.gif) center left no-repeat;' target='_blank'>Yahoo!</a></td>");
document.write("</tr></table>");	
}

else {
document.write("<table border=0 cellpadding=0 cellspacing=4><tr>");	
document.write("<td align=left style='padding: 10px;'><b>Like what you see? Tell your friends!</b></td></tr>");	
document.write("<td><a href=");
document.write(Del);
document.write(" style='padding-left: 20px; background: url(/icons/delicious.gif) center left no-repeat;' target='_blank'>del.icio.us</a></td></tr><tr>");
document.write("<td><a href=");
document.write(Digg);
document.write(" style='padding-left: 20px; background: url(/icons/digg.gif) center left no-repeat;' target='_blank'>Digg</a></td></tr><tr>");
document.write("<td><a href=");
document.write(Furl);
document.write(" style='padding-left: 20px; background: url(/icons/furl.gif) center left no-repeat;' target='_blank'>Furl</a></td></tr><tr>");
document.write("<td><a href=");
document.write(Reddit);
document.write(" style='padding-left: 20px; background: url(/icons/reddit.gif) center left no-repeat;' target='_blank'>Reddit</a></td></tr><tr>");
document.write("<td><a href=");
document.write(Blinklist);
document.write(" style='padding-left: 20px; background: url(/icons/blinklist.gif) center left no-repeat;' target='_blank'>BlinkList</a></td></tr><tr>");
document.write("<td><a href=");
document.write(Google);
document.write(" style='padding-left: 20px; background: url(/icons/google.gif) center left no-repeat;' target='_blank'>Google</a></td></tr><tr>");
document.write("<td><a href=");
document.write(Shadows);
document.write(" style='padding-left: 20px; background: url(/icons/shadows.gif) center left no-repeat;' target='_blank'>Shadows</a></td></tr><tr>");
document.write("<td><a href=");
document.write(Simpy);
document.write(" style='padding-left: 20px; background: url(/icons/simpy.gif) center left no-repeat;' target='_blank'>Simpy</a></td></tr><tr>");
document.write("<td><a href=");
document.write(Spurl);
document.write(" style='padding-left: 20px; background: url(/icons/spurl.gif) center left no-repeat;' target='_blank'>Spurl</a></td></tr><tr>");
document.write("<td><a href=");
document.write(Stumbleupon);
document.write(" style='padding-left: 20px; background: url(/icons/stumbleupon.gif) center left no-repeat;' target='_blank'>StumbleUpon</a></td></tr><tr>");
document.write("<td><a href=");
document.write(Tech);
document.write(" style='padding-left: 20px; background: url(/icons/technorati.gif) center left no-repeat;' target='_blank'>Technorati</a></td></tr><tr>");
document.write("<td><a href=");
document.write(Yahoo);
document.write(" style='padding-left: 20px; background: url(/icons/yahoo.gif) center left no-repeat;' target='_blank'>Yahoo!</a></td>");
document.write("</tr></table>");	
	
}

}
