if(document.images) {
var right = new Image();
right.src = "art/right.gif";
var down = new Image();
down.src = "art/down.gif";
function doSection (secNum, button){
	if (secNum.style.display=="none"){
		secNum.style.display = ""
		button.src = down.src;
	}else{
		secNum.style.display = "none"
		button.src = right.src;
	}
}

function noSection (secNum, button){
	if (secNum.style.display==""){
		secNum.style.display = "none"
		button.src = right.src;
	}
}
}


function Redirect(chmname,htmname){
holding.innerHTML="<" + "OBJECT ID=" +
'"DirSearch"' +
" WIDTH=1" +
" HEIGHT=1" +
" CLASSID=" + '"CLSID:A55A00C1-FD6C-11D2-A922-00C04F69D235"' +
"></OBJECT>" ;

if(DirSearch.FileFound(chmname)==true){
		location.href="ms-its:" + chmname + "::/" + htmname ;
	}
	else {
		location.href="ms-its:Vis_VM.chm::/VM_Solutions and eVisio2.htm" ;
	}


}


function glossary(term, help) {
holding.innerHTML="<" + "OBJECT id=" +
'"hhctrl"' + " type=" +
'"application/x-oleobject"' +
" classid = " +
'"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
"><PARAM name=" +
'"Command"' + 
 " value=" +
 '"WinHelp, Popup"'+
 ">" + "<PARAM name=" +
 '"Item1"' +
 " value="+
 help +
 ">" +
 "<PARAM name="+
 '"Item2"'+
 " value="+
 term + ">"+
 "</OBJECT>";

hhctrl.Click();

}

function secwin(wintype,chmname,htmname) {

holding.innerHTML="<" + "OBJECT id=" +
'"hhctrl2"' + " type=" +
'"application/x-oleobject"' +
" classid = " +
'"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
"><PARAM name=" +
'"Command"' + 
 " value=" +
 '"Shortcut"'+
 ">" + "<PARAM name=" +
 '"Item1"' +
 " value="+
 '",KeyHH.exe,-' +
 wintype + " " + chmname + "::/" + htmname + '"' +
 ">" +
 "</OBJECT>";

 
 hhctrl2.Click() ;

}



function closewin() {

holding.innerHTML="<" + "OBJECT id=" +
'"hhctrlclose"' + " type=" +
'"application/x-oleobject"' +
" classid = " +
'"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
"><PARAM name=" +
'"Command"' + 
 " value=" +
 '"Close"' + ">" +
 "</OBJECT>";

 
 hhctrlclose.Click() ;


}


function RelTopics(winname,target) {


holding.innerHTML="<" + "OBJECT id=" +
'"hhctrl3"' + " type=" +
'"application/x-oleobject"' +
" classid = " +
'"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
">" +
"<PARAM name=" +
'"Command"' + 
 " value=" +
 '"Related Topics"'+
 ">" + "<PARAM name=" +
 '"Window"' +
 " value="+
'"' + winname + '"' + ">" +
"<PARAM name=" + 
'"Item1"' +
 " value="+
'"' + "Title;" + target + '"' + ">" +
"</OBJECT>";

 hhctrl3.Click() ;
}


function BrowserWin(site,alternative) {

holding.innerHTML="<" + "OBJECT id=" +
'"ShtCt"' + " type=" +
'"application/x-oleobject"' +
" classid = " +
'"clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"' +
">" +
"<PARAM name=" +
'"Command"' + 
 " value=" +
 '"ShortCut"'+
 ">" + 
"<PARAM name=" + 
'"Item1"' +
 " value="+
'"' + "," + site + "," + '"' + ">" +
"<PARAM name=" + '"' + "Window" + '"' +
" value=" + alternative + '"' + ">" +
"</OBJECT>";

ShtCt.Click() ;
}



