// JavaScript Document
featuredcontentslider.init({
id: "slider1", //id of main slider DIV
contentsource: ["inline", ""], //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
toc: "markup", //Valid values: "#increment", "markup", ["label1", "label2", etc]
nextprev: ["Poprzedni", "Następny"], //labels for "prev" and "next" links. Set to "" to hide.
enablefade: [true, 0.2], //[true/false, fadedegree]
autorotate: [false, 3000], //[true/false, pausetime]
onChange: function(previndex, curindex){ //event handler fired whenever script changes slide
//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
var odnosnik1 = document.getElementById('days-1');
var odnosnik2 = document.getElementById('days-2');
var odnosnik3 = document.getElementById('days-3');
	if(curindex=='1' || curindex=='2' || curindex=='3')  {
		odnosnik1.className = "hotbox-link-2";
		odnosnik2.className = "hotbox-link-1";
		odnosnik3.className = "hotbox-link-1";
		}
	else if(curindex=='4' || curindex=='5' || curindex=='6') {
		odnosnik1.className = "hotbox-link-1";
		odnosnik2.className = "hotbox-link-2";
		odnosnik3.className = "hotbox-link-1";
		}
	else if(curindex=='7' || curindex=='8' || curindex=='9') {
		odnosnik1.className = "hotbox-link-1";
		odnosnik2.className = "hotbox-link-1";
		odnosnik3.className = "hotbox-link-2";
		}

	}
})


