function TextOn(num){
	for(var i=1;i<=4;i++) {
	menu=eval("document.all.cont0"+i+".style");
		if (num==i) {
			menu.display="block";
		} else {
			menu.display="none";
		}
	}
}
function TextOn2(num){
	for(var i=1;i<=6;i++) {
	menu=eval("document.all.cont0"+i+".style");
		if (num==i) {
			menu.display="block";
		} else {
			menu.display="none";
		}
	}
}
document.write("<div id='rightcont'>");
if(globalHn==2){
document.write("\
<div id='rightbnr' style='padding-bottom:0;'>\
	<!--2007-05-08 iframe 링크 수정-->\
	<iframe width='131' height='110' marginheight='0' marginwidth='0' frameborder='0' name='ifrm_ir' scrolling='no' src='http://www.gsifn.com/IR/sktel/irfrm_ir.html?koreng=&sw='></iframe><br>\
	<div style='background:#fff;padding-bottom:5px;'>\
	<a href='/html/invest/stock/Price.html'><img src='/img/common/right/invest_btn01.gif'></a><a href='/html/invest/stock/Date.html'><img src='/img/common/right/invest_btn02.gif' style='margin-left:2px;'></a><br>\
	</div>\
	<img src='/img/common/right/invest_img02.gif' class='mb5 mt15'>\
	<div class='menu'>\
	<div class='li' onmouseover='TextOn(1);' onmouseout='' onclick=\"location.href='/jsp/invest/public/PublicList.jsp'\">공시정보</div>\
	<div id='cont01' class='cont' onclick=\"location.href='/jsp/invest/public/PublicList.jsp'\">투명경영을 위한 투자자정보가 업데이트 됩니다.</div>\
	<div class='li' style='margin-top:0;' onmouseover='TextOn(2)' onmouseout='' onclick=\"location.href='/html/invest/ir/Factsheet.html'\"><span class='eng t10'>Monthly Factsheet</span></div>\
	<div id='cont02' class='cont' onclick=\"location.href='/html/invest/ir/Factsheet.html'\">영업실적이 월별로 업데이트 됩니다.</div>\
	<div class='li' onmouseover='TextOn(3)' onmouseout='' onclick=\"location.href='/jsp/invest/ir/ResultList.jsp'\">분기별 실적자료</div>\
	<div id='cont03' class='cont' onclick=\"location.href='/jsp/invest/ir/ResultList.jsp'\">분기별 실적자료를 확인하실 수 있습니다.</div>\
	<div class='li' onmouseover='TextOn(4)' onmouseout='' onclick=\"location.href='/html/invest/finance/Annual.html'\">연차보고서</div>\
	<div id='cont04' class='cont' onclick=\"location.href='/html/invest/finance/Annual.html'\">SK텔레콤의 연차보고서를 보실 수 있습니다.</div>\
	</div>\
	<a href='javascript:pop1();'><img src='/img/common/right/disclaimer.gif' class='mt10'></a>\
</div>\
");
}
else if(globalHn==3){
document.write("\
<div id='rightbnr'>\
	<a href='javascript:link(3,3);'><img src='/img/common/right/social_img01.gif' class='mt5 mb10'></a>\
	<div class='menu'>\
	<div class='li' onmouseover='TextOn2(1)' onmouseout='' onclick='link(3,3,1)'>사회복지</div>\
	<div id='cont01' class='cont' onclick='link(3,3,1)'>소외된 이웃이 스스로 일어설 수 있는 든든한 지원</div>\
	<div class='li mb5' onmouseover='TextOn2(2)' onmouseout='' onclick='link(3,3,2)'>Mobile/IT</div>\
	<div id='cont02' class='cont' onclick='link(3,3,2)'>넉넉한 세상을 위한 모바일 나눔 방정식</div>\
	<div class='li' onmouseover='TextOn2(3)' onmouseout='' onclick='link(3,3,3)'>교육/장학</div>\
	<div id='cont03' class='cont' onclick='link(3,3,3)'>미래를 위한 인재 양성</div>\
	<div class='li' onmouseover='TextOn2(4)' onmouseout='' onclick='link(3,3,4)'>자원봉사</div>\
	<div id='cont04' class='cont' onclick='link(3,3,4)'>우리의 땀방울에 세상이 밝아집니다.</div>\
	<div class='li' onmouseover='TextOn2(5)' onmouseout='' onclick='link(3,3,5)'>글로벌 사회공헌</div>\
	<div id='cont05' class='cont' onclick='link(3,3,5)'>세계로 뻗어가는 SK텔레콤 온정의 손길</div>\
	<div class='li' onmouseover='TextOn2(6)' onmouseout='' onclick='link(3,3,6)'>환경/문화/예술</div>\
	<div id='cont06' class='cont' onclick='link(3,3,6)'>문화 격차가 없는 사회를 위한 환경/문화/예술 지원</div>\
	</div>\
	<div class='mt15 pb15' style='width:111px;border-bottom:1px solid #DEDCD5;'><a href='javascript:link(3,1,2);'><img src='/img/common/right/social_img03.gif'></a></div>\
	<a href='javascript:link(3,2,1);'><img src='/img/common/right/social_img02.gif' class='mt15 mb5'></a>\
</div>\
");
}
else{
document.write("\
	<img src='/img/common/right0"+globalHn+".gif' usemap='#Map_right0"+globalHn+"'><br>\
	<!-- 2008-07-17 수정 -->\
	<map name='Map_right01'>\
		<area shape='rect' coords='7,11,124,81' href='javascript:link(1,1,1);'>\
		<area shape='rect' coords='15,121,49,140' href='javascript:__fnDirectFileDown(\"/kor/SK텔레콤 소개/SK텔레콤 회사소개서_국문.pdf\");'>\
		<area shape='rect' coords='51,121,84,140' href='javascript:__fnDirectFileDown(\"/kor/SK텔레콤 소개/SK텔레콤 회사소개서_영문.pdf\");'>\
		<area shape='rect' coords='86,121,122,140' href='javascript:__fnDirectFileDown(\"/kor/SK텔레콤 소개/SK텔레콤 회사소개서_중문.pdf\");'>\
		<area shape='rect' coords='8,152,129,239' href='javascript:link(1,4,3);'>\
		<area shape='rect' coords='14,263,65,280' href='javascript:downPDF(\"/jsp/sktelecom/rule/PopReportDownload.jsp?f_year_gb=2009\");'>\
		<area shape='rect' coords='69,263,120,280' href='javascript:downPDF(\"/jsp/sktelecom/rule/PopReportEngDownload.jsp?f_year_gb=2009\");'>\
		<area shape='rect' coords='14,283,65,302' href='javascript:downPDF(\"/jsp/sktelecom/rule/PopReportChiDownload.jsp?f_year_gb=2009\");'>\
	</map>\
	<!--2008-02-04 수정-->\
	<map name='Map_right04'>\
		<area shape='rect' coords='15,92,121,111' href='javascript:link(4,4,3);'>\
		<area shape='rect' coords='15,118,121,137' href='javascript:link(4,5,1);'>\
		<area shape='rect' coords='15,144,121,163' href='javascript:link(4,5,2);'>\
		<area shape='rect' coords='15,170,121,189' href='javascript:link(4,5,4);'>\
		<area shape='rect' coords='7,197,128,269' href='javascript:link(4,1);'>\
	</map>\
	<map name='Map_right05'>\
		<area shape='rect' coords='14,92,67,111' href='javascript:link(5,1,3);'>\
		<area shape='rect' coords='69,92,122,111' href='javascript:link(5,2,1);'>\
		<area shape='rect' coords='15,237,67,253' href='javascript:pops(\"/html/tlounge/mediacenter/PopMusicKor.html\",\"\",\"420\",\"650\")'>\
		<area shape='rect' coords='70,236,122,252' href='javascript:pops(\"/html/tlounge/mediacenter/PopMusicEng.html\",\"\",\"420\",\"650\")'>\
		<area shape='rect' coords='14,278,66,294' href='javascript:__fnDirectFileDown(\"/kor/PR 센터/GO! SK telecom_메인송_국문.zip\");'>\
		<area shape='rect' coords='70,279,122,295' href='javascript:__fnDirectFileDown(\"/kor/PR 센터/GO! SK telecom_메인송_영문.zip\");'>\
	</map>\
	<map name='Map_right06'>\
		<area shape='rect' coords='15,91,122,110' href='javascript:link(6,3,1);'>\
		<area shape='rect' coords='16,115,123,130' href='http://www.tworld.co.kr/outsitens.html?http://www.tworld.co.kr/normal.do?serviceId=S_CMIS0001&viewId=V_CENT0099&xtr_cate=LK&xtr_ref=sktelecom.com&xtr_kw=-service&customer AS center' target='_blank'>\
		<area shape='rect' coords='16,135,66,150' href='/html/service/guide/MembershipService.html'>\
		<area shape='rect' coords='72,136,122,150' href='/html/service/guide/Terminal.html'>\
		<area shape='rect' coords='15,167,122,221' href='/html/service/guide/Event.html'>\
	</map>\
");
}

