/**
(c) IBM Corp., 2009 Licensed Materials
 */

/**
Licensed to OpenNTF under one or more contributor license agreements.

See the NOTICE file distributed with this work for additional information
regarding copyright ownership.  OpenNTF licenses this file
to you under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License. 

*/

//Client Side Read Mode Functions

//Add TOC events to onload
dojo.addOnLoad(eventsTOC);



function eventsTOC(){
//Adds hide/show events to toc - SS JS strips these if coded direct
if(document.getElementById("tocHide")!=null){
document.getElementById("tocHide").onclick=toggleTOC;
document.getElementById("tocShow").onclick=toggleTOC;
}}

function toggleTOC(){
if(document.getElementById("tocHidden").style.display=="" || document.getElementById("tocHidden").style.display=="none" ){
document.getElementById("tocHidden").style.display="block";
document.getElementById("tocVisible").style.display="none";
}else{
document.getElementById("tocHidden").style.display="none";
document.getElementById("tocVisible").style.display="block";
}}

