var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3913556&docid=67854521&x=02',
		'title': '',
		'imageId': '67854521',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913556&docid=67854524&x=02',
		'title': '',
		'imageId': '67854524',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913556&docid=67854527&x=02',
		'title': '',
		'imageId': '67854527',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913556&docid=67854620&x=02',
		'title': '',
		'imageId': '67854620',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913556&docid=67854623&x=02',
		'title': '',
		'imageId': '67854623',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913556&docid=67854653&x=02',
		'title': '',
		'imageId': '67854653',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913556&docid=67854656&x=02',
		'title': '',
		'imageId': '67854656',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913556&docid=67854716&x=02',
		'title': '',
		'imageId': '67854716',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913556&docid=67854719&x=02',
		'title': '',
		'imageId': '67854719',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3913556&docid=67854722&x=02',
		'title': '',
		'imageId': '67854722',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3913556';

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