<!--
function insertBookmarkList() {
 // define common stuff
    $theURL = encodeURIComponent(location.href); // location.href;
    $theTitle = encodeURIComponent(document.title) // document.title;
    $theDescription = "please write something here";
	$twitter = '<img class="socialbutton" src="images/twitter_32.gif" alt="Twitter" width="32" height="32" />';
	$digg = '<img class="socialbutton" src="images/digg_32.gif" alt="Digg It" width="32" height="32" />';
	$delicious = '<img class="socialbutton" src="images/delicious_32.gif" alt="Delicious" width="32" height="32" />';
	$facebook = '<img class="socialbutton" src="images/facebook_32.gif" alt="FaceBook" width="32" height="32" />';
	$reddit = '<img class="socialbutton" src="images/reddit_32.gif" alt="Reddit" width="32" height="32" />';
	$stumbleupon ='<img class="socialbutton" src="images/stumbleupon_32.gif" alt="StumbleUpon" width="32" height="32" />';

    if(window.getSelection)
    {
        $theDescription = encodeURIComponent(window.getSelection());
    }
    else if (document.getSelection)
    {
        $theDescription = encodeURIComponent(document.getSelection());
    }
    else if (document.selection && document.selection.createRange)
    {
        txt = document.selection.createRange().text;
        $theDescription = encodeURIComponent(txt);
    }
    else if(document.selection)
    {
        txt=document.selection.createRange().text;
        $theDescription = encodeURIComponent(txt);
    }

  // twitter
    $theButtonList = '<a rel="nofollow" href="http://twitter.com/home/?status=' + $theURL + '&title=' + $theTitle +'">'+$twitter;'</a> ';
	document.write($theButtonList);
 
 // digg
    $theButtonList = '<a rel="nofollow" href="http:\/\/digg.com\/submit?phase=2&amp;url=' + $theURL + '&title=' + $theTitle +'">'+$digg;'</a> ';
	document.write($theButtonList);
	
 // stumbleupon
    $theButtonList = '<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=' + $theURL + '&title=' + $theTitle +'">'+$stumbleupon;'</a> ';	
	document.write($theButtonList);
	
 // delicious
    $theButtonList = '<a rel="nofollow" href="http://del.icio.us/post?url=' + $theURL + '&title=' + $theTitle +'">'+$delicious;'</a> ';	
	document.write($theButtonList);
	
 // facebook
    $theButtonList = '<a rel="nofollow" href="http://www.facebook.com/sharer.php?u=' + $theURL + '&title=' + $theTitle +'">'+$facebook;'</a> ';	
	document.write($theButtonList);	
	
 // reddit
    $theButtonList = '<a rel="nofollow" href="http://reddit.com/submit?url=' + $theURL + '&title=' + $theTitle +'">'+$reddit;'</a> ';	
	document.write($theButtonList);
	}
// -->
