var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3945707&docid=67386290&x=2956',
		'title': '',
		'imageId': '67386290',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945707&docid=67386289&x=2956',
		'title': '',
		'imageId': '67386289',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945707&docid=67386287&x=2956',
		'title': '',
		'imageId': '67386287',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945707&docid=67386286&x=2956',
		'title': '',
		'imageId': '67386286',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945707&docid=67386288&x=2956',
		'title': '',
		'imageId': '67386288',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945707&docid=67647309&x=2956',
		'title': '',
		'imageId': '67647309',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945707&docid=67647310&x=2956',
		'title': '',
		'imageId': '67647310',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945707&docid=67647313&x=2956',
		'title': '',
		'imageId': '67647313',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945707&docid=67647312&x=2956',
		'title': 'Length inside box\n',
		'imageId': '67647312',
		'alt' : 'Length inside box\n',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3945707&docid=67647311&x=2956',
		'title': 'height inside box',
		'imageId': '67647311',
		'alt' : 'height inside box',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3945707';

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