set(varMW, 38);
set(varGH, 12);
set(varEH, 9);
set(varY, 2);
set(varX, 2);
set(varGN, 4);
set(varG1EN, 5);
set(varG2EN, 4);
set(varG3EN, 6);
set(varG4EN, 3);
setParameters();
txtadd(varGH_percent,get(varGH), '%');
txtadd(varMW_percent,get(varMW), '%');
txtadd(varEH_percent,get(varEH), '%');
set(varew, get(varMW));
txtadd(varew_percent,get(varew), '%');
txtadd(varY_percent,get(varY), '%');
add(varg2y0, varY, varGH);
txtadd(varg2y0_percent,get(varg2y0), '%');
add(varg3y0, varg2y0, varGH);
txtadd(varg3y0_percent,get(varg3y0), '%');
add(varg4y0, varg3y0, varGH);
txtadd(varg4y0_percent,get(varg4y0), '%');
addplugin(get(pname));
set(plugin[%pname].html,[p]%1[/p]);
set(plugin[%pname].x,%2);
set(plugin[%pname].y,%3);
set(plugin[%pname].width,%4);
set(plugin[%pname].height,%5);
set(plugin[%pname].url, textfield.swf);
plugin[%pname].loadstyle(GroupButtonsStyle)
addplugin(get(pname));
set(plugin[%pname].html,[p]%1[/p]);
set(plugin[%pname].x,%2);
set(plugin[%pname].y,%3);
set(plugin[%pname].width,%4);
set(plugin[%pname].height,%5);
set(plugin[%pname].url, textfield.swf);
plugin[%pname].loadstyle(EventButtonsStyle)
createGbutton(%1, %2, %3, %4, %5);
inc(ypos,get(varGH));
createEbutton(%1, %2, %3, %4, %5);
initParameters();
set(ypos,0);
set(xpos, get(varX));
set(ypos2,0);
set(xpos2, get(varX));
add(ypos,varY);
for(set(i,1), i LE varGN, inc(i),
txtadd(pname, 'Btn_Group', get(i));
txtadd(xpos_percent,get(xpos), '%');
txtadd(ypos_percent,get(ypos), '%');
txtadd(gformation, 'GroupFormation', get(i), '()');
addgroupBTN(get(pname), get(xpos_percent), get(ypos_percent), get(varMW_percent), get(varGH_percent));
set(plugin[%pname].onclick, get(gformation));
mul(ypos2,i, varGH);
add(ypos2,varY);
if(i == 1, set(varGNx, get(varG1EN)); );
if(i == 2, set(varGNx, get(varG2EN)); );
if(i == 3, set(varGNx, get(varG3EN)););
if(i == 4, set(varGNx, get(varG4EN)););
for(set(k,1), k LE varGNx, inc(k),
txtadd(pname, 'Btn_Group', get(i),'_event_', get(k));
txtadd(xpos_percent,get(xpos), '%');
txtadd(ypos2_percent,get(ypos2), '%');
txtadd(gformation, 'GroupFormation', get(i), '()');
addeventBTN(get(pname), get(xpos_percent), get(ypos2_percent), get(varew_percent), get(varEH_percent));
inc(ypos2,get(varEH));
set(plugin[%pname].onclick, get(gformation));
);
);
hideGroup2();
hideGroup3();
hideGroup4();
set(varg1y1, get(varY));
set(plugin[Btn_Group2].blendmode, normal);
set(plugin[Btn_Group3].blendmode, normal);
set(plugin[Btn_Group4].blendmode, normal);
set(plugin[Btn_Group1].blendmode, hardlight);
mul(varqevents1, varG1EN, varEH);
add(varg1l1,varqevents1,varGH);
txtadd(varg1l1_percent,get(varg1l1), '%');
tween(plugin[Btn_Group1].height, get(varg1l1_percent));
tween(plugin[Btn_Group2].height, get(varGH_percent));
tween(plugin[Btn_Group3].height, get(varGH_percent));
tween(plugin[Btn_Group4].height, get(varGH_percent));
add(varg2y1, varg1y1, varg1l1);
txtadd(varg2y1_percent,get(varg2y1), '%');
add(varg3y1, varg2y1, varGH);
txtadd(varg3y1_percent,get(varg3y1), '%');
add(varg4y1, varg3y1, varGH);
txtadd(varg4y1_percent,get(varg4y1), '%');
tween(plugin[Btn_Group2].y, get(varg2y1_percent));
tween(plugin[Btn_Group3].y, get(varg3y1_percent));
tween(plugin[Btn_Group4].y, get(varg4y1_percent));
showGroup1();
set(plugin[Btn_Group1].enabled,false);
set(plugin[Btn_Group2].enabled,true);
set(plugin[Btn_Group3].enabled,true);
set(plugin[Btn_Group4].enabled,true);
hideGroup3();
hideGroup1();
hideGroup4();
set(plugin[Btn_Group3].blendmode, normal);
set(plugin[Btn_Group4].blendmode, normal);
set(plugin[Btn_Group1].blendmode, normal);
set(plugin[Btn_Group2].blendmode, hardlight);
mul(varqevents2, varG2EN, varEH);
add(varg2l2,varqevents2,varGH);
txtadd(varg2l2_percent,get(varg2l2), '%');
tween(plugin[Btn_Group1].height, get(varGH_percent));
tween(plugin[Btn_Group2].height, get(varg2l2_percent));
tween(plugin[Btn_Group3].height, get(varGH_percent));
tween(plugin[Btn_Group4].height, get(varGH_percent));
set(varg2y2,get(varg2y0));
add(varg3y2, varg2y2, varg2l2);
txtadd(varg3y2_percent,get(varg3y2), '%');
add(varg4y2, varg3y2, varGH);
txtadd(varg4y2_percent,get(varg4y2), '%');
tween(plugin[Btn_Group2].y, get(varg2y0_percent));
tween(plugin[Btn_Group3].y, get(varg3y2_percent));
tween(plugin[Btn_Group4].y, get(varg4y2_percent));
showGroup2();
set(plugin[Btn_Group1].enabled,true);
set(plugin[Btn_Group2].enabled,false);
set(plugin[Btn_Group3].enabled,true);
set(plugin[Btn_Group4].enabled,true);
hideGroup2();
hideGroup1();
hideGroup4();
set(plugin[Btn_Group2].blendmode, normal);
set(plugin[Btn_Group4].blendmode, normal);
set(plugin[Btn_Group1].blendmode, normal);
set(plugin[Btn_Group3].blendmode, hardlight);
mul(varqevents3, varG3EN, varEH);
add(varg3l3,varqevents3,varGH);
txtadd(varg3l3_percent,get(varg3l3), '%');
tween(plugin[Btn_Group3].height, get(varg3l3_percent));
tween(plugin[Btn_Group1].height, get(varGH_percent));
tween(plugin[Btn_Group2].height, get(varGH_percent));
tween(plugin[Btn_Group4].height, get(varGH_percent));
set(varg3y3,get(varg3y0));
add(varg4y3, varg3y3, varg3l3);
txtadd(varg4y3_percent,get(varg4y3), '%');
tween(plugin[Btn_Group2].y, get(varg2y0_percent));
tween(plugin[Btn_Group3].y, get(varg3y0_percent));
tween(plugin[Btn_Group4].y, get(varg4y3_percent));
showGroup3();
set(plugin[Btn_Group1].enabled,true);
set(plugin[Btn_Group2].enabled,true);
set(plugin[Btn_Group3].enabled,false);
set(plugin[Btn_Group4].enabled,true);
hideGroup2();
hideGroup1();
hideGroup3();
set(plugin[Btn_Group2].blendmode, normal);
set(plugin[Btn_Group3].blendmode, normal);
set(plugin[Btn_Group1].blendmode, normal);
set(plugin[Btn_Group4].blendmode, hardlight);
mul(varqevents4, varG4EN, varEH);
add(varg4l4,varqevents4,varGH);
txtadd(varg4l4_percent,get(varg4l4), '%');
tween(plugin[Btn_Group4].height, get(varg4l4_percent));
tween(plugin[Btn_Group1].height, get(varGH_percent));
tween(plugin[Btn_Group2].height, get(varGH_percent));
tween(plugin[Btn_Group3].height, get(varGH_percent));
tween(plugin[Btn_Group2].y, get(varg2y0_percent));
tween(plugin[Btn_Group3].y, get(varg3y0_percent));
tween(plugin[Btn_Group4].y, get(varg4y0_percent));
showGroup4();
set(plugin[Btn_Group1].enabled,true);
set(plugin[Btn_Group2].enabled,true);
set(plugin[Btn_Group3].enabled,true);
set(plugin[Btn_Group4].enabled,false);
set(plugin[Btn_Group1_event_1].visible,true);
set(plugin[Btn_Group1_event_2].visible,true);
set(plugin[Btn_Group1_event_3].visible,true);
set(plugin[Btn_Group1_event_4].visible,true);
set(plugin[Btn_Group1_event_5].visible,true);
set(plugin[Btn_Group1_event_6].visible,true);
set(plugin[Btn_Group1_event_1].visible,false);
set(plugin[Btn_Group1_event_2].visible,false);
set(plugin[Btn_Group1_event_3].visible,false);
set(plugin[Btn_Group1_event_4].visible,false);
set(plugin[Btn_Group1_event_5].visible,false);
set(plugin[Btn_Group1_event_6].visible,false);
set(plugin[Btn_Group2_event_1].visible,true);
set(plugin[Btn_Group2_event_2].visible,true);
set(plugin[Btn_Group2_event_3].visible,true);
set(plugin[Btn_Group2_event_4].visible,true);
set(plugin[Btn_Group2_event_5].visible,true);
set(plugin[Btn_Group2_event_6].visible,true);
set(plugin[Btn_Group2_event_1].visible,false);
set(plugin[Btn_Group2_event_2].visible,false);
set(plugin[Btn_Group2_event_3].visible,false);
set(plugin[Btn_Group2_event_4].visible,false);
set(plugin[Btn_Group2_event_5].visible,false);
set(plugin[Btn_Group2_event_6].visible,false);
set(plugin[Btn_Group3_event_1].visible,true);
set(plugin[Btn_Group3_event_2].visible,true);
set(plugin[Btn_Group3_event_3].visible,true);
set(plugin[Btn_Group3_event_4].visible,true);
set(plugin[Btn_Group3_event_5].visible,true);
set(plugin[Btn_Group3_event_6].visible,true);
set(plugin[Btn_Group3_event_1].visible,false);
set(plugin[Btn_Group3_event_2].visible,false);
set(plugin[Btn_Group3_event_3].visible,false);
set(plugin[Btn_Group3_event_4].visible,false);
set(plugin[Btn_Group3_event_5].visible,false);
set(plugin[Btn_Group3_event_6].visible,false);
set(plugin[Btn_Group4_event_1].visible,true);
set(plugin[Btn_Group4_event_2].visible,true);
set(plugin[Btn_Group4_event_3].visible,true);
set(plugin[Btn_Group4_event_4].visible,true);
set(plugin[Btn_Group4_event_5].visible,true);
set(plugin[Btn_Group4_event_6].visible,true);
set(plugin[Btn_Group4_event_1].visible,false);
set(plugin[Btn_Group4_event_2].visible,false);
set(plugin[Btn_Group4_event_3].visible,false);
set(plugin[Btn_Group4_event_4].visible,false);
set(plugin[Btn_Group4_event_5].visible,false);
set(plugin[Btn_Group4_event_6].visible,false);