
function showCountryMap(country_id, lang) {
   var targetWindowName = 'countryMap' + country_id;
   var w = 400;
   var h = 400;
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
   var winprops = 'height=' + h + ',width=' + w + ',top=' +wint+',left='+winl+',scollbars=yes,status=0,titlebar=0,toolbar=0,resizable=0';
   var tmp = window.open('countrymap.php?country='+country_id+'&lang='+lang, targetWindowName, winprops);
   tmp.focus();
   return false;
}


function new_win(adrese, w, h)
{
	width=screen.width;
	height=screen.height;
	l=(width-w)/2;
	t=(height-h)/2-50;

  window.open(adrese, "_blank", "toolbar=no, location=no, left="+l+", top="+t+", directories=no, status=no, menubar=no, scrollbars=no, resizable=0, fullscreen=no, width="+w+", height="+h);
}




function showStationMaps(arr) {
   var mapCount = arr.length - 1;
   for (var i=0; i<mapCount; i++) {
        showStationMap(arr[i+1],arr[0]);
   }
   return false;
}

function showStationMap(station_id, lang) {
   var targetWindowName = 'stationMap' + station_id;
   var w = 400;
   var h = 400;
   var winl = (screen.width - w) / 2;
   var wint = (screen.height - h) / 2;
   var winprops = 'height=' + h + ',width=' + w + ',top=' +wint+',left='+winl+',scollbars=yes,status=0,titlebar=0,toolbar=0,resizable=0';
   var tmp = window.open('stationmap.php?station='+station_id+'&lang='+lang, targetWindowName, winprops);
   tmp.focus();
   return false;
}

function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = initArray.arguments[i];
   }
}


var speed = 1000;
var x = 0;
var c = 0;
var color = new initArray(
"red",
"yellow",
"#76C41F"
);

function chcolor(){
/*
colorchange=document.getElementById("blink");
(x < color.length-1) ? x++ : x = 0;
colorchange.style.color = color[x];
*/


}


setInterval("chcolor()",1000);

 
