var aktualPosition = 0
function loadNewBrandBox(smer) {
	var styleDoc = document.getElementById("allBrandsBox").style;
	if (smer == "prev") {
		if (aktualPosition < 0) {
			aktualPosition = aktualPosition + skok;
		}
	} else {
		if (aktualPosition > -2200) {
			aktualPosition = aktualPosition - skok;
		}
	}
	styleDoc.left = aktualPosition + "px";

	if (aktualPosition > -1) {
		document.getElementById("levaSipka").style.backgroundImage = "none";
	}
	if (aktualPosition <= -2200) {
		document.getElementById("pravaSipka").style.backgroundImage = "none";
	}
	if (aktualPosition < 0) {
		if (document.getElementById("levaSipka").style.backgroundImage != "url('"+URL+"/images/sk/icons/top-arrow-left.gif')") {
			document.getElementById("levaSipka").style.backgroundImage = "url('"+URL+"/images/sk/icons/top-arrow-left.gif')";
		}
	}
	if (aktualPosition > -2200) {
		if (document.getElementById("pravaSipka").style.backgroundImage != "url('"+URL+"/images/sk/icons/top-arrow-right.gif')") {
			document.getElementById("pravaSipka").style.backgroundImage = "url('"+URL+"/images/sk/icons/top-arrow-right.gif')";
		}
	}
}
function zmenaPozadi() {
	var date = new Date();
	date.setTime(date.getTime() + (365 * 24 * 60 * 60 * 1000));
	var expires = "; expires=" + date.toGMTString();

	if (document.getElementById("vymena").innerHTML == "Zapnout pozadí") {
		document.getElementById("vymena").innerHTML = "Vypnout pozadí";
		var hodnota = "Y";
		document.getElementById("body").style.backgroundImage = "url('"+URL+BACKGROUND+"')";
	} else {
		document.getElementById("vymena").innerHTML = "Zapnout pozadí";
		var hodnota = "N";
		document.getElementById("body").style.backgroundImage = "none";
		document.getElementById("body").style.backgroundColor = "#252525";
	}
	document.cookie = "background=" + hodnota + expires + "; path=/";
}
jQuery(document).ready(function(){
	hideantispam();
})