function addEvent(obj, evType, fn) {
	if (obj.addEventListener) {
		obj.addEventListener(evType, fn, true);
		return true;
	} else if (obj.attachEvent) {
		var r = obj.attachEvent("on"+evType, fn); 
		return r;
	} else {
		return false;
	}
}

function addHeaderNavigation() {
	if (document.getElementById) {
	  var e = document.getElementById('logo');
		if (!e) { e = document.getElementById('logo-inner'); }
	  addEvent(e, 'mouseover', function() { window.status='http://www.alienabductioninsurance.com/'; } );
		addEvent(e, 'mouseout', function() { window.status='';} );
		addEvent(e, 'click', function() { window.location='http://www.alienabductioninsurance.com/';} );
		addSocialEvents ();
	}	
}

function addSocialEvents () {
  var anchor = document.getElementById('DiggIcon');
	if (anchor) {
	  anchor.href   = 'http://digg.com/submit?phase=2&url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title);
		anchor.target = "_blank";
	}
	
	anchor = document.getElementById('RedditIcon');
	if (anchor) {
	  anchor.href   = 'http://reddit.com/submit?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title);
		anchor.target = "_blank";
	}
	
	anchor = document.getElementById('DeliciousIcon');
	if (anchor) {
	  anchor.href   = 'http://del.icio.us/post?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title);
		anchor.target = "_blank";
	}
	
	anchor = document.getElementById('BlinkBitsIcon');
	if (anchor) {
	  anchor.href   = 'http://blinkbits.com/bookmarklets/save.php?v=1&source_url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title);
		anchor.target = "_blank";
	}
	
	anchor = document.getElementById('BlinkListIcon');
	if (anchor) {
	  anchor.href   = 'http://www.blinklist.com/index.php?Action=Blink/addblink.php&Url='+encodeURIComponent(document.location.href)+'&Title='+encodeURIComponent(document.title);
		anchor.target = "_blank";
	}

	anchor = document.getElementById('FurlIcon');
	if (anchor) {
	  anchor.href   = 'http://www.furl.net/storeIt.jsp?t='+encodeURIComponent(document.title)+'&u='+encodeURIComponent(document.location.href);
		anchor.target = "_blank";
	}

	anchor = document.getElementById('SpurlIcon');
	if (anchor) {
	  anchor.href   = 'http://www.spurl.net/spurl.php?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title);
		anchor.target = "_blank";
	}

	anchor = document.getElementById('YahooIcon');
	if (anchor) {
	  anchor.href   = 'http://myweb2.search.yahoo.com/myresults/bookmarklet?t='+encodeURIComponent(document.title)+'&u='+encodeURIComponent(document.location.href);
		anchor.target = "_blank";
	}

	anchor = document.getElementById('TechnoratiIcon');
	if (anchor) {
	  anchor.href   = 'http://technorati.com/faves/?add='+encodeURIComponent(document.title);
		anchor.target = "_blank";
	}

}

addEvent(window, 'load', addHeaderNavigation);

function wm(m) {
	var em = m + '@' + 'alienabductioninsurance.com';
	document.write('<a href="mailto:'+em+'">'+em+'</a>');
}
