document.write("<script type='text/javascript' src='/asset/js/swfobject.js'></script>");	// swf script
document.write("<script type='text/javascript' src='/asset/js/menu_navi.js'></script>");	// menu link 모음
document.write("<script type='text/javascript' src='/asset/js/line_map.js'></script>");		// lineMap
document.write("<script type='text/javascript' src='/asset/js/layer_pop.js'></script>");	// 공통 layerpopup 모음


//팝업띄우기(스크롤없는거) javascript:popsn('url','pop','500','500');
function popsn(url,trgt,w,h) {
	window.open(url,trgt,'width='+w+',height='+h+',scrollbars=no,resizable=no,copyhistory=no,toolbar=no');
}
//팝업띄우기(스크롤있는거) javascript:popsn01('url','pop','500','500','yes');
function popsn01(url,trgt,w,h,q) {
	window.open(url,trgt,'width='+w+',height='+h+',scrollbars='+q+',resizable=no,copyhistory=no,toolbar=no');
}


// png
function setPng24(obj) {
	obj.width=obj.height=1;
	obj.className=obj.className.replace(/\bpng24\b/i,'');

	obj.style.filter =

	"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
	//obj.src=''; 
	return '';
}

//RollOver
function ImageOver(imgEL){
 imgEL.src = imgEL.src.replace("off.gif", "on.gif");
}
function ImageOut(imgEL){
 imgEL.src = imgEL.src.replace("on.gif", "off.gif");
}


// 이미지&div 동시에 같이 바뀌기 tab change
function tab_change(n) {
	for(i = 1; i <= 4; i++){
		div_name = document.getElementById("tblList_"+i);
		img_s = document.getElementById("simg_"+i);
		if(i == n){   
			div_name.style.display ="block";   
			img_s.src="/asset/images/story/tab_company0"+i+"_on.gif";

		}else{
			div_name.style.display ="none";
			img_s.src="/asset/images/story/tab_company0"+i+"_off.gif";
		}
	}
}

function tab_location(n) {
	for(i = 1; i <= 2; i++){
		div_name = document.getElementById("tab0"+i);
		if(i == n){   
			div_name.style.display ="block";   
		}else{
			div_name.style.display ="none";
		}
	}
}



function Bchange(n,max) {
	for(i = 1; i <= max; i++){
		div_name = document.getElementById("b"+i);
		if(i == n){			
			div_name.style.display ="block";							
		}else{
			div_name.style.display ="none";
		}
	}
}

var printpp

function bp(){
 printpp=document.body.innerHTML;
 document.body.innerHTML=print_this.innerHTML;
}

function ap(){
 document.body.innerHTML=printpp;
}

function pp(){
 window.print();
}

window.onbeforeprint=bp;
window.onafterprint=ap;

    //프린트하기-->


// 첫번째 탭
function tab_latest_area(idx){
for(i = 1; i <= 6 ; i++ ){
document.getElementById('tab'+i).className = "";
 document.getElementById('content'+i).className = "content hide";
}
document.getElementById('tab'+idx).className = "active";
 document.getElementById('content'+idx).className = "content show";
}




function toggleTabs(et,ec,mx,idx){
for(i = 1; i <= mx ; i++ ){
document.getElementById(et+i).className = "";
document.getElementById(ec+i).className = "content hide";
}
document.getElementById(et+idx).className = "active";
document.getElementById(ec+idx).className = "content show";
}

function iframeReSize(obj){
obj = typeof obj == 'string' ? document.getElementByld(obj) : obj;
obj.setExpression('height', 'contentWindow.document.body.scrollHeight + 5');
}
