function changetab(val, showhide) {
	if(showhide == true) {
	
		if(val == 'reg') {
			document.getElementById('menu-reg-mid').style.color = '#FFFFFF';
			document.getElementById('menu-reg-mid').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-reg-left').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-reg-right').style.backgroundPosition = '0px -29px';

		} else if(val == 'search') {
			document.getElementById('menu-search-mid').style.color = '#FFFFFF';
			document.getElementById('menu-search-mid').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-search-left').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-search-right').style.backgroundPosition = '0px -29px';

		} else if(val == 'list') {
			document.getElementById('menu-list-mid').style.color = '#FFFFFF';
			document.getElementById('menu-list-mid').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-list-left').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-list-right').style.backgroundPosition = '0px -29px';

		} else if(val == 'req') {
			document.getElementById('menu-req-mid').style.color = '#FFFFFF';
			document.getElementById('menu-req-mid').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-req-left').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-req-right').style.backgroundPosition = '0px -29px';

		} else if(val == 'adv') {
			document.getElementById('menu-adv-mid').style.color = '#FFFFFF';
			document.getElementById('menu-adv-mid').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-adv-left').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-adv-right').style.backgroundPosition = '0px -29px';

		} else if(val == 'loan') {
			document.getElementById('menu-loan-mid').style.color = '#FFFFFF';
			document.getElementById('menu-loan-mid').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-loan-left').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-loan-right').style.backgroundPosition = '0px -29px';

		} else if(val == 'blp') {
			document.getElementById('menu-blp-mid').style.color = '#FFFFFF';
			document.getElementById('menu-blp-mid').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-blp-left').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-blp-right').style.backgroundPosition = '0px -29px';

		} else if(val == 'forum') {
			document.getElementById('menu-forum-mid').style.color = '#FFFFFF';
			document.getElementById('menu-forum-mid').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-forum-left').style.backgroundPosition = '0px -29px';
			document.getElementById('menu-forum-right').style.backgroundPosition = '0px -29px';

		}
	} else {

		if(val == 'reg') {
			document.getElementById('menu-reg-mid').style.color = '#000000';
			document.getElementById('menu-reg-mid').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-reg-left').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-reg-right').style.backgroundPosition = '0px 0px';
		} else if(val == 'search') {
			document.getElementById('menu-search-mid').style.color = '#000000';
			document.getElementById('menu-search-mid').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-search-left').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-search-right').style.backgroundPosition = '0px 0px';
		} else if(val == 'list') {
			document.getElementById('menu-list-mid').style.color = '#000000';
			document.getElementById('menu-list-mid').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-list-left').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-list-right').style.backgroundPosition = '0px 0px';
		} else if(val == 'req') {
			document.getElementById('menu-req-mid').style.color = '#000000';
			document.getElementById('menu-req-mid').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-req-left').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-req-right').style.backgroundPosition = '0px 0px';
		} else if(val == 'adv') {
			document.getElementById('menu-adv-mid').style.color = '#000000';
			document.getElementById('menu-adv-mid').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-adv-left').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-adv-right').style.backgroundPosition = '0px 0px';
		} else if(val == 'loan') {
			document.getElementById('menu-loan-mid').style.color = '#000000';
			document.getElementById('menu-loan-mid').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-loan-left').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-loan-right').style.backgroundPosition = '0px 0px';
		} else if(val == 'blp') {
			document.getElementById('menu-blp-mid').style.color = '#000000';
			document.getElementById('menu-blp-mid').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-blp-left').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-blp-right').style.backgroundPosition = '0px 0px';
		} else if(val == 'forum') {
			document.getElementById('menu-forum-mid').style.color = '#000000';
			document.getElementById('menu-forum-mid').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-forum-left').style.backgroundPosition = '0px 0px';
			document.getElementById('menu-forum-right').style.backgroundPosition = '0px 0px';
		}
	}
}


/*
window.onload = function() {
	if(!jQuery){
		console.log('Jquery not loaded');
	}else{
		console.log('Jquery not loaded');
	}
}
*/
