var y = 1;
function switch_on(x,projekt){
	if(y!=x){
         var txt_on = 'txt_'+x;
         var txt_off = 'txt_'+y;
         new Effect.Fade(txt_off);
         Effect.Appear(txt_on, { duration: 0.3, to:1.0 });
         y=x;
         }}

function switch_reset() {
         var colorq = 'color_box_'+y;
         var swq = 'sw_box_'+y;
         var picq = 'pic_box'+y;
         new Effect.Fade(colorq);
         new Effect.Fade(swq);
         new Effect.Fade(picq);
         hideLayer('trap');
         y=0;}

