function hangerover(inID) {	if (document.getElementById) {		var theHTID = document.getElementById("ht" + inID);		var theHTRID = document.getElementById("htr" + inID);		var theHBID = document.getElementById("hb" + inID);		theHTID.style.color = "#33cc66";		theHTRID.style.color = "#33cc66";		theHBID.style.background = "#33cc66";	}}function hangerout(inID) {	if (document.getElementById) {		var theHTID = document.getElementById("ht" + inID);		var theHTRID = document.getElementById("htr" + inID);		var theHBID = document.getElementById("hb" + inID);		theHTID.style.color = "#ffffff";		theHTRID.style.color = "#ffffff";		theHBID.style.background = "#ffffff";	}}function abopenpopup(inURL) {	var thefeatures = "scrollbars,menubar,toolbar,location,status,resizable,width=600,height=500";	var mwin = window.open(inURL,"popup",thefeatures);	if (mwin != null) {		mwin.focus();	}	return false;}function abopenpopupWH(inURL,inW,inH) {	var thefeatures = "scrollbars,resizable,width=" + inW + ",height=" + inH;	var mwin = window.open(inURL,"popup",thefeatures);	if (mwin != null) {		mwin.focus();	}	return false;}var myaboid = 0;var myvid = 0;var myaborendertype = 0;var myhighlights = new Object();var myqhighlights = new Object();function highlightitem() {	if (document.getElementById) {	var theitem = document.getElementById("item"+myaboid);	if (myhighlights[myaboid]) {		if (myhighlights[myaboid] == 1) {			myhighlights[myaboid] = 0;		} else {			myhighlights[myaboid] = 1;		}	} else {		myhighlights[myaboid] = 1;	}	if ((myaborendertype == 0) || (myaborendertype == 1) || (myaborendertype == 4)) {		if (myhighlights[myaboid] == 1) {			theitem.className = "highlighton";		} else {			theitem.className = "highlightoff";		}	} else {		if (myhighlights[myaboid] == 1) {			theitem.className = "highlighton";		} else {			theitem.className = "highlightoff";		}	}	//parent.frames['highlightframe'].location.replace("ab2addhighlights.cfm?vid=" + myvid + "&vobjid=" + myaboid + "&vmode=1");	} else {		alert("Highlighting is not supported by your browser.");	}}function highlightquiz(inids) {	var theitem;	if (document.getElementById) {		var theids = inids.split(",");		for (var i = 0; i < theids.length; i++) {			myqhighlights[theids[i]] = 1;			theitem = document.getElementById("item"+theids[i]);			if (myhighlights[theids[i]]) {				if (myhighlights[theids[i]] == 1) {					theitem.className = "highlightonquiz";				} else {					theitem.className = "highlightquiz";				}			} else {				theitem.className = "highlightquiz";				myhighlights[theids[i]] = 0;			}			//parent.frames['highlightframe'].location.replace("ab2addhighlights.cfm?vid=" + myvid + "&vobjid=" + myaboid + "&vmode=1");		}		//if (theids.length > 0) {		//	document.location.hash = "oa" + theids[0];			//}	} else {		alert("Highlighting is not supported by your browser.");	}}function showhighlights() {	var theitem;	var thehls = new Object();	if (document.getElementById) {		for (i in myhighlights) {			if (myhighlights[i] == 1) {				if ((myqhighlights[i]) && (myqhighlights[i] == 1)) {					theitem = document.getElementById("item" + i);					if (theitem) {						theitem.className = "highlightonquiz";					}					thehls[i] = 1;				} else {					theitem = document.getElementById("item" + i);					if (theitem) {						theitem.className = "highlighton";					}				}			}		}		for (i in myqhighlights) {			if (myqhighlights[i] == 1) {				if (!thehls[i]) {					theitem = document.getElementById("item" + i);					if (theitem) {						theitem.className = "highlightquiz";					}				}			}		}	} else {		alert("Highlighting is not supported by your browser.");	}}function hidehighlights() {	var theitem;	if (document.getElementById) {		for (i in myhighlights) {			if (myhighlights[i] == 1) {				theitem = document.getElementById("item" + i);				if (theitem) {					theitem.className = "highlightoff";				}			}		}		for (i in myqhighlights) {			if (myqhighlights[i] == 1) {				theitem = document.getElementById("item" + i);				if (theitem) {					theitem.className = "highlightoff";				}			}		}	} else {		alert("Highlighting is not supported by your browser.");	}}function hidequizhighlights() {	var theitem;	if (document.getElementById) {		for (i in myqhighlights) {			if (myqhighlights[i] == 1) {				theitem = document.getElementById("item" + i);				if (theitem) {					if ((myhighlights[i]) && (myhighlights[i] == 1)) {						theitem.className = "highlighton";					} else {						theitem.className = "highlightoff";					}				}			}		}	} else {		alert("Highlighting is not supported by your browser.");	}}function escapehtml(inStr) {	inStr = inStr.replace(/&/g,"&amp;");	inStr = inStr.replace(/</g,"&lt;");	inStr = inStr.replace(/>/g,"&gt;");	return inStr;}function editpcontent() {	var thediv = document.getElementById("pc" + myaboid);	var theform = document.getElementById("pcf" + myaboid);	thediv.style.display = "none";	theform.style.display = "block";}function updatepcontent(inform, inobjid) {	var thediv= document.getElementById("pc" + inobjid);	var thedivc= document.getElementById("pcc" + inobjid);	var theform = document.getElementById("pcf" + inobjid);	inform.vdisplaystate.value = "1";	thedivc.innerHTML = escapehtml(inform.vdata.value);	theform.style.display = "none";	thediv.className = "pcvisible";	thediv.style.display = "block";}function deletepcontent(inform, inobjid) {	var thediv= document.getElementById("pc" + inobjid);	var thedivc= document.getElementById("pcc" + inobjid);	var theform = document.getElementById("pcf" + inobjid);	thedivc.innerHTML = "&nbsp;";	inform.vdata.value = "";	inform.vdisplaystate.value = "0";	theform.style.display = "none";	thediv.style.display = "none";}function hidepcontent(inform, inobjid) {	var thediv= document.getElementById("pc" + inobjid);	var theform = document.getElementById("pcf" + inobjid);	theform.style.display = "none";	if (inform.vdisplaystate.value == "1") {		thediv.style.display = "block";	} else {		thediv.style.display = "none";	}}function editpnotes(inobjid) {	var thediv = document.getElementById("pn" + myaboid);	var theform = document.getElementById("pnf" + myaboid);	thediv.style.display = "none";	theform.style.display = "block";}function updatepnotes(inform, inobjid) {	var thediv= document.getElementById("pn" + inobjid);	var theform = document.getElementById("pnf" + inobjid);	inform.vdisplaystate.value = "1";	thediv.innerHTML = escapehtml(inform.vdata.value);	theform.style.display = "none";	thediv.className = "pnvisible";	thediv.style.display = "block";}function deletepnotes(inform, inobjid) {	var thediv= document.getElementById("pn" + inobjid);	var theform = document.getElementById("pnf" + inobjid);	thediv.innerHTML = "&nbsp;";	inform.vdata.value = "";	inform.vdisplaystate.value = "0";	theform.style.display = "none";	thediv.style.display = "none";}function hidepnotes(inform, inobjid) {	var thediv= document.getElementById("pn" + inobjid);	var theform = document.getElementById("pnf" + inobjid);	theform.style.display = "none";	if (inform.vdisplaystate.value == "1") {		thediv.style.display = "block";	} else {		thediv.style.display = "none";	}}// other function gotopage(inURL,inbc,inpage) {	document.location = "" + inURL + "?vbcid=" + inbc + "&vid=" + inpage;}function gotohash(inpage) {	document.location.hash = "oa" + inpage;}function abopenterm(inURL) {	var thefeatures = "scrollbars,resizable,width=425,height=300";	var mwin = window.open(inURL,"keyterm",thefeatures);	if (mwin != null) {		mwin.focus();	}	return false;}function abopenfootnote(inURL) {	var thefeatures = "scrollbars,resizable,width=425,height=300";	var mwin = window.open(inURL,"footnote",thefeatures);	if (mwin != null) {		mwin.focus();	}	return false;}function openwin(inURL) {	var thefeatures = "scrollbars,menubar,toolbar,location,status,resizable,width=650,height=400";	var mwin = window.open(inURL,"thewin",thefeatures);	if (mwin != null) {		mwin.focus();	}}function openwintitle(inURL,inTitle) {	var thefeatures = "scrollbars,menubar,toolbar,location,status,resizable,width=650,height=400";	var mwin = window.open(inURL,inTitle,thefeatures);	if (mwin != null) {		mwin.focus();	}}function openwinrand(inURL) {	var inTitle = "win" + Math.round(Math.random()*1000);	var thefeatures = "scrollbars,menubar,toolbar,location,status,resizable,width=650,height=400";	var mwin = window.open(inURL,inTitle,thefeatures);	if (mwin != null) {		mwin.focus();	}}function openwinrandWH(inURL,inW,inH, inOn) {	var inTitle = "win" + Math.round(Math.random()*1000);	var thefeatures;	if (inOn == null) inOn = 1;	if (inOn == 1) {		thefeatures = "scrollbars,menubar,toolbar,location,status,resizable,width=" + inW +",height=" + inH;	} else {		thefeatures = "scrollbars,resizable,width=" + inW +",height=" + inH;	}	var mwin = window.open(inURL,inTitle,thefeatures);	if (mwin != null) {		mwin.focus();	}}function abopengeneric(inURL) {	var thefeatures = "scrollbars,resizable,width=650,height=500";	var mwin = window.open(inURL,"popup",thefeatures);	if (mwin != null) {		mwin.focus();	}	return false;}function abopeneocitem(inURL) {	var inTitle = "win" + Math.round(Math.random()*1000);	var thefeatures = "scrollbars,resizable,width=650,height=500";	var mwin = window.open(inURL,inTitle,thefeatures);	if (mwin != null) {		mwin.focus();	}	return false;}function abopeneocquiz(inURL) {	var thefeatures = "scrollbars,resizable,width=650,height=500";	var mwin = window.open(inURL,"quiz",thefeatures);	if (mwin != null) {		mwin.focus();	}	return false;}var theopenitem = null;function additem(initem) {	var theitem = document.getElementById(initem);	if (theopenitem != null) {		theopenitem.style.display = "none";	}	theitem.style.display = "block";	theopenitem = theitem;}function edititem(initem) {	var theitem = document.getElementById(initem);	if (theopenitem != null) {		theopenitem.style.display = "none";	}	theitem.style.display = "block";	theopenitem = theitem;}function hideitem(initem) {	if (theopenitem != null) {		theopenitem.style.display = "none";	}	theopenitem = null;}// this function goes to the hash if opener is the page otherwise it replaces opener// with the new page and moves to the hash. If opener is null it pops a new page.function ab2gotopagehash(inid, inbcid, inobjid, infocus) {	var thepage;	var thehash = "";	var theshash = "";	var thewin;	if (inid == null) {		inid = 0;	}	if (inbcid == null) {		inbcid = 0;	}	if ((inobjid == null) || (inobjid == 0)) {		inobjid = 0;	} else {		inobjid = parseInt(inobjid);		theshash = "oa" + inobjid;		thehash = "#oa" + inobjid;	}	if (infocus == null) {		infocus = 0;	}	if (opener) {		try {			var thepathname = opener.location.pathname;			var thesearch = opener.location.search;			var therepath = new RegExp("/ab2page.cfm");			var therevid = new RegExp("vid=([0-9]+)");			var therevbcid = new RegExp("vbcid=([0-9]+)");			if (therepath.test(thepathname)) {				var thevid = therevid.exec(thesearch);				var thevbcid = therevbcid.exec(thesearch);				if (thevid && thevbcid) {					if ((thevid[1] == inid) && (thevbcid[1] == inbcid)) {						opener.location.hash = theshash;						if (infocus) {							opener.focus();						}					} else {						thepage = "ab2page.cfm?vid=" + inid + "&vbcid=" + inbcid + thehash;						opener.location.href = thepage;						if (infocus) {							opener.focus();						}					}				} else {					thepage = "ab2page.cfm?vid=" + inid + "&vbcid=" + inbcid + thehash;					opener.location.href = thepage;					if (infocus) {						opener.focus();					}				}			} else {				thepage = "ab2page.cfm?vid=" + inid + "&vbcid=" + inbcid + thehash;				opener.location.href = thepage;				if (infocus) {					opener.focus();				}			}		} catch (e) {			//alert("In Catch: " + e);			thepage = "ab2page.cfm?vid=" + inid + "&vbcid=" + inbcid + thehash;			thewin = openwinrand(thepage);			if (infocus) {				thewin.focus();			}		}	} else {		thepage = "ab2page.cfm?vid=" + inid + "&vbcid=" + inbcid + thehash;		thewin = openwinrand(thepage);		if (infocus) {			thewin.focus();		}	}}// this function goes to the hash if opener is the page otherwise it replaces opener// with the new page and moves to the hash. If opener is null it pops a new page.function ab2pagetopage(inid, inbcid, inobjid, infocus) {	var thepage;	var thehash = "";	var theshash = "";	var thewin;	if (inid == null) {		inid = 0;	}	if (inbcid == null) {		inbcid = 0;	}	if ((inobjid == null) || (inobjid == 0)) {		inobjid = 0;	} else {		inobjid = parseInt(inobjid);		theshash = "oa" + inobjid;		thehash = "#oa" + inobjid;	}	// this defaults to on top	if (infocus == null) {		infocus = 1;	}	try {		var thepathname = window.location.pathname;		var thesearch = window.location.search;		var therepath = new RegExp("/ab2page.cfm");		var therevid = new RegExp("vid=([0-9]+)");		var therevbcid = new RegExp("vbcid=([0-9]+)");		if (therepath.test(thepathname)) {			var thevid = therevid.exec(thesearch);			var thevbcid = therevbcid.exec(thesearch);			if (thevid && thevbcid) {				if ((thevid[1] == inid) && (thevbcid[1] == inbcid)) {					window.location.hash = theshash;					if (infocus) {						window.focus();					}				} else {					thepage = "ab2page.cfm?vid=" + inid + "&vbcid=" + inbcid + thehash;					openwinrandWH(thepage,750,600);				} 			} else {				thepage = "ab2page.cfm?vid=" + inid + "&vbcid=" + inbcid + thehash;				openwinrandWH(thepage,750,600);			}		} else {			thepage = "ab2page.cfm?vid=" + inid + "&vbcid=" + inbcid + thehash;			openwinrandWH(thepage,750,600);		}	} catch (e) {		//alert("In Catch: " + e);		thepage = "ab2page.cfm?vid=" + inid + "&vbcid=" + inbcid + thehash;		openwinrandWH(thepage,750,600);	}}