var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4010809&docid=69979829&x=452',
		'title': '',
		'imageId': '69979829',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010809&docid=69979832&x=452',
		'title': '',
		'imageId': '69979832',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010809&docid=69979835&x=452',
		'title': '',
		'imageId': '69979835',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010809&docid=69979838&x=452',
		'title': '',
		'imageId': '69979838',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010809&docid=69979841&x=452',
		'title': '',
		'imageId': '69979841',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010809&docid=69979844&x=452',
		'title': '',
		'imageId': '69979844',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010809&docid=69979857&x=452',
		'title': '',
		'imageId': '69979857',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010809&docid=69979870&x=452',
		'title': '',
		'imageId': '69979870',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010809&docid=69979877&x=452',
		'title': '',
		'imageId': '69979877',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010809&docid=69979880&x=452',
		'title': '',
		'imageId': '69979880',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010809&docid=69979883&x=452',
		'title': '',
		'imageId': '69979883',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4010809';

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