
function headers(){
	get = location.search;
	replaceImage(get);
}

function replaceImage(get){
	var type = 'home';
	var id = '';
	if(get){
	get = get.substring(1);
		if(get.search('section') != -1) {
			equal = get.search('=');
			id = get.substring(equal+1); 
			type = 'section';
		}
		else if (get.search('page') != -1) {
			equal = get.search('=');
			id = get.substring(equal+1); 
			type = 'page';
		}
	}
	var img = document.getElementById("files");
	img.src = "files/" + type + id + '.jpg';
	img.alt = type;
}
