var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3890844&docid=67166377&x=5810',
		'title': '',
		'imageId': '67166377',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890844&docid=67166378&x=5810',
		'title': '',
		'imageId': '67166378',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890844&docid=67166379&x=5810',
		'title': '',
		'imageId': '67166379',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890844&docid=67166382&x=5810',
		'title': '',
		'imageId': '67166382',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890844&docid=67166385&x=5810',
		'title': '',
		'imageId': '67166385',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890844&docid=67166386&x=5810',
		'title': '',
		'imageId': '67166386',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890844&docid=67166390&x=5810',
		'title': '',
		'imageId': '67166390',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890844&docid=67166398&x=5810',
		'title': '',
		'imageId': '67166398',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890844&docid=67166399&x=5810',
		'title': '',
		'imageId': '67166399',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3890844&docid=67166400&x=5810',
		'title': '',
		'imageId': '67166400',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3890844';

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