/* ******************* */
/* Regional Finder Map */
/* ******************* */

if(document.images) 
{    
  sk_on = new Image;
  sk_on.src = 'fileadmin/templates/img/map_sk.gif';
  sk_off = new Image;
  sk_off.src = 'fileadmin/templates/img/map.gif';

  si_on = new Image;
  si_on.src = 'fileadmin/templates/img/map_si.gif';
  si_off = new Image;
  si_off.src = 'fileadmin/templates/img/map.gif';

  ro_on = new Image;
  ro_on.src = 'fileadmin/templates/img/map_ro.gif';
  ro_off = new Image;
  ro_off.src = 'fileadmin/templates/img/map.gif';

  pl_on = new Image;
  pl_on.src = 'fileadmin/templates/img/map_pl.gif';
  pl_off = new Image;
  pl_off.src = 'fileadmin/templates/img/map.gif';

  nl_on = new Image;
  nl_on.src = 'fileadmin/templates/img/map_nl.gif';
  nl_off = new Image;
  nl_off.src = 'fileadmin/templates/img/map.gif';

  lu_on = new Image;
  lu_on.src = 'fileadmin/templates/img/map_lu.gif';
  lu_off = new Image;
  lu_off.src = 'fileadmin/templates/img/map.gif';

  li_on = new Image;
  li_on.src = 'fileadmin/templates/img/map_li.gif';
  li_off = new Image;
  li_off.src = 'fileadmin/templates/img/map.gif';

  hu_on = new Image;
  hu_on.src = 'fileadmin/templates/img/map_hu.gif';
  hu_off = new Image;
  hu_off.src = 'fileadmin/templates/img/map.gif';

  fr_on = new Image;
  fr_on.src = 'fileadmin/templates/img/map_fr.gif';
  fr_off = new Image;
  fr_off.src = 'fileadmin/templates/img/map.gif';

  dk_on = new Image;
  dk_on.src = 'fileadmin/templates/img/map_dk.gif';
  dk_off = new Image;
  dk_off.src = 'fileadmin/templates/img/map.gif';

  cz_on = new Image;
  cz_on.src = 'fileadmin/templates/img/map_cz.gif';
  cz_off = new Image;
  cz_off.src = 'fileadmin/templates/img/map.gif';

  ch_on = new Image;
  ch_on.src = 'fileadmin/templates/img/map_ch.gif';
  ch_off = new Image;
  ch_off.src = 'fileadmin/templates/img/map.gif';

  bg_on = new Image;
  bg_on.src = 'fileadmin/templates/img/map_bg.gif';
  bg_off = new Image;
  bg_off.src = 'fileadmin/templates/img/map.gif';

  be_on = new Image;
  be_on.src = 'fileadmin/templates/img/map_be.gif';
  be_off = new Image;
  be_off.src = 'fileadmin/templates/img/map.gif';

  at_on = new Image;
  at_on.src = 'fileadmin/templates/img/map_at.gif';
  at_off = new Image;
  at_off.src = 'fileadmin/templates/img/map.gif';

  de_on = new Image;
  de_on.src = 'fileadmin/templates/img/map_de.gif';
  de_off = new Image;
  de_off.src = 'fileadmin/templates/img/map.gif';

  ua_on = new Image;
  ua_on.src = 'fileadmin/templates/img/map_ua.gif';
  ua_off = new Image;
  ua_off.src = 'fileadmin/templates/img/map.gif';
}

function changeMapOn(img_name)
{
  if(document.images) {
    img_on = eval(img_name + '_on.src');      
    document.getElementById('mapImg').src = img_on;
  }
}

function changeMapOff()
{
  if(document.images) {
    document.getElementById('mapImg').src = 'fileadmin/templates/img/map.gif';
  }
}

function showFactoryItem(factory) 
{
	try 
	{
	    document.getElementById(factory).style.display = "block";
	} 
	catch (e) 
	{
		
	}
}


function hideFactoryItem(factory) 
{
	try 
	{
		document.getElementById(factory).style.display = 'none';
	} 
	catch (e) 
	{
		
	}
}