function fnHeadButton(obj, iStatus) {
	obj.firstChild.style.left = (obj.firstChild.width / 4 * iStatus * -1) + "px";
}

function fnNull() {
}

function fnAddFavorites() {
	window.external.AddFavorite('http://www.zcom.com', "ZCOM 影音互动娱乐平台");
}

function fnSetHomePage(obj) {
	obj.style.behavior='url(#default#homepage)';
	obj.setHomePage('http://www.zcom.com/');
}

function goSearch(checkEnter){

	inpObj = document.getElementById('inp_keyword');

	fnWriteFile(sGSearchStr, inpObj.value);

	if ((checkEnter)&&(event.keyCode != 13)) {
		return;
	}

	fmObj = document.getElementById('search_form');

	if (fnCheckSearchBox(inpObj)) {
		try{
			var act = fmObj.action;
			fmObj.action = act + "/" + encodeURI(inpObj.value) ;
			fmObj.submit();
			fmObj.action = act;
		} catch(e){ }
	}
	return false;
}

function fnCheckSearchBox(oSe){

	if(oSe.value == "请输入关键字"){
		oSe.value = "";
		return false;
	}

	oSe.focus();
	oSe.select();

	if(oSe.value==''){
		return false;
	}


	return true;
}

function fnSearchInitialization() {
	oSearchInput = document.getElementById("inp_keyword");
	if (oSearchInput != null) {
		var sKeyword = ZCOMActiveX.ReadDataFile(sGSearchStr);
		if (sKeyword != "FALSE") {
			oSearchInput.value = sKeyword;
		}
	}
}
