const count_sec = 60;	//	設定刷新秒數
const diagram_recycled_base_pic = {
	"item01": {
		"show" : true,	//	顯示
		"Id" : null,	//	是否有設備ID
		"States" : {	
			"0" : null,	
			"1" : null,
			"2" : null,
		},
		"alarm_States" : [],	//	觸發警報狀態 => 圖片閃爍
		"label" : "筏基水表",	//	標示
		"imgUrl" : "img/diagram_water/圖控-11.png",
		"zIndex" : "5",	// 	優先程度
		"top" : "44",	//	上
		"left" : "6.4", //	左
		"width" : "",	//	圖寬
		"height" : "",	//	圖高
		"transform" : "0",	//	圖片角度
		"animation" : false	//	圖片動畫
	},
	"item02": {
		"show" : true,
		"Id" : "35",
		"States" : {
			"0" : "img/diagram_water/圖控-27.png",
			"1" : "img/diagram_water/圖控-27_低水位.png",
			"2" : null,
		},
		"alarm_States" : ["1"],	
		"label" : "回收水沉砂池",
		"imgUrl" : "img/diagram_water/圖控-27.png",
		"zIndex" : "5",
		"top" : "52",
		"left" : "13",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item03": {
		"show" : true,
		"Id" : "34",
		"States" : {
			"0" : "img/diagram_water/圖控-06.泵-GREY.png",
			"1" : "img/diagram_water/圖控-06.泵-GN.png",
			"2" : "img/diagram_water/圖控-06.泵-RED.png",
		},
		"alarm_States" : ["2"],	
		"label" : "5HP輸送泵",
		"imgUrl" : "img/diagram_water/圖控-06.泵-GREY.png",
		"zIndex" : "5",
		"top" : "55.45",
		"left" : "21.15",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item04": {
		"show" : true,
		"Id" : null,
		"States" : {
			"0" : null,
			"1" : null,
			"2" : null,
		},
		"alarm_States" : [],	
		"label" : "回收進水表",
		"imgUrl" : "img/diagram_water/圖控-11.png",
		"zIndex" : "5",
		"top" : "55.2",
		"left" : "26.75",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item05": {
		"show" : true,
		"Id" : null,
		"States" : {
			"0" : null,
			"1" : null,
			"2" : null,
		},
		"alarm_States" : [],	
		"label" : "回收水過濾系統 砂濾 -> 儲存 -> 樹脂",
		"imgUrl" : "img/diagram_water/圖控-GREY.png",
		"zIndex" : "5",
		"top" : "45",
		"left" : "30",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item06": {
		"show" : true,
		"Id" : "37",
		"States" : {
			"0" : "img/diagram_water/圖控-11水表-GREY.png",
			"1" : "img/diagram_water/圖控-11水表-GN.png",
			"2" : "img/diagram_water/圖控-11水表-RED.png",
		},
		"alarm_States" : ["2"],
		"label" : "濁度計",
		"imgUrl" : "img/diagram_water/圖控-11.png",
		"zIndex" : "6",
		"top" : "55.2",
		"left" : "32.5",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item07": {
		"show" : true,
		"Id" : null,
		"States" : {
			"0" : null,
			"1" : null,
			"2" : null,
		},
		"alarm_States" : [],	
		"label" : "回收進水表",
		"imgUrl" : "img/diagram_water/圖控-11.png",
		"zIndex" : "5",
		"top" : "58.6",
		"left" : "38",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item08": {
		"show" : true,
		"Id" : null,
		"States" : {
			"0" : null,
			"1" : null,
			"2" : null,
		},
		"alarm_States" : [],	
		"label" : "5HP輸送泵",
		"imgUrl" : "img/diagram_water/圖控-06.泵-GREY.png",
		"zIndex" : "5",
		"top" : "59",
		"left" : "42.5",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item09": {
		"show" : true,
		"Id" : null,
		"States" : {
			"0" : null,
			"1" : null,
			"2" : null,
		},
		"alarm_States" : [],	
		"label" : "50頓儲存槽",
		"imgUrl" : "img/diagram_water/圖控-19.png",
		"zIndex" : "5",
		"top" : "43.9",
		"left" : "47.3",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item10": {
		"show" : true,
		"Id" : "36",
		"States" : {
			"0" : "img/diagram_water/圖控-19.png",
			"1" : "img/diagram_water/圖控-19_低水位.png",
			"2" : null,
		},
		"alarm_States" : ["1"],	
		"label" : "50頓儲存槽",
		"imgUrl" : "img/diagram_water/圖控-19.png",
		"zIndex" : "5",
		"top" : "43.9",
		"left" : "57",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item11": {
		"show" : true,
		"Id" : "31",
		"States" : {
			"0" : "img/diagram_water/圖控-06.泵-GREY.png",
			"1" : "img/diagram_water/圖控-06.泵-GN.png",
			"2" : "img/diagram_water/圖控-06.泵-RED.png",
		},
		"alarm_States" : ["2"],	
		"label" : "5HP輸送泵",
		"imgUrl" : "img/diagram_water/圖控-06.泵-GREY.png",
		"zIndex" : "5",
		"top" : "60.15",
		"left" : "68.25",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item12": {
		"show" : true,
		"Id" : null,
		"States" : {
			"0" : null,
			"1" : null,
			"2" : null,
		},
		"alarm_States" : [],	
		"label" : "軟水處理槽",
		"imgUrl" : "img/diagram_water/圖控-18.png",
		"zIndex" : "5",
		"top" : "46",
		"left" : "72.25",
		"width" : "",
		"height" : "240",
		"transform" : "0",
		"animation" : false,
	},
	"item13": {
		"show" : true,
		"Id" : null,
		"States" : {
			"0" : null,
			"1" : null,
			"2" : null,
		},
		"alarm_States" : [],	
		"label" : "鹽水桶",
		"imgUrl" : "img/diagram_water/圖控-03.png",
		"zIndex" : "5",
		"top" : "37.5",
		"left" : "72.15",
		"width" : "",
		"height" : "80",
		"transform" : "0",
		"animation" : false,
	},
	"item14": {
		"show" : true,
		"Id" : null,
		"States" : {
			"0" : null,
			"1" : null,
			"2" : null,
		},
		"alarm_States" : [],	
		"label" : "軟水水表",
		"imgUrl" : "img/diagram_water/圖控-11.png",
		"zIndex" : "5",
		"top" : "59.85",
		"left" : "79.55",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item15": {
		"show" : true,
		"Id" : "25",
		"States" : {
			"0" : "img/diagram_water/圖控-29.png",
			"1" : "img/diagram_water/圖控-29_RED.png",
			"2" : null,
		},
		"alarm_States" : ["1"],	
		"label" : "軟水儲存槽",
		"imgUrl" : "img/diagram_water/圖控-29.png",
		"zIndex" : "5",
		"top" : "47",
		"left" : "83.9",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item16": {
		"show" : true,
		"Id" : null,
		"States" : {
			"0" : null,
			"1" : null,
			"2" : null,
		},
		"alarm_States" : [],	
		"label" : "冷卻水添加劑",
		"imgUrl" : "img/diagram_water/圖控-03.png",
		"zIndex" : "5",
		"top" : "37.5",
		"left" : "84.6",
		"width" : "",
		"height" : "80",
		"transform" : "0",
		"animation" : false,
	},
	"item17": {
		"show" : true,
		"Id" : "18",
		"States" : {
			"0" : "img/diagram_water/圖控-06.泵-GREY.png",
			"1" : "img/diagram_water/圖控-06.泵-GN.png",
			"2" : "img/diagram_water/圖控-06.泵-RED.png",
		},
		"alarm_States" : ["2"],	
		"label" : "5HP輸送泵",
		"imgUrl" : "img/diagram_water/圖控-06.泵-GREY.png",
		"zIndex" : "5",
		"top" : "60.15",
		"left" : "93.65",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item18": {
		"show" : true,
		"Id" : null,
		"States" : {
			"0" : null,
			"1" : null,
			"2" : null,
		},
		"alarm_States" : [],	
		"label" : "溢位",
		"imgUrl" : "img/diagram_water/圖控-20_高水位.png",
		"zIndex" : "5",
		"top" : "9.5",
		"left" : "90.5",
		"width" : "100",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item19": {
		"show" : true,
		"Id" : "26",
		"States" : {
			"0" : "img/diagram_water/圖控-20_高水位.png",
			"1" : "img/diagram_water/圖控-20_低水位.png",
			"2" : null,
		},
		"alarm_States" : ["1"],	
		"label" : "屋頂軟水缺水液位",
		"imgUrl" : "img/diagram_water/圖控-20_高水位.png",
		"zIndex" : "5",
		"top" : "21",
		"left" : "84.5",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item20": {
		"show" : true,
		"Id" : null,
		"States" : {
			"0" : null,
			"1" : null,
			"2" : null,
		},
		"alarm_States" : [],	
		"label" : "冷卻水塔",
		"imgUrl" : "img/diagram_water/圖控-30.png",
		"zIndex" : "5",
		"top" : "18",
		"left" : "69",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item21": {
		"show" : true,
		"Id" : null,
		"States" : {
			"0" : "img/diagram_water/5.泵-GREY_0.png",
			"1" : "img/diagram_water/5.泵-GN_0.png",
			"2" : "img/diagram_water/5.泵-RED_0.png",
		},
		"alarm_States" : ["2"],	
		"label" : "3HP輸送泵",
		"imgUrl" : "img/diagram_water/圖控-31.png",
		"zIndex" : "5",
		"top" : "40",
		"left" : "66",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item22": {
		"show" : true,
		"Id" : "39",
		"States" : {
			"0" : "img/diagram_water/圖控-20_高水位.png",
			"1" : "img/diagram_water/圖控-20_低水位.png",
			"2" : null,
		},
		"alarm_States" : ["1"],	
		"label" : "屋頂水塔液位缺水液位",
		"imgUrl" : "img/diagram_water/圖控-20_高水位.png",
		"zIndex" : "5",
		"top" : "18",
		"left" : "27",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
	"item23": {
		"show" : true,
		"Id" : null,
		"States" : {
			"0" : null,
			"1" : null,
			"2" : null,
		},
		"alarm_States" : [],	
		"label" : "廠內沖刷",
		"imgUrl" : "img/diagram_water/圖控-32.png",
		"zIndex" : "5",
		"top" : "21",
		"left" : "16.5",
		"width" : "",
		"height" : "",
		"transform" : "0",
		"animation" : false
	},
};

//	箭頭方向
const arrow_direction = {
	"item01": {
		"show" : true,
		"Id" : "34",
		"States" : {
			"0" : "bg-tertiary",
			"1" : "bg-positive",
			"2" : "bg-negative",
		},
		"label" : "回收水沉砂池 => 5HP輸送泵",
		"imgUrl" : "img/diagram_water/箭頭動畫_WH.gif",
		"zIndex" : "7",
		"top" : "54",
		"left" : "19.75",
		"width" : "30",
		"height" : "",
		"transform" : "0",
		"class" : null,
	},
	"item02": {
		"show" : true,
		"Id" : "34",
		"States" : {
			"0" : "bg-tertiary",
			"1" : "bg-positive",
			"2" : "bg-negative",
		},
		"label" : "5HP輸送泵 => 回收進水表",
		"imgUrl" : "img/diagram_water/箭頭動畫_WH.gif",
		"zIndex" : "7",
		"top" : "54",
		"left" : "24.75",
		"width" : "30",
		"height" : "",
		"transform" : "0",
		"class" : null,
	},
	"item03": {
		"show" : true,
		"Id" : "34",
		"States" : {
			"0" : "bg-tertiary",
			"1" : "bg-positive",
			"2" : "bg-negative",
		},
		"label" : "回收水過濾系統 砂濾 -> 儲存 -> 樹脂 => 回收進水表",
		"imgUrl" : "img/diagram_water/箭頭動畫_WH.gif",
		"zIndex" : "7",
		"top" : "55",
		"left" : "37.75",
		"width" : "30",
		"height" : "",
		"transform" : "0",
		"class" : null,
	},
	"item04": {
		"show" : true,
		"Id" : "34",
		"States" : {
			"0" : "bg-tertiary",
			"1" : "bg-positive",
			"2" : "bg-negative",
		},
		"label" : "回收進水表 => 5HP輸送泵",
		"imgUrl" : "img/diagram_water/箭頭動畫_WH.gif",
		"zIndex" : "7",
		"top" : "57.5",
		"left" : "40.75",
		"width" : "30",
		"height" : "",
		"transform" : "0",
		"class" : null,
	},
	"item05": {
		"show" : true,
		"Id" : "34",
		"States" : {
			"0" : "bg-tertiary",
			"1" : "bg-positive",
			"2" : "bg-negative",
		},
		"label" : "5HP輸送泵 => 50噸儲存槽",
		"imgUrl" : "img/diagram_water/箭頭動畫_WH.gif",
		"zIndex" : "7",
		"top" : "51",
		"left" : "46.2",
		"width" : "30",
		"height" : "",
		"transform" : "0",
		"class" : null,
	},
	"item06": {
		"show" : true,
		"Id" : "31",
		"States" : {
			"0" : "bg-tertiary",
			"1" : "bg-positive",
			"2" : "bg-negative",
		},
		"label" : "50噸儲存槽 => 5HP輸送泵",
		"imgUrl" : "img/diagram_water/箭頭動畫_WH.gif",
		"zIndex" : "7",
		"top" : "64",
		"left" : "66.2",
		"width" : "30",
		"height" : "",
		"transform" : "0",
		"class" : null,
	},
	"item07": {
		"show" : true,
		"Id" : "3",
		"States" : {
			"0" : "bg-tertiary",
			"1" : "bg-positive",
			"2" : "bg-negative",
		},
		"label" : "50噸儲存槽 => 3HP輸送泵",
		"imgUrl" : "img/diagram_water/箭頭動畫_WH.gif",
		"zIndex" : "7",
		"top" : "51",
		"left" : "66.4",
		"width" : "30",
		"height" : "",
		"transform" : "0",
		"class" : null,
	},
	"item08": {
		"show" : true,
		"Id" : "3",
		"States" : {
			"0" : "bg-tertiary",
			"1" : "bg-positive",
			"2" : "bg-negative",
		},
		"label" : "3HP輸送泵 => 一般水控制盤屋頂輸送泵10HP",
		"imgUrl" : "img/diagram_water/箭頭動畫_WH.gif",
		"zIndex" : "7",
		"top" : "32",
		"left" : "66.4",
		"width" : "30",
		"height" : "",
		"transform" : "0",
		"class" : null,
	},
	"item09": {
		"show" : true,
		"Id" : "33",
		"States" : {
			"0" : "bg-tertiary",
			"1" : "bg-positive",
			"2" : "bg-negative",
		},
		"label" : "一般水控制盤屋頂輸送泵10HP => 回收泵(50T至屋頂10T)",
		"imgUrl" : "img/diagram_water/箭頭動畫_WH.gif",
		"zIndex" : "7",
		"top" : "24.9",
		"left" : "48.4",
		"width" : "30",
		"height" : "",
		"transform" : "0",
		"class" : null,
	},
	"item10": {
		"show" : true,
		"Id" : "31",
		"States" : {
			"0" : "bg-tertiary",
			"1" : "bg-positive",
			"2" : "bg-negative",
		},
		"label" : "軟水處理槽 => 軟水水表",
		"imgUrl" : "img/diagram_water/箭頭動畫_WH.gif",
		"zIndex" : "7",
		"top" : "59",
		"left" : "77.75",
		"width" : "30",
		"height" : "",
		"transform" : "0",
		"class" : null,
	},
	"item11": {
		"show" : true,
		"Id" : "18",
		"States" : {
			"0" : "bg-tertiary",
			"1" : "bg-positive",
			"2" : "bg-negative",
		},
		"label" : "軟水儲存槽 => 5HP輸送泵",
		"imgUrl" : "img/diagram_water/箭頭動畫_WH.gif",
		"zIndex" : "7",
		"top" : "59",
		"left" : "91.4",
		"width" : "30",
		"height" : "",
		"transform" : "0",
		"class" : null,
	},
	"item12": {
		"show" : true,
		"Id" : "1",
		"States" : {
			"0" : "bg-tertiary",
			"1" : "bg-positive",
			"2" : "bg-negative",
		},
		"label" : "5HP輸送泵 => 屋頂軟水泵2HP",
		"imgUrl" : "img/diagram_water/箭頭動畫_WH.gif",
		"zIndex" : "7",
		"top" : "36",
		"left" : "97.25",
		"width" : "30",
		"height" : "",
		"transform" : "0",
		"class" : null,
	},
	"item13": {
		"show" : true,
		"Id" : "18",
		"States" : {
			"0" : "bg-tertiary",
			"1" : "bg-positive",
			"2" : "bg-negative",
		},
		"label" : "屋頂軟水泵2HP => 溢位",
		"imgUrl" : "img/diagram_water/箭頭動畫_WH.gif",
		"zIndex" : "7",
		"top" : "18",
		"left" : "95.4",
		"width" : "30",
		"height" : "",
		"transform" : "90",
		"class" : null,
	}

}