
/* div swapping */

var divcontents = "";
var timeclear = "";


sessiontext = new Array();
sessiontext[0] = '<p class=homelefttext>This online course covers the preservation of paper collections and related formats. Learn how to identify deteriorated materials, how to properly care for collections, and how to set priorities for preservation.</p>';
sessiontext[1] = '<p><img src="images/home/i_1_hover.jpg" width="50" height="50" alt="1" border="0" /><br /><span class=homeleftboxrep>Learn about the elements of a preservation program, the basics of collection management, and the process of surveying your building and collections.</span></p>';
sessiontext[2] = '<p><img src="images/home/i_2_hover.jpg" width="50" height="50" alt="2" border="0" /><br /><span class=homeleftboxrep>Learn why books, documents, maps, photographs, and other paper-based collections deteriorate, and how to identify deteriorated materials.</span></p>';
sessiontext[3] = '<p><img src="images/home/i_3_hover.jpg" width="50" height="50" alt="3" border="0" /><br /><span class=homeleftboxrep>Learn why negatives, film, audiovisual collections, and related formats deteriorate, and how to identify deteriorated materials.</span></p>';
sessiontext[4] = '<p><img src="images/home/i_4_hover.jpg" width="50" height="50" alt="4" border="0" /><br /><span class=homeleftboxrep>Learn how to achieve a preservation quality environment within your building and protect collections again fire, theft, pests, and mold.</span></p>';
sessiontext[5] = '<p><img src="images/home/i_5_hover.jpg" width="50" height="50" alt="5" border="0" /><br /><span class=homeleftboxrep>Learn how to properly store collections, train your staff and users in safe handling techniques, and exhibit collections safely.</span></p>';
sessiontext[6] = '<p><img src="images/home/i_6_hover.jpg" width="50" height="50" alt="6" border="0" /><br /><span class=homeleftboxrep>Learn about strategies for reformatting deteriorated collections and explore options for conservation treatment of valuable items.</span></p>';
sessiontext[7] = '<p><img src="images/home/i_7_hover.jpg" width="50" height="50" alt="7" border="0" /><br /><span class=homeleftboxrep>Learn how to assess and mitigate risks, prepare for emergencies, and respond when collections are damaged.</span></p>';
sessiontext[8] = '<p><img src="images/home/i_8_hover.jpg" width="50" height="50" alt="8" border="0" /><br /><span class=homeleftboxrep>Learn how to put together a systematic preservation program. Consider strategies for funding, staffing, and setting priorities.</span></p>';


sessiontitle = new Array();
sessiontitle[0] = '&nbsp;';
sessiontitle[1] = '<span class="sesdescname">Session 1:</span> Introduction to Preservation';
sessiontitle[2] = '<span class="sesdescname">Session 2:</span> Deterioration of Paper Collections';
sessiontitle[3] = '<span class="sesdescname">Session 3:</span> Deterioration of Film and Electronic Media';
sessiontitle[4] = '<span class="sesdescname">Session 4:</span> The Building and Environment';
sessiontitle[5] = '<span class="sesdescname">Session 5:</span> Collections Care';
sessiontitle[6] = '<span class="sesdescname">Session 6:</span> Reformatting and Treatment';
sessiontitle[7] = '<span class="sesdescname">Session 7:</span> Disaster Planning';
sessiontitle[8] = '<span class="sesdescname">Session 8:</span> Building a Preservation Program';



function divswap(id,classn) {
	id.className = classn;
}


function showdiv(div) {
	if (document.getElementById) document.getElementById(div).style.visibility = "visible"
	else if (document.all) document.all[div].style.visibility = "visible"
	else if (document.layers) document.layers[div].visibility = "show"
}

function hidediv(div) {
	if (document.getElementById) document.getElementById(div).style.visibility = "hidden"
	else if (document.all) document.all[div].style.visibility = "hidden"
	else if (document.layers) document.layers[div].visibility = "hide"
}


function changediv(id,text) {
	if (document.getElementById) {
		document.getElementById(id).innerHTML = text;
	}
	else if (document.all) {
		document.all(id).innerHTML = text;
	}
	else if (document.layers) {
		eval("document.layers["+id+"].document.open()");
		eval("document.layers["+id+"].document.write('" + text + "')");
		eval("document.layers["+id+"].document.close()");
	}
}


function blurbreturn() {
	changediv('leftbox',sessiontext[0]);
}

function sessreturn() {
	changediv('sesdesctitle',sessiontitle[0]);
}


/* enlarging picture */

function enlarge_picture(thislink) {
    var bigpicwin = window.open(thislink.href, 'enlarge_picture', 'width=485,height=380,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1');
	bigpicwin.focus();
	return false;
}



/* show/hide things */


function show_scenario(whichDiv, thishref)
{
	if (document.getElementById)
	{
	    thishref.innerHTML = "<img src=\"../images/site/scenario_close.gif\" width=\"97\" height=\"23\" border=\"0\" alt=\"Close\" onmouseover=\"this.src='../images/site/scenario_close_over.gif';\" onmouseout=\"this.src='../images/site/scenario_close.gif';\">";
	    thishref.onclick = function() 
            {
                hide_scenario(whichDiv, this);
                return false;
            }	
	    show_div(whichDiv);
	}
	
	return false;
}



function hide_answer(whichDiv, thishref)
{
	if (document.getElementById)
	{
	    thishref.innerHTML = "Show Answer";
	    thishref.onclick = function() 
            {
                show_answer(whichDiv, this);
            }
	    hide_div(whichDiv);
	}
	
	return false;
}



function show_answer(whichDiv, thishref)
{
	if (document.getElementById)
	{
	    document.getElementById(thishref).style.textDecoration = "none";
	    document.getElementById(thishref).style.color = "#c52c33";
/*	    thishref.innerHTML = "</a></b>Sample Answer<b><a>";
	    thishref.onclick = function() 
            {
                show_answer(whichDiv, this);
                return false;
            }	
            */
	    show_div(whichDiv);
	}
	
	return false;
}



function hide_scenario(whichDiv, thishref)
{
	if (document.getElementById)
	{
	    thishref.innerHTML = "<img src=\"../images/site/scenario_read.gif\" width=\"97\" height=\"23\" border=\"0\" alt=\"Read\" onmouseover=\"this.src='../images/site/scenario_read_over.gif';\" onmouseout=\"this.src='../images/site/scenario_read.gif';\">";
	    thishref.onclick = function() 
            {
                show_scenario(whichDiv, this);
                return false;
            }
	    hide_div(whichDiv);
	}
	
	return false;
}




function show(whichDiv, thishref)
{
	if (document.getElementById)
	{
	    document.getElementById(thishref).style.textDecoration = "none";
		show_div(whichDiv);
	}
	
	return false;
}

function hide(whichDiv, thishref)
{
	if (document.getElementById)
	{
	    thishref.innerHTML = "show";
	    thishref.onclick = function() 
            {
                return show(whichDiv, this);
            }
	    hide_div(whichDiv);
	}
	
	return false;
}

function show_div(whichDiv)
{
	if (document.getElementById)
	{
	    document.getElementById(whichDiv).style.display = 'block';
	}
	
	return false;
}

function hide_div(whichDiv)
{
	if (document.getElementById)
	{
	    document.getElementById(whichDiv).style.display = 'none';
	}
	
	return false;
}



function pop(url, win_name, x, y){
//      alert("popping:" + charname + ";" + type);
/* 		var win_name = feature + "_" + type; */
/* 		var big = win_name + ".html"; */
       	var big_win = eval("window.open\(url,win_name,\'toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=" + x + ",height=" + y + "\'\);");
		big_win.focus();
}


