window.onload = function () {
	initSearchbar();
};

function initSearchbar() {
	var searchbarLabel = document.getElementById('searchbarLabel'),
		searchbarInput = document.getElementById('searchbarInput');
	if (searchbarLabel && searchbarInput) {
		searchbarInput.onfocus = function () {
			searchbarLabel.style.display = 'none';
		};
		searchbarInput.onblur = function () {
			if (searchbarInput.value === '') {
				searchbarLabel.style.display = '';
			}
		};
	}
}


