var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4030215&docid=70460018&x=315',
		'title': '',
		'imageId': '70460018',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4030215&docid=70460023&x=315',
		'title': '',
		'imageId': '70460023',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4030215&docid=70460022&x=315',
		'title': '',
		'imageId': '70460022',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4030215&docid=70460020&x=315',
		'title': '',
		'imageId': '70460020',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4030215&docid=70460021&x=315',
		'title': '',
		'imageId': '70460021',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4030215&docid=70460032&x=315',
		'title': '',
		'imageId': '70460032',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4030215&docid=70460033&x=315',
		'title': '',
		'imageId': '70460033',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4030215&docid=70460036&x=315',
		'title': '',
		'imageId': '70460036',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4030215&docid=70460039&x=315',
		'title': '',
		'imageId': '70460039',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4030215&docid=70460037&x=315',
		'title': '',
		'imageId': '70460037',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4030215';

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