var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4017151&docid=70159433&x=727',
		'title': '',
		'imageId': '70159433',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017151&docid=70159432&x=727',
		'title': '',
		'imageId': '70159432',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017151&docid=70159434&x=727',
		'title': '',
		'imageId': '70159434',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017151&docid=70159435&x=727',
		'title': '',
		'imageId': '70159435',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017151&docid=70159436&x=727',
		'title': '',
		'imageId': '70159436',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017151&docid=70159437&x=727',
		'title': '',
		'imageId': '70159437',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017151&docid=70159444&x=727',
		'title': '',
		'imageId': '70159444',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017151&docid=70159445&x=727',
		'title': '',
		'imageId': '70159445',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017151&docid=70159446&x=727',
		'title': '',
		'imageId': '70159446',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4017151&docid=70159453&x=727',
		'title': '',
		'imageId': '70159453',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4017151';

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