var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912461&x=3859',
		'title': '',
		'imageId': '69912461',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912487&x=3859',
		'title': '',
		'imageId': '69912487',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912489&x=3859',
		'title': '',
		'imageId': '69912489',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912462&x=3859',
		'title': '',
		'imageId': '69912462',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912488&x=3859',
		'title': '',
		'imageId': '69912488',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912500&x=3859',
		'title': '',
		'imageId': '69912500',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912475&x=3859',
		'title': '',
		'imageId': '69912475',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912473&x=3859',
		'title': '',
		'imageId': '69912473',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912485&x=3859',
		'title': '',
		'imageId': '69912485',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912476&x=3859',
		'title': '',
		'imageId': '69912476',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912506&x=3859',
		'title': '',
		'imageId': '69912506',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912492&x=3859',
		'title': '',
		'imageId': '69912492',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912501&x=3859',
		'title': '',
		'imageId': '69912501',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912504&x=3859',
		'title': '',
		'imageId': '69912504',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912474&x=3859',
		'title': '',
		'imageId': '69912474',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912495&x=3859',
		'title': '',
		'imageId': '69912495',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912464&x=3859',
		'title': '',
		'imageId': '69912464',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912503&x=3859',
		'title': '',
		'imageId': '69912503',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912496&x=3859',
		'title': '',
		'imageId': '69912496',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912484&x=3859',
		'title': '',
		'imageId': '69912484',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912502&x=3859',
		'title': '',
		'imageId': '69912502',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912468&x=3859',
		'title': '',
		'imageId': '69912468',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912477&x=3859',
		'title': '',
		'imageId': '69912477',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4008123&docid=69912497&x=3859',
		'title': '',
		'imageId': '69912497',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4008123';

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