var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3904188&docid=67508352&x=1040',
		'title': '',
		'imageId': '67508352',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904188&docid=67508371&x=1040',
		'title': '',
		'imageId': '67508371',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904188&docid=67508350&x=1040',
		'title': '',
		'imageId': '67508350',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904188&docid=67508345&x=1040',
		'title': '',
		'imageId': '67508345',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904188&docid=67508348&x=1040',
		'title': '',
		'imageId': '67508348',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904188&docid=67508347&x=1040',
		'title': '',
		'imageId': '67508347',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904188&docid=67508349&x=1040',
		'title': '',
		'imageId': '67508349',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904188&docid=67508346&x=1040',
		'title': '',
		'imageId': '67508346',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904188&docid=67508351&x=1040',
		'title': '',
		'imageId': '67508351',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3904188&docid=67508344&x=1040',
		'title': '',
		'imageId': '67508344',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3904188';

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