function sign_out() {
	document.location = logout;
}

function goto_my_courses() {
	document.location = my_courses;
}

function go_tdhome() {
	document.location = '/tdhome.html';
}

function do_course_affiliate_branding() {
	var aff_cookie = getCookieVal(afy);
	if (aff_cookie) {
		//Using a try/catch here so we don't have to add the 
		//variable to all the other pages. 
		try {
			//On course home page:
			if (is_course_home) {
				//call the main TD handler:
				handle_affiliate();
			}
		} catch(ex) {
			//All others.
			changeBackgroundColor('logos','#fff');
			//show the aff_brand element:
			showElement('aff_brand');
			//call the main TD handler:
			handle_affiliate();
			
		}
	} 
	
}


