document.write('<link rel="stylesheet" href="' + css_path + 'css/popup.css" media="screen" type="text/css"/>');
document.write('<script type="text/javascript" src="' + js_path + 'js/pngfix.js" language="JavaScript"></script>');
document.write('<script type="text/javascript" src="' + js_path + 'js/dropdowncontent.js" language="JavaScript"></script>');
document.write('<div>');
document.write('<a href="' + domainAddress + bookmarkPage + '?url=' + url + '&title=' + title + '" rel="popLGSN" target="_blank" name="'+ bookmark_button_id +'" id="'+ bookmark_button_id +'"><img src="' + img_path + 'images/small-btn.png" alt="" border="0" id="bookmark_image"/></a>');
document.write('</div>');

/* Popup box starts here */
var facebook_href       = "http://www.facebook.com/share.php?u=" + url + "&title=" + title;
var stumbleUpon_href    = "http://www.stumbleupon.com/refer.php?url=" + url + "&title=" + title;
var reddit_href         = "http://reddit.com/submit?url=" + url + "&title=" + title;
var digg_href           = "http://digg.com/submit?phase=2&url=" + url + "&title=" + title;
var del_icio_href       = "http://del.icio.us/post?v=4&noui&jump=close&url=" + url + "&title=" + title;
var technorati_href     = "http://technorati.com/faves?add=" + url;
var furl_href           = "http://www.furl.net/storeIt.jsp?t=" +  title + "&u=" + url;
var misterwong_href     = "http://www.mister-wong.de/index.php?action=addurl&bm_url=" + url + "&bm_description=" + title;
var faves_href          = "http://faves.com/Authoring.aspx?u=" + url + "&t=" + title;
var twitter_href        = "http://twitter.com/home?status=Reading this at: " + url;
var mixx_href           = "http://www.mixx.com/submit?page_url=" + url + "&title=" + title;
var backflip_href       = "http://www.backflip.com/add_page_pop.ihtml?url=" + url + "&title=" + title;
var slashdot_href       = "http://slashdot.org/bookmark.pl?url=" + url + "&title=" + title;

document.write('<div id="popLGSN">');
document.write('<div class="title">Bookmark & Share</div>');
document.write('<div class="pop_content">');
document.write('<table cellpadding="0" cellspacing="0" width="100%" border="0">');
document.write('<tr>');
document.write('<td width="50%" class="tt">');
document.write('<a href="' + facebook_href + '" name="pop_facebook" id="pop_facebook" target="_blank"><img src="' + img_path + 'images/icons/facebook.png" alt="" border="0"/><div>Facebook</div></a>');
document.write('</td>');
document.write('<td width="50%"><a href="' + stumbleUpon_href + '" name="pop_su" id="pop_su" target="_blank"><img src="' + img_path + 'images/icons/su.png" alt="" border="0"/><div>StumbleUpon</div></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><a href="' + twitter_href + '" name="pop_twitter" id="pop_twitter" target="_blank"><img src="' + img_path + 'images/icons/twitter.png" alt="" border="0"/><div>Twitter</div></a></td>');
document.write('<td><a href="' + digg_href + '" name="pop_digg" id="pop_digg" target="_blank"><img src="' + img_path + 'images/icons/digg.png" alt="" border="0"/><div>Digg</div></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><a href="' + del_icio_href + '" name="pop_delicio" id="pop_delicio" target="_blank"><img src="' + img_path + 'images/icons/delicious.png" alt="" border="0"/><div>Del.icio.us</div></a></td>');
document.write('<td><a href="' + technorati_href + '" name="pop_technorati" id="pop_technorati" target="_blank"><img src="' + img_path + 'images/icons/technorati.png" alt="" border="0"/><div>Technorati</div></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><a href="' + furl_href + '" name="pop_furl" id="pop_furl" target="_blank"><img src="' + img_path + 'images/icons/furl.png" alt="" border="0"/><div>Furl</div></a></td>');
document.write('<td><a href="' + misterwong_href + '" name="pop_misterwong" id="pop_misterwong" target="_blank"><img src="' + img_path + 'images/icons/mrwong.png" alt="" border="0"/><div>Mister Wong</div></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><a href="' + faves_href + '" name="pop_faves" id="pop_faves" target="_blank"><img src="' + img_path + 'images/icons/bluedot.png" alt="" border="0"/><div>Faves</div></a></td>');
document.write('<td><a href="' + reddit_href + '" name="pop_reddit" id="pop_reddit" target="_blank"><img src="' + img_path + 'images/icons/reddit.png" alt="" border="0"/><div>Reddit</div></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><a href="' + mixx_href + '" name="pop_mixx" id="pop_mixx" target="_blank"><img src="' + img_path + 'images/icons/mixx.png" alt="" border="0"/><div>Mixx</div></a></td>');
document.write('<td><a href="' + backflip_href + '" name="pop_backflip" id="pop_backflip" target="_blank"><img src="' + img_path + 'images/icons/backflip.png" alt="" border="0"/><div>Backflip</div></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td><a href="' + slashdot_href + '" name="pop_slashdot" id="pop_slashdot" target="_blank"><img src="' + img_path + 'images/icons/slashdot.png" alt="" border="0"/><div>Slashdot</div></a></td>');
document.write('<td><a href="' + domainAddress + bookmarkPage + '?url=' + url + '&title=' + title + '" name="more" id="more" target="_blank"><img src="' + img_path + 'images/icons/more.png" alt="" border="0"/><div>More...</div></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td colspan="2" height="1" style="height:10px;"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td colspan="2" align="center">');
document.write('<a href="http://www.letsgetsocialnow.com" target="_blank"><img src="' + img_path + 'images/small_logo.png" alt="" border="0"/></a>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write('</div>');

if (navigator.appName == "Microsoft Internet Explorer") {
    dropdowncontent.init(bookmark_button_id, "right-bottom", 500, "mouseover");
} else {
    document.write('<SCRIPT type=text/javascript>');
    document.write('dropdowncontent.init("' + bookmark_button_id + '", "right-bottom", 500, "mouseover")');
    document.write('</SCRIPT>')
}