document.write("\
<img src='/img/common/right_banner.gif' class='mt10' usemap='#Map_right_banner'>\
</div>\
<map name='Map_right_banner'>\
	<area shape='rect' coords='13,40,66,59' href='javascript:link(6,1);'>\
	<area shape='rect' coords='68,40,121,59' href='javascript:link(6,2);'>\
	<area shape='rect' coords='13,61,66,80' href='javascript:link(5,1,1);'>\
	<area shape='rect' coords='68,61,121,80' href='javascript:link(5,1,2);'>\
	<area shape='rect' coords='13,126,66,145' href='javascript:link(5,6,1);'>\
	<area shape='rect' coords='68,126,121,145' href='javascript:link(5,6,2);'>\
</map>\
<div id='Topgo' style='position:absolute; left:0; top:"+rightcont.offsetHeight+10+"; width:44; height:15; z-index:1;visibility:visible;'><a href='javascript:ScrollTop();'><img src='/img/common/pullup.gif'></a></div>\
");

//-----따라다니는 탑버튼


var stmnBASE = rightcont.offsetHeight+10;
var stmnGAP = 200;
var stmnTop = rightcont.offsetHeight+10;
var stmnLeft = 810;
var stmnBTTM = 150;
var stmnActivateSpeed = 2;
var stmnScrollSpeed = 2;
var stmnTimer;
var bMove = 1;

