function encodeSectionVariable(section) {
     return section.replace(/ > /g,'/').replace(/ /g,'-');
}

function sectionStripArea(section) {
     return section.replace(/Channels > /g,'');
}

function sectionVariableToURL(section) {

     section = sectionStripArea(section);
     var encodedSectionVariable=encodeSectionVariable(section.toLowerCase());
	encodedSectionVariable = encodedSectionVariable.replace(/%26/g, 'and');	
     var url='/'+escape(encodedSectionVariable)+'/';
	url = url.replace(/%26/g, 'and');
	url = '/channels'+url;
     return url;
}


