var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3946731&docid=68501004&x=413',
		'title': '',
		'imageId': '68501004',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946731&docid=68501001&x=413',
		'title': '',
		'imageId': '68501001',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946731&docid=68501005&x=413',
		'title': '',
		'imageId': '68501005',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946731&docid=68501006&x=413',
		'title': '',
		'imageId': '68501006',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946731&docid=68501003&x=413',
		'title': '',
		'imageId': '68501003',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946731&docid=68501011&x=413',
		'title': '',
		'imageId': '68501011',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946731&docid=68501007&x=413',
		'title': '',
		'imageId': '68501007',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946731&docid=68501009&x=413',
		'title': '',
		'imageId': '68501009',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946731&docid=68501010&x=413',
		'title': '',
		'imageId': '68501010',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3946731&docid=68501008&x=413',
		'title': '',
		'imageId': '68501008',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3946731';

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