/* <![CDATA[ */

/* Copyright (c) 2007 nb / WEB'arbyte(R) <www.webarbyte.de> */

var SocialBookmarks = {
	services : [],
	
	Init : function() {

		var u = escape( location.href );
		var t = escape( document.title );

		this.services[ 'delicious' ] = [ 'del.icio.us', 'http://del.icio.us/post?url=' + u + '&title=' + t, 'delicious.gif' ];
		this.services[ 'wong' ] = [ 'Mister Wong', 'http://www.mister-wong.de/index.php?action=addurl&bm_url=' + u + '&bm_description=' + t, 'mrwong.gif' ];
		this.services[ 'blinkList' ] = [ 'BlinkList', 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Description=&Url=' + u + '&Title=' + t, 'blinklist.gif' ];
		this.services[ 'yahoo' ] = [ 'Yahoo MyWeb', 'http://myweb2.search.yahoo.com/myresults/bookmarklet?u=' + u + '&t=' + t, 'yahoo.gif' ];
		this.services[ 'yigg' ] = [ 'YiGG', 'http://yigg.de/neu?exturl=' + u + '&exttitle=' + t, 'yigg.gif' ];
		this.services[ 'furl' ] = [ 'Furl', 'http://www.furl.net/storeIt.jsp?u=' + u + '&t=' + t, 'furl.gif' ];
		this.services[ 'oneview' ] = [ 'OneView', 'http://beta.oneview.de:80/quickadd/neu/addBookmark.jsf?URL=' + u + '&title=' + t, 'oneview.gif' ];
		this.services[ 'folkd' ] = [ 'Folkd', 'http://www.folkd.com/submit/page/' + u, 'folkd.gif' ];
		this.services[ 'linkarena' ] = [ 'Linkarena', 'http://linkarena.com/bookmarks/addlink/?url=' + u + '&title=' + t + '&desc=&tags=', 'linkarena.gif' ];
		this.services[ 'google' ] = [ 'Google', 'http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk=' + u + '&title=' + t, 'google.gif' ];
		this.services[ 'webnews' ] = [ 'Webnews', 'http://www.webnews.de/einstellen?url=' + u + '&title=' + t, 'webnews.gif' ];

		document.write( '<div id="social" align="center" class="greybig"><p><strong>Seite bookmarken bei <span id="sbText">...</span></strong></p>' );
		for( var k in this.services ) {
			document.write( '<a href="" onmouseover="SocialBookmarks.Over(\'' + k + '\')" onmouseout="SocialBookmarks.Over(\'\')" onclick="return(SocialBookmarks.Go(\''+k+'\'));"><img src="/img/ico/' + this.services[ k ][ 2 ] + '" width="20" height="20" alt="" title="' +  this.services[ k ][ 0 ] + '" /></a>' );
		}
		document.write( '</div>' );
	},

	Over : function( id ) {
		document.getElementById( 'sbText' ).innerHTML = ( id == '' ) ? '...' : this.services[ id ][ 0 ];
	},

	Go : function( id ) {
		if( typeof( this.services[ id ] ) != 'undefined' ) {		
			window.open( this.services[ id ][ 1 ] );
		}
		return( false );
	}
}

SocialBookmarks.Init();

/* ]]> */
