 $(document).ready(function() {
		$(".socializer").click(function (e) { 
			if(document.getElementById('containerx') == null){	
				
				e.preventDefault();		
				this.blur();						 
				
				var top 	= $(".socializer").offset().top;
				var height	= $(".socializer").height();
				var left	= $(".socializer").offset().left;
				var pos 	= top+height+20;
				
				var div = document.createElement("div");
				$(div).hide();
				$(div).addClass("soc_container");
				$('#socializer-container').prepend(div);
					
				var closeme = document.createElement('img');
				
				$(closeme).attr({ id: "close", src: "http://a.espncdn.com/i/espnradio/radiomatch/images/close.gif"});
				$(closeme).addClass('rm-share-close');
				$(div).append(closeme);
				
				$(closeme).click(function(){
					$(div).remove();
				})
				
				var title= $(".socializer").attr("title");
				var hostTitle = espnResultsObj.getHostTitle();
				var labels = espnResultsObj.getHostTags();
				var description = espnResultsObj.getHostDescription();
					
				//var description
				var url  = document.location.href;  //$(".socializer").attr("alt");  --> use this if you wish to define an url in the alt tag 			
				
				var left = document.createElement('div');
				$(left).addClass('soc_left');
				$(div).append(left);			
				
				
				// digg				
				var img = document.createElement('img');
				$(img).attr({ alt: 'send to digg', src: "http://a.espncdn.com/i/espnradio/radiomatch/images/digg.png", id:"diggImg"  });
				$(left).append(img);
				
				var myLink = document.createElement('a');
				var hrefs = 'http://digg.com/submit?phase=2&url='+encodeURIComponent(url)+'&title='+hostTitle+'&bodytext='+description;
				$(myLink).attr({ href: hrefs , title: 'send to digg', target: 'blank' });
				$(myLink).html("add to digg");
				$(left).append(myLink);
								
				$("#diggImg").click(function(e) { 
					e.preventDefault();		
					this.blur();
					window.open('http://digg.com/submit?phase=2&url='+encodeURIComponent(url)+'&title='+hostTitle+'&bodytext='+description);
					return false;
				});
				
				

				
				
				
				
				// del.icio.us
		 		var img = document.createElement('img');
				$(img).attr({ alt: 'send to delicious', src: "http://a.espncdn.com/i/espnradio/radiomatch/images/delicious.png", id:"deliImg"  });
				$(left).append(img);
				
				var myLink = document.createElement('a');
				var hrefs = "http://del.icio.us/post?url=" + url+'&title='+hostTitle+'&tags='+labels;
				$(myLink).attr({ href: hrefs , title: 'send to del.icio.us', target: 'blank' });
				$(myLink).html("add to del.icio.us");
				$(left).append(myLink);				
				
				$("#deliImg").click(function(e) { 
					e.preventDefault();		
					this.blur();
					window.open('http://del.icio.us/post?url='+url+'&title='+hostTitle+'&tags='+labels);
				});
				
				
				
				// facebook
				var img = document.createElement('img');
				$(img).attr({ alt: 'send to facebook', src: "http://a.espncdn.com/i/espnradio/radiomatch/images/facebook_share_icon.gif", id:"facebookImg"  });
				$(left).append(img);
				
				var myLink = document.createElement('a');
				var hrefs = "http://www.facebook.com/sharer.php?u="+url+'&title='+hostTitle;
				$(myLink).attr({ href: hrefs , title: 'send to facebook', target: 'blank' });
				$(myLink).html("add to facebook");
				$(left).append(myLink);					
				
				$("#facebookImg").click(function(e) { 
					e.preventDefault();		
					this.blur();
					window.open('http://www.facebook.com/sharer.php?u='+url+'&title='+hostTitle);
				});
								
										
								
				//google
				var img = document.createElement('img');
				$(img).attr({ alt: 'send to google', src: "http://a.espncdn.com/i/espnradio/radiomatch/images/google.png", id:"googImg"  });
				$(left).append(img);
				
				var myLink = document.createElement('a');
				var hrefs =  'http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+encodeURIComponent(url)+'&title='+hostTitle+'&labels='+labels;
				$(myLink).attr({ href: hrefs , title: 'send to google', target: 'blank' });
				$(myLink).html("add to google");
				$(left).append(myLink);					
				
				$("#googImg").click(function(e) { 
					e.preventDefault();		
					this.blur();
					window.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+encodeURIComponent(url)+'&title='+hostTitle+'&labels='+labels);
				});				
				
				
				
				//myspace
				var img = document.createElement('img');
				$(img).attr({ alt: 'send to myspace', src: "http://a.espncdn.com/i/espnradio/radiomatch/images/myspace.gif", id:"myspaceImg"  });
				$(left).append(img);
				
				var myLink = document.createElement('a');
				var hrefs =  'http://www.myspace.com/Modules/PostTo/Pages/?t='+hostTitle+'&c='+description+'&u='+url;
				$(myLink).attr({ href: hrefs , title: 'send to myspace', target: 'blank' });
				$(myLink).html("add to myspace");
				$(left).append(myLink);	
				
				$("#myspaceImg").click(function(e) { 
					e.preventDefault();		
					this.blur();
					window.open('http://www.myspace.com/Modules/PostTo/Pages/?t='+hostTitle+'&c='+description+'&u='+url);
				});
				
				
							
				
				// yahoo
				var img = document.createElement('img');
				$(img).attr({ alt: 'send to yahoo', src: "http://a.espncdn.com/i/espnradio/radiomatch/images/im_yahoo.gif", id:"yahooImg"  });
				$(left).append(img);
				
				var myLink = document.createElement('a');
				var hrefs =  'http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+encodeURIComponent(url)+'&t='+hostTitle;
				$(myLink).attr({ href: hrefs , title: 'send to yahoo', target: 'blank' });
				$(myLink).html("add to yahoo");
				$(left).append(myLink);	
				
				$("#yahooImg").click(function(e) { 
					e.preventDefault();		
					this.blur();
					window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+encodeURIComponent(url)+'&t='+hostTitle);
				});
				
				
				
				
				
				//stumbleupon
				var img = document.createElement('img');
				$(img).attr({ alt: 'send to ma.gnolia.com', src: "http://a.espncdn.com/i/espnradio/radiomatch/images/stumbleupon.png", id:"stumbleImg"  });
				$(left).append(img);
				
				var myLink = document.createElement('a');
				var hrefs =  'http://www.stumbleupon.com/refer.php?url='+encodeURIComponent(url)+'&title='+hostTitle+'&labels='+labels;
				$(myLink).attr({ href: hrefs , title: 'send to stumbleupon', target: 'blank' });
				$(myLink).html("add to stumbleupon");
				$(left).append(myLink);	
				
				$("#stumbleImg").click(function(e) { 
					e.preventDefault();		
					this.blur();
					window.open('http://www.stumbleupon.com/refer.php?url='+encodeURIComponent(url)+'&title='+hostTitle+'&labels='+labels);
				});	
				
				
				$("#diggImg, #deliImg, #facebookImg, #googImg, #myspaceImg, #yahooImg, #stumbleImg").hover(
     				 function () {
       				 	$(this).css({'cursor' : 'pointer'});
      			 	 }, 
      				function () {
        				$(this).css({'cursor' : 'default'});
      				}
    			);	
				
						
				
				// fade in all share links
				//$(".soc_container").fadeIn(500);
				$(".soc_container").show();	
				//$('.soc_container').ifixpng();		
		}		
					
	})		
 })