function overlay() {
		el = document.getElementById("overlay");
		el.style.visibility = (el.style.visibility == "visible") ? "hidden" : "visible";
	}
	
//share.js
function doArticleShare(service) {
	var shareTitle = document.title;
	shareTitle = encodeURIComponent(shareTitle.replace("LiveWorld, Inc. - ", ""));
	var shareURL = document.location.href;
	var u = null;
	if (service == 'digg') {
		u = 'http://digg.com/submit?phase=2'
		+ '&url=' + shareURL
		+ '&title=' + shareTitle;
	} else if (service == 'delicious') {
		u = 'http://del.icio.us/post?'
		+ '&url=' + shareURL
		+ '&title=' + shareTitle;
	} else if (service == 'newsvine') {
		u = 'http://www.newsvine.com/_tools/seed&save?'
		+ '&u=' + shareURL
		+ '&h=' + shareTitle;
	} else if (service == 'facebook') {
		u = 'http://www.facebook.com/sharer.php?'
		+ '&u=' + shareURL
		+ '&t=' + shareTitle;
	} else if (service == 'reddit') {
		u = 'http://reddit.com/submit?'
		+ '&url=' + shareURL
		+ '&title=' + shareTitle;
	} else if (service == 'furl') {
		u = 'http://furl.net/storeIt.jsp?'
		+ '&u=' + shareURL
		+ '&t=' + shareTitle;
	} else if (service == 'yahoo') {
		u = 'http://myweb2.search.yahoo.com/myresults/bookmarklet?t='
		+ '&u=' + shareURL;
	} else if (service == 'google') {
		u = 'http://www.google.com/bookmarks/mark?op=add'
		+ '&bkmk=' + shareURL
		+ '&title=' + shareTitle
		+ '&labels=' + ''
		+ '&annotation=' + '';
	} else if (service == 'whatIsThis') { //--------- Added whatIsThis case to support blog button help - Kyle
		shareInfo();
		return 0;
	}
	if (u != null) {
		popWin(u, 'share', 900, 640, 1)
		if (typeof winChild != "undefined" && winChild != null) {
			winChild.focus();
		}
	}
}

function popWin(url, winName, w, h, scroll) {
	var sw = screen.width;
	var sh = screen.height;
	var cx = (.5 * sw) - (w * .5);
	var cy = (.5 * sh) - (h * .5);
	var values = 'toolbar=no,status=yes,menubar=no,scrollbars=' + scroll + ',resizable=yes,screenX=' + cx + ',screenY=' + cy + ',left=' + cx + ',top=' + cy + ',width=' + w + ',height=' + h + '';
	winChild = window.open(url, winName, values);
}

sfHover = function() {
	var sfEls = document.getElementById("pageActions").getElementsByTagName("LI");
	for (var i = 0; i < sfEls.length; i++) {
		sfEls[i].onmouseover = function() {
			this.className += " sfhover";
		}
		sfEls[i].onmouseout = function() {
			this.className = this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);



function shareInfo(){
	return 0;
}



//--------- Added emailAFriend function to support email button - Kyle
function emailAFriend(){
	var daReferrer = document.referrer; 
	var email = ""; 
	//var subject = "I thought you might be interested in this Web page: " +daReferrer +"[" +document.title +"]"; 
	var subject = "I thought you might be interested in this Web page: " +"'" +document.title +"'"; 
	//var body_message = "%0D%0D%0D%0D Please see the link below.  I thought you may be interested in it%0D%0D%0D%0D <a href='" +daReferrer +"'>" +window.location.href +"</a>"; 
	var body_message = "I thought you may be interested in: " +document.title +".  Sent from the link below: %0D%0D" +daReferrer;
	
	//Please see the link below.  I thought you may be interested in it%0D%0D%0D%0D " +window.location.href; 


	var mailto_link = 'mailto:'+email+'?subject='+subject+'&body='+body_message; 

	win = window.open(mailto_link,'emailWindow'); 
	if (win && win.open &&!win.closed) win.close(); 
}

function popWindowTM(sender)
{
   var url = null;  
   if (sender.id == 'delicious')
    {
        url = 'http://del.icio.us/post?url=' + location.href.replace('#', '') + '&title=' + document.title;
     }
    else if (sender.id == 'digg')
    {
         url = 'http://digg.com/submit?phase=2$url=' + location.href.replace('#', '') + '&title=' + document.title;
     }
     else if (sender.id == 'technorati')
    {
        url = 'http://www.technorati.com/faves?add=' + location.href.replace('#', '');
    }
    else if (sender.id == 'reddit')
    {
      url = 'http://reddit.com/submit?url=' + location.href.replace('#', '');
    }
	 else if (sender.id == 'google')
    {
      url = 'http://fusion.google.com/add?feedurl=' + location.href.replace('#', '');
    }
        
    if (url != null)
    {
        window.open(url);
    }
    

}

function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}