// JavaScript Document
/***********搜索**************/
/*window.onload=searchTxt;
function searchTxt(){
	if(document.getElementById()){
		document.getElementById('search').onFocus=clearTxt();
	}
}
*/
function clearTxt(){
	document.getElementById('search').value='';
}
function showMenu(id_menu){
var my_menu = document.getElementById(id_menu);
if(my_menu.style.display=="none" || my_menu.style.display==""){
	my_menu.style.display="block";
	} else { 
	my_menu.style.display="none";
	}
}
function swapImage(idStatus){
	if(idStatus==0){
		document.arrow_profile.src ="../images/arrow_hover.png";
	} else if(idStatus==1){
		document.arrow_profile.src ="../images/arrow_select.png";
	} else if(idStatus==2){
		document.arrow_profile.src ="../images/arrow.png";
	}
}
function swapImage2(idStatus){
	if(idStatus==0){
		document.arrow_profile.src ="images/arrow_hover.png";
	} else if(idStatus==1){
		document.arrow_profile.src ="images/arrow_select.png";
	} else if(idStatus==2){
		document.arrow_profile.src ="images/arrow.png";
	}
}

/***********插入Flash***********/
function insertFlash(elm, url, w, h) { 
if (!document.getElementById(elm)) return; 
var str = ''; 
str += '<object width="'+ w +'" height="'+ h +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">'; 
str += '<param name="movie" value="'+ url +'">'; 
str += '<param name="wmode" value="transparent">'; 
str += '<param name="quality" value="autohigh">'; 
str += '<embed width="'+ w +'" height="'+ h +'" src="'+ url +'" quality="autohigh" wmode="opaque" type="application/x-shockwave-flash" plugspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>'; 
str += '</object>'; 
document.getElementById(elm).innerHTML = str; 
} 


