var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4020033&docid=70234749&x=5310',
		'title': '',
		'imageId': '70234749',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020033&docid=70234750&x=5310',
		'title': '',
		'imageId': '70234750',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020033&docid=70234752&x=5310',
		'title': '',
		'imageId': '70234752',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020033&docid=70234751&x=5310',
		'title': '',
		'imageId': '70234751',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020033&docid=70234753&x=5310',
		'title': '',
		'imageId': '70234753',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020033&docid=70234754&x=5310',
		'title': '',
		'imageId': '70234754',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020033&docid=70234761&x=5310',
		'title': '',
		'imageId': '70234761',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020033&docid=70234762&x=5310',
		'title': '',
		'imageId': '70234762',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020033&docid=70234763&x=5310',
		'title': '',
		'imageId': '70234763',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020033&docid=70234766&x=5310',
		'title': '',
		'imageId': '70234766',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4020033&docid=70234769&x=5310',
		'title': '',
		'imageId': '70234769',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4020033';

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