
/* pop-ups */
function popUpSend(URL)
{
  window.open('/' + URL, 'AeL', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=400,height=300,left=300,top=200');
}

function popUpLesson(URL)
{
  window.open('/' + URL, 'AeL', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=600,left=0,top=0');
}

function popUpLessonWide(URL)
{
  window.open('/' + URL, 'AeL', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=1000,height=650,left=0,top=0');
}

function popLabs(url) {
	newwindow=window.open(url,'name','height=650,width=1000');
	if (window.focus) {newwindow.focus()}
	return false;
}

function popUpLessonCreativ(URL) {
  window.open('/' + URL, 'AeL', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=605,left=0,top=0');
}



function popUpVideo(URL)
{
  window.open('/' + URL, 'AeL', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=1,width=352,height=288,left=200,top=200');
}

anteriorid = 0;

function ShowHide(id, visibility)
{
  obj = document.getElementById(id);
    
  if (obj != null && (obj.style.display == "none" || obj.style.display == ""))
  {
    obj.style.display = visibility;
    if (anteriorid!=0 && typeof(obj[anteriorid]) != "undefined")
    {
      obj[anteriorid].style.display = "none";
      obj.style.display = visibility;
    }
  }
  else if(obj != null && obj.style.display == visibility)
  {
    obj.style.display = "none";
  }
  
  anteriorid = id;
}

