/*
 * uRoute Sample Function - used to display the user's current route throughout the website.
 * @author Scott D. Brooks 
 * @created by UserFirst Interactive (creations@userfirstinteractive.com)
 * 
 */
	
function dispayuRoutePath() {
	var currentDomain = jQuery.url.attr("host");
	var siteRouteArray = $.cookie('siteRoute').split("|");
	var pathForDisplay = "Your current route:" + "\r\n";
	
	for(i = 0; i < siteRouteArray.length; i++){
		pathForDisplay = pathForDisplay + siteRouteArray[i] + "\r\n";
	}
	alert(pathForDisplay);
}

function clearRoute() {
	var currentDomain = jQuery.url.attr("host");	
	
	$.cookie('siteRoute', null);
	$.cookie('siteRoute', "", { expires: 1, path: '/', domain: currentDomain });
	alert("Your uRoute cookie has been cleared!");
}
