var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4004634&docid=69826802&x=2448',
		'title': '',
		'imageId': '69826802',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004634&docid=69826805&x=2448',
		'title': '',
		'imageId': '69826805',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004634&docid=69826803&x=2448',
		'title': '',
		'imageId': '69826803',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004634&docid=69826806&x=2448',
		'title': '',
		'imageId': '69826806',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004634&docid=69826807&x=2448',
		'title': '',
		'imageId': '69826807',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004634&docid=69826808&x=2448',
		'title': '',
		'imageId': '69826808',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004634&docid=69826809&x=2448',
		'title': '',
		'imageId': '69826809',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004634&docid=69826810&x=2448',
		'title': '',
		'imageId': '69826810',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004634&docid=69826811&x=2448',
		'title': '',
		'imageId': '69826811',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004634&docid=69826812&x=2448',
		'title': '',
		'imageId': '69826812',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004634&docid=69826804&x=2448',
		'title': '',
		'imageId': '69826804',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4004634';

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