var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4016465&docid=68788453&x=5640',
		'title': '',
		'imageId': '68788453',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016465&docid=68788454&x=5640',
		'title': '',
		'imageId': '68788454',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016465&docid=68788463&x=5640',
		'title': '',
		'imageId': '68788463',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016465&docid=68788456&x=5640',
		'title': '',
		'imageId': '68788456',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016465&docid=68788457&x=5640',
		'title': '',
		'imageId': '68788457',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016465&docid=68788458&x=5640',
		'title': '',
		'imageId': '68788458',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016465&docid=68788459&x=5640',
		'title': '',
		'imageId': '68788459',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016465&docid=68788460&x=5640',
		'title': '',
		'imageId': '68788460',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016465&docid=68788461&x=5640',
		'title': '',
		'imageId': '68788461',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4016465&docid=68788462&x=5640',
		'title': '',
		'imageId': '68788462',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4016465';

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