var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106572&x=5612',
		'title': '',
		'imageId': '70106572',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106557&x=5612',
		'title': '',
		'imageId': '70106557',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106568&x=5612',
		'title': '',
		'imageId': '70106568',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106563&x=5612',
		'title': '',
		'imageId': '70106563',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106577&x=5612',
		'title': '',
		'imageId': '70106577',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106571&x=5612',
		'title': '',
		'imageId': '70106571',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106560&x=5612',
		'title': '',
		'imageId': '70106560',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106578&x=5612',
		'title': '',
		'imageId': '70106578',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106562&x=5612',
		'title': '',
		'imageId': '70106562',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106561&x=5612',
		'title': '',
		'imageId': '70106561',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106566&x=5612',
		'title': '',
		'imageId': '70106566',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106564&x=5612',
		'title': '',
		'imageId': '70106564',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106575&x=5612',
		'title': '',
		'imageId': '70106575',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106576&x=5612',
		'title': '',
		'imageId': '70106576',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106574&x=5612',
		'title': '',
		'imageId': '70106574',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106558&x=5612',
		'title': '',
		'imageId': '70106558',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106573&x=5612',
		'title': '',
		'imageId': '70106573',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106569&x=5612',
		'title': '',
		'imageId': '70106569',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106559&x=5612',
		'title': '',
		'imageId': '70106559',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106570&x=5612',
		'title': '',
		'imageId': '70106570',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106565&x=5612',
		'title': '',
		'imageId': '70106565',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=70106567&x=5612',
		'title': '',
		'imageId': '70106567',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=59270692&x=5612',
		'title': '',
		'imageId': '59270692',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4012384&docid=59270691&x=5612',
		'title': '',
		'imageId': '59270691',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4012384';

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