function SB( arg ) {
	var VERSION = '1';
	var id;
	var style;

	if ( typeof arg == 'undefined' ) arg = {};
	if ( typeof arg.id == 'undefined' ) alert( 'Please define an id' );
	if ( typeof arg.style == 'undefined' ) arg.style = 1;

	id = arg.id;
	style = arg.style;

	includeCSS();
	function includeCSS() {
		var e = document.createElement( 'link' );
		e.rel = 'stylesheet';
		e.type = 'text/css';
		e.href = 'http://www.socialbookmarkinglinks.com/v' + VERSION + '/social-bookmarks-style' + style + '.css';
		document.getElementsByTagName( 'head' )[ 0 ].appendChild( e );
	}
	
	this.doBookmark = function( o ) {
		var network = o.className;
		var networkURL;
		var pageTitle = escape( document.title );
		var pageURL = escape( window.location.href );
		switch ( network ) {
			case "facebook": {
				networkURL = 'http://www.facebook.com/share.php?u=' + pageURL + '&title=' + pageTitle;
				break;
			}
			case "twitter": {
				networkURL = 'http://twitter.com/home?status=Reading%20this%20at:%20' + pageURL;
				break;
			}
			case "digg": {
				networkURL = 'http://digg.com/submit?phase=2&url=' + pageURL + '&title=' + pageTitle;
				break;
			}
			case "reddit": {
				networkURL = 'http://reddit.com/submit?url=' + pageURL + '&title=' + pageTitle;;
				break;
			}
			case "technorati": {
				networkURL = 'http://technorati.com/faves?add=' + pageURL;
				break;
			}
			case "delicious": {
				networkURL = 'http://del.icio.us/post?v=4&noui&jump=close&url=' + pageURL + '&title=' + pageTitle;
				break;
			}
			case "stumbleupon": {
				networkURL = 'http://www.stumbleupon.com/refer.php?url=' + pageURL + '&title=' + pageTitle;
				break;
			}
		}
		o.href = networkURL;
	}
}