//À¥ºê¶ó¿ìÀúÅ¸ÀÌÆ²
function title(){
	document.title = "Ä­Å¸Å¸";
}
title();

//  ¸µÅ©¸¦ °É±âÀ§ÇÑ ÇÔ¼ö

function GoUrl2(){
	document.location.href = "http://www.coffeecantata.co.kr/community/event/event_view.asp?en_no=47";
}

function GoUrl(name, win) {
	if (name == null) {
			alert("¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù.");
			return;	
	} else {
		if (win == null) {
			if(name.indexOf("(") != -1) 	eval(name);
			else									
				document.location.href = eval(name);
		} else {
				window.open(eval(name), win);
		}
	}
}

var pub = "";

home=pub+"/index.asp";
login=pub+"/community/login.asp";
logout="http://member.lottetown.com/door/sso/logout.jsp?sid=CANTATA";
//modify=pub+"/community/modify.asp";
modify="https://member.lottetown.com/door/user/change_user_info.jsp?sid=CANTATA&returnurl=http://www.coffeecantata.co.kr";
signup="https://member.lottetown.com/door/user/regUser.jsp?sid=CANTATA&returnurl=";
sitemap=pub+"/community/sitemap.asp";
family01="http://company.lottechilsung.co.kr/";
family02="http://www.lottechilsung.co.kr/";
family03="/agreement.asp";

family04="/privacy.asp";

brand=pub+"/brand/cantata.asp";
	cantata =  pub+"/brand/cantata.asp";
		cantata01 =  pub+"/brand/premium.asp";
		cantata02 =  pub+"/brand/taste.asp";
		cantata03 =  pub+"/brand/lifestyle.asp";
	everytime =  pub+"/brand/everytime.asp";
	bean =  pub+"/brand/bean.asp";
	cafe =  pub+"/brand/menu.asp";
		shop =  pub+"/brand/shop.asp";
	download =  pub+"/brand/player.asp";
	franchise =  pub+"/brand/franchise_01_openinfo.asp";

community=pub+"/community/community_main.asp";
	suda=pub+"/community/suda/suda.asp"; //¼ö´Ù¹æ
	coffeetime=pub+"/community/time/coffeetime.asp";  //Ä¿ÇÇÅ¸ÀÓ
	mailbox=pub+"/community/mailbox/mailbox.asp";  //¸ÞÀÏ¹Ú½º 
		letterWrite=pub+"/community/mailbox/mail_step1.asp";  //¸ÞÀÏ¾²±â
	blog=pub+"/community/blog/blog.asp"; //ºí·¯±×
	cantata_event=pub+"/community/event/event_view.asp?en_no=53";  //ÀÌº¥Æ®
		cantata_event01=pub+"/community/event/event.asp";  //ÀÌº¥Æ®º¸±â
		cantata_event02=pub+"/community/announcement/event_win.asp";  //´çÃ·ÀÚ¹ßÇ¥




spam="javascript:popup('/avis/etc/pop_spam.jsp','spam',462,264,'no')";



function Right(){
	if (SectionName == 'community') {
		document.write("<script type='text/javascript'>insertFlashObject('63', '100%', '/swf/tab_community.swf', '','', 'transparent', '')</script>")
	}else {
		document.write("<script type='text/javascript'>insertFlashObject('63', '100%', '/swf/tab_brand.swf', '','', 'transparent', '')</script>")
	}
}

//ÇÃ·¡½Ã
function getFlashObjectString(width, height, path, flashvars, idname, wmode, fullscreen){
	
	// Åõ¸íµµ ÃÊ±â°ª ¼³Á¤
	/*if(wmode==true || wmode=="true" || wmode=="transparent"){
		wmode = "transparent";	
	}else{
		wmode = "window";	
	}*/
	if(wmode != "window"){
		wmode = "transparent";
	}
	
	// ÀüÃ¼Ã¢ ÃÊ±â°ª ¼³Á¤
	if(fullscreen==true || fullscreen=="true"){
		fullscreen = "true";
	}else{
		fullscreen = "false";	
	}
	
	
	// opening object tag for IE
	var str = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ";
	str += " codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ";
	str += " id='" + idname + "' ";
	str += "width='" + width + "' height='" + height + "' >";
	
		// param tags
		str += "	<param name='quality' value='high' />";
		str += "	<param name='allowScriptAccess' value='always' />";
		str += "	<param name='allowFullScreen' value='" + fullscreen + "' />";
		str += "	<param name='movie' value='" + path + "' />";
		str += "	<param name='wmode' value='" + wmode + "' />";
		str += "	<param name='flashVars' value='" + flashvars + "' />";
		
		// embed tag for none-IE
		str += "	<embed src='" + path + "' ";
		str += "		width='" + width + "' "
		str += "		height='" + height + "' ";
		str += "		flashVars='" + flashvars + "'";
		str += "		wmode='" + wmode + "'";
		str += "		name='" + idname + "' ";
		str += "		allowFullScreen='" + fullscreen + "' ";
		str += "		allowScriptAccess='always' swfLiveConnect='true' ";
		str += "		type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	
	// closing object tag
	str += "</object>";
	
	return str;
	
}


function insertFlashObject(width, height, path, flashvars, idname, wmode, fullscreen){
	
	var str = getFlashObjectString(width, height, path, flashvars, idname, wmode, fullscreen);
	document.write(str);
	
}
	
function getFlashApp(appName)
{
	//Å©·Î½º ºê¶ó¿ìÂ¡	
	if(navigator.appName.indexOf('Microsoft') != -1)
	{
		return window[appName];
	}
	else
	{
		return document[appName];
	}	
}

function trim(str)    {
	return str.replace(/(^\s*)|(\s*$)/g, "");
}


function insertVisual(){
	if (depth2 == '1'){
		document.write("<script type='text/javascript'>insertFlashObject('260', '600', '/swf/motion/suda_motion.swf', '','', 'transparent', '')</script>")
	} else if(depth2 == '2'){
		document.write("<script type='text/javascript'>insertFlashObject('260', '650', '/swf/motion/coffee_motion.swf', '','', 'transparent', '')</script>")
	} else if(depth2 == '3'){
		document.write("<script type='text/javascript'>insertFlashObject('300', '700', '/swf/motion/mailBox_motion.swf', '','', 'transparent', '')</script>")
	}	else if(depth2 == '4'){
		document.write("<script type='text/javascript'>insertFlashObject('260', '520', '/swf/motion/blog_motion.swf', '','', 'transparent', '')</script>")
	}else if(depth2 == '5'){
		document.write("<script type='text/javascript'>insertFlashObject('260', '700', '/swf/motion/event_motion.swf', '','', 'transparent', '')</script>")
	}else if(depth2 == '6'){
		document.write("<script type='text/javascript'>insertFlashObject('190', '450', '/swf/motion/sitemap_motion.swf', '','', 'transparent', '')</script>")
	}
}


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 ''; 
}

