var preLoadImages = new Array(
	'/Component/img/cn_btn_on.gif',
	'/Component/img/global_bg_on.gif'
);

function page_init(){
	document.forms['sf'].elements['q'].onfocus = function(){
		this.style.backgroundColor = "#ffffee"; this.select();
	}
	document.forms['sf'].elements['q'].onblur = function(){
		this.style.backgroundColor = "#ffffff";
	}
	for(var i=0;i<preLoadImages.length;i++){
		(new Image()).src = preLoadImages[i];
	}
	if(tblObjs = document.getElementsByTagName('TABLE')){
		for(var i=0;i<tblObjs.length;i++){
			if(tblObjs[i].className == 'List'){
				for(var j=0;j<tblObjs[i].childNodes[0].childNodes.length;j++){
					if(tblObjs[i].childNodes[0].childNodes[j] != undefined && tblObjs[i].childNodes[0].childNodes[j].childNodes[0].tagName=='TD'){
						tblObjs[i].childNodes[0].childNodes[j].onmouseover = function(){
							this.className = 'focus';
						}
						tblObjs[i].childNodes[0].childNodes[j].onmouseout = function(){
							this.className = 'blur';
						}
						tblObjs[i].childNodes[0].childNodes[j].onclick = function(){
							location.href=this.id;
						}
					}
				}
			}
		}
	}
}

if(window.addEventListener)
	window.addEventListener("load", page_init, false);
if(window.attachEvent)
	window.attachEvent("onload", page_init);

