var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3917065&docid=65816527&x=4444',
		'title': '',
		'imageId': '65816527',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917065&docid=65816528&x=4444',
		'title': '',
		'imageId': '65816528',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917065&docid=65816529&x=4444',
		'title': '',
		'imageId': '65816529',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917065&docid=65816530&x=4444',
		'title': '',
		'imageId': '65816530',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917065&docid=65816549&x=4444',
		'title': '',
		'imageId': '65816549',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917065&docid=65816526&x=4444',
		'title': '',
		'imageId': '65816526',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917065&docid=65816531&x=4444',
		'title': '',
		'imageId': '65816531',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917065&docid=65816525&x=4444',
		'title': '',
		'imageId': '65816525',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917065&docid=65816532&x=4444',
		'title': '',
		'imageId': '65816532',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3917065&docid=67407037&x=4444',
		'title': '',
		'imageId': '67407037',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3917065';

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