﻿/**
 * 设置图片资源
 */
 
var iconPath = "../js/treeicons/"; //图片路径
var baseIconName ="base.gif"; //树根图片
var emptyIconName = "empty.gif"; //空图片名
var folderIconName = "folder.gif"; //文件夹图片名
var folderOpenIconName = "folderopen.gif"; //打开后的文件夹图片名
var joinIconName = "join.gif"; //尾部子节点连接图片名 L
var joinBottomIconName = "joinbottom.gif"; //中间子节点连接图片名
var lineIconName = "line.gif"; //同级节点连线图片名
var minusIconName = "minus.gif"; //尾部打开节点连接图片名
var minusBottomIconName = "minusbottom.gif"; //中间打开节点连接图片名
var pageIconName = "page.gif"; //末级节点图片名
var plusIconName = "plus.gif"; //尾部关闭节点连接图片名
var plusBottomIconName = "plusbottom.gif"; //中间关闭节点连接图片名
var tableWidth = ""; //树宽度
var headStyle = ""; //树根样式
var firstStyle = ""; //一级树样式
var otherStyle = ""; //其它级样式
var headFontStyle = ""; //树根字体样式
var firstFontStyle = ""; //一级树字体样式
var otherFontStyle = ""; //其它级字体样式
var isChangeJoinIcon = true; //用户点击 ＋ － 节点后是否改变其图表 比如点击后将＋改为－


var TREE_TPL = {
	
	'table_width' : tableWidth, //树表宽度
	'head_style' : headStyle, //树头样式
	'first_style' : firstStyle, //一级树样式
	'other_style' : otherStyle, //其它级样式
	'head_font_style' : headFontStyle, //树根字体样式
	'first_font_style' : firstFontStyle, //一级树字体样式
	'other_font_sytle' : otherFontStyle, //其它级字体样式
	'isChangeJoinIcon' : isChangeJoinIcon, //用户点击 ＋ － 节点后是否改变其图表 比如点击后将＋改为－
	'target'  : "",	// name of the frame links will be opened in
							// other possible values are: _blank, _parent, _search, _self and _top
	'icon_e'  : iconPath+emptyIconName, // empty image
	'icon_l'  : iconPath+lineIconName,  // vertical line

        'icon_32' : iconPath+baseIconName,   // root leaf icon normal
        'icon_36' : iconPath+baseIconName,   // root leaf icon selected
	
	'icon_48' : iconPath+baseIconName,   // root icon normal
	'icon_52' : iconPath+baseIconName,   // root icon selected
	'icon_56' : iconPath+baseIconName,   // root icon opened
	'icon_60' : iconPath+baseIconName,   // root icon selected
	
	'icon_16' : iconPath+folderIconName, // node icon normal
	'icon_20' : iconPath+folderOpenIconName, // node icon selected
	'icon_24' : iconPath+folderOpenIconName, // node icon opened
	'icon_28' : iconPath+folderOpenIconName, // node icon selected opened

	'icon_0'  : iconPath+pageIconName, // leaf icon normal
	'icon_4'  : iconPath+pageIconName, // leaf icon selected
	
	'icon_2'  : iconPath+joinBottomIconName, // junction for leaf
	'icon_3'  : iconPath+joinIconName,       // junction for last leaf
	'icon_18' : iconPath+plusBottomIconName, // junction for closed node
	'icon_19' : iconPath+plusIconName,       // junctioin for last closed node
	'icon_26' : iconPath+minusBottomIconName,// junction for opened node
	'icon_27' : iconPath+minusIconName       // junctioin for last opended node
};
