var code="code";var url="url";var key="key";var sub="sub";
var BLANK_IMAGE="../_imgs/transp.gif";
var delay = 600;

function Format_defCss(a_prefixe) {
 	return {"OFF":a_prefixe + "Off", "OVER":a_prefixe + "Over", 
 			"OFF_SEL":a_prefixe + "Sel", "OVER_SEL":a_prefixe + "Sel",
 			"OFF_DIS":a_prefixe + "Dis", "OVER_DIS":a_prefixe + "Dis"};
}

function Format_noBorder(a_prefixe) {
	return {"css":Format_defCss(a_prefixe)};
}

function Format_border(a_prefixe, a_color, a_width, a_borders) {
	return {"border":a_width, "borders":a_borders, "color":{"border":a_color}, "css":Format_defCss(a_prefixe)};
}

function Format_borderTop(a_prefixe, a_color) {
	return Format_border(a_prefixe, a_color, 1, [1,1,1,0]);
}

function Format_borderMid(a_prefixe, a_color) {
	return Format_border(a_prefixe, a_color, 1, [1,0,1,0]);
}

function Format_borderBot(a_prefixe, a_color) {
	return Format_border(a_prefixe, a_color, 1, [1,0,1,1]);
}

function Format_sepCss(a_prefixe) {
	return {"OFF_DIS":a_prefixe + "Off", "OVER_DIS":a_prefixe + "Off"};
}

function Format_itemSep(a_prefixe, a_color, a_size) {
	return {"format":{
				"style":{"border":1, "borders":[1,0,1,0], "color":{"border":a_color}, 
				"css":Format_sepCss(a_prefixe)}, 
				"disabled":"yes", 
				"size":a_size}};
}

