var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4006763&docid=69802911&x=854',
		'title': '',
		'imageId': '69802911',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006763&docid=69802910&x=854',
		'title': '',
		'imageId': '69802910',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006763&docid=69802906&x=854',
		'title': '',
		'imageId': '69802906',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006763&docid=70026498&x=854',
		'title': '',
		'imageId': '70026498',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006763&docid=69802907&x=854',
		'title': '',
		'imageId': '69802907',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006763&docid=69802909&x=854',
		'title': '',
		'imageId': '69802909',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006763&docid=69802908&x=854',
		'title': '',
		'imageId': '69802908',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006763&docid=70026499&x=854',
		'title': '',
		'imageId': '70026499',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006763&docid=70026501&x=854',
		'title': '',
		'imageId': '70026501',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4006763&docid=70026503&x=854',
		'title': '',
		'imageId': '70026503',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4006763';

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