
function emailPath(){
	if(location.href.indexOf("admin") == -1){
		//if NOT on admin site
		self.location.href = "mailto:?subject=intranet link&body=" + encodeURIComponent(location.href);
	}else{
		alert('This feature is not available in the administration area!');
	}
}

function shareContent(){
	// Get share content form and load dialog
	var url = $.ic.sWebRoot + '/includes/sharecontent.cfm?url=' + encodeURIComponent(location.href) + '&title=' +  + encodeURIComponent(document.title);
	$.ajax({url: url,
		success: function(data, textStatus, jqXHR){
				// Create Dialog
				console.log(data);
				$(data).dialog({
					width: 500,
					height: 'auto',
					position: 'center',
					modal: true
				});
			},
		dataType: 'html'
	});
}

