// verifier que le site est en top framefunction topFrame() {	if (top != self) {		top.location = location	}}// chargement du menufunction loadMenu() {	var re = /\/[^\/]+\.html/;	menuPath = location.pathname.replace(re, "/menu.html");	if (parent.menu.location.pathname != menuPath) {		parent.menu.location.replace('menu.html');	}}// chargement du slideshow selon le menufunction loadSlide() {	if ((top.video.location.pathname == "/menu.html") || (top.video.location.pathname == "/fra/reservoir/item.html") || (top.video.location.pathname == "/eng/reservoir/item.html")) {		top.video.location.replace('/sli/index.html');	}}	// chargement des pages de reservoirfunction loadReser(lang, page) {	top.video.location.replace('/' + lang + '/reservoir/item.html');		top.menu.location.replace('/' + lang + '/reservoir/menu.html');		top.contenu.location = '/' + lang + '/reservoir/' + page;}	// chargement du css pour ie pour le menu fixefunction loadIECss() {	agnt = navigator.userAgent.toLowerCase();	if (agnt.indexOf('msie')!=-1) {		document.write('<link rel="stylesheet" type="text/css" href="/script/reservoir_ie.css" media="screen">');	}}var soundWindow;// chargement d'un fichier sonfunction loadSound(theSound) {	if (top.stream.location.pathname != "/strm_silo_off.html") {		top.stream.location.replace('/strm_silo_off.html');	}	var winName='music',features='toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=400,height=200';  soundWindow = window.open(theSound,winName,features);  soundWindow.focus()}	// chargement de real pour les pieces sonoresfunction loadTune(file) {	cbheight = 26;	sbheight = 26;	lagent = navigator.userAgent.toLowerCase();		if ((lagent.indexOf('mac') != -1) && (((lagent.indexOf('msie') == -1) && (navigator.appName != 'Netscape')) || ((lagent.indexOf('msie') != -1) && (navigator.userAgent.match('5\.[0-9]+') > 5.17)) || ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) > 4)))) {			cbheight = 20;			sbheight = 18;		}	document.write('<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="' + cbheight + '" width="350"><param name="src" value="/son/' + file + '.rpm"><param name="console" value="sound"><param name="NOLOGO" value="true"><param name="controls" value="controlpanel"><param name="autostart" value="true"><param name="NOJAVA" value="true"><embed height="' + cbheight + '" NOJAVA="true" src="/son/' + file + '.rpm" type="audio/x-pn-realaudio-plugin" width="350" NOLOGO="true" autostart="true" controls="controlpanel" console="sound"></object>\n<br>\n<object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" height="' + sbheight + '" width="350"><param name="src" value="/son/' + file + '.rpm"><param name="console" value="sound"><param name="NOLOGO" value="true"><param name="controls" value="statusbar"><param name="autostart" value="true"><param name="NOJAVA" value="true"><embed height="' + sbheight + '" NOJAVA="true" src="/son/' + file + '.rpm" type="audio/x-pn-realaudio-plugin" width="350" NOLOGO="true" autostart="true" controls="statusbar" console="sound"></object>');}	// chargement d'un fichier videofunction loadVideo(movo) {	top.movie = movo;	if (top.stream.location.pathname != "/strm_silo_off.html") {		top.stream.location.replace('/strm_silo_off.html');	}// a modifier	top.video.location.replace('/video/index.html')}	// MACROMEDIAfunction MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.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 MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}function MM_displayStatusMsg(msgStr) { //v1.0  status=msgStr;  document.MM_returnValue = true;}// CSS Netscape Resize bug fixfunction CSFixFct() {	var d = document; var w = window;	if (d.cs.csFix.w != w.innerWidth || d.cs.csFix.h != w.innerHeight) {		d.location = d.location;}}function CSNSFix() { 	var d = document; var w = window;	if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {		if (typeof d.cs == 'undefined') { 			d.cs = new Object;			d.cs.csFix = new Object; 		} else if (CSIsFrame (w) == true) CSFixFct();		d.cs.csFix.w = w.innerWidth;		d.cs.csFix.h = w.innerHeight; 		window.onresize = CSFixFct;	  }}function CSIsFrame (window) {	var rootWindow = window.parent;	if (rootWindow == 'undefined') return false;	for (i = 0; i < rootWindow.frames.length; i++)		if (window == rootWindow.frames[i]) return true;	return false;}
