function addBookmarkHover(id)
	{
		var elem=GetElementById(id);
			if(elem)
			{
				elem.className+=(elem.className.length>0?" ":"")+"sfhover";
			}
	}
	
function removeBookmarkHover(id)
	{
		var elem=GetElementById(id);
			if(elem)
			{
				elem.className=elem.className.replace(new RegExp("( ?|^)sfhover\\b"),"");
			}
	}
	
	if(typeof CDC=="undefined")
		{
			var CDC=new Object();
		}
		
	if(typeof CDC.Share=="undefined")
		{
			CDC.Share=new Object();
		}
		
	CDC.Share=function()
		{
		};
		
	CDC.Share.prototype=
		{
			timeout:null,showPopup:function()
				{
					clearTimeout(this.timeout);
						if(this.className.indexOf("sfhover")<0)
							{
								var command="addBookmarkHover('"+this.id+"')";
								this.timeout=setTimeout(command,300);
							}
				},hidePopup:function()
					{
						if(this.className.indexOf("sfhover")<0)
							{
								clearTimeout(this.timeout);
							}
						else
							{
								var command="removeBookmarkHover('"+this.id+"')";
								this.timeout=setTimeout(command,200);
							}
					}
		};
		
	shareHover=function()
		{
			var shareNavLIs=getElementsByClass("share",null,"li");
				if(shareNavLIs&&shareNavLIs.length>0)
				{
					for(var liIndex=0;
						liIndex < shareNavLIs.length;
						liIndex++)
						{
							var shareNavLi=shareNavLIs[liIndex];
								if(shareNavLi)
								{
									var shareClass=new
									CDC.Share(shareNavLi);
									shareNavLi.onmouseover=shareClass.showPopup;
									shareNavLi.onmouseout=shareClass.hidePopup;
								}
						}
				}
		};
		
	mcAccessible=function()
		{
			var shareNavLIs=getElementsByClass("share",null,"li");
				if(shareNavLIs&&shareNavLIs.length>0)
				{
				for(var liIndex=0;liIndex<shareNavLIs.length;liIndex++)
				{
				var shareNavLi=shareNavLIs[liIndex];
				if(shareNavLi)
				{
				shareNavLi.onfocus=function()
					{
						if(this.className.indexOf("sfhover")<0)
							{
								this.className+=(this.className.length>0?" ":"")+"sfhover";
							}
					};
				shareNavLi.onblur=function()
					{
						this.className=this.className.replace(new RegExp("( ?|^)sfhover\\b"),"");
					};
				var mcEls=shareNavLi.getElementsByTagName("A");
				for(var i=0;i<mcEls.length;i++)
					{
						mcEls[i].onfocus=function()
					{
						if(this.className.indexOf("sffocus")<0)
						{
							this.className+=(this.className.length>0?" ":"")+"sffocus";
						}
						this.parentNode.className+=(this.parentNode.className.length>0?" ":"")+"sfhover";
						if(this.parentNode.parentNode.parentNode.nodeName=="LI")
						{
			this.parentNode.parentNode.parentNode.className+=(this.parentNode.parentNode.parentNode.className.length>0?" ":"")+"sfhover";
			if(this.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName=="LI")
						{
			this.parentNode.parentNode.parentNode.parentNode.parentNode.className+=(this.parentNode.parentNode.parentNode.parentNode.parentNode.className.length>0?" ":"")+"sfhover";
						}
						}
					};
			mcEls[i].onblur=function()
				{
					this.className=this.className.replace(new RegExp("( ?|^)sffocus\\b"),"");
					this.parentNode.className=this.parentNode.className.replace(new RegExp("( ?|^)sfhover\\b"),"");
					if(this.parentNode.parentNode.parentNode.nodeName=="LI")
					{
			this.parentNode.parentNode.parentNode.className=this.parentNode.parentNode.parentNode.className.replace(new RegExp("( ?|^)sfhover\\b"),"");
			if(this.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName=="LI")
			{
			this.parentNode.parentNode.parentNode.parentNode.parentNode.className=this.parentNode.parentNode.parentNode.parentNode.parentNode.className.replace(new RegExp("( ?|^)sfhover\\b"),"");
			}
					}
				};
				}
				}
				}
				}
				};
				if(window.addEventListener)
					{
						window.addEventListener("load",mcAccessible,false);
						window.addEventListener("load",shareHover,false);
					}
				else
					{
						if(document.addEventListener)
						{
							document.addEventListener("load",mcAccessible,false);
							document.addEventListener("load",shareHover,false);
						}
						else
							{
								if(window.attachEvent)
								{
									window.attachEvent("onload",shareHover);
									window.attachEvent("onload",mcAccessible);
								}
								else
									{
										if(typeof window.onload=="function")
										{
											var existing=onload;
											window.onload=function()
											{
												existing();
												shareHover();
												mcAccessible();
											};
										}
										else
											{
												window.onload=function(){shareHover();
												mcAccessible();
											};
										}
									}
							}
					}
				var cdcShareWindowObjectReference;
				function openBookmarkSite(sitename)
				{
					var title;
					var url;
					if(sitename.toLowerCase()=="favorites")
						{
							title=document.title;
							url=location.href;
								if(url.endsWith("#"))
								{
									url=url.substring(0,url.length-1);
								}
							if(window.sidebar)
							{
								window.sidebar.addPanel(document.title,location.href,"");
							}
							else
							{
								if(document.all)
								{
									external.AddFavorite(location.href,document.title);
								}
								else
								{
									if(window.opera&&window.print)
									{
										var elem=document.createElement("a");
										elem.setAttribute("href",url);
										elem.setAttribute("title",title);
										elem.setAttribute("rel","sidebar");
										elem.click();
									}
								}
							}
						}
					else
					{
						title=escape(document.title);
						url=escape(location.href);
						if(url.endsWith("#"))
						{
							url=url.substring(0,url.length-1);
						}
						var bookmarkURL;
						if(sitename.toLowerCase()=="delicious")
						{
							bookmarkURL="http://delicious.com/save?url="+url+"&title="+title;
						}
						else
						{
							if(sitename.toLowerCase()=="digg")
							{
								bookmarkURL="http://digg.com/submit?url="+url+"&title="+title;
							}
							else
							{
								if(sitename.toLowerCase()=="facebook")
								{
									bookmarkURL="http://www.facebook.com/sharer.php?u="+url+"&t="+title;
								}
							else
								{
									if(sitename.toLowerCase()=="reddit") {
										bookmarkURL="http://reddit.com/submit?url="+url+"&title="+title;
									}
									else
									{
										if(sitename.toLowerCase()=="stumbleupon")
										{
											bookmarkURL="http://www.stumbleuopn.com/submit";
										}
										else
										{
											if(sitename.toLowerCase()=="technorati")
											{
												bookmarkURL="http://technorati.com/faves?sub=favthis&add="+url;
											}
										}
									}
								}
								}
							}
					cdcShareWindowObjectReference=window.open(bookmarkURL,"_blank","height=500,width=780,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
						}
					window.location.reload(true);cancel(this);
				}