//Java Scripts
/*var map_fd;
	function mapWindow() {




		map_fd=window.open("/images/franche-comte/imaps/fc_map.jpg", "fc_map", "width=600,height=830, scrollbars=1, resizable");
		map_fd.focus();
	}
*/
var dmapWindow;
	function mapWindow(url, w, h) {

		if (!url)
            url = "/common/fc_map.html";

        if ( !w)
            w = "800";

        if (!h)
            h = "600";

//		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, resizable=1";
		dmapWindow = window.open(url, "ext_link", param3);
		w2 = new Number(w);
		h2 = new Number(h);
		dmapWindow.resizeTo(w2 + 5, h2 + 60);
		dmapWindow.focus();
	}                                                               



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

        if ( !w)
            w = "640";

        if (!h)
            h = "440";

		if (!t)

//		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, resizable=1";

		else
			param3 = "";

		extWindow = window.open(url, "ext_link", param3);
		w2 = new Number(w);
		h2 = new Number(h);
		extWindow.resizeTo(w2 + 5, h2 + 60);
		extWindow.focus();
	}                                                               



var fcmailWindow;
function js_mail(name, domain, subject) {

	var domain = "interfrance.com";
	var send = "mailto: " + name + "@" + domain + "?subject=" + subject;
	fcmailWindow = window.open(send, "mail_win");
	fcmailWindow.focus();
}



var vdWindow;
function vdPlay(url, w, h) {

	if (!url)
		url = "http://www.interfrance.com";

	if ( !w)
		w = "960";

	if (!h)
		h = "740";

//		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, resizable=1";
		vdWindow = window.open(url, "vid_link", param3);
//		qtWindow.document.bgColor="#2c2c2c";
		w2 = new Number(w);
		h2 = new Number(h);
		vdWindow.resizeTo(w2 + 5, h2 + 40);
		vdWindow.focus();
}

function showObject(id) {

	document.all[id].style.visibility = "visible";
}

function hideObject(id ) {
	document.all[id].style.visibility = "hidden";
}



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\"/>";
}

