var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3880432&docid=66888016&x=917',
		'title': '',
		'imageId': '66888016',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880432&docid=66888017&x=917',
		'title': '',
		'imageId': '66888017',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880432&docid=66888018&x=917',
		'title': '',
		'imageId': '66888018',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880432&docid=66888019&x=917',
		'title': '',
		'imageId': '66888019',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880432&docid=66888020&x=917',
		'title': '',
		'imageId': '66888020',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880432&docid=66888021&x=917',
		'title': '',
		'imageId': '66888021',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880432&docid=66888014&x=917',
		'title': '',
		'imageId': '66888014',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880432&docid=66888015&x=917',
		'title': '',
		'imageId': '66888015',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880432&docid=66888022&x=917',
		'title': '',
		'imageId': '66888022',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3880432&docid=66888023&x=917',
		'title': '',
		'imageId': '66888023',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3880432';

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