var varArray = [
	{
		'link': '/sms/docviewer/aucdoc?auc=3836107&docid=65798768&x=5051',
		'title': '',
		'imageId': '65798768',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3836107&docid=65798765&x=5051',
		'title': '',
		'imageId': '65798765',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3836107&docid=65798766&x=5051',
		'title': '',
		'imageId': '65798766',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3836107&docid=65798767&x=5051',
		'title': '',
		'imageId': '65798767',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3836107&docid=65798769&x=5051',
		'title': '',
		'imageId': '65798769',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3836107&docid=65798761&x=5051',
		'title': '',
		'imageId': '65798761',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3836107&docid=65798762&x=5051',
		'title': '',
		'imageId': '65798762',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3836107&docid=65798763&x=5051',
		'title': '',
		'imageId': '65798763',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3836107&docid=65798764&x=5051',
		'title': '',
		'imageId': '65798764',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3836107&docid=67938811&x=5051',
		'title': '',
		'imageId': '67938811',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	},
	{
		'link': '/sms/docviewer/aucdoc?auc=3836107&docid=67938812&x=5051',
		'title': '',
		'imageId': '67938812',
		'alt' : 'Picture',
		'rotation': 0,
		'orientation':''
	}
];
var title = 'Auction #3836107';

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