function leftRight() {
	var leftAndRight = (document.all)  ? Math.ceil(((document.body.clientWidth-762)/2)) : Math.ceil(((window.innerWidth-762)/2));
	document.write ('<TD width="'+leftAndRight+'" class="bg">&nbsp;</TD>');
}

function preload(level){
	if (level==1){path="../"}
	else if (level==2){path="../../"}
	else if (level==3){path="../../../"}
	else if (level==4){path="../../../../"}

	writer_off=new Image;writer_off.src=path+"images/writer01.jpg";
	writer_on=new Image;writer_on.src=path+"images/writer02.jpg";
	ergo_off=new Image;ergo_off.src=path+"images/ergo01.jpg";
	ergo_on=new Image;ergo_on.src=path+"images/ergo02.jpg";
	links_off=new Image;links_off.src=path+"images/desmoi01.jpg";
	links_on=new Image;links_on.src=path+"images/desmoi02.jpg";
	contact_off=new Image;contact_off.src=path+"images/cont01.jpg";
	contact_on=new Image;contact_on.src=path+"images/cont02.jpg";
	print_off=new Image;print_off.src=path+"images/print01.jpg";
	print_on=new Image;print_on.src=path+"images/print02.jpg";
}
function preloadEnglish(level){
	if (level==1){path="../"}
	else if (level==2){path="../../"}
	else if (level==3){path="../../../"}
	else if (level==4){path="../../../../"}

	writer_off=new Image;writer_off.src=path+"images/en/writer01.jpg";
	writer_on=new Image;writer_on.src=path+"images/en/writer02.jpg";
	ergo_off=new Image;ergo_off.src=path+"images/en/ergo01.jpg";
	ergo_on=new Image;ergo_on.src=path+"images/en/ergo02.jpg";
	links_off=new Image;links_off.src=path+"images/en/desmoi01.jpg";
	links_on=new Image;links_on.src=path+"images/en/desmoi02.jpg";
	contact_off=new Image;contact_off.src=path+"images/en/cont01.jpg";
	contact_on=new Image;contact_on.src=path+"images/en/cont02.jpg";
	print_off=new Image;print_off.src=path+"images/print01.jpg";
	print_on=new Image;print_on.src=path+"images/print02.jpg";
}

function img_act(imgName){imgOn = eval(imgName + "_on.src");document [imgName].src = imgOn;}
function img_inact(imgName){imgOff = eval(imgName + "_off.src");document[imgName].src = imgOff;}

function popUp(URL,w,h) {
	var winleft = (screen.width - w) / 2;
	var wintop = (screen.height - h) / 2;
	param = 'height='+h+',width='+w+',top='+wintop+',left='+winleft+',scrolling=0 , noresize'
	win = window.open(URL, 'name', param)
	win.window.focus();
}