// remove the registerOverlay call to disable the controlbar
	hs.registerOverlay(
    	{
    		thumbnailId: null,
    		overlayId: 'controlbar',
    		position: 'top right',
    		hideOnMouseOut: true
		}
	);
	
    hs.graphicsDir = '/jslib/graphics/';
	hs.showCredits = false;
    hs.outlineType = 'rounded-white';
    hs.outlineWhileAnimating = true;
	hs.fullExpandTitle = 'Expand to actual size';
	hs.restoreTitle = '点击关闭图象，点住拖动。按左右前头键翻到前一页或后一页。';
	hs.focusTitle = 'Click to bring to front';
	hs.loadingText = 'Loading...';
	hs.loadingTitle = 'Click to cancel';
getAdjacentAnchor : function(key, op) {
	var aAr = document.getElementsByTagName('A'), hsAr = {}, activeI = -1, j = 0;
	for (i = 0; i < aAr.length; i++) {
		if (hs.isHsAnchor(aAr[i]) && ((hs.expanders[key].slideshowGroup == hs.getParam(aAr[i], 'slideshowGroup')))) {
			hsAr[j] = aAr[i];
			if (hs.expanders[key] && aAr[i] == hs.expanders[key].a) {
				activeI = j;
			}
			j++;
		}
	}
	if (hsAr[activeI + op]) return hsAr[activeI + op]; 
	else if (op < 0) return hsAr[hsAr.length - 1]; // last in group 
	else return hsAr[0]; // first in group
};
