function Z(o,i){
	if (i==1) {o.style.borderBottomColor="#DF001D";} else {o.style.borderBottomColor="";};
}
function Browser() {
  var ua,s,i;
  this.isIE=false; this.isOP=false; this.isNS=false;
  this.version=null;
  ua = navigator.userAgent;
  s="Opera";		if ((i = ua.indexOf(s)) >= 0) {this.isOP = true;this.version=parseFloat(ua.substr(i + s.length));return;}
  s="Netscape6/";	if ((i = ua.indexOf(s)) >= 0) {this.isNS = true;this.version = parseFloat(ua.substr(i + s.length));return;}
  s="Gecko";		if ((i = ua.indexOf(s)) >= 0) {this.isNS = true;this.version = 6.1;return;}
  s="MSIE";			if ((i = ua.indexOf(s))) {this.isIE = true;this.version = parseFloat(ua.substr(i + s.length));return;}
}

var a=1;

function step2(){
	var b = new Browser;
	a+=1;
	if (a>4) {a=1;}
	var grafikaL=document.getElementById("grafikaL");
	var grafikaR=document.getElementById("grafikaR");
	grafikaL.src="foto/imgL"+String(a)+".jpg";
	grafikaR.src="foto/imgR"+String(a)+".jpg";
}
function start(){
	window.setInterval("step2()",5000); 
}
function GO(){
	var b = new Browser;
	
	var imgFotoL=document.getElementById("imgFotoL");
	var imgFotoR=document.getElementById("imgFotoR");
	
	var grafikaL=document.getElementById("grafikaL");
	var grafikaR=document.getElementById("grafikaR");
	
	if (b.isIE) {
		imgFotoL.filters[0].apply();
		imgFotoR.filters[0].apply();
		imgFotoL.src=grafikaL.src;
		imgFotoR.src=grafikaR.src;
		imgFotoL.filters[0].play();
		imgFotoR.filters[0].play();
	} else {
		imgFotoL.src=grafikaL.src;
		imgFotoR.src=grafikaR.src;
	}
}

