//==================================================================
// WP7 Quick Jump Grid
// Timur Prokopiev 2011
//==================================================================


function setDefaultValues() {
  var values = new Array();
  
// Accent Color
  values.push({ name:"Accent Color", type:"ComboBox", value:"Orange,Magenta,Purple,Teal,Lime,Brown,Pink,Orange,Blue,Red,Green"});

// Grid Items 
  values.push({ name:"#", type:"Boolean",  value:"false" });
  values.push({ name:"a", type:"Boolean",  value:"false" });
  values.push({ name:"b", type:"Boolean",  value:"false" });
  values.push({ name:"c", type:"Boolean",  value:"false" });
  values.push({ name:"d", type:"Boolean",  value:"false" });
  values.push({ name:"e", type:"Boolean",  value:"false" });
  values.push({ name:"f", type:"Boolean",  value:"false" });
  values.push({ name:"g", type:"Boolean",  value:"false" });
  values.push({ name:"h", type:"Boolean",  value:"false" });
  values.push({ name:"i", type:"Boolean",  value:"false" });
  values.push({ name:"j", type:"Boolean",  value:"false" });
  values.push({ name:"k", type:"Boolean",  value:"false" });
  values.push({ name:"l", type:"Boolean",  value:"false" });
  values.push({ name:"m", type:"Boolean",  value:"false" });
  values.push({ name:"n", type:"Boolean",  value:"false" });
  values.push({ name:"o", type:"Boolean",  value:"false" });
  values.push({ name:"p", type:"Boolean",  value:"false" });
  values.push({ name:"q", type:"Boolean",  value:"false" });
  values.push({ name:"r", type:"Boolean",  value:"false" });
  values.push({ name:"s", type:"Boolean",  value:"false" });
  values.push({ name:"t", type:"Boolean",  value:"false" });
  values.push({ name:"u", type:"Boolean",  value:"false" });
  values.push({ name:"v", type:"Boolean",  value:"false" });
  values.push({ name:"w", type:"Boolean",  value:"false" });
  values.push({ name:"x", type:"Boolean",  value:"false" });
  values.push({ name:"y", type:"Boolean",  value:"false" });
  values.push({ name:"z", type:"Boolean",  value:"false" });

  Widget.elem.customData["currentValues"] = values;

}

