function getScrollTop(){
	return document.documentElement.scrollTop;
}

function toggleDisplay(whichLayer)
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  if (vis.display == 'block')
    vis.display = 'none';
  else
    vis.display = 'block';
  
}	//toggleDisplay

function popUp(whichmenu)
{
  var arr=[];
  var ee=[];
  var elem=document.getElementsByTagName('*'), i=0, e;
  while(e=elem[i++]){
    if(e['id']){
      arr[arr.length]=e['id'];
      ee = e['id'].split('_');
      if(ee.indexOf('sm')!=-1){
        hideDiv(e['id']);
      }
    }
    else{
      null;
    }
  }
  showDiv(whichmenu);
}	//popUp

function hideMenus(){
  var arr=[];
  var ee=[];
  var elem=document.getElementsByTagName('*'), i=0, e;
  while(e=elem[i++]){
    if(e['id']){
      arr[arr.length]=e['id'];
      ee = e['id'].split('_');
      if(ee.indexOf('sm')!=-1){
        hideDiv(e['id']);
      }
    }
    else{
      null;
    }
  }
}	//hideMenus

function getElem( whichLayer )
{  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
}
function showDiv(whichLayer )
{  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  vis.display = 'block';
}
function hideDiv(whichLayer )
{  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  vis.display = 'none';
}

function showDetails(){
	
}

function showLightBox(whatImage)
{
  document.getElementById('lightboxImage').src=whatImage;
  document.getElementById('overlay').style.display='block';
  document.getElementById('lightbox').style.display='block'
}

function hideLightBox()
{
  document.getElementById('overlay').style.display='none';
  document.getElementById('lightbox').style.display='none'
}

function showEnglish()
{
	showDiv('english');
	hideDiv('french');
	hideDiv('spanish');
}
function showFrench()
{
	hideDiv('english');
	showDiv('french');
	hideDiv('spanish');
}
function showSpanish()
{
	hideDiv('english');
	hideDiv('french');
	showDiv('spanish');
}
