function $(elementID) { return document.getElementById(elementID); }

//动态导航菜单
function getFlash(swf,swfWidth,swfHeight,swfType,transparent,previousMenu,toMenu) {
	var param_t = "";
	var url_id = "";
	if ( swfType == 1 ) { url_id = '?pid='+previousMenu+'&tid='+toMenu; }
	if ( transparent == 1 ) { param_t = 'wmode="transparent"'; }
	document.write('<embed src="http://ichov.com/wp-content/themes/fisheraxman4th/images/'+swf+''+url_id+'" quality="high" '+param_t+' pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+swfWidth+'" height="'+swfHeight+'"></embed>');
}

//google自定义搜索
function keyIn(){
	$('q').style.background = 'none';
	$('search').style.background = 'url(http://ichov.com/wp-content/themes/fisheraxman4th/images/bg_search.jpg) 0 -35px  no-repeat';
}
function keyOut(){
	if( $('q').value == '' ){ $('q').style.background = 'url(http://ichov.com/wp-content/themes/fisheraxman4th/images/bg_google.gif) 0 3px no-repeat'; }
	$('search').style.background = 'url(http://ichov.com/wp-content/themes/fisheraxman4th/images/bg_search.jpg) no-repeat';
}
function clearKey() {
	$('q').value = '';
	$('q').style.background = 'url(http://ichov.com/wp-content/themes/fisheraxman4th/images/bg_google.gif) 0 3px no-repeat';
}
function key() {
	if( $('q').value != '' ){ $('q').style.background = 'none'; }
}
