var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=4010045&docid=69964010&x=1737',
		'title': '',
		'imageId': '69964010',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010045&docid=69964012&x=1737',
		'title': '',
		'imageId': '69964012',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010045&docid=69964015&x=1737',
		'title': '',
		'imageId': '69964015',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010045&docid=69964014&x=1737',
		'title': '',
		'imageId': '69964014',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010045&docid=69964007&x=1737',
		'title': '',
		'imageId': '69964007',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010045&docid=69964008&x=1737',
		'title': '',
		'imageId': '69964008',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010045&docid=69964006&x=1737',
		'title': '',
		'imageId': '69964006',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010045&docid=69964009&x=1737',
		'title': '',
		'imageId': '69964009',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010045&docid=69964013&x=1737',
		'title': '',
		'imageId': '69964013',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=4010045&docid=69964011&x=1737',
		'title': '',
		'imageId': '69964011',
		'alt' : '',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #4010045';

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