var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3949225&docid=68567474&x=448',
		'title': '',
		'imageId': '68567474',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949225&docid=68567477&x=448',
		'title': '',
		'imageId': '68567477',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949225&docid=68567478&x=448',
		'title': '',
		'imageId': '68567478',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949225&docid=68567479&x=448',
		'title': '',
		'imageId': '68567479',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949225&docid=68567480&x=448',
		'title': '',
		'imageId': '68567480',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949225&docid=68567481&x=448',
		'title': '',
		'imageId': '68567481',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949225&docid=68567482&x=448',
		'title': '',
		'imageId': '68567482',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949225&docid=68567483&x=448',
		'title': '',
		'imageId': '68567483',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949225&docid=68567476&x=448',
		'title': '',
		'imageId': '68567476',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3949225&docid=68567484&x=448',
		'title': '',
		'imageId': '68567484',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3949225';

document.body.style.overflow = "hidden";
var closeElement = document.querySelector("#lightbox #close");
var closeLoadingElement = document.querySelector("#lightbox #closeLoading");

if (closeElement) {
	closeElement.addEventListener("click", function() {
		document.body.style.overflow = "auto";
	})
}

if (closeLoadingElement) {
	closeLoadingElement.addEventListener("click", function() {
		document.body.style.overflow = "auto";
	})
}
