

$$('a.external').addEvent('click',function(e) {

	var url = encodeURIComponent(window.location.href), desc = '';
    desc = encodeURIComponent(this.href);
	switch(this.parentNode.className) {
		case 'shr-twittley':
			this.href += '?title=' + document.title + '&url=' + url + '&desc=' + desc + '&pcat=Internet&tags=';
			break;
		case 'shr-digg':
			this.href += '?phase=2&title=' + document.title + '&url=' + url + '&desc=' + desc;
			break;
		case 'shr-twitter':
			this.href += '?status=RT+@your_twitter_id:+' + document.title + '+-+' + url;
			break;
		case 'shr-scriptstyle':
			this.href += '?title=' + document.title + '&url=' + url;
			break;
		case 'shr-reddit':
			this.href += '?title=' + document.title + '&url=' + url;
			break;
		case 'shr-delicious':
			this.href += '?title=' + document.title + '&url=' + url;
			break;
		case 'shr-stumbleupon':
			this.href += '?title=' + document.title + '&url=' + url;
			break;
		case 'shr-mixx':
			this.href += '?title=' + document.title + '&page_url=' + url + '&desc=' + desc;
			break;
		case 'shr-technorati':
			this.href += '?add=' + url;
			break;
		case 'shr-blinklist':
			this.href += '?Action=Blink/addblink.php&Title=' + document.title + '&Url=' + url;
			break;
		case 'shr-diigo':
			this.href += '?title=' + document.title + '&url=' + url + '&desc=' + desc;
			break;
		case 'shr-yahoobuzz':
			this.href += '?submitHeadline=' + document.title + '&submitUrl=' + url + '&submitSummary=' + desc + '&submitCategory=science&submitAssetType=text';
			break;
		case 'shr-myspace':
			this.href += '?t=' + document.title + '&u=' + url;
			break;
		case 'shr-facebook':
			this.href += '?t=' + document.title + '&u=' + url;
			break;
		case 'shr-designfloat':
			this.href += '?title=' + document.title + '&url=' + url;
			break;
		case 'shr-devmarks':
			this.href += '?posttitle=' + document.title + '&posturl=' + url + '&posttext=' + desc;
			break;
		case 'shr-newsvine':
			this.href += '?h=' + document.title + '&u=' + url;
			break;
		case 'shr-google':
			this.href += '?op=add&title=' + document.title + '&bkmk=' + url;
			break;
	}
})


new Fx.SmoothScroll({duration: 700},window);



