function awesm_share(channel, url, title, content) {
			
			/* This function will perform an awe.sm-powered share to Twitter, 
			 * Facebook, MySpace, or LinkedIn using values you specify.
			 * 
			 * A recognized channel is required ('twitter', 'facebook','myspace',
			 * 'linkedin'), the other variables (link, title, content) are optional.
			 */
			
			/* You must specify a valid awe.sm API Key */
			var awesm_api_key = 'fdeed3099bd8c226454b4b18f3debf549940e7bbcafec0b7270c9de69345850e';
			
			/* This value corresponds to Tool/create_type on awe.sm. You can
			 * optionally change it to something more specific to your site.
			 * However, please use the recommended construction of {site}-{tool}.
			 */
			var awesm_tool = 'awesm-share-js'
			
			/* This function is used to search for awe.sm Parent parameters in the
			 * current page URL. You must have this feature enabled in your awe.sm
			 * Account Settings for the awe.sm Parent parameters to be present.
			 */
			var getUrlVars = function() {
	  			var vars = [], hash;
	  			var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
	  			for(var i = 0; i < hashes.length; i++)
	  				{
	    			hash = hashes[i].split('=');
	    			vars.push(hash[0]);
	    			vars[hash[0]] = hash[1];
	  				}
	  			return vars;
			}
			
			/* If no URL is specified, use the current page address */
			if (typeof(url) == 'undefined' || url == '') {
				url = encodeURIComponent(location.href);
			} else {
				url=encodeURIComponent(url);
			}
			
			/* If no title is specified, use the current page title */
			if (typeof(title) == 'undefined' || title == '') {
				title = encodeURIComponent(document.title);
			} else {
				title=encodeURIComponent(title);
			}
			
			/* If no content is specified, use title */
			if (typeof(content) == 'undefined' || content == '') {
				content = title;
			} else {
				content=encodeURIComponent(content);
			}			
			
			/* Configure the channel-specific information */
			switch (channel) {
				case 'twitter':
  					var awesm_channel = 'twitter';
					/* Make sure the content is <120 characters so there's room for the URL */
					if (decodeURIComponent(content).length > '120') {
						content = decodeURIComponent(content).substring(0,117) + '...'; 
						content = encodeURIComponent(content);
					}
					var awesm_destination = 'http://twitter.com/home?status=' + content + '+AWESM_TARGET';
					var window_specs = '';
  					break;
				case 'facebook':
  					var awesm_channel = 'facebook-post';
					var awesm_destination = 'http://www.facebook.com/sharer.php?u=AWESM_TARGET&t=' + title;
					var window_specs = 'toolbar=0, status=0, width=626, height=436';
  					break;
				case 'myspace':
					var awesm_channel = 'myspace';
					var awesm_destination = 'http://www.myspace.com/index.cfm?fuseaction=postto&u=AWESM_TARGET&t=' + title + '&c=' + content;
					var window_specs = 'toolbar=0, status=0, width=825, height=725';
  					break;
				case 'linkedin':
					var awesm_channel = 'linkedin';
					var awesm_destination = 'http://www.linkedin.com/shareArticle?mini=true&url=AWESM_TARGET&title=' + title + '&summary=' + content;
					var window_specs = 'toolbar=0, status=0, width=570, height=490';
  					break;
			}
			
			/* Construct the URL for the awe.sm Share API (see http://developers.awe.sm) */
			var awesm_shareit = 'http://create.awe.sm/url/share?version=1&api_key=' + awesm_api_key + '&target=' + url + '&share_type=' + awesm_channel + '&create_type=' + awesm_tool + '&destination=' + encodeURIComponent(awesm_destination); 
			
			/* Check for an awe.sm Parent parameter in the current page URL, and
			 * add it to the awe.sm Share API URL if present. You must have this
			 * feature enabled in your awe.sm Account Settings for the awe.sm
			 * Parent parameter to be present.
			 */
			var pageParams = getUrlVars();
			if ( pageParams['awesm'] ) {
				awesm_shareit += '&awesm_parent=' + pageParams['awesm'];
			}
			
			/* Launch the share UI in a new window */
			window.open(awesm_shareit, '_blank', window_specs);
		}
