function rollOn(cont){
	var roll = document.getElementById('rollover')
	switch ( cont )
	{ 
		case 'sa': roll.style.backgroundPosition="0 0";
				break;
		case 'na': roll.style.backgroundPosition="0 -271px";
				break;
		case 'af': roll.style.backgroundPosition="0 -542px";
				break;
		case 'eu': roll.style.backgroundPosition="0 -813px";
				break;
		case 'as': roll.style.backgroundPosition="0 -1084px";
				break;
	}
}

function rollOff(){
	document.getElementById('rollover').style.backgroundPosition="0 271px"
}

function enlarge(image,am,al){
  var ampla = am;
  var altura = al;
  strURL = "../img/"+image;
  poshoritz = (screen.width) ? (screen.width-ampla)/2 : 0;
  posvert = (screen.height) ? (screen.height-altura)/2 : 0;
  strW = 'toolbar=0,directories=0,location=0,status=no,menubar=0,resizable=1,copyhistory=0,scrollbars=1,width='+ ampla + ',height='+ altura + ',top='+ posvert + ',left='+ poshoritz;
  eval("var popup=window.open('','pop','" + strW + "')");
popup.document.write('<html><head><title>Graphical user interface</title></head></head><body style="margin:0;padding:0"><img src="' + strURL + '" alt=""'+'</body></html>');
}

function popup(desti,nom,am,al){
  var ampla = am;
  var altura = al;
  var strURL = desti;
  var poshoritz = (screen.width) ? (screen.width-ampla)/2 : 0;
  var posvert = (screen.height) ? (screen.height-altura)/2 : 0;
  var strW = 'toolbar=0,directories=0,location=0,status=no,menubar=0,resizable=1,copyhistory=0,scrollbars=1,width='+ ampla + ',height='+ altura + ',top='+ posvert + ',left='+ poshoritz;
  eval("window.open('" + strURL + "',nom,'" + strW + "')");
}
