var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4018404&docid=70186634&x=1544',
		'title': '',
		'imageId': '70186634',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018404&docid=70186632&x=1544',
		'title': '',
		'imageId': '70186632',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018404&docid=70186639&x=1544',
		'title': '',
		'imageId': '70186639',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018404&docid=70186635&x=1544',
		'title': '',
		'imageId': '70186635',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018404&docid=70186633&x=1544',
		'title': '',
		'imageId': '70186633',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018404&docid=70186640&x=1544',
		'title': '',
		'imageId': '70186640',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018404&docid=70186641&x=1544',
		'title': '',
		'imageId': '70186641',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018404&docid=70186637&x=1544',
		'title': '',
		'imageId': '70186637',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018404&docid=70186636&x=1544',
		'title': '',
		'imageId': '70186636',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018404&docid=70186638&x=1544',
		'title': '',
		'imageId': '70186638',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4018404&docid=70186631&x=1544',
		'title': '',
		'imageId': '70186631',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4018404';

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