// JavaScript Document

function initGallery ( tempgallery, count, first_id, startwidth, startheight, startimgnumber) {
	imggallery = tempgallery;
	if (preloadimg=="yes"){
		for (x=0; x<imggallery.length; x++){
			var myimage=new Image()
			myimage.src=imggallery[x][0]
		}
	}
	thumbnailnum = imggallery.length;
	current_imgid = first_id;
	currentwidth=startwidth;
	currentheight=startheight;

}

initGallery(tempgallery,tempgallery.length,tempgallery[0][2],currentwidth,currentheight, 0);
