// JavaScript Document

function pageName(URLpathName)
{
	var urlpath = URLpathName.toString();
	urlLastSlash = URLpathName.lastIndexOf('/');
	pageName = URLpathName.substring(urlLastSlash+1);

	return pageName;
	//alert(pageName);
}

function lc(URLpathName1)
{
	var urlpath1 = URLpathName1.toString();
	urlLastSlash1 = URLpathName1.lastIndexOf('/');
	
	urlLocation = URLpathName1.search('camping_holidays');
	lc = URLpathName1.substring(urlLocation, urlLastSlash1+1);
	
	return lc;	
}
