var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4009629&docid=69951226&x=494',
		'title': '',
		'imageId': '69951226',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009629&docid=69951222&x=494',
		'title': '',
		'imageId': '69951222',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009629&docid=69951225&x=494',
		'title': '',
		'imageId': '69951225',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009629&docid=69951230&x=494',
		'title': '',
		'imageId': '69951230',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009629&docid=69951227&x=494',
		'title': '',
		'imageId': '69951227',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009629&docid=69951224&x=494',
		'title': '',
		'imageId': '69951224',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009629&docid=69951223&x=494',
		'title': '',
		'imageId': '69951223',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009629&docid=69951229&x=494',
		'title': '',
		'imageId': '69951229',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009629&docid=69951221&x=494',
		'title': '',
		'imageId': '69951221',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009629&docid=69951231&x=494',
		'title': '',
		'imageId': '69951231',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4009629';

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