//var str_link='http://iam2.co.kr/mirim/';

//var str_link='http://smileagain.or.kr/home/';


var str_link='/home/';

var cis="";
home =str_link+"/index.html";

map ="#";
cs =cis+"/etc/singo_write.jsp";
recruit=str_link+"/index.html"; 

//about
about01=str_link+"center_intro/intro01.asp"; 
about02=str_link+"center_intro/intro02.asp"; 
about03=str_link+"center_intro/intro03.asp"; 
about04=str_link+"center_intro/intro04.asp"; 
//about04_2=str_link+"/application.asp"; 
about05=str_link+"board/spboard.asp?bbs=105"; 
about06=str_link+"center_intro/intro06.asp"; 

//research
research01=str_link+"board/spboard.asp?bbs=104";
research02=str_link+"board/spboard.asp?bbs=108";
research03=str_link+"research/data03.asp";
research04=str_link+"research/data04.asp";

//depress
depress01=str_link+"depresstion/info01.asp"; //¿¹Á¦portfolio02=str_link+"/portfolio02.asp"; 
depress02=str_link+"depresstion/factor01.asp";
depress03=str_link+"depresstion/treat01.asp";
depress04=str_link+"depresstion/type01.asp";
depress05=str_link+"depresstion/prevention01.asp";
depress06=str_link+"depresstion/faq.asp";
depress07=str_link+"board/spboard.asp?bbs=106";
depress08=str_link+"board/spboard.asp?bbs=107";


//r_site
site01=str_link+"/r_site/r_site01.asp"; 



//partner
part01=str_link+"/com/co0100.php";
part02=str_link+"/bbs/board.php?bo_table=after";
part03=str_link+"/bbs/board.php?bo_table=freeboard";

//±âÅ¸

contact=str_link+"/cus/contactus.asp"; 
intranet="#"; 


function GoUrl(name, mode) {
	if (eval(name) == '') {
		alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");
		return;	
	} else {
		if (!mode) {
    		document.location.href = eval(name);
		}
	}	
}	

// Menu
function GoMenu(name, mode) {
  if (eval(name) == '') {
		alert("Content comming soon.");
		return;
	} else {
    if (!mode) {
    		document.location.href = eval(name);
    } else {
			var values = mode.split('|');
			if(values.length == 2) {
				window.open(eval(name), '', 'width='+eval(values[0])+',height='+eval(values[1]));
			} else if(values.length > 2) {
				window.open(eval(name), '', 'width='+eval(values[0])+',height='+eval(values[1])+","+values[2]);
			} else {
    		window.open(eval(name), '');
			}
  	}
	}
}

//---------------------- °øÅëÆÄÀÏ S -------------------------------// 
function mainimg(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='635' height='408'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/mainimg.swf'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/mainimg.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='635' height='408'></embed> ")
document.writeln(" </object> ")
}

function map(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='401' height='209'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/map.swf'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/map.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='401' height='209'></embed> ")
document.writeln(" </object> ")
}

function mainmap(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='150' height='65'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/mapmain.swf'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/mapmain.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='150' height='65'></embed> ")
document.writeln(" </object> ")
}

