var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3906508&docid=67560000&x=4018',
		'title': '',
		'imageId': '67560000',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3906508&docid=67560001&x=4018',
		'title': '',
		'imageId': '67560001',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3906508&docid=67560002&x=4018',
		'title': '',
		'imageId': '67560002',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3906508&docid=67560008&x=4018',
		'title': '',
		'imageId': '67560008',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3906508&docid=67560010&x=4018',
		'title': '',
		'imageId': '67560010',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3906508&docid=67560003&x=4018',
		'title': '',
		'imageId': '67560003',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3906508&docid=67560004&x=4018',
		'title': '',
		'imageId': '67560004',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3906508&docid=67560005&x=4018',
		'title': '',
		'imageId': '67560005',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3906508&docid=67560006&x=4018',
		'title': '',
		'imageId': '67560006',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3906508&docid=67560007&x=4018',
		'title': '',
		'imageId': '67560007',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3906508';

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