//This is the master JavaScript file for the HTML Help documentation.

/* These functions (doSection, noSection) are used to make sidebars appear and disappear.
*/

function doSection (secNum){
	//display the section if it's not displayed; hide it if it is displayed
	if (secNum.style.display=="none"){secNum.style.display=""}
	else{secNum.style.display="none"}
}

function noSection (secNum){
	//remove the section when user clicks in the opened DIV
	if (secNum.style.display==""){secNum.style.display="none"}
}

function doExpand(paraNum,arrowNum){
	//expand the paragraph and rotate the arrow; collapse and rotate it back
	if (paraNum.style.display=="none"){paraNum.style.display="";arrowNum.src="img/mins.gif"}
	else{paraNum.style.display="none";arrowNum.src="img/plus.gif"}
}

myImages=new Array()
myImages[0]="img/map0.gif"
myImages[1]="img/map1.gif"
myImages[2]="img/map2.gif"
myImages[3]="img/map3.gif"
myImages[4]="img/map4.gif"
myImages[5]="img/map5.gif"
myImages[6]="img/map6.gif"
myImages[7]="img/map7.gif"
myImages[8]="img/map8.gif"
myImages[9]="img/map9.gif"
imagecounter=myImages.length-1
i=6

function first()
{
document.getElementById('imageviewer').src=myImages[0]
i=0
}

function previous()
{
if (i>0)
	{
	i--
	document.getElementById('imageviewer').src=myImages[i]
	}
}

function next()
{
if (i<imagecounter)
	{
	i++
	document.getElementById('imageviewer').src=myImages[i]
	}
}

function last()
{
document.getElementById('imageviewer').src=myImages[imagecounter]
i=imagecounter
}

function disable()
{
if (event.button == 2)
{
alert("Sorry no right click on this page.")
}
}

var oPopup = window.createPopup();

function popupwindow(url)
{
    var oPopBody = oPopup.document.body;
    oPopBody.style.backgroundColor = "#6487DB";
    oPopBody.style.border = "solid #6487DB 1px";
    oPopBody.innerHTML = "<img src='"+url+"'</><br><br><p align='center'>Click <b>outside</b> picture to close.</p>";
    oPopup.show(445, 84, 400, 450, document.body);
}

function gettip(image)
{
document.getElementById('tip').innerHTML="<img src='" + image + "' />"
}

function reset()
{
document.getElementById('tip').innerHTML=" "
}

function right(e) {
var msg = "Sorry, you don't have permission to right-click.";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg);
return false;
}
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg);
return false;
}
else return true;
}

function trap() 
  {
  if(document.images)
    {
    for(i=0;i<document.images.length;i++)
      {
      document.images[i].onmousedown = right;
      document.images[i].onmouseup = right;
      }
    }
  }
