var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=908361&docid=7217386&x=1313',
		'title': '',
		'imageId': '7217386',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=908361&docid=7217389&x=1313',
		'title': '',
		'imageId': '7217389',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=908361&docid=7217392&x=1313',
		'title': '',
		'imageId': '7217392',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=908361&docid=7217396&x=1313',
		'title': '',
		'imageId': '7217396',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=908361&docid=7217401&x=1313',
		'title': '',
		'imageId': '7217401',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=908361&docid=7217410&x=1313',
		'title': '',
		'imageId': '7217410',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=908361&docid=7217427&x=1313',
		'title': '',
		'imageId': '7217427',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=908361&docid=7217435&x=1313',
		'title': '',
		'imageId': '7217435',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=908361&docid=7217442&x=1313',
		'title': '',
		'imageId': '7217442',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=908361&docid=7217445&x=1313',
		'title': '',
		'imageId': '7217445',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=908361&docid=7217451&x=1313',
		'title': '',
		'imageId': '7217451',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #908361';

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