//// Slideshow section...// Variables from setup.js: seconds, timerID, exp, pauseIconUrl, playIconUrl// START/STOP Slideshowfunction toggleSlideShow(exp) {	var on = getCookie('slideShowOn');	if( on!=null )			dontSlides(exp);	else			doSlides(exp);				// For JS keyboard support	takenAction = false;}function setSlideShowStatus(status) {	var url = status ? pauseIconUrl : playIconUrl;		if (document.getElementById)	// IE5+ & Gecko	{		if( document.getElementById("slide_show1")!=null )			document.getElementById("slide_show1").src=url;				if( document.getElementById("slide_show2")!=null )			document.getElementById("slide_show2").src=url;				}	else if (document.all)	// IE4	{		if( document.all["slide_show1"]!=null )			document.all["slide_show1"].src=url;		if( document.all["slide_show2"]!=null )			document.all["slide_show2"].src=url;				}		else // Netscape 4	{		if( document.images["slide_show1"]!=null )			document.images["slide_show1"].src=url;		if( document.images["slide_show2"]!=null )			document.images["slide_show2"].src=url;				}	//RAC!! toggle the remarks icon as needed	if (status)		disable_remarks_icon();	else		enable_remarks_icon();	}//start slideshowfunction doSlides(exp) {	setCookie("slideShowOn", "on", exp);	setSlideShowStatus(true);	timerID = setTimeout('nextPage()', seconds * 1000);}//stop slideshowfunction dontSlides(exp) {	deleteCookie("slideShowOn");	setSlideShowStatus(false);	clearTimeout(timerID);}function getCookieVal(offset) {	var endstr = document.cookie.indexOf (";", offset);	if (endstr == -1)		endstr = document.cookie.length;	return unescape(document.cookie.substring(offset, endstr));}function getCookie(name) {	var arg = name + "=";	var alen = arg.length;	var clen = document.cookie.length;	var i = 0;	while (i < clen) 	{		var j = i + alen;				if (document.cookie.substring(i, j) == arg) 			return getCookieVal (j);		i = document.cookie.indexOf(" ", i) + 1;		if (i == 0) 			break;	}	return null;}function setCookie(name, value) {	var argv = setCookie.arguments;	var argc = setCookie.arguments.length;	var expires = (argc > 2) ? argv[2] : null;	var path = (argc > 3) ? argv[3] : null;	var domain = (argc > 4) ? argv[4] : null;	var secure = (argc > 5) ? argv[5] : false;	document.cookie = name + "=" + escape (value) +		((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +		((path == null) ? "" : ("; path=" + path)) +		((domain == null) ? "" : ("; domain=" + domain)) +		((secure == true) ? "; secure" : "");}function deleteCookie(name) {	var exp = new Date();	exp.setTime(exp.getTime() - 1);	var cval = getCookie(name);	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();	cval = getCookie(name);}// RAC!! toggle Remarks icon so that remarks window isn't opened while the slide show is runningfunction disable_remarks_icon(){	if (remarks_enabled)		setRemarksStatus(false) ;}function enable_remarks_icon(){	if (remarks_enabled)		setRemarksStatus(true) ;}function setRemarksStatus(status) {	var url = status ? enableRemarksUrl : disableRemarksUrl;	var clik = status ? "toggleRemarks" : "doNothing";		if (document.getElementById)	// IE5+ & Gecko	{		if( document.getElementById("remarks1")!=null )		{			document.getElementById("remarks1").src=url;			document.getElementById("remarks1").onclick=eval(clik);		}				if( document.getElementById("remarks2")!=null )		{			document.getElementById("remarks2").src=url;			document.getElementById("remarks2").onclick=eval(clik);		}		}	else if (document.all)	// IE4	{		if( document.all["remarks1"]!=null )		{			document.all["remarks1"].src=url;			document.all["remarks1"].onclick=eval(clik);		}				if( document.all["remarks2"]!=null )		{			document.all["remarks2"].src=url;			document.all["remarks2"].onclick=eval(clik);		}				}		else // Netscape 4	{		if( document.images["remarks1"]!=null )			document.images["remarks1"].src=url;		if( document.images["remarks2"]!=null )			document.images["remarks2"].src=url;				}		}/*display the # of remarks on top of the remarks icon*/function display_count(count){	document.getElementById("remcnt").innerHTML=count;	/*center the count over the icon*/	left="-22px"; margin="-15px";	if (count>9) {left="-26px"; margin="-22px";}	if (count>99) {left="-30px"; margin="-29px";}	document.getElementById("remcnt").style.left=left;	document.getElementById("remcnt").style.marginRight=margin;}function doNothing()/*this is here to provide an empty function if the remarks icon is clicked while the slideshow is open*/{}
