var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3867918&docid=66610322&x=2440',
		'title': '',
		'imageId': '66610322',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3867918&docid=66610324&x=2440',
		'title': '',
		'imageId': '66610324',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3867918&docid=66610325&x=2440',
		'title': '',
		'imageId': '66610325',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3867918&docid=66610323&x=2440',
		'title': '',
		'imageId': '66610323',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3867918&docid=66610329&x=2440',
		'title': '',
		'imageId': '66610329',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3867918&docid=66610328&x=2440',
		'title': '',
		'imageId': '66610328',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3867918&docid=66610326&x=2440',
		'title': '',
		'imageId': '66610326',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3867918&docid=66610330&x=2440',
		'title': '',
		'imageId': '66610330',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3867918&docid=66610331&x=2440',
		'title': '',
		'imageId': '66610331',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3867918&docid=66610332&x=2440',
		'title': '',
		'imageId': '66610332',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3867918';

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