var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=924478&docid=7398277&x=949',
		'title': '',
		'imageId': '7398277',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924478&docid=7398308&x=949',
		'title': '',
		'imageId': '7398308',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924478&docid=7398377&x=949',
		'title': '',
		'imageId': '7398377',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924478&docid=7398256&x=949',
		'title': '',
		'imageId': '7398256',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924478&docid=7398344&x=949',
		'title': '',
		'imageId': '7398344',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924478&docid=7398409&x=949',
		'title': '',
		'imageId': '7398409',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924478&docid=7398421&x=949',
		'title': '',
		'imageId': '7398421',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924478&docid=7398527&x=949',
		'title': '',
		'imageId': '7398527',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924478&docid=7398575&x=949',
		'title': '',
		'imageId': '7398575',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924478&docid=7398589&x=949',
		'title': '',
		'imageId': '7398589',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=924478&docid=7398629&x=949',
		'title': '',
		'imageId': '7398629',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #924478';

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