function changeFontSize(inc)
{
  var p = document.getElementsByTagName('p');
  for(n=0; n<p.length; n++) {
    if(p[n].style.fontSize) {
       var size = parseInt(p[n].style.fontSize.replace("px", ""));
    } else {
       var size = 12;
    }
    var nName=p[n].parentNode.nodeName;
    var fs=size+inc;
    if(fs>=18){
    	fs=17;
    	
    }
    if(nName=='H2' && fs>=16)
    	fs=16;
    
    if(fs<=11){
    	fs=11;
    }
    if(fs<=13 && nName=='H2'){
    	fs=13;
    }
    p[n].style.fontSize = fs + 'px';
   }
}

function lightOnMap(mapa) {
var map = document.getElementById(mapa);
if (map){
map.style.backgroundImage = 'url(images/kropka_o.gif)';
map.firstChild.style.color='#ffffff'; 
}
}

function lightOffMap(mapa) {
var map = document.getElementById(mapa);
if (map){
map.style.backgroundImage = '';
map.firstChild.style.color=''; 
}
}

function lightOnMenu(menu,numer) {
var el = document.getElementById(menu);
el.style.backgroundImage = 'url(themes/interferie/images/menu1/' + numer + '.gif)';

}

function lightOffMenu(menu) {
var el = document.getElementById(menu);
el.style.backgroundImage = '';

}


