var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4009091&docid=67514503&x=343',
		'title': '',
		'imageId': '67514503',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009091&docid=67514504&x=343',
		'title': '',
		'imageId': '67514504',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009091&docid=67514505&x=343',
		'title': '',
		'imageId': '67514505',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009091&docid=67514506&x=343',
		'title': '',
		'imageId': '67514506',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009091&docid=67514507&x=343',
		'title': '',
		'imageId': '67514507',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009091&docid=67514508&x=343',
		'title': '',
		'imageId': '67514508',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009091&docid=67514509&x=343',
		'title': '',
		'imageId': '67514509',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009091&docid=67514510&x=343',
		'title': '',
		'imageId': '67514510',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009091&docid=67514511&x=343',
		'title': '',
		'imageId': '67514511',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009091&docid=67514512&x=343',
		'title': '',
		'imageId': '67514512',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009091&docid=67514513&x=343',
		'title': '',
		'imageId': '67514513',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4009091';

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