var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225033&x=4912',
		'title': '',
		'imageId': '69225033',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225050&x=4912',
		'title': '',
		'imageId': '69225050',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225051&x=4912',
		'title': '',
		'imageId': '69225051',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225053&x=4912',
		'title': '',
		'imageId': '69225053',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225046&x=4912',
		'title': '',
		'imageId': '69225046',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225039&x=4912',
		'title': '',
		'imageId': '69225039',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225048&x=4912',
		'title': '',
		'imageId': '69225048',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225045&x=4912',
		'title': '',
		'imageId': '69225045',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225042&x=4912',
		'title': '',
		'imageId': '69225042',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225041&x=4912',
		'title': '',
		'imageId': '69225041',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225040&x=4912',
		'title': '',
		'imageId': '69225040',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225047&x=4912',
		'title': '',
		'imageId': '69225047',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225052&x=4912',
		'title': '',
		'imageId': '69225052',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225036&x=4912',
		'title': '',
		'imageId': '69225036',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225035&x=4912',
		'title': '',
		'imageId': '69225035',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225044&x=4912',
		'title': '',
		'imageId': '69225044',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225037&x=4912',
		'title': '',
		'imageId': '69225037',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225038&x=4912',
		'title': '',
		'imageId': '69225038',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225043&x=4912',
		'title': '',
		'imageId': '69225043',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225049&x=4912',
		'title': '',
		'imageId': '69225049',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3978567&docid=69225034&x=4912',
		'title': '',
		'imageId': '69225034',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3978567';

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