﻿function MM_swapImage() {
	var i,j=0,x,a=MM_swapImage.arguments;
	document.MM_sr=new Array;
	for(i=0;i<(a.length-2);i+=3)
		if ((x=MM_findObj(a[i]))!=null){
			document.MM_sr[j++]=x;
			if(!x.oSrc)
				x.oSrc=x.src;
			x.src=a[i+2];
		}
}
function MM_findObj(n, d) { //v4.0
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImgRestore() {
	var i,x,a=document.MM_sr;
	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
		x.src=x.oSrc;
}
function open_scroll_no(xurl, tar, wid, hei){
	set = 'width='+wid+',height='+hei+',left=0,top=0,toolbar=no,location=no,directory=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no'
	window.open(xurl,tar,set);
}
function open_scroll_yes(xurl, tar, wid, hei){
	set = 'width='+wid+',height='+hei+',left=0,top=0,toolbar=no,location=no,directory=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no'
	window.open(xurl,tar,set);
}
// flash
function flash_wf(flash_name,flash_width,flash_height,flash_id,wmd,idx){
	document.write(" \
		<Object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='"+flash_width+"' HEIGHT='"+flash_height+"' id='"+flash_id+"' ALIGN=''> \
		<PARAM NAME=movie VALUE='"+flash_name+"'> \
		<PARAM NAME=quality VALUE=high> \
	");
	if( wmd == '1' ){
		document.write(" \
			<PARAM NAME=wmode VALUE=transparent> \
		");
	}
	if( idx != '' ){
		document.write(" \
			<param name=flashvars value='"+idx+"'> \
		");
	}
	if( wmd == '1' ){
		if( idx != '' ){
			document.write(" \
				<EMBED src='"+flash_name+"' flashvars='"+idx+"' wmode='transparent' quality=high  WIDTH='"+flash_width+"' HEIGHT='"+flash_height+"' NAME='"+flash_id+"' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'> \
			");
		}else{
			document.write(" \
				<EMBED src='"+flash_name+"' wmode='transparent' quality=high  WIDTH='"+flash_width+"' HEIGHT='"+flash_height+"' NAME='"+flash_id+"' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'> \
			");
		}
	}else{
		if( idx != '' ){
			document.write(" \
				<EMBED src='"+flash_name+"' flashvars='"+idx+"' quality=high  WIDTH='"+flash_width+"' HEIGHT='"+flash_height+"' NAME='"+flash_id+"' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'> \
			");
		}else{
			document.write(" \
				<EMBED src='"+flash_name+"' quality=high  WIDTH='"+flash_width+"' HEIGHT='"+flash_height+"' NAME='"+flash_id+"' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'> \
			");
		}
	}
	document.write(" \
		</EMBED> \
		</OBJECT> \
	");
}
// menu link
function Ch_menu(obj) {
	//alert(obj);
	var cultureCafeUrl = 'culturecafe.homeplus.co.kr';
	switch (obj){
		// 평생교육 아카데미안내
		case "100" :
			location.href= "/intro/index.aspx";
		break;
		case "101" :
			location.href= "/intro/index.aspx";
		break;
		case "102" :
			location.href= "/intro/history.aspx";
		break;
		case "103" :
			location.href= "/intro/store.aspx";
		break;
		case "104" :
			location.href= "/intro/social.aspx";
		break;
		case "105" :
			location.href= "/intro/notice.aspx?StoreCode=0001";
		break;
		// 강좌정보
		case "200" :
			location.href= "/lectureinfo/review.aspx";
		break;
		case "201" :
			location.href= "/lecture_info/index.aspx";
		break;
		case "202" :
			location.href= "/lecture_info/free.aspx";
		break;
		case "203" :
			location.href= "/lecture_info/column.aspx";
		break;
		case "204" :
			location.href= "/lecture_info/sample.aspx";
		break;
		case "205" :
			location.href= "/lectureinfo/review.aspx";
		break;
		// 강좌검색/신청
		case "300" :
			location.href= "/lecture/index.aspx";
		break;
		case "301" :
			location.href= "/lecture/index.aspx";
		break;
		case "302" :
			location.href= "/lecture/help.aspx";
		break;
		case "303" :
			open_scroll_no('/N_lecture/leclist_layout.aspx', 'leclist_layout', '850', '690')
		break;
		case "304" :
			open_scroll_no('/N_lecture/lecSrch_layout.aspx', 'lecSrch_layout', '850', '690')
		break;
		// 인터넷전단
		case "400" :
			location.href= "/internet/index.aspx";
		break;
		// 고객센터
		case "500" :
			location.href= "/customer/index.aspx";
		break;
		case "501" :
			location.href= "/customer/index.aspx";
		break;
		case "502" :
			location.href= "/customer/qna.aspx";
		break;
		// 홈플러스 갤러리
		case "600" :
			location.href= "/gallery/index.aspx";
		break;
		case "601" :
			location.href= "/gallery/index.aspx";
		break;
		case "602" :
			location.href= "/gallery/store.aspx?storeid=kangseo";
		break;
		case "603" :
			location.href= "/gallery/info.aspx";
		break;
		// 마이페이지
		case "700" :
			location.href= "/member/mypage/index.aspx";
		break;
		case "701" :
			location.href= "/member/mypage/index.aspx";
		break;
		case "702" :
			location.href= "/member/mypage/pass.aspx";
		break;
		case "703" :
			location.href= "/member/mypage/cart.aspx";
		break;
		case "704" :
			location.href= "/member/mypage/lecture.aspx";
		break;
		case "705" :
			location.href= "/member/mypage/leave.aspx";
		break;
		// 전문강사모집
		case "800" :
			location.href= "/etc/recruit/index.aspx";
		break;
		case "801" :
			location.href= "/etc/recruit/index.aspx";
		break;
		case "802" :
			location.href= "/etc/recruit/internet.aspx";
		break;
		case "803" :
			location.href= "/etc/recruit/result.aspx";
		break;
		// 강사카페
		case "900" :
			location.href= "http://"+cultureCafeUrl+"/lecturer_com/index.aspx";
		break;
		case "901" :
			location.href= "http://"+cultureCafeUrl+"/lecturer_com/news.aspx";
		break;
		case "902" :
			location.href= "http://"+cultureCafeUrl+"/lecturer_com/library.aspx";
		break;
		case "903" :
			location.href= "http://"+cultureCafeUrl+"/lecturer_com/homeplus.aspx";
		break;
		case "904" :
			location.href= "http://"+cultureCafeUrl+"/lecturer_com/edu.aspx";
		break;

		// 플러스카페 : 커뮤니티 메인
		case "1300" :
			location.href= "http://"+cultureCafeUrl+"/index.aspx";
		break;
		case "1301" :
			location.href= "http://"+cultureCafeUrl+"/category.aspx";
		break;
		case "1302" :
			location.href= "http://"+cultureCafeUrl+"/cafe_request.aspx";
		break;
		case "1303" :
			location.href= "http://"+cultureCafeUrl+"/qna.aspx";
		break;
		case "1304" :
			location.href= "http://"+cultureCafeUrl+"/news.aspx";
		break;
		case "1305" :
			location.href= "http://"+cultureCafeUrl+"/etc/event_plus/index.aspx";
		break;
		// 플러스카페 : 개별
		case "1000" :
			location.href= "http://"+cultureCafeUrl+"/cafe/index.aspx";
		break;
		case "1001" :
			location.href= "http://"+cultureCafeUrl+"/cafe/all.aspx";
		break;
		case "1002" :
			location.href= "http://"+cultureCafeUrl+"/cafe/cafe_news.aspx";
		break;
		case "1003" :
			location.href= "http://"+cultureCafeUrl+"/cafe/cafe_memo.aspx";
		break;
		case "1004" :
			location.href= "http://"+cultureCafeUrl+"/cafe/cafe_board1.aspx";
		break;
		case "1005" :
			location.href= "http://"+cultureCafeUrl+"/cafe/";
		break;
		case "1006" :
			location.href= "http://"+cultureCafeUrl+"/cafe/cafe_photo.aspx";
		break;
		case "1007" :
			location.href= "http://"+cultureCafeUrl+"/cafe/cafe_data.aspx";
		break;
		// 플러스카페 : 카페관리
		case "1100" :
			location.href= "http://"+cultureCafeUrl+"/cafe/manage.aspx";
		break;
		case "1101" :
			location.href= "http://"+cultureCafeUrl+"/cafe/manage_board.aspx";
		break;
		case "1102" :
			location.href= "http://"+cultureCafeUrl+"/cafe/manage_post.aspx";
		break;
		case "1103" :
			location.href= "http://"+cultureCafeUrl+"/cafe/manage_member.aspx";
		break;
		case "1104" :
			location.href= "http://"+cultureCafeUrl+"/cafe/manage_skin.aspx";
		break;
		case "1105" :
			location.href= "http://"+cultureCafeUrl+"/cafe/manage_note.aspx";
		break;
		case "1106" :
			location.href= "http://"+cultureCafeUrl+"/cafe/manage_support.aspx";
		break;
		case "1107" :
			location.href= "http://"+cultureCafeUrl+"/cafe/manage_close.aspx";
		break;
		// 플러스카페 : 나의 쪽지함
		case "1200" :
			location.href= "http://"+cultureCafeUrl+"/message/index.aspx";
		break;
		case "1201" :
			location.href= "http://"+cultureCafeUrl+"/message/message_receive.aspx";
		break;
		case "1202" :
			location.href= "http://"+cultureCafeUrl+"/message/message_send.aspx";
		break;
		case "1203" :
			location.href= "http://"+cultureCafeUrl+"/message/message_add.aspx";
		break;
		case "1204" :
			location.href= "http://"+cultureCafeUrl+"/message/message_List.aspx";
		break;
		// 이벤트 플러스
		case "1400" :
			location.href= "/etc/event/index.aspx";
		break;
		case "1401" :
			location.href= "/etc/event/index.aspx";
		break;
		case "1402" :
			location.href= "/etc/event/past.aspx";
		break;
		case "1403" :
			location.href= "/etc/event/prize.aspx";
		break;
	}
}


function EventFlash01() {
	location.href= "http://culturecafe.homeplus.co.kr/category.aspx";
}
function EventFlash02() {
	location.href= "http://culture.homeplus.co.kr/lectureinfo/review.aspx";
}
function EventFlash03() {
	location.href= "http://culturecafe.homeplus.co.kr/index.aspx";
}
function EventFlash04() {
	location.href= "http://culturecafe.homeplus.co.kr/etc/event_plus/index.aspx";
}