var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3970694&docid=69035547&x=488',
		'title': '',
		'imageId': '69035547',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970694&docid=69035546&x=488',
		'title': '',
		'imageId': '69035546',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970694&docid=69035550&x=488',
		'title': '',
		'imageId': '69035550',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970694&docid=69035549&x=488',
		'title': '',
		'imageId': '69035549',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970694&docid=69035553&x=488',
		'title': '',
		'imageId': '69035553',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970694&docid=69035556&x=488',
		'title': '',
		'imageId': '69035556',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970694&docid=69035560&x=488',
		'title': '',
		'imageId': '69035560',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970694&docid=69035564&x=488',
		'title': '',
		'imageId': '69035564',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970694&docid=69035548&x=488',
		'title': '',
		'imageId': '69035548',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3970694&docid=69035545&x=488',
		'title': '',
		'imageId': '69035545',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3970694';

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