﻿
//function blockError(){return true;}
//window.onerror = blockError;

//if (parent.location.href == self.location.href){window.location.href = 'index.php' } // use comment in local use

function context()  {alert('© Initiativeweb'); return(false); }
document.oncontextmenu = context;

var msg=" Bienvenue en Bourgogne ";var i=0;
function defilmsg() {window.status=msg.substring(i, msg.length)+msg.substring(0, i);i++;
 if (i>msg.length) i=0;window.setTimeout("defilmsg()",200); }
 
function loading() {
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=loading.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} }

function hideDivs() {var subMenus = new Array("content","image","content1","image1","content2","image2","content3","image3","content4","image4","content5","image5","content6","image6","content7","image7","content8","image8");
	for (var i=0;i<18;i++) {var tmpDiv= document.getElementById(subMenus[i]); tmpDiv.style.display = "none";} }

function ShowHide(thisdiv) {
 if (document.all) {document.getElementById(thisdiv).style.display=document.getElementById(thisdiv).style.display=='none'?"block":"none";}
 else {document.getElementById(thisdiv).style.display=document.getElementById(thisdiv).style.display=='none'?"block":"none";} }
 
function swf(theSWF, features, divId, bgColor) {
	if (theSWF ==  null)  theSWF = "main.swf"; 
	if (features ==  null)  features = "width='100%' height='100%' align='middle' "; 
	if (divId ==  null)  divId = "mainDiv"; 
	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+' /><param name="wmode" value"transparent" />';
	swfContent = swfContent +'<a href="http://www.adobe.com/go/getflash/"><img src="images/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 pop_img(Width,Height,img) { winpop=open("",'popup','width='+Width+',height='+Height+',top=0,left=100,toolbar=no,scrollbars=no,resizable=yes,title=no');
	winpop.document.write("<html>\n<head>\n<title>pop-up image</title>\n</head>\n<body>\n<center>\n<img src="+img);
	winpop.document.write("\n<br><br>\n<font size='2'><a href='javascript:window.close();'>[Fermer la fenêtre]</a></font>\n</center>\n</body>\n</html>"); }
	
function pop_up(theURL,winName,features) {window.open(theURL,winName,features);}
