function showTabLayer(tabName, tabIdx) {

	if (tabIdx)	{
	}else{
		tabIdx = 0;
	}
	for (var i=1; i<=10; i++){
		if(eval("document.getElementById('tabLayer_"+tabIdx+""+i+"')")){
			if(tabName==i){
				eval("document.getElementById('tabLayer_"+tabIdx+""+i+"')").style.display = "block";
			}else{
				eval("document.getElementById('tabLayer_"+tabIdx+""+i+"')").style.display = "none";
			}
		}
	}
}

function showLayer(Idx) {

	for (var i=0; i<=10; i++){
		if(eval("document.getElementById('Layer_"+i+"')")){
			if(Idx==i){
				eval("document.getElementById('Layer_"+i+"')").style.display = "block";
			}else{
				eval("document.getElementById('Layer_"+i+"')").style.display = "none";
			}
		}
	}
}

function showTopLayer(Idx) {
	for (var i=0; i<=10; i++){
		if(eval("document.getElementById('Layer_top_"+i+"')")){
			if(Idx==i){
				eval("document.getElementById('Layer_top_"+i+"')").style.display = "block";
				eval("document.getElementById('topLayer_"+i+"')").className = "faq_click";
			}else{
				eval("document.getElementById('Layer_top_"+i+"')").style.display = "none";
				eval("document.getElementById('topLayer_"+i+"')").className = "";
			}
		}
	}
}
 
function LayerOn(Idx) {
 
	for (var i=1; i<=10; i++){
		if(Idx==i){
				eval("document.getElementById('popLayer"+i+"')").style.display = "block";
 			}
			
	}
}

function LayerOff(Idx) {
 
	for (var i=1; i<=10; i++){
		if(Idx==i){
				eval("document.getElementById('popLayer"+i+"')").style.display = "none";
			}
	}
}
 

 function goFimilySite(url){
	window.open(url,"FimilySite","");		
}

/*swfÆÄÀÏ*/
function swf(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="best">';
	html += '<param name="wmode" value="transparent">';
	html += '<embed src="'+src+'" quality=best width="'+w+'" height="'+h+'" quality="best" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"><\/embed>';
	html += '<\/object>';
	document.write(html);
}
   


var bodyContent;

function bp1(){
  bodyContent = document.body.innerHTML;
  document.body.innerHTML = document.getElementById("popLayer1").innerHTML;
 }

 function ap1(){
  document.body.innerHTML = bodyContent;
 }

 function contact_print1(){
			  window.onbeforeprint = bp1;
			  window.onafterprint = ap1;
			  window.print();
 }


function bp2(){
  bodyContent = document.body.innerHTML;
  document.body.innerHTML = document.getElementById("popLayer2").innerHTML;
 }

 function ap2(){
  document.body.innerHTML = bodyContent;
 }

 function contact_print2(){
			  window.onbeforeprint = bp2;
			  window.onafterprint = ap2;
			  window.print();
 }

function bp3(){
  bodyContent = document.body.innerHTML;
  document.body.innerHTML = document.getElementById("popLayer3").innerHTML;
 }

 function ap3(){
  document.body.innerHTML = bodyContent;
 }

 function contact_print3(){
			  window.onbeforeprint = bp3;
			  window.onafterprint = ap3;
			  window.print();
 }

 function bp4(){
  bodyContent = document.body.innerHTML;
  document.body.innerHTML = document.getElementById("popLayer4").innerHTML;
 }

 function ap4(){
  document.body.innerHTML = bodyContent;
 }

 function contact_print4(){
			  window.onbeforeprint = bp4;
			  window.onafterprint = ap4;
			  window.print();
 }


function bp5(){
  bodyContent = document.body.innerHTML;
  document.body.innerHTML = document.getElementById("popLayer5").innerHTML;
 }

 function ap5(){
  document.body.innerHTML = bodyContent;
 }

 function contact_print5(){
			  window.onbeforeprint = bp5;
			  window.onafterprint = ap5;
			  window.print();
 }



function bp6(){
  bodyContent = document.body.innerHTML;
  document.body.innerHTML = document.getElementById("popLayer6").innerHTML;
 }

 function ap6(){
  document.body.innerHTML = bodyContent;
 }

 function contact_print6(){
			  window.onbeforeprint = bp6;
			  window.onafterprint = ap6;
			  window.print();
 }




