<BODY>
<script language="javascript">
<!--
/////////////////////////////////////////////
// :*: Happyscript :*: //
// 소스 :http://www.happyscript.net //
// 편집 and 소스 설명 : Magic //
// E-mail : happyscript@hanmail.net //
/////////////////////////////////////////////
// <body>와 </body>사이에 넣어주세요..
function Go(){return}
// 주석이 없는 라인은 주석 붙인이도 모름 --;; 아시는 분 주석 붙여주세요.
var NoOffFirstLineMenus=5; // 아래 메뉴 갯수 (메인에서 맨첨 눈에 보이는 테이블 수로 이해하면 빠를듯)
// 여기서는 Menu1,Menu2,Menu3,Menu4,Menu5 이므로 5개
// Menu2_2는 메뉴갯수에 포함되지 않는다. 2번 메뉴의 보조이기 때문에
var LowBgColor='#F2F2F2'; // 메뉴 배경색
var HighBgColor='#dfdfff'; // 메뉴에 마우스 올렸을때 색
var FontLowColor='black'; // 메뉴 글자색
var FontHighColor='black'; // 메뉴 글자에 마우스 올렸을때 색
var BorderColor='black'; // 메뉴 테두리 색
var BorderWidth=1; // 겉 테두리 설정 (0 : 없음 , 1 : 있음)
var BorderBtwnElmnts=1; // 테두리안 가로선 세로선 설정 (0 : 없음 , 1 : 있음)
var FontFamily="굴림체" // 글자체 (여러개 설정시는 ,로 구분)
var FontSize=9; // 글자 크기
var FontBold=1; // 글자 굵기 설정 (0 : 없음 , 1 : 있음)
var FontItalic=0; // 글자 기울임 설정 (0 : 없음 , 1 : 있음)
var MenuTextCentered=0; // 글자 중간 배치 (0 : 없음 , 1 : 있음)
var MenuCentered='left'; // 전체 메뉴 위치 (좌, 중앙, 우)
var MenuVerticalCentered='top'; // 전체 메뉴 위치 (상, 하)
var ChildOverlap=.0; // 하위메뉴 정렬 - 좌 우 (0 : 겹침 , 1 : 안겹침)
var ChildVerticalOverlap=.0; // 하위메뉴 정렬 - 상 하 (0 : 겹침 , 1 : 안겹침)
var StartTop=0; // 브라우저와 위쪽 공간 설정 (0 : 없음 , 1 : 있음)
var StartLeft=0; // 브라우저와 왼쪽 공간 설정 - (0 : 없음 , 1 : 있음)
var VerCorrect=0;
var HorCorrect=0;
var LeftPaddng=3; // 테이블 왼쪽 라인과 글자사이 공간 설정
var TopPaddng=2; // 테이블 위쪽 라인과 글자사이 공간 설정
var FirstLineHorizontal=1; // 메뉴 정렬 방법 (0 : 세로 , 1 : 가로)
var MenuFramesVertical=0;
var DissapearDelay=500;
var TakeOverBgColor=1;
var FirstLineFrame='navig';
var SecLineFrame='space';
var DocTargetFrame='space';
var WebMasterCheck=0;
// 메뉴 설정 부분 (이해하기 쉬움 ^^)
// 화살표는 가로용으로 되어었습니다. 세로용에서는 화살표가 맞지 않으니 수정하신 후 사용하세요.
// 화살표가 있는 부분은 마우스를 올리면 하위 메뉴를 나타내는 부분이다
// 그래서 경로 적는 부분을 #으로 해줘야 한다
// #으로 해주지 않고 경로를 적어도 되지만 그 부분을 누르면 적힌 경로대로 연결이 되어 버린다.
// ("메뉴명","경로",하위메뉴 갯수,메뉴 세로크기,메뉴 가로크기)
// 소스 수정 불가 부분..
var AgntUsr=navigator.userAgent.toLowerCase();
var DomYes=(document.getElementById)?1:0;
var NavYes=(AgntUsr.indexOf('mozilla')!=-1&&AgntUsr.indexOf('compatible')==-1)?1:0;
var ExpYes=(AgntUsr.indexOf('msie')!=-1)?1:0;
var Opr5=(AgntUsr.indexOf('opera 5')!=-1||AgntUsr.indexOf('opera/5')!=-1)?1:0;
var DomNav=(DomYes&&NavYes)?1:0;
var DomExp=(DomYes&&ExpYes)?1:0;
var Nav4=(NavYes&&!DomYes&&document.layers)?1:0;
var Exp4=(ExpYes&&!DomYes&&document.all)?1:0;
var PosStrt=((NavYes||ExpYes)&&!Opr5)?1:0;
if(AgntUsr.indexOf('mac')!=-1&&DomExp){DomExp=0;Exp4=1}
var FirstLocation,SecLocation,DocLocation;
var SecWindowWidth,FirstWindowWidth,FirstWindowHeight;
var SecLoadAgainWin;
var FirstColPos,SecColPos,DocColPos;
var InitRecursLevel=0,CreateRecursLevel=0,PosRecursLevel=0;
var ShowFlag=0,FirstCreate=1,Loaded=0,Created=0,InitFlag,AcrossFrames=1;
var FirstContainer=null,CurrentOver=null,CloseTimer=null;
var CenterText,TxtClose,ImgStr;
var Ztop=100;
var M_StartTop=StartTop,M_StartLeft=StartLeft;
var LeftExtra=(DomNav)?LeftPaddng:0;
var TopExtra=(DomNav)?TopPaddng:0;
var M_Hide=(Nav4)?'hide':'hidden';
var M_Show=(Nav4)?'show':'visible';
var Par=(parent.frames[0])?parent:window;
var Doc=Par.document;
var Bod=Doc.body;
var Trigger=(NavYes||Opr5)?Par:Bod;
WebMasterAlerts=["No such frame: ","Item not defined: ","Item needs height: ","Item needs width: ","Warning-Item doesn't need height: ","Warning-Item doesn't need width: ","Item Oke ","Menu tree oke"];
if(DomNav&&!Opr5)Trigger.addEventListener('load',Go,false);
else Trigger.onload=Go;
Trigger.onresize=(Nav4)?ReDoWhole:RePos;
function cancelselect(){return false}
function RePos(){
FirstWindowWidth=(ExpYes)?FirstLocation.document.body.clientWidth:FirstLocation.innerWidth;
FirstWindowHeight=(ExpYes)?FirstLocation.document.body.clientHeight:FirstLocation.innerHeight;
SecWindowWidth=(ExpYes)?SecLocation.document.body.clientWidth:SecLocation.innerWidth;
SecWindowHeight=(ExpYes)?SecLocation.document.body.clientHeight:SecLocation.innerHeight;
if(MenuCentered)CalcLeft();
if(MenuVerticalCentered)CalcTop();
PositionMenuStruct(FirstContainer,StartTop,StartLeft)}
function UnLoaded(){
if(CloseTimer)clearTimeout(CloseTimer);Loaded=0; Created=0;
var FCStyle=(Nav4)?FirstContainer:FirstContainer.style;
FCStyle.visibility=M_Hide}
function ReDoWhole(){
Doc.location.reload()}
function Check(WhichMenu,NoOf){
var i,Hg,Wd,La,Li,Nof,array,ArrayLoc=parent.frames[FirstLineFrame];
for(i=0;i<NoOf;i++){
array=WhichMenu+eval(i+1);
if(!ArrayLoc[array]){WebMasterAlert(1,array); return false}
La=ArrayLoc[array][0]; Li=ArrayLoc[array][1]; Nof=ArrayLoc[array][2];
if(i==0){ if(!ArrayLoc[array][3]){WebMasterAlert(2,array); return false}
if(!ArrayLoc[array][4]){WebMasterAlert(3,array); return false}
Hg=ArrayLoc[array][3]; Wd=ArrayLoc[array][4]}
else{ if(ArrayLoc[array][3])WebMasterAlert(4,array);
if(ArrayLoc[array][4])WebMasterAlert(5,array)}
if(!WebMasterAlert(6,'nn'+array+'nwidth: '+Wd+'nheight: '+Hg+'nLabel: '+La+'nLink: '+Li+'nNo of sub items: '+Nof)){WebMasterCheck=0; return true}
if(ArrayLoc[array][2])if(!Check(array+'_',ArrayLoc[array][2])) return false}
return true}
function WebMasterAlert(No,Xtra){
if(WebMasterCheck)return confirm(WebMasterAlerts[No]+Xtra+' ')}
function CalcLeft(){
var Size=FirstWindowWidth;
if(MenuCentered!='left'){
StartLeft=M_StartLeft;
Size-=(FirstLineHorizontal)?(NoOffFirstLineMenus*(eval('Menu1[4]')+BorderWidth)+BorderWidth):(eval('Menu1[4]')+BorderWidth);
if(MenuCentered=='right')StartLeft+=Size; else StartLeft+=Size/2}}
function CalcTop(){
var Size=FirstWindowHeight;
if(MenuVerticalCentered!='top'){
StartTop=M_StartTop;
Size-=(FirstLineHorizontal)?(eval('Menu1[3]')+BorderWidth):(NoOffFirstLineMenus*(eval('Menu1[3]')+BorderWidth)+BorderWidth);
if(MenuVerticalCentered=='bottom')StartTop+=Size; else StartTop+=Size/2}}
function PositionMenuStruct(CntnrPntr,Tp,Lt){
var Topi,Lefti,Hori;
var Cntnr=CntnrPntr;
var Mmbr=Cntnr.FirstMember;
var CntnrStyle=(!Nav4)?Cntnr.style:Cntnr;
var MmbrStyle=(!Nav4)?Mmbr.style:Mmbr;
var PadLeft=(Mmbr.value.indexOf('<')==-1)?LeftExtra:0;
var PadTop=(Mmbr.value.indexOf('<')==-1)?TopExtra:0;
var MmbrWidth=(!Nav4)?parseInt(MmbrStyle.width)+PadLeft:MmbrStyle.clip.width;
var MmbrHeight=(!Nav4)?parseInt(MmbrStyle.height)+PadTop:MmbrStyle.clip.height;
var CntnrWidth=(!Nav4)?parseInt(CntnrStyle.width):CntnrStyle.clip.width;
var CntnrHeight=(!Nav4)?parseInt(CntnrStyle.height):CntnrStyle.clip.height;
var SubTp,SubLt;
PosRecursLevel++;
if (PosRecursLevel==1 && AcrossFrames)(!MenuFramesVertical)?Tp=FirstWindowHeight-CntnrHeight+((Nav4)?4:0):Lt=FirstWindowWidth-CntnrWidth;
if (PosRecursLevel==2 && AcrossFrames)(!MenuFramesVertical)?Tp=0:Lt=0;
if (PosRecursLevel==2 && AcrossFrames){Tp+=VerCorrect;Lt+=HorCorrect}
CntnrStyle.top=Cntnr.OrgTop=Tp;
CntnrStyle.left=Cntnr.OrgLeft=Lt;
if (PosRecursLevel==1 && FirstLineHorizontal){Hori=1; Lefti=CntnrWidth-MmbrWidth-2*BorderWidth;Topi=0}
else{Hori=Lefti=0; Topi=CntnrHeight-MmbrHeight-2*BorderWidth}
while(Mmbr!=null){
PadLeft=(Mmbr.value.indexOf('<')==-1)?LeftExtra:0;
PadTop=(Mmbr.value.indexOf('<')==-1)?TopExtra:0;
MmbrStyle=(!Nav4)?Mmbr.style:Mmbr;
MmbrWidth=(!Nav4)?parseInt(MmbrStyle.width)+PadLeft:MmbrStyle.clip.width;
MmbrHeight=(!Nav4)?parseInt(MmbrStyle.height)+PadTop:MmbrStyle.clip.height;
MmbrStyle=(!Nav4)?Mmbr.style:Mmbr;
MmbrStyle.left=Lefti+BorderWidth;
MmbrStyle.top=Topi+BorderWidth;
if(Nav4)Mmbr.CmdLyr.moveTo(Lefti+BorderWidth,Topi+BorderWidth);
if(Mmbr.ChildCntnr){
if(Hori){ SubTp=Tp+Topi+MmbrHeight+BorderWidth; SubLt=Lt+Lefti}
else{ SubLt=Lt+Lefti+(1-ChildOverlap)*MmbrWidth+BorderWidth; SubTp=Tp+Topi+ChildVerticalOverlap*MmbrHeight}
PositionMenuStruct(Mmbr.ChildCntnr,SubTp,SubLt)}
(Hori)?Lefti-=(BorderBtwnElmnts)?(MmbrWidth+BorderWidth):(MmbrWidth):Topi-=(BorderBtwnElmnts)?(MmbrHeight+BorderWidth):(MmbrHeight);
Mmbr=Mmbr.PrevMember}
PosRecursLevel--}
function Initiate(){
if(InitFlag) Init(FirstContainer)}
function Init(CntnrPntr){
var MemberContainer=CntnrPntr;
var Member=MemberContainer.FirstMember;
var MCStyle=(Nav4)?MemberContainer:MemberContainer.style;
InitRecursLevel++;
MCStyle.visibility=(InitRecursLevel==1)?M_Show:M_Hide;
while(Member!=null){
if(Member.ChildCntnr) Init(Member.ChildCntnr);
Member=Member.PrevMember}
InitRecursLevel--}
function ClearAllChilds(Pntr,ChldPntr){
var CPCCStyle;
while (Pntr){
if(Pntr.ChildCntnr){
CPCCStyle=(Nav4)?Pntr.ChildCntnr:Pntr.ChildCntnr.style;
if(Pntr.ChildCntnr!=ChldPntr)CPCCStyle.visibility=M_Hide;
ClearAllChilds(Pntr.ChildCntnr.FirstMember,ChldPntr)}
Pntr=Pntr.PrevMember}}
function OpenMenu(){
if(!Loaded||!Created) return;
var TopScrolled=(AcrossFrames)?(ExpYes)?SecLocation.document.body.scrollTop:SecLocation.pageYOffset:0;
var LeftScrolled=(AcrossFrames)?(ExpYes)?SecLocation.document.body.scrollLeft:SecLocation.pageXOffset:0;
var ChildCont=(Nav4)?this.LowLyr.ChildCntnr:this.ChildCntnr;
var ThisHeight=(Nav4)?this.clip.height:parseInt(this.style.height);
var ThisWidth=(Nav4)?this.clip.width:parseInt(this.style.width);
CurrentOver=this; InitFlag=0;
if(ShowFlag){
ClearAllChilds(this.Container.FirstMember,ChildCont);
if(this.Level==1) ShowFlag=0}
if(Nav4){ if(this.LowLyr.value.indexOf('<img')==-1){
this.LowLyr.bgColor=this.LowLyr.HighBack;
this.LowLyr.document.write(this.LowLyr.Overvalue);
this.LowLyr.document.close()}}
else{ this.style.backgroundColor=this.HighBack;
this.style.color=this.HighFontColor}
if(ChildCont!=null) {
var ChildContWidth=(Nav4)?this.LowLyr.ChildCntnr.clip.width:parseInt(this.ChildCntnr.style.width);
var ChildContHeight=(Nav4)?this.LowLyr.ChildCntnr.clip.height:parseInt(this.ChildCntnr.style.height);
var ChCntTL=(Nav4)?this.LowLyr.ChildCntnr:this.ChildCntnr.style;
var SubLt=ChildCont.OrgLeft+LeftScrolled;
var SubTp=ChildCont.OrgTop+TopScrolled;
while(SubLt+ChildContWidth>SecWindowWidth+LeftScrolled){
if(this.Level==1)SubLt=SecWindowWidth+LeftScrolled-ChildContWidth;
else SubLt-=ChildContWidth}
while(SubTp+ChildContHeight>TopScrolled+SecWindowHeight){
if(this.Level==1)SubTp=TopScrolled+SecWindowHeight-ChildContHeight;
SubTp-=ChildContHeight}
ChCntTL.top=SubTp;
ChCntTL.left=SubLt;
ChCntTL.visibility=M_Show;
ShowFlag=1}
status=this.LinkTxt}
function CloseMenu(){
if(!Loaded||!Created) return;
if(Nav4){if(this.LowLyr.value.indexOf('<img')==-1){
this.LowLyr.bgColor=this.LowLyr.LowBack;
this.LowLyr.document.write(this.LowLyr.value);
this.LowLyr.document.close()}}
else{ this.style.backgroundColor=this.LowBack;
this.style.color=this.LowFontColor}
status='';
if(this==CurrentOver){
InitFlag=1;
if (CloseTimer) clearTimeout(CloseTimer);
CloseTimer=setTimeout('Initiate(CurrentOver)',DissapearDelay)}}