var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4009692&docid=69952142&x=2846',
		'title': '',
		'imageId': '69952142',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009692&docid=69952145&x=2846',
		'title': '',
		'imageId': '69952145',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009692&docid=69952146&x=2846',
		'title': '',
		'imageId': '69952146',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009692&docid=69952144&x=2846',
		'title': '',
		'imageId': '69952144',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009692&docid=69952143&x=2846',
		'title': '',
		'imageId': '69952143',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009692&docid=69952192&x=2846',
		'title': '',
		'imageId': '69952192',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009692&docid=69952190&x=2846',
		'title': '',
		'imageId': '69952190',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009692&docid=69952188&x=2846',
		'title': '',
		'imageId': '69952188',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009692&docid=69952189&x=2846',
		'title': '',
		'imageId': '69952189',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009692&docid=69952191&x=2846',
		'title': '',
		'imageId': '69952191',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4009692';

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