// JavaScript Document

	
// IE
if(navigator.userAgent.indexOf("MSIE")>=0) navegador=0;
// Otros
else navegador=1;

 

function muestraCapaMensaje(mensaje){

 //cojo la posicion del objeto<br>
 //var array_pos= findPos(objeto);
    var xActual, yActual;
    if(navegador==0)
    {    
        xActual=window.event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft;
        yActual=window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop;
    }  
    if(navegador==1)
    {
        xActual=event.clientX+window.scrollX;
        yActual=event.clientY+window.scrollY;
    }

	if(mensaje=="niveles"){
	mensaje=niveles();
	}

 //Coloco la capa en posicion:
 	document.getElementById('capaMensaje').style.left = xActual+10+"px"; 
	document.getElementById('capaMensaje').style.top =  yActual+"px";	
//Pongo a la capa el contenido del titulo:
	document.getElementById('capaMensaje').innerHTML=mensaje;
// Muestro la capa:	
 document.getElementById('capaMensaje').style.display="block";


}

function ocultaCapaMensaje(){
//vacio su contenido:
 document.getElementById('capaMensaje').style.display="none";
//oculto la capa:
document.getElementById('capaMensaje').innerHTML="";
}

function niveles(){
 var niveles="";	
 niveles+="<table border='0' align='center' cellpadding='2' cellspacing='1'>";
	niveles+="<tr align='left'  bgcolor='#E87A1B' >";
	  niveles+="<td width='70' align='center'  >Level:</td>";
	  niveles+="<td width='290'>Programme:</td>";
	niveles+="</tr>";
	niveles+="<tr bgcolor='#FFFF99' >";
	  niveles+="<td width='70' align='center' bgcolor='#FFD7AE' ><strong>A1</strong></td>";
	  niveles+="<td width='290' bgcolor='#FFD7AE'>Phonetic exercises I: vocabulary, introduction to expressions. Introduction to grammatical knowledge.</td>";
	niveles+="</tr>";
	niveles+="<tr bgcolor='#FFCC66' >";
	  niveles+="<td width='70' align='center' bgcolor='#FFCC99' ><strong>A2</strong></td>";
	  niveles+="<td width='290' bgcolor='#FFCC99'>Phonetic Exercises II: Understanding listening, perfecting pronunciation, structural exercises II and dialogues. More grammatical knowledge.</td>";
	niveles+="</tr>";
	niveles+="<tr bgcolor='#FFFF99' >";
	  niveles+="<td width='70' align='center' bgcolor='#FFDD95' ><strong>B1</strong></td>";
	  niveles+="<td width='290' bgcolor='#FFDD95'>New structures, exercises top apply the structures, the Basic mechanism of the language and dramatizations.</td>";
	niveles+="</tr>";
	niveles+="<tr bgcolor='#FFCC66' >";
	  niveles+="<td width='70' align='center' bgcolor='#FFD782' ><strong>B2</strong></td>";
	  niveles+="<td width='290' bgcolor='#FFD782'>More grammatical structures, listening exercises, expositions and production of simple written texts.</td>";
	niveles+="</tr>";
	niveles+="<tr bgcolor='#FFFF99' >";
	  niveles+="<td width='70' align='center' bgcolor='#FFD06F' ><strong>C1</strong></td>";
	  niveles+="<td width='290' bgcolor='#FFD06F'>Introduction to complex structures, reading and analysis of text, expositions and debates, producing texts.</td>";
	niveles+="</tr>";
	niveles+="<tr bgcolor='#FFCC66' >";
	  niveles+="<td width='70' height='24' align='center' bgcolor='#FFCC66' ><strong> C2</strong></td>";
	  niveles+="<td width='290' bgcolor='#FFCC66'>Advanced studies of all aspects of the language and in-depth studying of grammar, expositions, practical writing and analyzing texts.</td>";
	niveles+="</tr>";
  niveles+="</table>";	
  return niveles;
}