var tplpath = 'http://www.loqall.com/tpl/';
var urlpath = 'http://www.loqall.com';
// JavaScript Document
	hs.lang.loadingText = 'WAIT...';  
	hs.lang.loadingTitle = 'CLOSE';  
	hs.lang.focusTitle = 'Click to bring to front';  
	hs.lang.fullExpandTitle = 'Actual size';  
	hs.lang.creditsText = 'Powered by <i>www.loqall.com</i>';  
	hs.lang.creditsTitle = '';  
	hs.lang.previousText = 'PRE';  
	hs.lang.nextText = 'NEXT';   
	hs.lang.moveText = 'MOVE';  
	hs.lang.closeText = 'CLOSE';   
	hs.lang.closeTitle = 'CLOSE(esc key)';   
	hs.lang.resizeTitle = 'RETURN';
	hs.lang.playText = 'START';  
	hs.lang.playTitle = 'Slide show(Space key)';  
	hs.lang.pauseText = 'STOP';  
	hs.lang.pauseTitle = 'Pause slideshow (spacebar)';  
	hs.lang.previousTitle = 'PRE (← key)';  
	hs.lang.nextTitle = 'NEXT(→ key)';  
	hs.lang.moveTitle = 'MOVE';  
	hs.lang.fullExpandText = 'FULL SCREEN';  
	hs.lang.number= '第 %1 张/共 %2 张';  
	hs.lang.restoreTitle = '点击关闭, 点击并拖动可移动图片';  
	hs.creditsHref = 'http://www.loqall.com';  
	
	try{
		if(tplpath){hs.graphicsDir = tplpath+ 'image/gallery.show/';}
		}catch(exception){
			hs.graphicsDir ='tpl/image/gallery.show/';
	}
	

	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.fadeInOut = true;
	hs.addSlideshow({
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			opacity: 0.75,
			position: 'bottom center',
			hideOnMouseOut: true
		}
	});



		/*
		hs.graphicsDir = 'tpl/image/gallery.show/';
		hs.align = 'center';
		hs.transitions = ['expand', 'crossfade'];
		hs.fadeInOut = true;
		hs.dimmingOpacity = 0.8;
		hs.outlineType = 'rounded-white';
		hs.captionEval = 'this.thumb.alt';
		hs.marginBottom = 105; // make room for the thumbstrip and the controls
		hs.numberPosition = 'caption';
		
		// Add the slideshow providing the controlbar and the thumbstrip
		hs.addSlideshow({
			//slideshowGroup: 'group1',
			interval: 5000,
			repeat: false,
			useControls: true,
			overlayOptions: {
				className: 'text-controls',
				position: 'bottom center',
				relativeTo: 'viewport',
				offsetY: -60
			},
			thumbstrip: {
				position: 'bottom center',
				mode: 'horizontal',
				relativeTo: 'viewport'
			}
		});
		*/
		
		
		
	/* 显示方式1  黑遮罩，图片弹出 全屏
	hs.graphicsDir = 'tpl/image/gallery.show/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.wrapperClassName = 'dark borderless floating-caption';
	hs.headingEval = 'this.thumb.alt';
	hs.fadeInOut = true;
	hs.dimmingOpacity = .75;

	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			opacity: .6,
			position: 'bottom center',
			hideOnMouseOut: true
		}
	});
	*/
	
	
	/*
	hs.graphicsDir = 'tpl/image/gallery.show/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.wrapperClassName = 'controls-in-heading';
	hs.fadeInOut = true;
	//hs.dimmingOpacity = 0.75;
 
	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: false,
		overlayOptions: {
			opacity: 1,
			position: 'top right',
			hideOnMouseOut: false
		}
	});
	*/
	
	
	/* 显示方式2  无遮罩，图片弹出 全屏
	hs.graphicsDir = 'tpl/image/gallery.show/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.wrapperClassName = 'controls-in-heading';
	hs.fadeInOut = true;

 
	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: false,
		overlayOptions: {
			opacity: 1,
			position: 'top right',
			hideOnMouseOut: false
		}
	});
	*/
	
	
	/* 显示方式3  无遮罩，图片弹出 右侧有 图片列表 缩放
	hs.graphicsDir = 'tpl/image/gallery.show/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.fadeInOut = true;
	hs.outlineType = 'rounded-white';
	hs.headingEval = 'this.thumb.alt';
	hs.numberPosition = 'heading';
	hs.useBox = true;
	hs.width = 600;
	hs.height = 400;
	hs.showCredits = false;
	//hs.dimmingOpacity = 0.8;

	// Add the slideshow providing the controlbar and the thumbstrip
	hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			position: 'top right',
			offsetX: 200,
			offsetY: -65
		},
		thumbstrip: {
			position: 'rightpanel',
			mode: 'float',
			relativeTo: 'expander',
			width: '210px'
		}
	});

	// Make all images animate to the one visible thumbnail
	var miniGalleryOptions1 = {
		thumbnailId: 'thumb1'
	}
	*/
	