function faqList(obj,num,total) {
	document.getElementById('faqList').className='faq-list loadscript';
	for (i=1; i<=total; i++) {
		var objt = document.getElementById(obj+i);
		if (i==num){
			objt.style.display = (objt.style.display=='' ? 'block':'');
		}
	}
}
function clearFnode(obj){
	var vArray = new Array();
	for(var i=0; i<obj.childNodes.length; i++){
		if(obj.childNodes[i].nodeType=="1"){
			vArray.push(obj.childNodes[i])
		}
	}
	return vArray;
}
function viewnhide(obj){
	var obj = document.getElementById(obj);
	obj.style.display = (obj.style.display == "block") ? "none" : "block";
	var childli = clearFnode(obj);
	for (var i=0; i<childli.length; i++){
		childli[i].childNodes[0].onclick = function(){
			var url = this.href;
			obj.style.display = (obj.style.display == "block") ? "none" : "block";
			window.open(url,"_blank");
			return false;
		}
	}
}
function getFlash(swfName,wt,ht,id,t){
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+wt+'" height="'+ht+'" id="'+id+'">');
    document.write('<param name="movie" value="'+swfName+'">');
    document.write('<param name="quality" value="high">');
    if (t != 0)    {
        document.write('<param name="wmode" value="transparent">');
    }
    document.write('<param name="allowScriptAccess" value="always">');
    document.write('<embed src="'+swfName+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" width="'+wt+'" height="'+ht+'" allowScriptAccess="sameDomain" id="'+id+'"></embed></object>');
}

function gnMenu(swfName,wt,ht,id,t,selectMenu){
    document.write('<object class="navigation" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+wt+'" height="'+ht+'" id="'+id+'">');
    document.write('<param name="movie" value="'+swfName+'">');
    document.write('<param name="FlashVars" value="'+ selectMenu +'" />');
    document.write('<param name="quality" value="high">');
    if (t != 0)    {
        document.write('<param name="wmode" value="transparent">');
    }
    document.write('<param name="allowScriptAccess" value="always">');
    document.write('<embed src="'+swfName+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" width="'+wt+'" height="'+ht+'" allowScriptAccess="sameDomain" id="'+id+'"></embed></object>');
}
function scrollTopBtn(){
	var addParent = document.getElementById("contents"),
		addItem = document.createElement("div");
		addItem.id = "wing";
		addParent.appendChild(addItem);
	var addItem2 = document.createElement("a");
		addItem2.href = "#";
		addItem.appendChild(addItem2);
	var addItem3 = document.createElement("img");
		addItem3.src = "/images/common/btn_top.gif";
		addItem3.alt = "페이지 상단으로";
		addItem2.appendChild(addItem3);
}

/* 추가 
function scrollTopBtn1(){
	var addParent = document.getElementById("contents"),
		addItem = document.createElement("div");
		addItem.id = "shin";
		addParent.appendChild(addItem);
	var addItem2 = document.createElement("a");
		addItem2.href = "http://www.kofmiablog.org";
		addItem2.target = "_blank";
		addItem.appendChild(addItem2);
	var addItem3 = document.createElement("img");
		addItem3.src = "/images/banner.jpg";
		addItem3.alt = "..";
		addItem2.appendChild(addItem3);
}
/* 끝 */
