$(function() { 
  $('#article-content').prepend('<a href="#print" id="printable">Print This Page</a>');
	$('#article-content a#printable').click(function() {
	  window.print();
		return false;
	});
	$('#main-navigation ul li:last-child').addClass('last');
	$('#main-navigation ul li:first-child').addClass('first');
	sfHover = function() {
		var sfEls = document.getElementById("main-navigation").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);
	$("li#facebook a, li#linkedin a").filter(function() {
    return this.hostname && this.hostname !== location.hostname;
  })
	.click(function () { 
		var x=window.confirm('You are leaving the United Mail website. By clicking OK, you will be taken to a website that is not affiliated with United Mail and may have different privacy and security policies. United Mail is not responsible for, and does not endorse, guarantee, or monitor content, availability, viewpoints, products, or services that are offered or expressed on this non United Mail portal website.');
		var val = false;
		  if (x)
		val = true;
		  else
		val = false;
		  return val;
		});
});