var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4024779&docid=70325470&x=428',
		'title': '',
		'imageId': '70325470',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4024779&docid=70325465&x=428',
		'title': '',
		'imageId': '70325465',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4024779&docid=70325467&x=428',
		'title': '',
		'imageId': '70325467',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4024779&docid=70326195&x=428',
		'title': '',
		'imageId': '70326195',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4024779&docid=70325471&x=428',
		'title': '',
		'imageId': '70325471',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4024779&docid=70325464&x=428',
		'title': '',
		'imageId': '70325464',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4024779&docid=70325466&x=428',
		'title': '',
		'imageId': '70325466',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4024779&docid=70325469&x=428',
		'title': '',
		'imageId': '70325469',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4024779&docid=70325472&x=428',
		'title': '',
		'imageId': '70325472',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4024779&docid=70325468&x=428',
		'title': '',
		'imageId': '70325468',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4024779';

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