var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3934878&docid=68245471&x=4546',
		'title': '',
		'imageId': '68245471',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3934878&docid=68245472&x=4546',
		'title': '',
		'imageId': '68245472',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3934878&docid=68245473&x=4546',
		'title': '',
		'imageId': '68245473',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3934878&docid=68245474&x=4546',
		'title': '',
		'imageId': '68245474',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3934878&docid=68245475&x=4546',
		'title': '',
		'imageId': '68245475',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3934878&docid=68245517&x=4546',
		'title': '',
		'imageId': '68245517',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3934878&docid=68245547&x=4546',
		'title': '',
		'imageId': '68245547',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3934878&docid=68245582&x=4546',
		'title': '',
		'imageId': '68245582',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3934878&docid=68245589&x=4546',
		'title': '',
		'imageId': '68245589',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3934878&docid=68245602&x=4546',
		'title': '',
		'imageId': '68245602',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3934878';

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