jQuery(function($){
	var Pano = {};
	Pano.imgPath = "/sub/s1/vr/images/scenes/";
	Pano.list = {
		img5_1	: Pano.imgPath + "5F/5_1.jpg",
		img5_2	: Pano.imgPath + "5F/5_2.jpg",
		img5_3	: Pano.imgPath + "5F/5_3.jpg",
		img5_4	: Pano.imgPath + "5F/5_4.jpg",
		img5_5	: Pano.imgPath + "5F/5_5.jpg",
		img5_6	: Pano.imgPath + "5F/5_6.jpg",
		img5_7	: Pano.imgPath + "5F/5_7.jpg",
		img5_8	: Pano.imgPath + "5F/5_8.jpg",
		img5_9	: Pano.imgPath + "5F/5_9.jpg",
		img5_11	: Pano.imgPath + "5F/5_11.jpg",
		img5_12	: Pano.imgPath + "5F/5_12.jpg",
		img5_13	: Pano.imgPath + "5F/5_13.jpg",
		img5_16	: Pano.imgPath + "5F/5_16.jpg",
		img5_17	: Pano.imgPath + "5F/5_17.jpg",

		img6_1	: Pano.imgPath + "6F/6_1.jpg",
		img6_2	: Pano.imgPath + "6F/6_2.jpg",
		img6_3	: Pano.imgPath + "6F/6_3.jpg",
		img6_6	: Pano.imgPath + "6F/6_6.jpg",
		img6_7	: Pano.imgPath + "6F/6_7.jpg",
		img6_8	: Pano.imgPath + "6F/6_8.jpg",
		img6_9	: Pano.imgPath + "6F/6_9.jpg",
		img6_10	: Pano.imgPath + "6F/6_10.jpg",
		img6_11	: Pano.imgPath + "6F/6_11.jpg",
		img6_12	: Pano.imgPath + "6F/6_12.jpg",
		img6_13	: Pano.imgPath + "6F/6_13.jpg",
		img6_14	: Pano.imgPath + "6F/6_14.jpg",
		img6_15	: Pano.imgPath + "6F/6_15.jpg",
		img6_16	: Pano.imgPath + "6F/6_16.jpg",
		img6_17	: Pano.imgPath + "6F/6_17.jpg",
		img6_18	: Pano.imgPath + "6F/6_18.jpg",
		img6_19	: Pano.imgPath + "6F/6_19.jpg",
		img6_20	: Pano.imgPath + "6F/6_20.jpg",
		img6_21	: Pano.imgPath + "6F/6_21.jpg",
		img6_22	: Pano.imgPath + "6F/6_22.jpg",
		img6_23	: Pano.imgPath + "6F/6_23.jpg",

		img7_1	: Pano.imgPath + "7F/7_1.jpg",
		img7_2	: Pano.imgPath + "7F/7_2.jpg",
		img7_3	: Pano.imgPath + "7F/7_3.jpg",
		img7_4	: Pano.imgPath + "7F/7_4.jpg",
		img7_5	: Pano.imgPath + "7F/7_5.jpg",
		img7_6	: Pano.imgPath + "7F/7_6.jpg",
		img7_7	: Pano.imgPath + "7F/7_7.jpg",
		img7_8	: Pano.imgPath + "7F/7_8.jpg",
		img7_9	: Pano.imgPath + "7F/7_9.jpg",
		img7_10	: Pano.imgPath + "7F/7_10.jpg",
		img7_11	: Pano.imgPath + "7F/7_11.jpg",
		img7_12	: Pano.imgPath + "7F/7_12.jpg",
		img7_13	: Pano.imgPath + "7F/7_13.jpg",
		img7_14	: Pano.imgPath + "7F/7_14.jpg",
		img7_15	: Pano.imgPath + "7F/7_15.jpg",

		img8_1	: Pano.imgPath + "8F/8_1.jpg",
		img8_2	: Pano.imgPath + "8F/8_2.jpg",
		img8_3	: Pano.imgPath + "8F/8_3.jpg",
		img8_4	: Pano.imgPath + "8F/8_4.jpg",
		img8_5	: Pano.imgPath + "8F/8_5.jpg",
		img8_6	: Pano.imgPath + "8F/8_6.jpg",
		img8_7	: Pano.imgPath + "8F/8_7.jpg",

		img9_1	: Pano.imgPath + "9F/9_1.jpg",
		img9_2	: Pano.imgPath + "9F/9_2.jpg",
		img9_3	: Pano.imgPath + "9F/9_3.jpg",
		img9_4	: Pano.imgPath + "9F/9_4.jpg",

		img10_1	: Pano.imgPath + "10F/10_1.jpg",
		img10_2	: Pano.imgPath + "10F/10_2.jpg",
		img10_3	: Pano.imgPath + "10F/10_3.jpg",
		img10_4	: Pano.imgPath + "10F/10_4.jpg",
		img10_5	: Pano.imgPath + "10F/10_5.jpg"
	};

	var viewer = pannellum.viewer('panorama', {
		"default": {
			"firstScene": "5_1",
			"sceneFadeDuration": 1000,
			"autoRotate": -2,
			"autoRotateInactivityDelay": 1000,
			"autoLoad": true,
			"hfov": 120,
			"yaw": 120
		},
		"scenes": {
			"5_1": {
				"type": "equirectangular",
				"panorama": Pano.list.img5_1,
				"title": "병원 로비",
				"navIndex" : 1,
				"hotSpots": [
					{
						"pitch": -15,
						"yaw": 180,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_2"
					},
					{
						"pitch": -7,
						"yaw": 185,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_3"
					},
					{
						"pitch": -10,
						"yaw": 90,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_7"
					},
					{
						"pitch": -2,
						"yaw": 340,
						"type": "scene",
						"text": "6층 - MRI / 검사 / 내과 / 건감검진센터",
						"sceneId": "6_20"
					}
				]
			},
			"5_2": {
				"type": "equirectangular",
				"panorama": Pano.list.img5_2,
				"title": "병원 로비",
				"navIndex" : 1,
				"hotSpots": [
					{
						"pitch": -14,
						"yaw": 40,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_1"
					},
					{
						"pitch": -14,
						"yaw": 245,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_3"
					},
					{
						"pitch": -2,
						"yaw": 233,
						"type": "scene",
						"text": "진료실",
						"sceneId": "5_17"
					},
					{
						"pitch": -12,
						"yaw": 200,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_4"
					}
				]
			},
			"5_3": {
				"type": "equirectangular",
				"panorama": Pano.list.img5_3,
				"title": "병원 로비",
				"navIndex" : 1,
				"yaw": 40,
				"hotSpots": [
					{
						"pitch": -7,
						"yaw": 30,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_1"
					},
					{
						"pitch": -15,
						"yaw": 40,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_2"
					},
					{
						"pitch": -20,
						"yaw": 115,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_4"
					},
					{
						"pitch": -8,
						"yaw": 115,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_5"
					},
					{
						"pitch": -2,
						"yaw": 170,
						"type": "scene",
						"text": "진료실",
						"sceneId": "5_17"
					}
				]
			},
			"5_17": {
				"type": "equirectangular",
				"panorama": Pano.list.img5_17,
				"title": "진료실",
				"navIndex" : 1,
				"yaw": 160,
				"hotSpots": [
					{
						"pitch": -2,
						"yaw": 35,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_3"
					}
				]
			},
			"5_4": {
				"type": "equirectangular",
				"panorama": Pano.list.img5_4,
				"title": "병원 로비",
				"navIndex" : 1,
				"yaw": 0,
				"hotSpots": [
					{
						"pitch": -10,
						"yaw": 320,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_2"
					},
					{
						"pitch": -14,
						"yaw": 280,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_3"
					},
					{
						"pitch": -2,
						"yaw": 250,
						"type": "scene",
						"text": "진료실",
						"sceneId": "5_17"
					},
					{
						"pitch": -2,
						"yaw": 120,
						"type": "scene",
						"text": "진료실",
						"sceneId": "5_16"
					},
					{
						"pitch": -13,
						"yaw": 100,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_5"
					},
					{
						"pitch": -5,
						"yaw": 50,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_6"
					}
				]
			},
			"5_5": {
				"type": "equirectangular",
				"panorama": Pano.list.img5_5,
				"title": "병원 로비",
				"navIndex" : 1,
				"yaw": 330,
				"hotSpots": [
					{
						"pitch": -7,
						"yaw": 295,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_3"
					},
					{
						"pitch": -20,
						"yaw": 290,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_4"
					},
					{
						"pitch": -2,
						"yaw": 205,
						"type": "scene",
						"text": "진료실",
						"sceneId": "5_16"
					},
					{
						"pitch": -14,
						"yaw": 30,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_6"
					},
					{
						"pitch": -7,
						"yaw": 25,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_7"
					}
				]
			},
			"5_16": {
				"type": "equirectangular",
				"panorama": Pano.list.img5_16,
				"title": "진료실",
				"navIndex" : 1,
				"yaw": 160,
				"hotSpots": [
					{
						"pitch": -7,
						"yaw": 30,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_5"
					}
				]
			},
			"5_6": {
				"type": "equirectangular",
				"panorama": Pano.list.img5_6,
				"title": "병원 로비",
				"navIndex" : 1,
				"yaw": 230,
				"hotSpots": [
					{
						"pitch": -10,
						"yaw": 30,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_7"
					},
					{
						"pitch": -5,
						"yaw": 55,
						"type": "scene",
						"text": "블럭실",
						"sceneId": "5_13"
					},
					{
						"pitch": -15,
						"yaw": 210,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_5"
					},
					{
						"pitch": -3,
						"yaw": 215,
						"type": "scene",
						"text": "진료실",
						"sceneId": "5_16"
					}
				]
			},
			"5_13": {
				"type": "equirectangular",
				"panorama": Pano.list.img5_13,
				"title": "블럭실",
				"navIndex" : 1,
				"yaw": 110,
				"hotSpots": [
					{
						"pitch": -7,
						"yaw": 260,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_7"
					},
					{
						"pitch": -14,
						"yaw": 15,
						"type": "scene",
						"text": "회복실",
						"sceneId": "5_12"
					}
				]
			},
			"5_7": {
				"type": "equirectangular",
				"panorama": Pano.list.img5_7,
				"title": "병원 로비",
				"navIndex" : 1,
				"yaw": 180,
				"hotSpots": [
					{
						"pitch": -9,
						"yaw": 270,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_1"
					},
					{
						"pitch": -9,
						"yaw": 185,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_6"
					},
					{
						"pitch": -7,
						"yaw": 145,
						"type": "scene",
						"text": "블럭실",
						"sceneId": "5_13"
					},
					{
						"pitch": -9,
						"yaw": 16,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_9"
					},
					{
						"pitch": -7,
						"yaw": 30,
						"type": "scene",
						"text": "회복실",
						"sceneId": "5_12"
					}
				]
			},
			"5_12": {
				"type": "equirectangular",
				"panorama": Pano.list.img5_12,
				"title": "회복실",
				"navIndex" : 1,
				"yaw": 90,
				"hotSpots": [
					{
						"pitch": -14,
						"yaw": 208,
						"type": "scene",
						"text": "블럭실",
						"sceneId": "5_13"
					},
					{
						"pitch": -7,
						"yaw": 0,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_9"
					}
				]
			},
			"5_9": {
				"type": "equirectangular",
				"panorama": Pano.list.img5_9,
				"title": "병원 로비",
				"navIndex" : 1,
				"yaw": 60,
				"hotSpots": [
					{
						"pitch": -12,
						"yaw": 210,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_7"
					},
					{
						"pitch": -7,
						"yaw": 180,
						"type": "scene",
						"text": "회복실",
						"sceneId": "5_12"
					},
					{
						"pitch": -5,
						"yaw": 45,
						"type": "scene",
						"text": "X-RAY실",
						"sceneId": "5_8"
					},
					{
						"pitch": -7,
						"yaw": 75,
						"type": "scene",
						"text": "탈의실",
						"sceneId": "5_11"
					}
				]
			},
			"5_8": {
				"type": "equirectangular",
				"panorama": Pano.list.img5_8,
				"title": "X-ray실",
				"navIndex" : 1,
				"yaw": 40,
				"hotSpots": [
					{
						"pitch": -7,
						"yaw": 210,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_9"
					}
				]
			},
			"5_11": {
				"type": "equirectangular",
				"panorama": Pano.list.img5_11,
				"title": "탈의실",
				"navIndex" : 1,
				"yaw": 100,
				"hotSpots": [
					{
						"pitch": -24,
						"yaw": 310,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "5_9"
					}
				]
			},
			"6_20": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_20,
				"title": "병원 로비",
				"navIndex" : 2,
				"yaw": 150,
				"hotSpots": [
					{
						"pitch": -10,
						"yaw": 55,
						"type": "scene",
						"text": "5층 - 접수 / X-RAY / 외래진료센터",
						"sceneId": "5_1"
					},
					{
						"pitch": 0,
						"yaw": 10,
						"type": "scene",
						"text": "7층 - 수술센터 / 물리 도수치료센터",
						"sceneId": "7_1"
					},
					{
						"pitch": -8,
						"yaw": 95,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_7"
					},
					{
						"pitch": -7,
						"yaw": 150,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_2"
					},
					{
						"pitch": -20,
						"yaw": 200,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_1"
					},
					{
						"pitch": 0,
						"yaw": 185,
						"type": "scene",
						"text": "MOMMO실",
						"sceneId": "6_22"
					},
					{
						"pitch": -3,
						"yaw": 204,
						"type": "scene",
						"text": "MRI",
						"sceneId": "6_21"
					}
				]
			},
			"6_1": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_1,
				"title": "병원 로비",
				"navIndex" : 2,
				"yaw": 40,
				"hotSpots": [
					{
						"pitch": -16,
						"yaw": 340,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_20"
					},
					{
						"pitch": -20,
						"yaw": 65,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_2"
					},
					{
						"pitch": -10,
						"yaw": 70,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_3"
					},
					{
						"pitch": -4,
						"yaw": 185,
						"type": "scene",
						"text": "MRI",
						"sceneId": "6_21"
					},
					{
						"pitch": -4,
						"yaw": 150,
						"type": "scene",
						"text": "MOMMO실",
						"sceneId": "6_22"
					}
				]
			},
			"6_21": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_21,
				"title": "MRI",
				"navIndex" : 2,
				"yaw": 250,
				"hotSpots": [
					{
						"pitch": -10,
						"yaw": 25,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_20"
					},
					{
						"pitch": -20,
						"yaw": 30,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_1"
					},
					{
						"pitch": 0,
						"yaw": 130,
						"type": "scene",
						"text": "MOMMO실",
						"sceneId": "6_22"
					}
				]
			},
			"6_22": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_22,
				"title": "MAMMO실",
				"navIndex" : 2,
				"yaw": 100,
				"hotSpots": [
					{
						"pitch": -10,
						"yaw": 300,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_1"
					}
				]
			},
			"6_2": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_2,
				"title": "병원 로비",
				"navIndex" : 2,
				"yaw": 40,
				"hotSpots": [
					{
						"pitch": -24,
						"yaw": 270,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_1"
					},
					{
						"pitch": -14,
						"yaw": 90,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_3"
					},
					{
						"pitch": -3,
						"yaw": 85,
						"type": "scene",
						"text": "진료실",
						"sceneId": "6_16"
					}
				]
			},
			"6_3": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_3,
				"title": "병원 로비",
				"navIndex" : 2,
				"yaw": 160,
				"hotSpots": [
					{
						"pitch": -20,
						"yaw": 280,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_2"
					},
					{
						"pitch": -5,
						"yaw": 22,
						"type": "scene",
						"text": "내시경실",
						"sceneId": "6_17"
					},
					{
						"pitch": -20,
						"yaw": 10,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_7"
					},
					{
						"pitch": -10,
						"yaw": 90,
						"type": "scene",
						"text": "진료실",
						"sceneId": "6_16"
					},
					{
						"pitch": -6,
						"yaw": 215,
						"type": "scene",
						"text": "탈의실",
						"sceneId": "6_6"
					},
					{
						"pitch": -16,
						"yaw": 190,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_8"
					},
					{
						"pitch": -3,
						"yaw": 165,
						"type": "scene",
						"text": "초음파실",
						"sceneId": "6_15"
					}
				]
			},
			"6_6": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_6,
				"title": "탈의실",
				"navIndex" : 2,
				"yaw": 240,
				"hotSpots": [
					{
						"pitch": -7,
						"yaw": 60,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_3"
					},
					{
						"pitch": -16,
						"yaw": 150,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_8"
					},
					{
						"pitch": -4,
						"yaw": 115,
						"type": "scene",
						"text": "초음파실",
						"sceneId": "6_15"
					}
				]
			},
			"6_8": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_8,
				"title": "병원 로비",
				"navIndex" : 2,
				"yaw": 160,
				"hotSpots": [
					{
						"pitch": -14,
						"yaw": 15,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_3"
					},
					{
						"pitch": -4,
						"yaw": 85,
						"type": "scene",
						"text": "초음파실",
						"sceneId": "6_15"
					},
					{
						"pitch": -4,
						"yaw": 140,
						"type": "scene",
						"text": "진단검사의학실",
						"sceneId": "6_14"
					},
					{
						"pitch": -26,
						"yaw": 180,
						"type": "scene",
						"text": "기초검사실",
						"sceneId": "6_12"
					},
					{
						"pitch": -16,
						"yaw": 188,
						"type": "scene",
						"text": "기초검사실",
						"sceneId": "6_13"
					},
					{
						"pitch": -20,
						"yaw": 245,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_9"
					},
					{
						"pitch": -4,
						"yaw": 255,
						"type": "scene",
						"text": "BMD실",
						"sceneId": "6_10"
					},
					{
						"pitch": -4,
						"yaw": 320,
						"type": "scene",
						"text": "탈의실",
						"sceneId": "6_6"
					}
				]
			},
			"6_9": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_9,
				"title": "병원 로비",
				"navIndex" : 2,
				"yaw": 0,
				"hotSpots": [
					{
						"pitch": -2,
						"yaw": 27,
						"type": "scene",
						"text": "초음파실",
						"sceneId": "6_15"
					},
					{
						"pitch": -20,
						"yaw": 25,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_8"
					},
					{
						"pitch": -2,
						"yaw": 50,
						"type": "scene",
						"text": "진단검사의학실",
						"sceneId": "6_14"
					},
					{
						"pitch": -4,
						"yaw": 160,
						"type": "scene",
						"text": "심전도실",
						"sceneId": "6_11"
					},
					{
						"pitch": -4,
						"yaw": 240,
						"type": "scene",
						"text": "BMD실",
						"sceneId": "6_10"
					}
				]
			},
			"6_10": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_10,
				"title": "BMD실",
				"navIndex" : 2,
				"yaw": 270,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 80,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_9"
					}
				]
			},
			"6_11": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_11,
				"title": "심전도실",
				"navIndex" : 2,
				"yaw": 80,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 340,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_9"
					}
				]
			},
			"6_12": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_12,
				"title": "기초검사실",
				"navIndex" : 2,
				"yaw": 160,
				"hotSpots": [
					{
						"pitch": -30,
						"yaw": 170,
						"type": "scene",
						"text": "기초검사실",
						"sceneId": "6_13"
					},
					{
						"pitch": -30,
						"yaw": 340,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_8"
					},
					{
						"pitch": -4,
						"yaw": 30,
						"type": "scene",
						"text": "진단검사의학실",
						"sceneId": "6_14"
					},
					{
						"pitch": -4,
						"yaw": 316,
						"type": "scene",
						"text": "탈의실",
						"sceneId": "6_6"
					},
					{
						"pitch": -4,
						"yaw": 6,
						"type": "scene",
						"text": "초음파실",
						"sceneId": "6_15"
					}
				]
			},
			"6_13": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_13,
				"title": "기초검사실",
				"navIndex" : 2,
				"yaw": 210,
				"hotSpots": [
					{
						"pitch": -36,
						"yaw": 330,
						"type": "scene",
						"text": "기초검사실",
						"sceneId": "6_12"
					},
					{
						"pitch": -20,
						"yaw": 335,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_8"
					},
					{
						"pitch": -4,
						"yaw": 360,
						"type": "scene",
						"text": "진단검사의학실",
						"sceneId": "6_14"
					}
				]
			},
			"6_14": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_14,
				"title": "진단검사의학실",
				"navIndex" : 2,
				"yaw": 0,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 340,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_8"
					}
				]
			},
			"6_15": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_15,
				"title": "초음파실",
				"navIndex" : 2,
				"yaw": 90,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 300,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_8"
					}
				]
			},
			"6_7": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_7,
				"title": "병원 로비",
				"navIndex" : 2,
				"yaw": 170,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 145,
						"type": "scene",
						"text": "진료실",
						"sceneId": "6_16"
					},
					{
						"pitch": -18,
						"yaw": 175,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_3"
					},
					{
						"pitch": -10,
						"yaw": 265,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_20"
					},
					{
						"pitch": -4,
						"yaw": 25,
						"type": "scene",
						"text": "내시경실",
						"sceneId": "6_17"
					}
				]
			},
			"6_16": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_16,
				"title": "진료실",
				"navIndex" : 2,
				"yaw": 40,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 260,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_3"
					}
				]
			},
			"6_17": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_17,
				"title": "내시경실",
				"navIndex" : 2,
				"yaw": 0,
				"hotSpots": [
					{
						"pitch": -18,
						"yaw": 15,
						"type": "scene",
						"text": "내시경실",
						"sceneId": "6_18"
					},
					{
						"pitch": -4,
						"yaw": 200,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_7"
					}
				]
			},
			"6_18": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_18,
				"title": "내시경실",
				"navIndex" : 2,
				"yaw": 100,
				"hotSpots": [
					{
						"pitch": -14,
						"yaw": 130,
						"type": "scene",
						"text": "내시경실",
						"sceneId": "6_19"
					},
					{
						"pitch": -24,
						"yaw": 190,
						"type": "scene",
						"text": "내시경실",
						"sceneId": "6_17"
					},
					{
						"pitch": -4,
						"yaw": 195,
						"type": "scene",
						"text": "병원 로비",
						"sceneId": "6_7"
					}
				]
			},
			"6_19": {
				"type": "equirectangular",
				"panorama": Pano.list.img6_19,
				"title": "내시경실",
				"navIndex" : 2,
				"yaw": 340,
				"hotSpots": [
					{
						"pitch": -26,
						"yaw": 300,
						"type": "scene",
						"text": "내시경실",
						"sceneId": "6_18"
					}
				]
			},
			"7_1": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_1,
				"title": "입구",
				"navIndex" : 3,
				"yaw": 90,
				"hotSpots": [
					{
						"pitch": -8,
						"yaw": 60,
						"type": "scene",
						"text": "6층 - MRI / 검사 / 내과 / 건감검진센터",
						"sceneId": "6_20"
					},
					{
						"pitch": -4,
						"yaw": 15,
						"type": "scene",
						"text": "8층 - 입원병동 801 ~ 807",
						"sceneId": "8_1"
					},
					{
						"pitch": -2,
						"yaw": 85,
						"type": "scene",
						"text": "물리치료센터",
						"sceneId": "7_5"
					},
					{
						"pitch": -20,
						"yaw": 90,
						"type": "scene",
						"text": "입구",
						"sceneId": "7_2"
					},
					{
						"pitch": -4,
						"yaw": 125,
						"type": "scene",
						"text": "수술실 입구",
						"sceneId": "7_9"
					}
				]
			},
			"7_9": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_9,
				"title": "수술실 입구",
				"navIndex" : 3,
				"yaw": 120,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 20,
						"type": "scene",
						"text": "입구",
						"sceneId": "7_1"
					},
					{
						"pitch": -4,
						"yaw": 170,
						"type": "scene",
						"text": "수술실 로비",
						"sceneId": "7_10"
					}
				]
			},
			"7_10": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_10,
				"title": "수술실 로비",
				"navIndex" : 3,
				"yaw": 130,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 30,
						"type": "scene",
						"text": "수술실 입구",
						"sceneId": "7_9"
					},
					{
						"pitch": -4,
						"yaw": 310,
						"type": "scene",
						"text": "수술실",
						"sceneId": "7_15"
					},
					{
						"pitch": -4,
						"yaw": 260,
						"type": "scene",
						"text": "수술실",
						"sceneId": "7_14"
					},
					{
						"pitch": -14,
						"yaw": 130,
						"type": "scene",
						"text": "수술실 로비",
						"sceneId": "7_11"
					}
				]
			},
			"7_15": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_15,
				"title": "수술실",
				"navIndex" : 3,
				"yaw": 90,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 165,
						"type": "scene",
						"text": "수술실 로비",
						"sceneId": "7_10"
					}
				]
			},
			"7_14": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_14,
				"title": "수술실",
				"navIndex" : 3,
				"yaw": 250,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 85,
						"type": "scene",
						"text": "수술실 로비",
						"sceneId": "7_10"
					}
				]
			},
			"7_11": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_11,
				"title": "수술실 로비",
				"navIndex" : 3,
				"yaw": 40,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 90,
						"type": "scene",
						"text": "수술실",
						"sceneId": "7_12"
					},
					{
						"pitch": -14,
						"yaw": 320,
						"type": "scene",
						"text": "수술실 로비",
						"sceneId": "7_10"
					},
					{
						"pitch": -4,
						"yaw": 315,
						"type": "scene",
						"text": "수술실",
						"sceneId": "7_15"
					},
					{
						"pitch": -4,
						"yaw": 290,
						"type": "scene",
						"text": "수술실",
						"sceneId": "7_14"
					}
				]
			},
			"7_12": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_12,
				"title": "수술실",
				"navIndex" : 3,
				"yaw": 90,
				"hotSpots": [
					{
						"pitch": -18,
						"yaw": 80,
						"type": "scene",
						"text": "수술실",
						"sceneId": "7_13"
					},
					{
						"pitch": -4,
						"yaw": 270,
						"type": "scene",
						"text": "수술실 로비",
						"sceneId": "7_11"
					}
				]
			},
			"7_13": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_13,
				"title": "수술실",
				"navIndex" : 3,
				"yaw": 180,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 300,
						"type": "scene",
						"text": "수술실 로비",
						"sceneId": "7_11"
					}
				]
			},
			"7_2": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_2,
				"title": "입구",
				"navIndex" : 3,
				"yaw": 70,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 60,
						"type": "scene",
						"text": "물리치료센터",
						"sceneId": "7_5"
					},
					{
						"pitch": -4,
						"yaw": 215,
						"type": "scene",
						"text": "수술실 입구",
						"sceneId": "7_9"
					},
					{
						"pitch": -18,
						"yaw": 260,
						"type": "scene",
						"text": "입구",
						"sceneId": "7_1"
					}
				]
			},
			"7_3": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_3,
				"title": "물리치료센터",
				"navIndex" : 3,
				"yaw": 0,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 260,
						"type": "scene",
						"text": "ESWT실",
						"sceneId": "7_4"
					},
					{
						"pitch": -14,
						"yaw": 0,
						"type": "scene",
						"text": "물리치료센터",
						"sceneId": "7_5"
					}
				]
			},
			"7_4": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_4,
				"title": "ESWT실",
				"navIndex" : 3,
				"yaw": 240,
				"hotSpots": [
					{
						"pitch": -22,
						"yaw": 90,
						"type": "scene",
						"text": "물리치료센터",
						"sceneId": "7_3"
					}
				]
			},
			"7_5": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_5,
				"title": "물리치료센터",
				"navIndex" : 3,
				"yaw": 180,
				"hotSpots": [
					{
						"pitch": -16,
						"yaw": 190,
						"type": "scene",
						"text": "물리치료센터",
						"sceneId": "7_3"
					},
					{
						"pitch": -4,
						"yaw": 270,
						"type": "scene",
						"text": "입구",
						"sceneId": "7_2"
					},
					{
						"pitch": -24,
						"yaw": 20,
						"type": "scene",
						"text": "물리치료센터",
						"sceneId": "7_6"
					}
				]
			},
			"7_6": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_6,
				"title": "물리치료센터",
				"navIndex" : 3,
				"yaw": 0,
				"hotSpots": [
					{
						"pitch": -18,
						"yaw": 10,
						"type": "scene",
						"text": "물리치료센터",
						"sceneId": "7_7"
					},
					{
						"pitch": -14,
						"yaw": 190,
						"type": "scene",
						"text": "물리치료센터",
						"sceneId": "7_5"
					}
				]
			},
			"7_7": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_7,
				"title": "물리치료센터",
				"navIndex" : 3,
				"yaw": 300,
				"hotSpots": [
					{
						"pitch": -24,
						"yaw": 270,
						"type": "scene",
						"text": "물리치료센터",
						"sceneId": "7_8"
					},
					{
						"pitch": -20,
						"yaw": 180,
						"type": "scene",
						"text": "물리치료센터",
						"sceneId": "7_6"
					}
				]
			},
			"7_8": {
				"type": "equirectangular",
				"panorama": Pano.list.img7_8,
				"title": "물리치료센터",
				"navIndex" : 3,
				"yaw": 0,
				"hotSpots": [
					{
						"pitch": -26,
						"yaw": 100,
						"type": "scene",
						"text": "물리치료센터",
						"sceneId": "7_7"
					}
				]
			},
			"8_1": {
				"type": "equirectangular",
				"panorama": Pano.list.img8_1,
				"title": "병동 복도",
				"navIndex" : 4,
				"yaw": 110,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 10,
						"type": "scene",
						"text": "9층 - 입원병동 901 ~ 907",
						"sceneId": "9_1"
					},
					{
						"pitch": -10,
						"yaw": 55,
						"type": "scene",
						"text": "7층 - 수술센터 / 물리 도수치료센터",
						"sceneId": "7_1"
					},
					{
						"pitch": -14,
						"yaw": 90,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "8_2"
					},
					{
						"pitch": -10,
						"yaw": 190,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "8_7"
					}
				]
			},
			"8_7": {
				"type": "equirectangular",
				"panorama": Pano.list.img8_7,
				"title": "병동 복도",
				"navIndex" : 4,
				"yaw": 50,
				"hotSpots": [
					{
						"pitch": -10,
						"yaw": 35,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "8_1"
					},
					{
						"pitch": -4,
						"yaw": 160,
						"type": "scene",
						"text": "병실",
						"sceneId": "8_6"
					},
					{
						"pitch": -10,
						"yaw": 125,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "8_5"
					}
				]
			},
			"8_6": {
				"type": "equirectangular",
				"panorama": Pano.list.img8_6,
				"title": "병실",
				"navIndex" : 4,
				"yaw": 0,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 30,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "8_5"
					}
				]
			},
			"8_5": {
				"type": "equirectangular",
				"panorama": Pano.list.img8_5,
				"title": "병동 복도",
				"navIndex" : 4,
				"yaw": 300,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 180,
						"type": "scene",
						"text": "병실",
						"sceneId": "8_6"
					},
					{
						"pitch": -12,
						"yaw": 250,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "8_7"
					},
					{
						"pitch": -20,
						"yaw": 0,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "8_4"
					}
				]
			},
			"8_4": {
				"type": "equirectangular",
				"panorama": Pano.list.img8_4,
				"title": "병동 복도",
				"navIndex" : 4,
				"yaw": 300,
				"hotSpots": [
					{
						"pitch": -24,
						"yaw": 335,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "8_3"
					},
					{
						"pitch": -14,
						"yaw": 160,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "8_5"
					}
				]
			},
			"8_3": {
				"type": "equirectangular",
				"panorama": Pano.list.img8_3,
				"title": "병동 복도",
				"navIndex" : 4,
				"yaw": 260,
				"hotSpots": [
					{
						"pitch": -14,
						"yaw": 240,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "8_1"
					},
					{
						"pitch": -22,
						"yaw": 150,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "8_4"
					}
				]
			},
			"8_2": {
				"type": "equirectangular",
				"panorama": Pano.list.img8_2,
				"title": "병동 복도",
				"navIndex" : 4,
				"yaw": 260,
				"hotSpots": [
					{
						"pitch": -22,
						"yaw": 260,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "8_1"
					},
					{
						"pitch": -22,
						"yaw": 100,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "8_3"
					}
				]
			},
			"9_1": {
				"type": "equirectangular",
				"panorama": Pano.list.img9_1,
				"title": "병동 복도",
				"navIndex" : 5,
				"yaw": 140,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 30,
						"type": "scene",
						"text": "10층 - VIP병동 1001 ~ 1004",
						"sceneId": "10_1"
					},
					{
						"pitch": -10,
						"yaw": 85,
						"type": "scene",
						"text": "8층 - 입원병동 801 ~ 804",
						"sceneId": "8_1"
					},
					{
						"pitch": -12,
						"yaw": 115,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "9_4"
					},
					{
						"pitch": -12,
						"yaw": 215,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "9_2"
					}
				]
			},
			"9_2": {
				"type": "equirectangular",
				"panorama": Pano.list.img9_2,
				"title": "병동 복도",
				"navIndex" : 5,
				"yaw": 100,
				"hotSpots": [
					{
						"pitch": -10,
						"yaw": 30,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "9_1"
					},
					{
						"pitch": -8,
						"yaw": 120,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "9_3"
					},
					{
						"pitch": -4,
						"yaw": 160,
						"type": "scene",
						"text": "병실",
						"sceneId": "9_8_6"
					}
				]
			},
			"9_8_6": {
				"type": "equirectangular",
				"panorama": Pano.list.img8_6,
				"title": "병실",
				"navIndex" : 5,
				"yaw": 0,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 30,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "9_2"
					}
				]
			},
			"9_3": {
				"type": "equirectangular",
				"panorama": Pano.list.img9_3,
				"title": "병동 복도",
				"navIndex" : 5,
				"yaw": 350,
				"hotSpots": [
					{
						"pitch": -8,
						"yaw": 300,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "9_2"
					},
					{
						"pitch": -8,
						"yaw": 30,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "9_4"
					}
				]
			},
			"9_4": {
				"type": "equirectangular",
				"panorama": Pano.list.img9_4,
				"title": "병동 복도",
				"navIndex" : 5,
				"yaw": 310,
				"hotSpots": [
					{
						"pitch": -10,
						"yaw": 295,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "9_1"
					},
					{
						"pitch": -8,
						"yaw": 210,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "9_3"
					}
				]
			},
			"10_1": {
				"type": "equirectangular",
				"panorama": Pano.list.img10_1,
				"title": "VIP병동 복도",
				"navIndex" : 6,
				"yaw": 180,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 30,
						"type": "scene",
						"text": "9층 - 입원병동 901 ~ 907",
						"sceneId": "9_1"
					},
					{
						"pitch": -12,
						"yaw": 210,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "10_2"
					}
				]
			},
			"10_2": {
				"type": "equirectangular",
				"panorama": Pano.list.img10_2,
				"title": "VIP병동 복도",
				"navIndex" : 6,
				"yaw": 90,
				"hotSpots": [
					{
						"pitch": -12,
						"yaw": 20,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "10_1"
					},
					{
						"pitch": -16,
						"yaw": 110,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "10_4"
					},
					{
						"pitch": -4,
						"yaw": 130,
						"type": "scene",
						"text": "2인실",
						"sceneId": "10_5"
					}
				]
			},
			"10_5": {
				"type": "equirectangular",
				"panorama": Pano.list.img10_5,
				"title": "2인실",
				"navIndex" : 6,
				"yaw": 120,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 40,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "10_4"
					}
				]
			},
			"10_4": {
				"type": "equirectangular",
				"panorama": Pano.list.img10_4,
				"title": "VIP병동 복도",
				"navIndex" : 6,
				"yaw": 100,
				"hotSpots": [
					{
						"pitch": -14,
						"yaw": 290,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "10_2"
					},
					{
						"pitch": -4,
						"yaw": 127,
						"type": "scene",
						"text": "1인실",
						"sceneId": "10_3"
					},
					{
						"pitch": -4,
						"yaw": 165,
						"type": "scene",
						"text": "2인실",
						"sceneId": "10_5"
					}
				]
			},
			"10_3": {
				"type": "equirectangular",
				"panorama": Pano.list.img10_3,
				"title": "1인실",
				"navIndex" : 6,
				"yaw": 160,
				"hotSpots": [
					{
						"pitch": -4,
						"yaw": 20,
						"type": "scene",
						"text": "병동 복도",
						"sceneId": "10_4"
					}
				]
			}
		}
	});
	/* Hot spot creation function */
	function hotspot(hotSpotDiv, args) {
		hotSpotDiv.classList.add('custom-tooltip');
		var span = document.createElement('span');
		span.innerHTML = args;
		hotSpotDiv.appendChild(span);
		span.style.width = span.scrollWidth - 20 + 'px';
		span.style.marginLeft = -(span.scrollWidth - hotSpotDiv.offsetWidth) / 2 + 'px';
		span.style.marginTop = -span.scrollHeight - 12 + 'px';
	}
	/* 자동 재생, 정지 */
	$('.pano_area .pano_btn_wrap .dep1.rotate').on('click', function(){
		var class_chk = $(this).hasClass('active');
		$(this).toggleClass('active');
		if (class_chk){
			viewer.startAutoRotate();
		} else {
			viewer.stopAutoRotate();
		}
	});
	$(document).on('click', '.pnlm-hotspot.pnlm-scene', function(){
		$('.pano_area .pano_btn_wrap .dep1.rotate').removeClass('active');
	});
	/* 이전, 다음 */
	var scenes = [];
	for (var key in viewer.getConfig().scenes)
	{
		scenes.push(key);
	}
	var first_key_name = scenes[0];
	var last_key_name = scenes[scenes.length - 1];

	$('.pano_area .pano_btn_wrap .dep1.prev').on('click', function(){
		var prev_key_name = scenes[scenes.indexOf(viewer.getScene()) - 1];
		var next_key_name = scenes[scenes.indexOf(viewer.getScene()) + 1];
		var index_key_name = scenes[scenes.indexOf(viewer.getScene())];

		if (index_key_name == first_key_name){
			viewer.loadScene(last_key_name);
		} else {
			viewer.loadScene(prev_key_name);
		}
		$('.pano_area .pano_btn_wrap .dep1.rotate').removeClass('active');
	});
	$('.pano_area .pano_btn_wrap .dep1.next').on('click', function(){
		var prev_key_name = scenes[scenes.indexOf(viewer.getScene()) - 1];
		var next_key_name = scenes[scenes.indexOf(viewer.getScene()) + 1];
		var index_key_name = scenes[scenes.indexOf(viewer.getScene())];

		if (index_key_name == last_key_name){
			viewer.loadScene(first_key_name);
		} else {
			viewer.loadScene(next_key_name);
		}
		$('.pano_area .pano_btn_wrap .dep1.rotate').removeClass('active');
	});
	/* 전체 화면, 방향 전환 */
	$(window).load(function(){
		if (viewer.isOrientationSupported()){
			var orientationIcon = $('.pano_area .pano_btn_wrap .dep1.fullScreen img').attr('data-orientaion-icon');
			$('.pano_area .pano_btn_wrap .dep1.fullScreen img').attr({'src' : orientationIcon});
		}
	});
	if (viewer.isOrientationActive && viewer.mouseEventToCoords) {
		$('.pano_area .pano_btn_wrap .dep1.fullScreen').removeClass('active');
	}
	$('.pano_area .pano_btn_wrap .dep1.fullScreen').on('click', function(){
		var hasClass = $(this).hasClass('active');
		if (viewer.isOrientationSupported()){
			$(this).toggleClass('active');
			if (hasClass) {
				$('.pnlm-dragfix').show();
				viewer.stopOrientation();
			} else {
				$('.pnlm-dragfix').hide();
				viewer.startOrientation();
			}
		} else {
			viewer.toggleFullscreen();
		}
	});
	/* 네비게이션 */
	$('.pano_area .pano_nav_wrap .nav_btn').on('click', function(){
		$(this).toggleClass('active').next().stop().slideToggle();
	});
	$('.pano_area .pano_nav_wrap .map_btn').on('click', function(){
		var hasClass = $(this).hasClass('active');
		if (hasClass) {
			$(this).removeClass('active').next().stop().slideUp();
		} else {
			$(this).addClass('active').next().stop().slideDown();
		}
	});
	$('.pano_area .pano_nav_wrap .nav .dep1_con .dep1').on('click', function(){
		var scene = $(this).attr('data-scene');
		viewer.loadScene(scene);
		$(this).parents('.nav').stop().slideUp();
	});
	/* 마커 */
	var marker_arr = [];
	var nav_index_arr = [];
	viewer.on('load', function(){
		setInterval(function(){
			$('.pano_area .pano_nav_wrap .marker_wrap .marker.active .angle').css({
				"transform" : "rotate("+viewer.getYaw()+"deg)"
			});
		}, 500);
		$('.pano_area .pano_nav_wrap .dep1.rotate').removeClass('active');
	});
	$('.pano_area .pano_nav_wrap .marker_wrap .marker').on('click', function(){
		var scene = $(this).attr('data-scene');
		$(this).addClass('active').siblings().removeClass('active');
		viewer.loadScene(scene);
		$('.pano_area .pano_btn_wrap .dep1.rotate').removeClass('active');
	});
	$('.pano_area .pano_nav_wrap .marker_wrap .marker').each(function(){
		var scene = $(this).attr('data-scene');
		var scene_title = viewer.getConfig().scenes[scene].title;
		$(this).find('.txt_wrap .txt').text(scene_title);
	});
	var nav_index_arr = [];
	/* viewer */
	viewer.on('load', function(){
		marker_arr = $('.pano_area .pano_nav_wrap .marker_wrap .marker').each(function(i){
			marker_arr[i] = $(this).attr('data-scene');
		});
		for (var i = 0 ; i < marker_arr.length ; i++ )
		{
			if (viewer.getScene() == marker_arr[i].dataset["scene"])
			{
				$(marker_arr[i]).addClass('active').siblings().removeClass('active').parent().siblings().find('.marker').removeClass('active');
			}
		}

		nav_index_arr[1] = nav_index_arr[0];
		nav_index_arr[0] = viewer.getConfig().scenes[viewer.getScene()].navIndex;
		if (nav_index_arr[1] !== nav_index_arr[0]){
			var $this = $('.pano_area .pano_nav_wrap .nav .dep1_con').eq(viewer.getConfig().scenes[viewer.getScene()].navIndex - 1).children();
			var $thumb_img = $('.pano_area .pano_nav_wrap .map_area .dep1_con .thumb img');
			var thumb_img_src = $this.attr('data-thumb-src');
			var level = $this.attr('data-level');
			var nav_txt = $this.text();
			$thumb_img.attr({'src':thumb_img_src});
			$('.pano_area .pano_nav_wrap .marker_wrap .marker_con').eq(level - 1).show().siblings().hide();
			$('.pano_area .pano_nav_wrap .nav_btn .txt').text(nav_txt);
		}
	});
});