<!--
function getSwf(id, src, width, height) {
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '" id="' + id + '" align="middle">\n');
    document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
    document.write('<param name="movie" value="' + src + '" />\n');
    document.write('<param name="quality" value="high" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('<param name="bgcolor" value="#ffffff" />\n');
    document.write('<embed src="' + src + '" wmode="transparent" quality="high" bgcolor="#ffffff" width="' + width + '" height="' + height + '" name="' + id + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
    document.write('</object>\n');
}
function dis_submit() {
    document.main.action = 'index.php';
    document.main.target = '_self';
    document.main.submit();
}
function ln(ln,rub,url) {
	document.main.action = url;
	document.main.p_rub.value = rub;
    document.main.p_ln.value = ln;
	document.main.submit();
}
function rub(rub) {
    document.main.p_rub.value = rub;
	document.main.p_ssr.value = "home";
    dis_submit();
}
function ssr(ssr) {
	document.main.p_ssr.value = ssr;
    dis_submit();
}

function search(myaction) {
	document.main.p_ssr.value = 'list';
	document.main.action = myaction;
	document.main.target = '_self';
    document.main.submit();
}

function show(id) {
	document.main.p_ssr.value = "show";
    document.main.p_show.value = id;
    dis_submit();
}
function rub_ssr(rub, ssr) {
    document.main.p_rub.value = rub;
    document.main.p_ssr.value = ssr;
    dis_submit();
}
function rub_ssr_show(rub, ssr, id) {
    document.main.p_rub.value = rub;
    document.main.p_ssr.value = ssr;
    document.main.p_show.value = id;
    dis_submit();
}
function show_photo(ph) {
    document.main.action = 'inc/photo.php?photo=' + ph;
    document.main.target = '_blank';
    document.main.submit();
}
function show_chateau(ph) {
    document.main.action = 'inc/photochateau.php?photo=' + ph;
    document.main.target = '_blank';
    document.main.submit();
}
function popup(lien, width, height) {
	titre = Math.round(Math.random() * 4294967295);
	window.open(lien, titre, 'toolbar=no,resizable=yes,menubar=no,location=no,status=no,scrollbars=yes,width='+width+',height='+height);
}
function openurl(lien) {
    if (lien != "Sélectionnez" && lien!="") {
        document.location.href = lien;
    }
}
function getrail(rub) {
    document.main.p_railrubrique.value = rub;
	document.main.submit();
}
//-->