t_kraje = new Array('Global Home','France');
t_kody = new Array('en','fr');

our_image3 = new Image();
our_image3.src = "images/arr_dn_over.gif";

g_country_code='en';

function toggle_box(){
	l = document.getElementById("l1");
	vis=l.style.visibility;
	if (vis=='hidden')
		vis='visible';
	else
		vis='hidden';
	l.style.visibility=vis;
	return true;
}

function select_country2(co,co2){
//	alert(co + "\n" + co2);
	t = document.getElementById("t1");
	t.value=co;
	t = document.getElementById("t2");
	t.value=co2;
	toggle_box();
	switch_country();
	return true;
}
function switch_country(){
	t = document.getElementById("t2");
//	alert(t);
	if (t.value.substr(0,4) == 'http'){
		document.location=t.value;
	}else{
//		alert(t.value);
	}
	return true;
}


function select_country(co){

	for (i=0;i<t_kody.length;i++)
		if (t_kody[i]==co)
		{
			countrytxt=t_kraje[i];
			i=t_kody.length;
		}
	g_country_code=co;
	t1.value=countrytxt;
	toggle_box();

}

function switch_site(){
window.location="index.php3?lang="+g_country_code;
}


function switch_address(s){
//	alert(s.value);
	l = window.location.search.substr(1);
	ll = l.split("&");
	nn = new Array();
	for (i=0;i<ll.length;i++){
		op = ll[i].split("=")
		if (op[0] != 'id_article2'){
			nn.push(ll[i]);
		}
	}
	nn.push("id_article2=" + s.value);
	nl = window.location.href.split("?");
	nl = nl[0];
	nl = nl + "?" + nn.join("&") + "#location";
//	alert(nl);
	s.selectedIndex = 0;
	window.location.href = nl;
//	window.location.search = nl;
//	window.location.hash = "#location";

	return true;
}

function switch_address2(s){

	window.frames['address'].location.href = "location_a.php3?id_article2=" + s.value + "#location";

	return true;
}