var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231422&x=1340',
		'title': 'AG-26-40',
		'imageId': '60231422',
		'alt' : 'AG-26-40',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231423&x=1340',
		'title': '',
		'imageId': '60231423',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231424&x=1340',
		'title': '',
		'imageId': '60231424',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231425&x=1340',
		'title': '',
		'imageId': '60231425',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231426&x=1340',
		'title': '',
		'imageId': '60231426',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231427&x=1340',
		'title': '',
		'imageId': '60231427',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231428&x=1340',
		'title': '',
		'imageId': '60231428',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231429&x=1340',
		'title': '',
		'imageId': '60231429',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231430&x=1340',
		'title': '',
		'imageId': '60231430',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231431&x=1340',
		'title': '',
		'imageId': '60231431',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231432&x=1340',
		'title': '',
		'imageId': '60231432',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231433&x=1340',
		'title': '',
		'imageId': '60231433',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231434&x=1340',
		'title': '',
		'imageId': '60231434',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231435&x=1340',
		'title': '',
		'imageId': '60231435',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231436&x=1340',
		'title': '',
		'imageId': '60231436',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231437&x=1340',
		'title': '',
		'imageId': '60231437',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231438&x=1340',
		'title': '',
		'imageId': '60231438',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231439&x=1340',
		'title': '',
		'imageId': '60231439',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231440&x=1340',
		'title': '',
		'imageId': '60231440',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231441&x=1340',
		'title': '',
		'imageId': '60231441',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231442&x=1340',
		'title': '',
		'imageId': '60231442',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231443&x=1340',
		'title': '',
		'imageId': '60231443',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3967846&docid=60231444&x=1340',
		'title': '',
		'imageId': '60231444',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3967846';

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