﻿jQuery(document).ready(function($){
	init();				
});

function init() {
	castElements();
	createTicoLNB();
}

function castElements()
{
	jQuery("#lnbTitle").hide();
	jQuery("#lnbArea").hide();
	jQuery("#lnbTitle").delay(300).fadeIn(900);
	jQuery("#lnbArea").delay(700).fadeIn(800);
}

function createTicoLNB() {
	buildTicoLnb(jQuery("#lnbArea"), {
		area_wd					:	200,			//	플로우 전체 넓이
		area_hg					:	400,			//	플로우 전체 높이
		ani_speed				:	200,			//	애니메이션 속도(밀리초)
		base_z_index			:	100,			//	기본  z-index 설정
		
		depth_1_css_normal		:	{ "padding-left":17, "color":"#666666", "font-family":"'Cabin Condensed', sans-serif", "font-size":14 },	//	메인메뉴(depth1) 기본 스타일 설정
		depth_1_css_over		:	{ "padding-left":17, "color":"#ed2790", "font-family":"'Cabin Condensed', sans-serif", "font-size":14 },	//	메인메뉴(depth1) 오버 스타일 설정
		depth_2_css_normal		:	{ "padding-left":18, "color":"#999999", "font-family":"'Cabin Condensed', sans-serif", "font-size":11 },	//	서브메뉴(depth2) 기본 스타일 설정
		depth_2_css_over		:	{ "padding-left":18, "color":"#ed2790", "font-family":"'Cabin Condensed', sans-serif", "font-size":11 },	//	서브메뉴(depth2) 오버 스타일 설정
		depth_3_css_normal		:	{ "padding-left":19, "color":"#888888", "font-family":"'Cabin Condensed', sans-serif", "font-size":9 },		//	서브메뉴(depth3) 기본 스타일 설정
		depth_3_css_over		:	{ "padding-left":19, "color":"#ed2790", "font-family":"'Cabin Condensed', sans-serif", "font-size":9 },		//	서브메뉴(depth3) 오버 스타일 설정
		
		depth_1_height			:	23,				//	메인메뉴(depth1) 기본 height pixel
		depth_2_height			:	16,				//	서브메뉴(depth2) 기본 height pixel
		depth_3_height			:	15,				//	서브메뉴(depth3) 기본 height pixel
		
		depth_1_margin			:	8,				//	메인메뉴(depth1) 기본 margin pixel
		depth_2_margin			:	6,				//	서브메뉴(depth2) 기본 margin pixel
		depth_3_margin			:	5,				//	서브메뉴(depth3) 기본 margin pixel
		
		sub_open_case			:	"click",		//	서브메뉴 오픈되는 마우스 이벤트 종류 ("click", "over", "always")
		current_depth_1			:	0,				//	활성화 1depth 메뉴 순번(숫자 0:none, 1~:메뉴순서) or 메뉴이름(xml상의 TextData or "") 
		current_depth_2			:	0,				//	활성화 2depth 메뉴 순번(숫자 0:none, 1~:메뉴순서) or 메뉴이름(xml상의 TextData or "")
		current_depth_3			:	0,				//	활성화 3depth 메뉴 순번(숫자 0:none, 1~:메뉴순서) or 메뉴이름(xml상의 TextData or "")
		data_xml_url			:	"../xml/menu_data.xml"		//	메뉴 XML 경로		
	});
	jQuery("#lnbArea").css( {"margin-top":20} );
}
