polozky_s["hotspots"]=new Array();

function clearHotspots()
	{
	var i;
	if (jsou_odkazy)
		{
		for (i=0;i<sgu_x;i++)
			{
			iy[i]=new Array;
			for (j=0;j<sgu_y;j++) iy[i][j]=new Array;
			}
		polozky_s['hotspots']=new Array();
		switchLayer('hotspots',false);
		nacteno['hotspots']=false;
		for (i=0;i<pocet_poli_polozek;i++) indexuj_odkazy(i);
		for (i=0;i<vrstvy.length;i++) {indexuj_odkazy(vrstvy[i],true);}
		}
	}

function addHotspot (sx,sy,id,ikona,popis)
	{
	if (jsou_odkazy)
		{
		polozky_s["hotspots"][polozky_s["hotspots"].length]=new Array(id,2,sx,sy,ikona,popis,0,0);
		nacteno['hotspots']=true;
		}
	}

function addHotspotSF (polozka)
	{
	if (jsou_odkazy)
		{
		polozky_s["hotspots"][polozky_s["hotspots"].length]=polozka;
		nacteno['hotspots']=true;
		}
	}

function repaint()
	{
	if (jsou_odkazy)
		{
		indexuj_odkazy('hotspots',true);
		switchLayer('hotspots',nacteno['hotspots']);
		}
	i_lh_x_old=-1;
	load_images(px,py);
	}
