var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3890842&docid=67166343&x=635',
		'title': '',
		'imageId': '67166343',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890842&docid=67166344&x=635',
		'title': '',
		'imageId': '67166344',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890842&docid=67166345&x=635',
		'title': '',
		'imageId': '67166345',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890842&docid=67166346&x=635',
		'title': '',
		'imageId': '67166346',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890842&docid=67166347&x=635',
		'title': '',
		'imageId': '67166347',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890842&docid=67166348&x=635',
		'title': '',
		'imageId': '67166348',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890842&docid=67166349&x=635',
		'title': '',
		'imageId': '67166349',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890842&docid=67166350&x=635',
		'title': '',
		'imageId': '67166350',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890842&docid=67166351&x=635',
		'title': '',
		'imageId': '67166351',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890842&docid=67166352&x=635',
		'title': '',
		'imageId': '67166352',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3890842';

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