function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImagesArray(array) {
	if (preloadFlag == true) {
		var d = document; var img;
		for (var i=0; i<array.length; i+=2) {
			img = null; var n = array[i];
			if (d.images) {img = d.images[n];}
			if (!img && d.getElementById) {img = d.getElementById(n);}
			if (img) {img.src = array[i+1];}
		}
	}
}

function changeImages() {
	changeImagesArray(changeImages.arguments);
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		pre_bt_i01_over = newImage('images/bt_i01_over.gif');
		pre_bt_i02_over = newImage('images/bt_i02_over.gif');
		preloadFlag = true;
	}
}


var slideShowSpeed = 4000


var crossFadeDuration = 2


var Pic = new Array() 
Pic[0] = 'images/maison-louer-baie-st-paul_.jpg'
Pic[1] = 'images/maison-louer-baie-st-paul_x.jpg'
Pic[2] = 'images/maison-louer-baie-st-paul_y.jpg'
Pic[3] = 'images/maison-louer-baie-st-paul_z.jpg'
Pic[4] = 'images/maison-louer-baie-st-paul_w.jpg'





var t
var j = 0
var p = Pic.length
var preLoad = new Array()
for (i = 0; i < p; i++){
preLoad[i] = new Image()
preLoad[i].src = Pic[i]
}

function runSlideShow(){
if (document.all){
document.images.SlideShow.style.filter="blendTrans(duration=2)"
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
document.images.SlideShow.filters.blendTrans.Apply() 
}
document.images.SlideShow.src = preLoad[j].src
if (document.all){
document.images.SlideShow.filters.blendTrans.Play()
}
j = j + 1
if (j > (p-1)) j=0
t = setTimeout('runSlideShow()', slideShowSpeed)
}

if (self != top) {top.location = self.location};
function ouvrir(theURL,LARGEUR,HAUTEUR){
propriete='screenX=0,screenY=10,top=0,left=10,scrollbars=1,toolbar=0,menubar=0,resizable=0,width='+LARGEUR+',height='+HAUTEUR
newwindow= window.open(theURL,'',propriete); } ;
function ouvrir3(theURL,LARGEUR,HAUTEUR){
propriete='screenX=0,screenY=10,top=0,left=10,scrollbars=0,toolbar=0,menubar=0,resizable=0,width='+LARGEUR+',height='+HAUTEUR
newwindow= window.open(theURL,'',propriete); } ;


function disableselect(e){
return false
}

function reEnable(){
return true
};

//if IE4+
document.onselectstart=new Function ("return false")
document.oncontextmenu=new Function ("return false");
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
};
