function projet(url) {
	win_jwk = window.open(url, 'jwk', 'scrollbars=no,resizable=no,status=no,width=608,height=400');
	win_jwk.focus();
}
function trailer(url, w, h) {
	w = w + 40;
	h = h + 40;
	win_jwk = window.open(url, 'jwk', 'scrollbars=no,resizable=no,status=no,width=' + w + ',height=' + h);
	win_jwk.focus();
}

function special(url) {
	win_jwk = window.open(url, 'jwk', 'scrollbars=auto,resizable=no,status=yes,width=500,height=490');
	win_jwk.focus();
}

function fixExternalLinks() {
	$$('a').each(function(e) {
		if((e.href.indexOf(window.location.hostname) == -1) && (!e.href.startsWith('mailto:')) && (!e.href.startsWith('#'))) {
			e.target = '_blank';
		}
	});
}

function initAtopia() {
	fixExternalLinks();
}

Event.observe(window, 'load', initAtopia, false);

