var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4010758&docid=69981469&x=449',
		'title': '',
		'imageId': '69981469',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010758&docid=69981471&x=449',
		'title': '',
		'imageId': '69981471',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010758&docid=69981468&x=449',
		'title': '',
		'imageId': '69981468',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010758&docid=69981473&x=449',
		'title': '',
		'imageId': '69981473',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010758&docid=69981465&x=449',
		'title': '',
		'imageId': '69981465',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010758&docid=69981470&x=449',
		'title': '',
		'imageId': '69981470',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010758&docid=69981466&x=449',
		'title': '',
		'imageId': '69981466',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010758&docid=69981472&x=449',
		'title': '',
		'imageId': '69981472',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010758&docid=69981474&x=449',
		'title': '',
		'imageId': '69981474',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010758&docid=69981467&x=449',
		'title': '',
		'imageId': '69981467',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4010758';

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