﻿//-->
    var scrmsg = "  B i e n v e n u e  au  C h â t e a u  de  D r é e  -  "; 
    var scrspacer = " "; 
    var scrpos = 0; 
    function ScrollMessage() { window.status = scrmsg.substring(scrpos, scrmsg.length) + scrspacer + scrmsg.substring(0,scrpos); 
        scrpos++; 
        if (scrpos > scrmsg.length) scrpos = 0; 
        window.setTimeout("ScrollMessage()", 200); } 

    ScrollMessage(); 

    var msg="  Le chateau de Dree en Bourgogne du Sud  -  ";

    function ScrollTitle() { document.title=msg;
        msg=msg.substring(1,msg.length)+msg.charAt(0);
        setTimeout("ScrollTitle()", 200); }
    
	ScrollTitle();
//-->

function context()  {alert('© Initiativeweb'); return(false); }
document.oncontextmenu = context;
//-->

function swflash(theSWF, features, divId, bgColor) {
	if (theSWF ==  null)  theSWF = "main.swf"; 
	if (features ==  null)  features = "width='742' height='70' align='left' "; 
	if (divId ==  null)  divId = "flashcontent"; 
	if (bgColor == null) bgColor = "#FFFFFF";
	var swfContent = '';
	swfContent = swfContent +'<object type="application/x-shockwave-flash" data='+theSWF+' '+features+'>';
	swfContent = swfContent +'<param name="movie" value='+theSWF+' /><param name="bgcolor" value='+bgColor+' />';
	swfContent = swfContent +'<a href="http://www.adobe.com/go/getflash/"><img src="img/noflash.jpg" alt="Get Flashplayer" /></a>';
	swfContent = swfContent +'</object>';
	
	if(!divId || document.getElementById(divId) == null) document.writeln(swfContent);

	if (divId) {
		var container = document.getElementById(divId);
		container.innerHTML = swfContent; }
}

function popup_img(largeur,hauteur,img) {
	wind=open("",'popup','width='+largeur+',height='+hauteur+',top=100,left=100,toolbar=no,scrollbars=no,resizable=yes');
	var wx = wind.screen.availWidth - largeur - 12;
	wind.focus();
	wind.moveTo(wx,0);
	var contents = "";
	contents = contents +'<html><head><title>Popup</title></head><body><center><img src='+img+' border="0"><br><br>';
	contents = contents +'<font size="3">Coordonées GPS (décimal) - Latitude: 46,32 - Longitude: 4,31</font>';
	contents = contents +'</center></body></html>';
	wind.document.write(contents);
}