function applyCurrentValues() {
  var values = Widget.elem.customData["currentValues"]; 
  var color  = values[0].value.split(",")[0].toString();

  var grid = (values[1].value.toString()=="false");
  var a = (values[2].value.toString()=="false");
  var b = (values[3].value.toString()=="false");
  var c = (values[4].value.toString()=="false");
  var d = (values[5].value.toString()=="false");
  var e = (values[6].value.toString()=="false");
  var f = (values[7].value.toString()=="false");
  var g = (values[8].value.toString()=="false");
  var h = (values[9].value.toString()=="false");
  var i = (values[10].value.toString()=="false");
  var j = (values[11].value.toString()=="false");
  var k = (values[12].value.toString()=="false");
  var l = (values[13].value.toString()=="false");
  var m = (values[14].value.toString()=="false");
  var n = (values[15].value.toString()=="false");
  var o = (values[16].value.toString()=="false");
  var p = (values[17].value.toString()=="false");
  var q = (values[18].value.toString()=="false");
  var r = (values[19].value.toString()=="false");
  var s = (values[20].value.toString()=="false");
  var t = (values[21].value.toString()=="false");
  var u = (values[22].value.toString()=="false");
  var v = (values[23].value.toString()=="false");
  var w = (values[24].value.toString()=="false");
  var x = (values[25].value.toString()=="false");
  var y = (values[26].value.toString()=="false");
  var z = (values[27].value.toString()=="false");

  var magenta = "#FF0097";
  var purple = "#A200FF";
  var teal = "#00ABA9";
  var lime = "#8CBF26";
  var brown = "#996600";
  var pink = "#E671B8";
  var orange = "#F09609";
  var blue = "#1BA1E2";
  var red = "#E51400";
  var green = "#339933";

		if (color == "Magenta") {
		Widget.GetObjectByName("bg_#").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_a").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_b").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_c").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_d").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_e").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_f").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_g").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_h").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_i").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_j").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_k").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_l").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_m").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_n").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_o").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_p").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_q").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_r").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_s").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_t").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_u").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_v").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_w").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_x").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_y").pathAttributes.fillColor = magenta;
		Widget.GetObjectByName("bg_z").pathAttributes.fillColor = magenta;
		}

		if (color == "Purple") {
		Widget.GetObjectByName("bg_#").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_a").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_b").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_c").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_d").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_e").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_f").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_g").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_h").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_i").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_j").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_k").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_l").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_m").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_n").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_o").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_p").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_q").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_r").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_s").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_t").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_u").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_v").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_w").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_x").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_y").pathAttributes.fillColor = purple;
		Widget.GetObjectByName("bg_z").pathAttributes.fillColor = purple;
		}

		if (color == "Teal") {
		Widget.GetObjectByName("bg_#").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_a").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_b").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_c").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_d").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_e").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_f").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_g").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_h").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_i").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_j").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_k").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_l").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_m").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_n").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_o").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_p").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_q").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_r").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_s").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_t").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_u").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_v").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_w").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_x").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_y").pathAttributes.fillColor = teal;
		Widget.GetObjectByName("bg_z").pathAttributes.fillColor = teal;
		}

		if (color == "Lime") {
		Widget.GetObjectByName("bg_#").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_a").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_b").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_c").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_d").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_e").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_f").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_g").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_h").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_i").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_j").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_k").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_l").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_m").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_n").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_o").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_p").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_q").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_r").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_s").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_t").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_u").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_v").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_w").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_x").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_y").pathAttributes.fillColor = lime;
		Widget.GetObjectByName("bg_z").pathAttributes.fillColor = lime;
		}
		
		if (color == "Brown") {
		Widget.GetObjectByName("bg_#").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_a").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_b").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_c").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_d").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_e").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_f").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_g").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_h").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_i").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_j").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_k").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_l").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_m").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_n").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_o").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_p").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_q").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_r").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_s").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_t").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_u").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_v").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_w").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_x").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_y").pathAttributes.fillColor = brown;
		Widget.GetObjectByName("bg_z").pathAttributes.fillColor = brown;
		}

		if (color == "Pink") {
		Widget.GetObjectByName("bg_#").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_a").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_b").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_c").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_d").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_e").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_f").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_g").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_h").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_i").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_j").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_k").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_l").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_m").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_n").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_o").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_p").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_q").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_r").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_s").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_t").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_u").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_v").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_w").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_x").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_y").pathAttributes.fillColor = pink;
		Widget.GetObjectByName("bg_z").pathAttributes.fillColor = pink;
		}

		if (color == "Orange") {
		Widget.GetObjectByName("bg_#").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_a").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_b").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_c").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_d").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_e").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_f").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_g").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_h").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_i").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_j").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_k").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_l").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_m").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_n").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_o").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_p").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_q").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_r").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_s").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_t").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_u").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_v").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_w").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_x").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_y").pathAttributes.fillColor = orange;
		Widget.GetObjectByName("bg_z").pathAttributes.fillColor = orange;
		}

		if (color == "Blue") {
		Widget.GetObjectByName("bg_#").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_a").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_b").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_c").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_d").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_e").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_f").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_g").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_h").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_i").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_j").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_k").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_l").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_m").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_n").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_o").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_p").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_q").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_r").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_s").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_t").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_u").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_v").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_w").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_x").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_y").pathAttributes.fillColor = blue;
		Widget.GetObjectByName("bg_z").pathAttributes.fillColor = blue;
		}

		if (color == "Red") {
		Widget.GetObjectByName("bg_#").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_a").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_b").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_c").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_d").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_e").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_f").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_g").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_h").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_i").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_j").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_k").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_l").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_m").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_n").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_o").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_p").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_q").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_r").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_s").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_t").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_u").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_v").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_w").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_x").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_y").pathAttributes.fillColor = red;
		Widget.GetObjectByName("bg_z").pathAttributes.fillColor = red;
		}

		if (color == "Green") {
		Widget.GetObjectByName("bg_#").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_a").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_b").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_c").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_d").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_e").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_f").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_g").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_h").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_i").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_j").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_k").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_l").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_m").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_n").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_o").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_p").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_q").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_r").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_s").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_t").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_u").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_v").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_w").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_x").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_y").pathAttributes.fillColor = green;
		Widget.GetObjectByName("bg_z").pathAttributes.fillColor = green;
		}

		if (values[1].value.toString()=="true") {
 		Widget.GetObjectByName("bg_#").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[2].value.toString()=="true") {
 		Widget.GetObjectByName("bg_a").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[3].value.toString()=="true") {
 		Widget.GetObjectByName("bg_b").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[4].value.toString()=="true") {
 		Widget.GetObjectByName("bg_c").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[5].value.toString()=="true") {
 		Widget.GetObjectByName("bg_d").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[6].value.toString()=="true") {
 		Widget.GetObjectByName("bg_e").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[7].value.toString()=="true") {
 		Widget.GetObjectByName("bg_f").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[8].value.toString()=="true") {
 		Widget.GetObjectByName("bg_g").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[9].value.toString()=="true") {
 		Widget.GetObjectByName("bg_h").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[10].value.toString()=="true") {
 		Widget.GetObjectByName("bg_i").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[11].value.toString()=="true") {
 		Widget.GetObjectByName("bg_j").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[12].value.toString()=="true") {
 		Widget.GetObjectByName("bg_k").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[13].value.toString()=="true") {
 		Widget.GetObjectByName("bg_l").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[14].value.toString()=="true") {
 		Widget.GetObjectByName("bg_m").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[15].value.toString()=="true") {
 		Widget.GetObjectByName("bg_n").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[16].value.toString()=="true") {
 		Widget.GetObjectByName("bg_o").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[17].value.toString()=="true") {
 		Widget.GetObjectByName("bg_p").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[18].value.toString()=="true") {
 		Widget.GetObjectByName("bg_q").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[19].value.toString()=="true") {
 		Widget.GetObjectByName("bg_r").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[20].value.toString()=="true") {
 		Widget.GetObjectByName("bg_s").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[21].value.toString()=="true") {
 		Widget.GetObjectByName("bg_t").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[22].value.toString()=="true") {
 		Widget.GetObjectByName("bg_u").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[23].value.toString()=="true") {
 		Widget.GetObjectByName("bg_v").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[24].value.toString()=="true") {
 		Widget.GetObjectByName("bg_w").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[25].value.toString()=="true") {
 		Widget.GetObjectByName("bg_x").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[26].value.toString()=="true") {
 		Widget.GetObjectByName("bg_y").pathAttributes.fillColor = "#1F1F1F";	
		}
		if (values[27].value.toString()=="true") {
 		Widget.GetObjectByName("bg_z").pathAttributes.fillColor = "#1F1F1F";	
		}
}

switch (Widget.opCode)
{
	case 1: setDefaultValues();   break;
	case 2: applyCurrentValues(); break;
}32