function Top_00(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"inc/flash/menu_smile.swf?PageNum=1'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"inc/flash/menu_smile.swf?PageNum=1' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}


function Top_01(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=1&SubNum=1'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=1&SubNum=1' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}


function Top_01_2(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=1&SubNum=2'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=1&SubNum=2' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}


function Top_01_3(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=1&SubNum=3'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=1&SubNum=3' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}



function Top_01_4(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=1&SubNum=4'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=1&SubNum=4' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}

function Top_01_5(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=1&SubNum=5'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=1&SubNum=5' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}

function Top_01_6(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=1&SubNum=6'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=1&SubNum=6' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}


function Top_02(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=2&SubNum=1'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=2&SubNum=1' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}

function Top_02_2(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=2&SubNum=2'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=2&SubNum=2' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}

function Top_02_3(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=2&SubNum=3'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=2&SubNum=3' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}

function Top_02_4(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/gnb_story.swf?PageNum=2&SubNum=4'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=2&SubNum=4' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}



function Top_03(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=3&SubNum=1'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=3&SubNum=1' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}

function Top_03_2(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=3&SubNum=2'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=3&SubNum=2' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}

function Top_03_3(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=3&SubNum=3'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=3&SubNum=3' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}

function Top_03_4(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=3&SubNum=4'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=3&SubNum=4' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}

function Top_03_5(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=3&SubNum=5'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=3&SubNum=5' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}

function Top_03_6(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=3&SubNum=6'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=3&SubNum=6' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}

function Top_04(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/menu_smile.swf?PageNum=4&SubNum=1'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/menu_smile.swf?PageNum=4&SubNum=1' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}


function Top_05(){
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='519' height='81'> ")
document.writeln(" <param name='movie' value='"+str_link+"/inc/flash/gnb_comm.swf?PageNum=5&SubNum=1'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/gnb_comm.swf?PageNum=5&SubNum=1' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='519' height='81'></embed> ")
document.writeln(" </object> ")
}


function Footer(){
document.writeln("<img src='"+str_link+"/images/common/foot.gif' width='825' height='55' border='0' usemap='#footmap'>");
document.writeln("<map name='footmap'>");
document.writeln("<area shape='rect' coords='372,17,518,32' href=javascript:GoUrl('about05_2')>");
document.writeln("</map>");
}

function Right(){
document.writeln("<table width='100%'  border='0' cellspacing='0' cellpadding='0'> ")
document.writeln("<tr> ")
document.writeln("<td height='75'><img src='"+str_link+"/images/spacer.gif' width='40' height='75'></td> ")
document.writeln("</tr> ")
document.writeln("<tr> ")
document.writeln("<td height='183' valign='top' background='"+str_link+"/images/bg1_11.gif'>&nbsp;</td> ")
document.writeln("</tr> ")
document.writeln("<tr> ")
document.writeln(" <td height='183' valign='top' style='padding: 10 0 0 10'> ")
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='74' height='270'> ")
document.writeln(" <param name='movie' value='library/flash/ssbanner.swf'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/ssbanner.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='74' height='270'></embed> ")
document.writeln(" </object></td> ")
document.writeln("</tr> ")
document.writeln("</table> ")
document.writeln("<div id='Layer1' style='position:absolute; left:833px; top:31px; width:85px; height:57px; z-index:1'><img src='"+str_link+"/images/util_03.gif' width='95' height='51' border='0' usemap='#Map'></div> ")
document.writeln("<map name='Map'> ")
document.writeln("<area shape='rect' coords='12,5,81,19' href=javascript:GoUrl('gomail')> ")
document.writeln("<area shape='rect' coords='12,19,81,33' href=javascript:GoUrl('view2006')> ")
document.writeln("<area shape='rect' coords='13,33,81,48' href=javascript:GoUrl('club')> ")
document.writeln("</map> ")
}


function Right_main(){
document.writeln("<table width='100%'  border='0' cellspacing='0' cellpadding='0'> ")
document.writeln("<tr> ")
document.writeln("<td height='75'><img src='"+str_link+"/images/spacer.gif' width='40' height='75'></td> ")
document.writeln("</tr> ")
document.writeln("<tr> ")
document.writeln("<td height='183' valign='top' background='"+str_link+"/images/main/main_09.jpg'>&nbsp;</td> ")
document.writeln("</tr> ")
document.writeln("<tr> ")
document.writeln(" <td height='183' valign='top' style='padding: 10 0 0 10'> ")
document.writeln(" <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='74' height='270'> ")
document.writeln(" <param name='movie' value='library/flash/ssbanner.swf'> ")
document.writeln(" <param name='quality' value='high'> ")
document.writeln(" <embed src='"+str_link+"/inc/flash/ssbanner.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='74' height='270'></embed> ")
document.writeln(" </object></td> ")
document.writeln("</tr> ")
document.writeln("</table> ")
document.writeln("<div id='Layer1' style='position:absolute; left:833px; top:31px; width:85px; height:57px; z-index:1'><img src='"+str_link+"/images/util_03.gif' width='95' height='51' border='0' usemap='#Map'></div> ")
document.writeln("<map name='Map'> ")
document.writeln("<area shape='rect' coords='12,5,81,19' href=javascript:GoUrl('gomail')> ")
document.writeln("<area shape='rect' coords='12,19,81,33' href=javascript:GoUrl('view2006')> ")
document.writeln("<area shape='rect' coords='13,33,81,48' href=javascript:GoUrl('club')> ")
document.writeln("</map> ")
}

//Å¾¹öÆ°
var mover = null
var object = "gotop"

if (navigator.appName.indexOf("Netscape") != -1) {
        var mover = "document.gotop.top = window.pageYOffset"
}
else {
        var mover = "gotop.style.pixelTop = document.body.scrollTop+374"
}

function check() {
        object = "gotop"
        eval(mover)
        setTimeout("check()", 100)
}
function Go_Top(){	
document.writeln("<DIV id='gotop' style='position:absolute; visibility:show; left:925px; top:0px; z-index:2'>")	
document.writeln("<a href='#top'><img src='"+str_link+"/img/common/gotop.gif' width='27' height='11' alt='' border='0'></a>")
document.writeln("</DIV>")
}
				
//Popup 		
function popup(Fn,Win, X, Y, Scroll){
l = (screen.width) ?	(screen.width- X) / 2	: 0;
t = (screen.height) ?	(screen.height- Y) / 2 : 0;	
	NewWindow=window.open(Fn,Win,'width='+X+',height='+Y+',top='+t+',left='+l+',scrollbars='+Scroll+',toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no');
}

//·Î±×¾Æ¿ô
function logOut() {
	if(confirm("·Î±×¾Æ¿ô ÇÏ½Ã°Ú½À´Ï±î?")==true) {
		location.href = "/login/index.asp?s=logout";
	} 
}

