/* ÇÃ·¡½Ã È£Ãâ */
function swf(src,width,height,transparent){
    object = '';
    object += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="param" width="'+width+'" height="'+height+'">';
    object += '<param name="movie" value="'+src+'">';
    
    if(transparent=="N"){
    	//do nothing
    } else {
    	object += '<param name="wmode" value="transparent">';
    }
    
    object += '<param name="allowScriptAccess" value="always">';
    object += '<embed src="'+src+'" quality="high" bgcolor="#ffffff" wmode="transparent" menu="false" width="'+width+'" height="'+height+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
    object += '<\/object>';
    document.write(object);
}

/* ÅÇ¸Þ´º */
function tabSwitch(tabName,tabIdx,tabCount,tabClassName){
	var tab;
	if (!tabClassName){
		tabClassName='tabitem';
	}
	for (var i=1; i<=tabCount ;i++ ){
		tabObj = document.getElementById("tab_"+tabName+"_"+i);
		tabEntryObj = document.getElementById("tabEntry_"+tabName+"_"+i);
		if (i == tabIdx) {
			tabEntryObj.style.display = "block";
			if (!tabObj.className.match("selected")) {
				tabObj.className = tabClassName + " selected";
			}
		}else{
			tabEntryObj.style.display = "none";
			if (tabObj.className.match("selected")) {
				tabObj.className = tabClassName.replace(" selected","");
			}
		}
	}
}
