var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016579&docid=70135213&x=5812',
		'title': '',
		'imageId': '70135213',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016579&docid=70135214&x=5812',
		'title': '',
		'imageId': '70135214',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016579&docid=70135205&x=5812',
		'title': '',
		'imageId': '70135205',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016579&docid=70135209&x=5812',
		'title': '',
		'imageId': '70135209',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016579&docid=70135208&x=5812',
		'title': '',
		'imageId': '70135208',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016579&docid=70135210&x=5812',
		'title': '',
		'imageId': '70135210',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016579&docid=70135212&x=5812',
		'title': '',
		'imageId': '70135212',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016579&docid=70135211&x=5812',
		'title': '',
		'imageId': '70135211',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016579&docid=70135206&x=5812',
		'title': '',
		'imageId': '70135206',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016579&docid=70135207&x=5812',
		'title': '',
		'imageId': '70135207',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016579';

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