// JavaScript Document

// pre-load images

<!--

if (document.images)
{
 preload_image_object = new Image();
 // set image url
 image_url = new Array();
 image_url[0] = "/ttcourse/Year3/images/ContentBar/LectureOn.gif";
 image_url[1] = "/ttcourse/Year3/images/ContentBar/MapsOn.gif";
 image_url[2] = "/ttcourse/Year3/images/ContentBar/PeopleOn.gif";
 image_url[3] = "/ttcourse/Year3/images/ContentBar/ResearchOn.gif";
 image_url[4] = "/ttcourse/Year3/images/ContentBar/TribalOn.gif";

  var i = 0;
  for(i=0; i<=3; i++) 
    preload_image_object.src = image_url[i];
}

//-->



<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function popup(img){
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}
function Controlla(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img){
  largh=foto1.width+20;
  altez=foto1.height+20;
  stringa="width="+largh+",height="+altez;
  finestra=window.open(img,"",stringa);
}
//  End -->


//Popup - 600 x 600 - Art & Lit
  function iframeArtLit(url) {
      popupWindow = window.open(
        url,'popUpWindow','height=600,width=650,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=yes')
}
//Popup - 600 x 600 - Art & Lit
  function image(url) {
      popupWindow = window.open(
        url,'popUpWindow','height=600,width=650,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=yes')
}
//Popup - 550 x 580 - Media Player
  function mPlayer(url) {
      popupWindow = window.open(
        url,'popUpWindow','height=580,width=550,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,location=no,directories=no,status=yes')
}

//Links Maps & People hover text
<!--
function toggleDiv(id,flagit) {
if (flagit=="1"){
if (document.layers) document.layers[''+id+''].visibility = "show"
else if (document.all) document.all[''+id+''].style.visibility = "visible"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
}
else
if (flagit=="0"){
if (document.layers) document.layers[''+id+''].visibility = "hide"
else if (document.all) document.all[''+id+''].style.visibility = "hidden"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
}
}
//-->

