﻿<!--
// JScript File

var newwindow;
function load(url)
{
	newwindow=window.open(url,'name','height=180,width=340,left=150,top=175,scrollbars=no,status=no,toolbar=no');
	if (window.focus)
	{
		newwindow.focus();
	}
}



var detailwindow;
function Details(url, width,  height)
{
	detailwindow=window.open(url,'popup','height=' + height + ',width=' + width + ',left=100,top=50,scrollbars=yes,status=no,toolbar=no,resizable=no');
	
	if (window.focus)
	{ detailwindow.focus(); }
}



var mapwindow;
function ViewMap(url)
{
	mapwindow=window.open(url,'map','width=800,height=650,left=25,top=25,scrollbars=yes,status=no,toolbar=no,resizable=yes');
	if (window.focus)
	{
		mapwindow.focus();
	}
}



function CloseWindow()
{
	try { this.window.opener.location.reload(); }
	catch (err) {}
	
	this.window.close()
}



function PrintPage()
{
    try
    {
	    identity=document.getElementById("control");
	    identity.className="noprint";
    }
    catch (err) {}
	
    try
    {
	    identity2=document.getElementById("notescon");
	    identity2.className="noprint";
    }
    catch (err) {}
		
    this.window.print();
	
    try
    {
	    identity2=document.getElementById("notescon");
	    identity2.className="";
    }
    catch (err) {}
	
    try
    {
	    identity=document.getElementById("control");
	    identity.className="";
    }
    catch (err) {}
}



function SwitchDiv(DivID)
{
  var style_sheet = GetStyleObject(DivID);
  if (style_sheet)
  {
    HideAll();
    ChangeObjectVisibility(DivID,"visible");
  }
  else 
  { alert("sorry, this only works in browsers that do Dynamic HTML"); }
  
}//SwitchDiv


function HideAll()
{
   //ChangeObjectVisibility("standard" + DivID.charAt(DivID.length-1),"hidden");
   //ChangeObjectVisibility("custom" + DivID.charAt(DivID.length-1),"hidden");
   ChangeObjectVisibility("standard","hidden");
   ChangeObjectVisibility("custom","hidden");

}//HideAll






function HideDIV(d){ document.getElementById(d).style.display = "none"; }
function DisplayDIV(d) { document.getElementById(d).style.display = "block"; }

function SetActive(ElementID, ItemsInList)
{
    for (x=1; x<=ItemsInList; x++)
    {
        /*document.getElementById("tab_" + x.toString()).setAttribute("class", "inactive");*/
        document.getElementById("tab_" + x.toString()).className = "inactive"; 
        document.getElementById("content_" + x.toString()).style.display = "none";
    }
    
    /*document.getElementById("tab_" + ElementID.toString()).setAttribute("class", "active");*/
    document.getElementById("tab_" + ElementID.toString()).className = "active"; 
    document.getElementById("content_" + ElementID.toString()).style.display = "block";
}



function GallerySwap(url)
{
    document.getElementById('galimg').src = url;
    /*document.getElementById('galimglink').href = "javascript:GalleryPop('" + url + "', '" + image + "');";*/
}

function GalleryPop(url)
{
    window.open(url, 'largeview', 'width=800, height=540, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, copyhistory=no, resizable=no')
}



function ZoomSwap(url)
{
    document.getElementById('zoomimg').src = url;
}

function ZoomPop(url)
{
    window.open(url, 'zoomview', 'width=800, height=540, toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, copyhistory=no, resizable=no')
}











//-->

