

var poweredByProtiPl_flaga = 1;


function poweredByProtiPl(id_) {
	poweredByProtiPl_1 = new Animator({
		duration: 150,
		interval: 10,
		onComplete: function () {
			if (poweredByProtiPl_flaga == 3) {
				poweredByProtiP2();
			}
			poweredByProtiPl_flaga = 2;
		}
	}).addSubject(new NumericalStyleSubject($('powered_by_proti_pl_2'),'left',104,0))
	poweredByProtiPl_2 = new Animator({
		duration: 150,
		interval: 10,
		onComplete: function () {
			poweredByProtiPl_flaga = 1;
		}
	}).addSubject(new NumericalStyleSubject($('powered_by_proti_pl_2'),'left',0,104))
	
	
	
	
	if (id_ == 1) {
		//alert(2);
		if (poweredByProtiPl_flaga == 3) {
			poweredByProtiPl_flaga = 0;
		}
		else if (poweredByProtiPl_flaga == 1) {
			poweredByProtiPl_flaga = 0;
			poweredByProtiPl_1.play();
		}
	}
	else if (id_ == 2) {
		//alert(1);
		if (poweredByProtiPl_flaga == 0) {
			poweredByProtiPl_flaga = 3;
		}
		else if(poweredByProtiPl_flaga == 2) {
			poweredByProtiPl_flaga = 4;
			poweredByProtiP2();
		}
	}
	
	
	
	
	
	
	
}



var poweredByProtiP2_flaga = 0;
function poweredByProtiP2() {
	poweredByProtiPl_1 = new Animator({
		duration: 150,
		interval: 10,
		onComplete: function () {
			if (poweredByProtiPl_flaga == 3) {
				poweredByProtiPl_2.play();
			}
			poweredByProtiPl_flaga = 2;
		}
	}).addSubject(new NumericalStyleSubject($('powered_by_proti_pl_2'),'left',104,0))
	poweredByProtiPl_2 = new Animator({
		duration: 150,
		interval: 10,
		onComplete: function () {
			poweredByProtiPl_flaga = 1;
		}
	}).addSubject(new NumericalStyleSubject($('powered_by_proti_pl_2'),'left',0,104))
	
	
	
	
	
	
	if (poweredByProtiP2_flaga == 0) {
		poweredByProtiP2_flaga = 1;
		idInter = setInterval('poweredByProtiP2();',600);
	}
	else if (poweredByProtiP2_flaga == 1) {
		clearInterval(idInter);
		poweredByProtiP2_flaga = 0;
		poweredByProtiPl_2.play();
	}
	
	
}