// 0.5 sec after action
setTimeout("InitializeTopgo();",500);

function InitializeTopgo() {
//	if ( document.body.scrollHeight < 1000 ) return;
	Topgo.style.display = "inline";
	Topgo.style.top = stmnBASE;
	RefreshTopgo();
	if(cont.offsetHeight<rightcont.offsetHeight+200) cont.style.height = rightcont.offsetHeight+180;//컨텐츠 height 사이즈 조절
}

function RefreshTopgo() {
	stmnBASE = rightcont.offsetHeight+10;
	topNum = Topgo.style.top
	topNum = topNum.replace('px','')
	//-----pull up 버튼이 bottom Background에 내려오지 않게 컨텐츠 height 사이즈 조절
	if ((rightcont.offsetHeight+10)>parseInt(topNum)){
		Topgo.style.top = rightcont.offsetHeight+10;
		stmnTop = rightcont.offsetHeight+10;
	}
	if(cont.offsetHeight<rightcont.offsetHeight+100) cont.style.height = rightcont.offsetHeight+100;

	//-----스크린 사이즈가 작을경우 스크롤생겼을때의 컨텐츠 width값조절
	if(document.body.clientWidth < 963){
		document.getElementById("toparea").style.width = 963;
		document.getElementById("contarea").style.width = 809;
	}else{
		document.getElementById("toparea").style.width = 100+"%";
		document.getElementById("contarea").style.width = 100+"%";
	}

	if (!bMove) return

	var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;
	stmnStartPoint = parseInt(Topgo.style.top, 10);
	stmnEndPoint = document.body.scrollTop + stmnGAP;

	if (stmnEndPoint < stmnBASE) stmnEndPoint = stmnBASE;
	stmnRefreshTimer = stmnActivateSpeed;
	if ( stmnStartPoint != stmnEndPoint && stmnEndPoint <= (document.body.scrollHeight - stmnBTTM) ) {
		stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
		Topgo.style.top = parseInt(Topgo.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
		stmnRefreshTimer = stmnScrollSpeed;
	}
	stmnTimer = setTimeout ("RefreshTopgo();", stmnRefreshTimer);
}
//-----따라다니는 탑버튼

function pop1() {
	pop('/html/invest/PopDisclaimer.html','',490,230);
}


// SK텔레콤 소개 > 경영원칙 > 지속가능경영 > 지속가능경영 PDF 다운로드
function downPDF(pdfUrl){
	window.open(CONST_SITE_URL+pdfUrl,"PopPdfDown","width=420,height=280,scrollbars=no,status=0");
}
