function playVoice(term, lang )
{
	var id = "voice";

	if (lang)
		path = "/" + lang + "/audio/";
	else
		path = "audio/";

	var a = document.getElementsByTagName('audio') [0];

	if ( !a ) return;

	if ( !a.play ) return; // will exit if the browser does not understand the audio tag

	if (a.canPlayType('audio/ogg; codecs="theora, vorbis"')) {
		// it can play (maybe)
		sound = path + term + ".ogg";	

	} else {
		// the container format or codecs aren't supported
		sound = path + term + ".mp3";
	}

//	a.load();
	a.src = sound;
	a.load();
	a.play();
}
	
function playSound(term, lang) {
	if (lang)
		sound = "/" + lang + "/audio/" + term + ".mp3";
	else
		sound = "/audio/" + term + ".mp3";
	document.getElementById("audio-container").innerHTML=
	"<embed src=\""+sound+"\" hidden=\"true\" autostart=\"true\" loop=\"false\" />";
	}









//var mapWindow;
	function mapWindow() {
		window.open("/images/franche-comte/imaps/fc_map.jpg", "fc_map", "width=600,height=400,scrollbars,resizable");
	}

var extWindow;
	function newWindow(url, w, h) {
		if (!url)
            url = "http://www.intercaspian.com";

        if ( !w)
            w = "640";

        if (!h)
            h = "440";

//		param3 = "width=" + w + ",height=" + h + ",toolbar=1,scrollbars=1,resizable=1,status=1,menubar=1,directories=1,location=1,navigation=1";
		param3 = "width=" + w + ",height=" + h + "status=1, scrollbars=1";
		extWindow = window.open(url, "ext_link", param3);
		w2 = new Number(w);
		h2 = new Number(h);
		extWindow.resizeTo(w2 + 5, h2 + 60);
		extWindow.focus();
	}                                                               


