var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4004924&docid=69845304&x=315',
		'title': '',
		'imageId': '69845304',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004924&docid=69845298&x=315',
		'title': '',
		'imageId': '69845298',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004924&docid=69845297&x=315',
		'title': '',
		'imageId': '69845297',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004924&docid=69845302&x=315',
		'title': '',
		'imageId': '69845302',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004924&docid=69845300&x=315',
		'title': '',
		'imageId': '69845300',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004924&docid=69845301&x=315',
		'title': '',
		'imageId': '69845301',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004924&docid=69845303&x=315',
		'title': '',
		'imageId': '69845303',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004924&docid=69845299&x=315',
		'title': '',
		'imageId': '69845299',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004924&docid=69845305&x=315',
		'title': '',
		'imageId': '69845305',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4004924&docid=69845296&x=315',
		'title': '',
		'imageId': '69845296',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4004924';

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