var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4019115&docid=70207228&x=45',
		'title': '',
		'imageId': '70207228',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019115&docid=70207229&x=45',
		'title': '',
		'imageId': '70207229',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019115&docid=70207230&x=45',
		'title': '',
		'imageId': '70207230',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019115&docid=70207231&x=45',
		'title': '',
		'imageId': '70207231',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019115&docid=70207232&x=45',
		'title': '',
		'imageId': '70207232',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019115&docid=70207235&x=45',
		'title': '',
		'imageId': '70207235',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019115&docid=70207220&x=45',
		'title': '',
		'imageId': '70207220',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019115&docid=70207248&x=45',
		'title': '',
		'imageId': '70207248',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019115&docid=70207249&x=45',
		'title': '',
		'imageId': '70207249',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4019115&docid=70207250&x=45',
		'title': '',
		'imageId': '70207250',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4019115';

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