var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4009076&docid=69571489&x=059',
		'title': '',
		'imageId': '69571489',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009076&docid=69571485&x=059',
		'title': '',
		'imageId': '69571485',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009076&docid=69571488&x=059',
		'title': '',
		'imageId': '69571488',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009076&docid=69571486&x=059',
		'title': '',
		'imageId': '69571486',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009076&docid=69571482&x=059',
		'title': '',
		'imageId': '69571482',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009076&docid=69571487&x=059',
		'title': '',
		'imageId': '69571487',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009076&docid=69571484&x=059',
		'title': '',
		'imageId': '69571484',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009076&docid=69571479&x=059',
		'title': '',
		'imageId': '69571479',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009076&docid=69571480&x=059',
		'title': '',
		'imageId': '69571480',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4009076&docid=69571481&x=059',
		'title': '',
		'imageId': '69571481',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4009076';

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