// JavaScript Document
function confirmLink(theLink, question)
{
    if (typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed = confirm(question);
    if (is_confirmed) {
        if ( typeof(theLink.href) != 'undefined' ) {
            theLink.href += '&confirmed=1';
        } else if ( typeof(theLink.form) != 'undefined' ) {
            theLink.form.action += '?confirmed=1';
        }
    }

    return is_confirmed;
} // end of the 'confirmLink()' function

function AktivniInzerce(aktivni) {
var trida;
	if (aktivni=='typ') {trida='aktivni';}else{trida='';}
	document.getElementById('inzerce-typ-typ').className=trida;
	if (aktivni=='znacka') {trida='aktivni';}else{trida='';}
	document.getElementById('inzerce-typ-znacka').className=trida;
	if (aktivni=='region') {trida='aktivni';}else{trida='';}
	document.getElementById('inzerce-typ-region').className=trida;
	return false;
}

function mapa(kolik) {
if(kolik < 8) {
document.getElementById('mapa_kraju').style.backgroundPosition = "0px -"+(kolik*170)+"px";
} else {
document.getElementById('mapa_kraju').style.backgroundPosition = "-271px -"+((kolik-7)*170)+"px";
}
if (kolik==0)
	{
	for (i=1;i<=14;i++)
		{
		document.getElementById('seznam_kraju_'+i).style.backgroundColor='';
		}
	}else{
	document.getElementById('seznam_kraju_'+kolik).style.backgroundColor='yellow';
	}
}
