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>3) {a=0;}
	var grafika=document.getElementById("grafika");
	grafika.src="img/foto"+String(a)+".jpg";
}
function start(){
	window.setInterval("step2()",5000); 
}
function GO(){
	var b = new Browser;
	
	var intro=document.getElementById("naglowek_foto");
	var grafika=document.getElementById("grafika");
	if (b.isIE) {
		intro.filters[0].apply();
		intro.style.backgroundImage="url("+grafika.src+")";
		intro.filters[0].play();
	} else {
		intro.style.backgroundImage="url("+grafika.src+")";
	}

}
function S(o){
	if (o=="tab1"){return "1"};
	if (o=="tab2"){return "2"};
}
function Tb(o){
	var tabs=document.getElementById("tabs");
	tabs.style.backgroundImage="url(img/"+o.id+".gif)";
	document.getElementById("tabid").value=S(o.id);
}

