var isInputqu = false;
var searchBoxWidthWithKievLogo = 0;
var searchBoxWidthWithoutKievLogo = 0;
function clearDefaultSearchLable(){
	var searchBox = document.getElementById("msviLSBtbox");
		if (!isInputqu){
			searchBox.value = "";
		}
	}
var kievImageWidth = 0; 

function searchBoxFocused(defaultSearchLabel){
	var searchBoxInput = document.getElementById("msviLSBtbox");
	var kievImage = document.getElementById("msviLSBlogo");
	if (searchBoxInput.value == defaultSearchLabel) {
		searchBoxInput.value = '';
		if (kievImageWidth == 0) {
			kievImageWidth = kievImage.clientWidth;
		}
		searchBoxInput.style.fontStyle = '';
		searchBoxInput.style.color='#000000';
		kievImage.style.width = '1px';
		if (searchBoxWidthWithKievLogo == 0) {
			searchBoxWidthWithKievLogo = searchBoxInput.style.width;
			searchBoxWidthWithoutKievLogo = searchBoxInput.clientWidth + (kievImageWidth - 1);
		}
		searchBoxInput.style.width = searchBoxWidthWithoutKievLogo + "px";
	}
}

function searchBoxBlur(defaultSearchLabel) {
	var searchBoxInput = document.getElementById("msviLSBtbox");
	var kievImage = document.getElementById("msviLSBlogo");
	if (searchBoxInput.value.replace(/(^\s*)|(\s*$)/g, '')=='') {
		searchBoxInput.value=defaultSearchLabel;searchBoxInput.style.fontStyle ='Italic';
		searchBoxInput.style.color = "#a1a1a1";
		kievImage.style.width = kievImageWidth + "px";

		searchBoxInput.style.width = searchBoxWidthWithKievLogo;
		isInputqu = false;
	} else {
		isInputqu = true;
	}
}