
function shortcuts() {

	var xwidth = getWindowWidth()-20
//alert(xwidth - document.getElementById("shortcuts").clientWidth);
	if (document.getElementById("shortcuts").clientWidth > xwidth) {
		//Changement des images et agrandissement des cellules les contenant
//		leftCurve.src = webContext+ "/images/curve_inv_big.gif";
//		rightCurve.src = webContext + "/images/curve_inv2_big.gif";

		document.all.shortcuts.rows[0].cells[0].rowSpan = 2;
		document.all.shortcuts.rows[0].cells[document.all.shortcuts.rows[0].cells.length-1].rowSpan = 2;
		//On insère une nouvelle ligne dans la table
		var newLine = document.getElementById("shortcuts").insertRow();
		//On transfère la moitié des cellules de la 1ére ligne vers la 2ème
		var nbCells = document.all.shortcuts.rows[0].cells.length-2;
		if (nbCells%2==0) {
			for (i=nbCells/2; i < nbCells; i++) {
				var cellule = newLine.insertCell();
				cellule.align = "center";
				cellule.className = "shortcuts";
				cellule.noWrap = true;
				cellule.innerHTML = document.all.shortcuts.rows[0].cells[i+1].innerHTML;
			}
			for (i=nbCells/2; i < nbCells; i++) {
				document.all.shortcuts.rows[0].deleteCell(nbCells/2 + 1);
			}
		}else{

			//nbCells--;
			for (i=nbCells/2; i < nbCells; i++) {
				var cellule = newLine.insertCell();
				cellule.align = "center";
				cellule.className = "shortcuts";
				cellule.noWrap = true;
				cellule.innerHTML = document.all.shortcuts.rows[0].cells[i+1].innerHTML;
			}
			for (i=nbCells/2; i < nbCells; i++) {
				document.all.shortcuts.rows[0].deleteCell(nbCells/2 + 1);
			}
			document.all.shortcuts.rows[0].insertCell(nbCells/2+1);
		}
	}
}