var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3849144&docid=66136794&x=738',
		'title': '',
		'imageId': '66136794',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3849144&docid=66136795&x=738',
		'title': '',
		'imageId': '66136795',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3849144&docid=66136789&x=738',
		'title': '',
		'imageId': '66136789',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3849144&docid=66136800&x=738',
		'title': '',
		'imageId': '66136800',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3849144&docid=66136799&x=738',
		'title': '',
		'imageId': '66136799',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3849144&docid=66136792&x=738',
		'title': '',
		'imageId': '66136792',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3849144&docid=66136797&x=738',
		'title': '',
		'imageId': '66136797',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3849144&docid=66136790&x=738',
		'title': '',
		'imageId': '66136790',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3849144&docid=66136791&x=738',
		'title': '',
		'imageId': '66136791',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3849144&docid=66136796&x=738',
		'title': '',
		'imageId': '66136796',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3849144';

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