function preloadImages() {
	var d = document; 
	if(d.images) { 
		if(!d.pictures) d.pictures = new Array();
    		var i, j = d.pictures.length, a = preloadImages.arguments; 
		for(i=0; i<a.length; i++) if(a[i].indexOf("#") != 0) { 
			d.pictures[j] = new Image; 
			d.pictures[j++].src = a[i];
		}
	}
}

function breakoutFrame() {
	if(top.location != self.location) top.location.href = self.location.href;
}

function resizeW() {
	if (document.all) { //specific IE property
		window.moveTo(0,0);		
		window.resizeTo(screen.availWidth,screen.availHeight);
	} else if (document.layers) { //specific NS property
		if (window.outerHeight < screen.availHeight || window.outerWidth < screen.availWidth) window.moveTo(0,0);		
		if (window.outerHeight < screen.availHeight) window.outerHeight = screen.availHeight;
		if (window.outerWidth < screen.availWidth) window.outerWidth = screen.availWidth;
	}
}

var pos = 0;
var timeoutId;
function statMsg() {
	var msg = "Site Libertin www.aquatre.org                   ";
	top.status = msg.substring(pos, msg.length) + msg.substring(0 ,pos);
	pos++;
	if(pos > msg.length) {
		pos = 0;
		statMsg();
	} else timeoutId = top.setTimeout("statMsg()", 200);
}

function statBar() {
	if(statBar.arguments[0]) {
		top.clearTimeout(top.timeoutId);		
		top.status = statBar.arguments[0];
	} else top.statMsg();		
}

function info(url, title) {
	var posLeft, posTop, width, height;
	width = 400;
	height = 200;
	posLeft = (screen.width - width)/2;
	posTop = (screen.height - height)/2;
	if(title == undefined) title = "Aquatre";
	win = window.open(url, title, "width="+width+",height="+height+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
	win.moveTo(posLeft, posTop);
}

function noClick(evt) {
	var msg = "Vous voulez nos photos ?\n... Contactez nous !\n\nŠ www.aquatre.org           ";
	if(document.all && event.button == 2 || document.layers && evt.which == 3) {
		alert(msg);
		return false;	
	}	
}

if(document.layers) document.captureEvents(Event.MOUSEDOWN);
document.onmousedown = noClick;		