var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3924048&docid=67999029&x=4744',
		'title': '',
		'imageId': '67999029',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3924048&docid=67999030&x=4744',
		'title': '',
		'imageId': '67999030',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3924048&docid=67999023&x=4744',
		'title': '',
		'imageId': '67999023',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3924048&docid=67999024&x=4744',
		'title': '',
		'imageId': '67999024',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3924048&docid=67999021&x=4744',
		'title': '',
		'imageId': '67999021',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3924048&docid=67999022&x=4744',
		'title': '',
		'imageId': '67999022',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3924048&docid=67999027&x=4744',
		'title': '',
		'imageId': '67999027',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3924048&docid=67999026&x=4744',
		'title': '',
		'imageId': '67999026',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3924048&docid=67999025&x=4744',
		'title': '',
		'imageId': '67999025',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3924048&docid=67999028&x=4744',
		'title': '',
		'imageId': '67999028',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3924048';

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