var jezik = $.url.segment(0);
if(jezik == null) jezik = 'si';

//zemljevid
var flashvars = {};
var params = {};
    	//params.wmode = "transparent";
params.bgcolor = "#ffffff";
var attributes = {};
swfobject.embedSWF("/zemljevid/zemljevid_v3_cs4.swf?jezik="+jezik+"&rand=<?=rand();?>", "map", "587", "392", "8.0.0", false, flashvars, params, attributes);


function getCountry(country){
   // alert(country);
  $("#ajax_zemljevid").fadeIn();
  $.get("/include/ajax.zemljevid.php", { id: country,rand: Math.random()},
  function(data){
    $("#ajax_zemljevid").html(data);
  });
}

function hideCountry(){
  $("#ajax_zemljevid").fadeOut();
}

function getJezik() {
pathArray = window.location.pathname.split( '/' );
return pathArray[1];
}

function getNapis(location){
  //alert(location);
  var tekst = '';
  var jezik = getJezik();
  if(jezik == 'si')
  {
    if(location == 1) tekst = 'Za ogled zemljevida Slovenije kliknite na rdečo piko.';
    else if (location == 2) tekst = 'Za ogled zemljevida Krško klinite na rdečo ikono pri Krško.';
    else tekst = '&nbsp;';
  }
  else if(jezik == 'en')
  {
    if(location == 1) tekst = 'Click on the red dot to view the map of Slovenia.';
    else if (location == 2) tekst = 'To view the map of Krško, click on the red square next to the Krško marker.';
    else tekst = '&nbsp;';
  }


  $("#zemljevid_napis").html(tekst);
}

