//is = new BrowserDetectLite();
var imageDirSS;
var ext;
var activePhoto;
var totalPhoto;

// Arrow Functions

function nextPhoto()
{
	if (document.images)
	{
		if (activePhoto == totalPhoto)
		{
			activePhoto = 1;
		}
		else
		{
			activePhoto = activePhoto + 1;
		}
		document.images['gallerypic'].src = imageDirSS + activePhoto + ext;
	}
}

function prevPhoto()
{
	if (document.images)
	{
		if (activePhoto == 1)
		{
			activePhoto = totalPhoto;
		}
		else
		{
			activePhoto = activePhoto - 1;
		}
		document.images['gallerypic'].src = imageDirSS + activePhoto + ext;
	}
}

/* */
var imageDirSS = 'pictures/gallery/';
        var ext = '.jpg';
	var activePhoto = 1;
	var totalPhoto = 13;     

function newImage(arg) {
        if (document.images) {
                rslt = new Image();
                rslt.src = arg;
                return rslt;
        }
}

var preloadFlag = false;
function preloadImages() {
        if (document.images) {
                img1 = newImage("pictures/gallery/1.jpg");
                img2 = newImage("pictures/gallery/2.jpg");
                img3 = newImage("pictures/gallery/3.jpg");
                img4 = newImage("pictures/gallery/4.jpg");
                img5 = newImage("pictures/gallery/5.jpg");
                img6 = newImage("pictures/gallery/6.jpg");
                img7 = newImage("pictures/gallery/7.jpg");
                img8 = newImage("pictures/gallery/8.jpg");
                img9 = newImage("pictures/gallery/9.jpg");
                img10 = newImage("pictures/gallery/10.jpg");
		img11 = newImage("pictures/gallery/11.jpg");
		img12 = newImage("pictures/gallery/12.jpg");
		img13 = newImage("pictures/gallery/13.jpg");
		preloadFlag = true;
        }
}

function top_banner_hide()
	{
		if (document.getElementById('top_banner') != null)
		document.getElementById('top_banner').style.display='none';
	}	
