var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4009096&docid=69939558&x=5230',
		'title': '',
		'imageId': '69939558',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009096&docid=69939561&x=5230',
		'title': '',
		'imageId': '69939561',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009096&docid=69939564&x=5230',
		'title': '',
		'imageId': '69939564',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009096&docid=69939567&x=5230',
		'title': '',
		'imageId': '69939567',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009096&docid=69939571&x=5230',
		'title': '',
		'imageId': '69939571',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009096&docid=69939574&x=5230',
		'title': '',
		'imageId': '69939574',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009096&docid=69939577&x=5230',
		'title': '',
		'imageId': '69939577',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009096&docid=69939582&x=5230',
		'title': '',
		'imageId': '69939582',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009096&docid=69939585&x=5230',
		'title': '',
		'imageId': '69939585',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009096&docid=69939588&x=5230',
		'title': '',
		'imageId': '69939588',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4009096';

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