var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3945941&docid=66915149&x=4250',
		'title': '',
		'imageId': '66915149',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945941&docid=66915150&x=4250',
		'title': '',
		'imageId': '66915150',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945941&docid=66915115&x=4250',
		'title': '',
		'imageId': '66915115',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945941&docid=66915116&x=4250',
		'title': '',
		'imageId': '66915116',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945941&docid=66915117&x=4250',
		'title': '',
		'imageId': '66915117',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945941&docid=66915113&x=4250',
		'title': '',
		'imageId': '66915113',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945941&docid=66915114&x=4250',
		'title': '',
		'imageId': '66915114',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945941&docid=66915148&x=4250',
		'title': '',
		'imageId': '66915148',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945941&docid=68484466&x=4250',
		'title': '',
		'imageId': '68484466',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945941&docid=68484467&x=4250',
		'title': '',
		'imageId': '68484467',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3945941';

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";
	})
}
