var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3978195&docid=67643764&x=3945',
		'title': '',
		'imageId': '67643764',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978195&docid=67643783&x=3945',
		'title': '',
		'imageId': '67643783',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978195&docid=67643791&x=3945',
		'title': '',
		'imageId': '67643791',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978195&docid=67643795&x=3945',
		'title': '',
		'imageId': '67643795',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978195&docid=67643806&x=3945',
		'title': '',
		'imageId': '67643806',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978195&docid=67643815&x=3945',
		'title': '',
		'imageId': '67643815',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978195&docid=67643872&x=3945',
		'title': '',
		'imageId': '67643872',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978195&docid=67643881&x=3945',
		'title': '',
		'imageId': '67643881',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978195&docid=67643884&x=3945',
		'title': '',
		'imageId': '67643884',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978195&docid=67643897&x=3945',
		'title': '',
		'imageId': '67643897',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978195&docid=67643902&x=3945',
		'title': '',
		'imageId': '67643902',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3978195';

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