//Photo Gallery -Start
	
	var imgObj = new Array();
	var imgObjCounter = new Array();
	
	var albumObj = new Array();
	var albumObjCounter = 1;
	
	var imagePerPage = 9;
	var currentPage = 1;
	
	function addAlbum(albumID, name, desc)
	{
		imgObj[albumID] = new Object();
		imgObjCounter[albumID] = new Object();		
		imgObjCounter[albumID]=1;
		


		albumObj[albumID] = new Object();
		albumObj[albumID].name=name;
		albumObj[albumID].desc=desc;
		albumObjCounter++;
	}
	
	function addImage(albumID, imageID, thumbsPath, enlargePath, altText)
	{
		imgObj[albumID][imgObjCounter[albumID]] = new Object();
		imgObj[albumID][imgObjCounter[albumID]].id = imageID;
		imgObj[albumID][imgObjCounter[albumID]].albumID = albumID;
		imgObj[albumID][imgObjCounter[albumID]].thumbsPath = thumbsPath;
		imgObj[albumID][imgObjCounter[albumID]].enlargePath = enlargePath;
		imgObj[albumID][imgObjCounter[albumID]].altText = altText;
		imgObjCounter[albumID] = imgObjCounter[albumID] + 1;
	}

	function getImageObj(albumID){
		return imgObj[albumID];
	}
	function getEnlargePath(albumID, imageID){
		return imgObj[albumID][imageID].enlargePath;
	}

	function getThumbsPath(albumID, imageID){
		return imgObj[albumID][imageID].thumbsPath;
	}

	function getAltText(albumID, imageID){
		return imgObj[albumID][imageID].altText;
	}

	function getStartRecord(albumID, pageNo){
		if(pageNo==1){
			return 1;
		}else{
			return imagePerPage * pageNo -imagePerPage+1;
		}
	}
	
	function getTotalPage(albumID){
		var totalPage = Math.ceil((imgObjCounter[albumID]-1) / imagePerPage);
		if(totalPage<1){
			totalPage = 1;
		}
		return totalPage;
	}	
	
	function checkVaild(albumID, imageID){
		var returnValue = true;
		if (!imgObj[albumID][imageID]){
			returnValue = false;
		}else{
			return true;
			//Disabled check Function 
			/*
			document.getElementById("testImg").src=imgObj[albumID][imageID].thumbsPath;
			if(!document.getElementById("testImg").complete){
				returnValue = false;		
			}
			*/
			//Disabled check Function 
		}
		return returnValue;
	}

function cloneImageCollection(albumID){
		var tmpCounter = 1;
		var tmpImageObj = new Object();
		tmpImageObj[albumID] = getImageObj(albumID);

		for(var imagesCollection in tmpImageObj[albumID]){		
			imgObj[albumID][tmpCounter] = tmpImageObj[albumID][imagesCollection];
			tmpCounter++;			
		}
}
	
function getNavMenu(albumID,actionTarget){
	var pathStr = "";
	for(i=1;i<=getTotalPage(albumID);i++){
		if(i==currentPage){
			pathStr = pathStr + "<b>"+i+"</b>";		
		}else{
			pathStr = pathStr +'<A href="'+actionTarget+'?page='+i+'">'+i+'</a>';
		}

		if(i<getTotalPage(albumID)){
			pathStr = pathStr+ "&nbsp;|&nbsp;";
		}
	}
	pathStr = "Page :&nbsp;"+pathStr;
	return pathStr;
}


function getNavBtn(albumID, langID, actionTarget){
	var pathStr = "";
	var tmpCurrentPage = currentPage;
	var btnCaption = new Array();
		btnCaption[1] = new Array();
		btnCaption[1][1]="Next";
		btnCaption[1][2]="Previous";

		btnCaption[2] = new Array();
		btnCaption[2][1]="?U ?@ ??";
		btnCaption[2][2]="?W ?@ ??";

	if (currentPage < getTotalPage(albumID)){
		tmpCurrentPage++;
		pathStr = actionTarget+"?page="+ tmpCurrentPage;
		pathStr = "<a href='"+ pathStr+"'>"+btnCaption[langID][1]+"</a>&nbsp;&nbsp;";
	}else{
		tmpCurrentPage--;
		pathStr = actionTarget+"?page="+ tmpCurrentPage;
		pathStr = "<a href='"+ pathStr+"'>"+btnCaption[langID][2]+"</a>&nbsp;&nbsp;";
	}
	return pathStr;
}

	
	function initProgram(){
		var urlStr = location.href.toString();
		var pageParm = urlStr.search("page=");
		if(pageParm!=-1){
			currentPage = urlStr.substring(pageParm+5,urlStr.length);
		}
		addAlbum(1);

		//Start Add Images
		addImage(1, 0, "../images/photo_gallery/pho/s20071015_01.jpg", "pho_enlarge.html?photo=20071015_01","Photo");
		addImage(1, 1, "../images/photo_gallery/pho/s20071015_02.jpg", "pho_enlarge.html?photo=20071015_02","Photo");
		addImage(1, 2, "../images/photo_gallery/pho/s20071015_03.jpg", "pho_enlarge.html?photo=20071015_03","Photo");

		//End Add Images
		
	}


	function initProgram2(){
		var urlStr = location.href.toString();
		var pageParm = urlStr.search("page=");
		if(pageParm!=-1){
			currentPage = urlStr.substring(pageParm+5,urlStr.length);
		}
		addAlbum(1);

		//Start Add Images
		addImage(1, 0, "../images/photo_gallery/pho/s20071015_04.jpg", "pho_enlarge.html?photo=20071015_04","Photo");
		addImage(1, 1, "../images/photo_gallery/pho/s20071015_05.jpg", "pho_enlarge.html?photo=20071015_05","Photo");
		addImage(1, 2, "../images/photo_gallery/pho/s20071015_06.jpg", "pho_enlarge.html?photo=20071015_06","Photo");
		addImage(1, 3, "../images/photo_gallery/pho/s20071015_07.jpg", "pho_enlarge.html?photo=20071015_07","Photo");
		addImage(1, 4, "../images/photo_gallery/pho/s20071015_08.jpg", "pho_enlarge.html?photo=20071015_08","Photo");
		addImage(1, 5, "../images/photo_gallery/pho/s20071015_09.jpg", "pho_enlarge.html?photo=20071015_09","Photo");
		//End Add Images
		
	}

	function initProgram3(){
		var urlStr = location.href.toString();
		var pageParm = urlStr.search("page=");
		if(pageParm!=-1){
			currentPage = urlStr.substring(pageParm+5,urlStr.length);
		}
		addAlbum(1);

		//Start Add Images
		addImage(1, 0, "../images/photo_gallery/pho/s20071015_10.jpg", "pho_enlarge.html?photo=20071015_10","Photo");
		addImage(1, 1, "../images/photo_gallery/pho/s20071015_11.jpg", "pho_enlarge.html?photo=20071015_11","Photo");
		addImage(1, 2, "../images/photo_gallery/pho/s20071015_12.jpg", "pho_enlarge.html?photo=20071015_12","Photo");
                //End Add Images
		
	}
	
function initProgram4(){
		var urlStr = location.href.toString();
		var pageParm = urlStr.search("page=");
		if(pageParm!=-1){
			currentPage = urlStr.substring(pageParm+5,urlStr.length);
		}
		addAlbum(1);

		//Start Add Images
		addImage(1, 0, "../images/photo_gallery/pho/s20071102_04.jpg", "pho_enlarge.html?photo=20071102_04","Photo");
		addImage(1, 1, "../images/photo_gallery/pho/s20071102_05.jpg", "pho_enlarge.html?photo=20071102_05","Photo");
		addImage(1, 2, "../images/photo_gallery/pho/s20071102_06.jpg", "pho_enlarge.html?photo=20071102_06","Photo");
		//End Add Images
		
	}

function initProgram5(){
		var urlStr = location.href.toString();
		var pageParm = urlStr.search("page=");
		if(pageParm!=-1){
			currentPage = urlStr.substring(pageParm+5,urlStr.length);
		}
		addAlbum(1);

		//Start Add Images
		addImage(1, 0, "../images/photo_gallery/pho/s20071102_01.jpg", "pho_enlarge.html?photo=20071102_01","Photo");
		addImage(1, 1, "../images/photo_gallery/pho/s20071102_02.jpg", "pho_enlarge.html?photo=20071102_02","Photo");
		addImage(1, 2, "../images/photo_gallery/pho/s20071102_03.jpg", "pho_enlarge.html?photo=20071102_03","Photo");
		//End Add Images
		
	}

function initProgram6(){
		var urlStr = location.href.toString();
		var pageParm = urlStr.search("page=");
		if(pageParm!=-1){
			currentPage = urlStr.substring(pageParm+5,urlStr.length);
		}
		addAlbum(1);

		//Start Add Images
		addImage(1, 0, "../images/photo_gallery/pho/s20071109_01.jpg", "pho_enlarge.html?photo=20071109_01","Photo");
		addImage(1, 1, "../images/photo_gallery/pho/s20071109_02.jpg", "pho_enlarge.html?photo=20071109_02","Photo");
		addImage(1, 2, "../images/photo_gallery/pho/s20071109_03.jpg", "pho_enlarge.html?photo=20071109_03","Photo");
		//End Add Images
		
	}

function initProgram7(){
		var urlStr = location.href.toString();
		var pageParm = urlStr.search("page=");
		if(pageParm!=-1){
			currentPage = urlStr.substring(pageParm+5,urlStr.length);
		}
		addAlbum(1);

		//Start Add Images
		addImage(1, 0, "../images/photo_gallery/pho/s20071126_01.jpg", "pho_enlarge.html?photo=20071126_01","Photo");
		addImage(1, 1, "../images/photo_gallery/pho/s20071126_02.jpg", "pho_enlarge.html?photo=20071126_02","Photo");
		addImage(1, 2, "../images/photo_gallery/pho/s20071126_03.jpg", "pho_enlarge.html?photo=20071126_03","Photo");
		addImage(1, 3, "../images/photo_gallery/pho/s20071126_04.jpg", "pho_enlarge.html?photo=20071126_04","Photo");
		addImage(1, 4, "../images/photo_gallery/pho/s20071126_05.jpg", "pho_enlarge.html?photo=20071126_05","Photo");
		addImage(1, 5, "../images/photo_gallery/pho/s20071126_06.jpg", "pho_enlarge.html?photo=20071126_06","Photo");
		//End Add Images
		
	}

function initProgram8(){
		var urlStr = location.href.toString();
		var pageParm = urlStr.search("page=");
		if(pageParm!=-1){
			currentPage = urlStr.substring(pageParm+5,urlStr.length);
		}
		addAlbum(1);

		//Start Add Images
		addImage(1, 0, "../images/photo_gallery/pho/s20071126_07.jpg", "pho_enlarge.html?photo=20071126_07","Photo");
		addImage(1, 1, "../images/photo_gallery/pho/s20071126_08.jpg", "pho_enlarge.html?photo=20071126_08","Photo");
		addImage(1, 2, "../images/photo_gallery/pho/s20071126_09.jpg", "pho_enlarge.html?photo=20071126_09","Photo");
		addImage(1, 3, "../images/photo_gallery/pho/s20071126_10.jpg", "pho_enlarge.html?photo=20071126_10","Photo");
		addImage(1, 4, "../images/photo_gallery/pho/s20071126_11.jpg", "pho_enlarge.html?photo=20071126_11","Photo");
		addImage(1, 5, "../images/photo_gallery/pho/s20071126_12.jpg", "pho_enlarge.html?photo=20071126_12","Photo");
		addImage(1, 6, "../images/photo_gallery/pho/s20071126_13.jpg", "pho_enlarge.html?photo=20071126_13","Photo");
		addImage(1, 7, "../images/photo_gallery/pho/s20071126_14.jpg", "pho_enlarge.html?photo=20071126_14","Photo");
		addImage(1, 8, "../images/photo_gallery/pho/s20071126_15.jpg", "pho_enlarge.html?photo=20071126_15","Photo");
		addImage(1, 9, "../images/photo_gallery/pho/s20071126_16.jpg", "pho_enlarge.html?photo=20071126_16","Photo");
		addImage(1, 10, "../images/photo_gallery/pho/s20071126_17.jpg", "pho_enlarge.html?photo=20071126_17","Photo");
		addImage(1, 11, "../images/photo_gallery/pho/s20071126_18.jpg", "pho_enlarge.html?photo=20071126_18","Photo");
		addImage(1, 12, "../images/photo_gallery/pho/s20071126_19.jpg", "pho_enlarge.html?photo=20071126_19","Photo");
		addImage(1, 13, "../images/photo_gallery/pho/s20071126_20.jpg", "pho_enlarge.html?photo=20071126_20","Photo");
		addImage(1, 14, "../images/photo_gallery/pho/s20071126_21.jpg", "pho_enlarge.html?photo=20071126_21","Photo");
		//End Add Images
		
	}
	
function initProgram9(){
		var urlStr = location.href.toString();
		var pageParm = urlStr.search("page=");
		if(pageParm!=-1){
			currentPage = urlStr.substring(pageParm+5,urlStr.length);
		}
		addAlbum(1);

		//Start Add Images
		addImage(1, 0, "../images/photo_gallery/pho/s20071211_01.jpg", "pho_enlarge.html?photo=20071211_01","Photo");
		addImage(1, 1, "../images/photo_gallery/pho/s20071211_02.jpg", "pho_enlarge.html?photo=20071211_02","Photo");
		addImage(1, 2, "../images/photo_gallery/pho/s20071211_03.jpg", "pho_enlarge.html?photo=20071211_03","Photo");
		addImage(1, 3, "../images/photo_gallery/pho/s20071211_04.jpg", "pho_enlarge.html?photo=20071211_04","Photo");
		addImage(1, 4, "../images/photo_gallery/pho/s20071211_05.jpg", "pho_enlarge.html?photo=20071211_05","Photo");
		addImage(1, 5, "../images/photo_gallery/pho/s20071211_06.jpg", "pho_enlarge.html?photo=20071211_06","Photo");
		addImage(1, 6, "../images/photo_gallery/pho/s20080108_01.jpg", "pho_enlarge.html?photo=20080108_01","Photo");
		addImage(1, 7, "../images/photo_gallery/pho/s20080108_02.jpg", "pho_enlarge.html?photo=20080108_02","Photo");
		addImage(1, 8, "../images/photo_gallery/pho/s20080108_03.jpg", "pho_enlarge.html?photo=20080108_03","Photo");
		addImage(1, 9, "../images/photo_gallery/pho/s20080108_04.jpg", "pho_enlarge.html?photo=20080108_04","Photo");
		addImage(1, 10, "../images/photo_gallery/pho/s20080108_05.jpg", "pho_enlarge.html?photo=20080108_05","Photo");
		addImage(1, 11, "../images/photo_gallery/pho/s20080108_06.jpg", "pho_enlarge.html?photo=20080108_06","Photo");
		//End Add Images
		
	}
	

function initProgram10(){
		var urlStr = location.href.toString();
		var pageParm = urlStr.search("page=");
		if(pageParm!=-1){
			currentPage = urlStr.substring(pageParm+5,urlStr.length);
		}
		addAlbum(1);

		//Start Add Images
		addImage(1, 0, "../images/photo_gallery/pho/s20071231_01.jpg", "pho_enlarge.html?photo=20071231_01","Photo");
		addImage(1, 1, "../images/photo_gallery/pho/s20071231_02.jpg", "pho_enlarge.html?photo=20071231_02","Photo");
		addImage(1, 2, "../images/photo_gallery/pho/s20071231_03.jpg", "pho_enlarge.html?photo=20071231_03","Photo");
		//End Add Images
		
	}
function initProgram11(){
		var urlStr = location.href.toString();
		var pageParm = urlStr.search("page=");
		if(pageParm!=-1){
			currentPage = urlStr.substring(pageParm+5,urlStr.length);
		}
		addAlbum(1);

		//Start Add Images
		addImage(1, 0, "../images/photo_gallery/pho/s20080107_01.jpg", "pho_enlarge.html?photo=20080107_01","Photo");
		addImage(1, 1, "../images/photo_gallery/pho/s20080107_02.jpg", "pho_enlarge.html?photo=20080107_02","Photo");
		addImage(1, 2, "../images/photo_gallery/pho/s20080107_03.jpg", "pho_enlarge.html?photo=20080107_03","Photo");
		addImage(1, 3, "../images/photo_gallery/pho/s20080107_04.jpg", "pho_enlarge.html?photo=20080107_04","Photo");
		addImage(1, 4, "../images/photo_gallery/pho/s20080107_05.jpg", "pho_enlarge.html?photo=20080107_05","Photo");
		addImage(1, 5, "../images/photo_gallery/pho/s20080107_06.jpg", "pho_enlarge.html?photo=20080107_06","Photo");
		addImage(1, 6, "../images/photo_gallery/pho/s20080107_07.jpg", "pho_enlarge.html?photo=20080107_07","Photo");
		addImage(1, 7, "../images/photo_gallery/pho/s20080107_08.jpg", "pho_enlarge.html?photo=20080107_08","Photo");
		addImage(1, 8, "../images/photo_gallery/pho/s20080107_09.jpg", "pho_enlarge.html?photo=20080107_09","Photo");
		addImage(1, 9, "../images/photo_gallery/pho/s20080107_10.jpg", "pho_enlarge.html?photo=20080107_10","Photo");
		addImage(1, 10, "../images/photo_gallery/pho/s20080107_11.jpg", "pho_enlarge.html?photo=20080107_11","Photo");
		addImage(1, 11, "../images/photo_gallery/pho/s20080107_12.jpg", "pho_enlarge.html?photo=20080107_12","Photo");
		addImage(1, 12, "../images/photo_gallery/pho/s20080107_13.jpg", "pho_enlarge.html?photo=20080107_13","Photo");
		addImage(1, 13, "../images/photo_gallery/pho/s20080107_14.jpg", "pho_enlarge.html?photo=20080107_14","Photo");
		addImage(1, 14, "../images/photo_gallery/pho/s20080107_15.jpg", "pho_enlarge.html?photo=20080107_15","Photo");
		addImage(1, 15, "../images/photo_gallery/pho/s20080107_16.jpg", "pho_enlarge.html?photo=20080107_16","Photo");
		addImage(1, 16, "../images/photo_gallery/pho/s20080107_17.jpg", "pho_enlarge.html?photo=20080107_17","Photo");
		addImage(1, 17, "../images/photo_gallery/pho/s20080107_18.jpg", "pho_enlarge.html?photo=20080107_18","Photo");
		addImage(1, 18, "../images/photo_gallery/pho/s20080107_19.jpg", "pho_enlarge.html?photo=20080107_19","Photo");
		addImage(1, 19, "../images/photo_gallery/pho/s20080107_20.jpg", "pho_enlarge.html?photo=20080107_20","Photo");
		addImage(1, 20, "../images/photo_gallery/pho/s20080107_21.jpg", "pho_enlarge.html?photo=20080107_21","Photo");
		//End Add Images
		
	}
	
function initProgram12(){
		var urlStr = location.href.toString();
		var pageParm = urlStr.search("page=");
		if(pageParm!=-1){
			currentPage = urlStr.substring(pageParm+5,urlStr.length);
		}
		addAlbum(1);

		//Start Add Images
		addImage(1, 0, "../images/photo_gallery/pho/s20080115_01.jpg", "pho_enlarge.html?photo=20080115_01","Photo");
		addImage(1, 1, "../images/photo_gallery/pho/s20080115_02.jpg", "pho_enlarge.html?photo=20080115_02","Photo");
		addImage(1, 2, "../images/photo_gallery/pho/s20080115_03.jpg", "pho_enlarge.html?photo=20080115_03","Photo");
		addImage(1, 3, "../images/photo_gallery/pho/s20080115_04.jpg", "pho_enlarge.html?photo=20080115_04","Photo");
		addImage(1, 4, "../images/photo_gallery/pho/s20080115_05.jpg", "pho_enlarge.html?photo=20080115_05","Photo");
		addImage(1, 5, "../images/photo_gallery/pho/s20080115_06.jpg", "pho_enlarge.html?photo=20080115_06","Photo");
		addImage(1, 6, "../images/photo_gallery/pho/s20080115_07.jpg", "pho_enlarge.html?photo=20080115_07","Photo");
		addImage(1, 7, "../images/photo_gallery/pho/s20080115_08.jpg", "pho_enlarge.html?photo=20080115_08","Photo");
		addImage(1, 8, "../images/photo_gallery/pho/s20080115_09.jpg", "pho_enlarge.html?photo=20080115_09","Photo");
		addImage(1, 9, "../images/photo_gallery/pho/s20080115_10.jpg", "pho_enlarge.html?photo=20080115_10","Photo");
		addImage(1, 10, "../images/photo_gallery/pho/s20080115_11.jpg", "pho_enlarge.html?photo=20080115_11","Photo");
		addImage(1, 11, "../images/photo_gallery/pho/s20080115_12.jpg", "pho_enlarge.html?photo=20080115_12","Photo");
		addImage(1, 12, "../images/photo_gallery/pho/s20080115_13.jpg", "pho_enlarge.html?photo=20080115_13","Photo");
		addImage(1, 13, "../images/photo_gallery/pho/s20080115_14.jpg", "pho_enlarge.html?photo=20080115_14","Photo");
		addImage(1, 14, "../images/photo_gallery/pho/s20080115_15.jpg", "pho_enlarge.html?photo=20080115_15","Photo");
		addImage(1, 15, "../images/photo_gallery/pho/s20080115_16.jpg", "pho_enlarge.html?photo=20080115_16","Photo");
		addImage(1, 16, "../images/photo_gallery/pho/s20080115_17.jpg", "pho_enlarge.html?photo=20080115_17","Photo");
		addImage(1, 17, "../images/photo_gallery/pho/s20080115_18.jpg", "pho_enlarge.html?photo=20080115_18","Photo");
		addImage(1, 18, "../images/photo_gallery/pho/s20080115_19.jpg", "pho_enlarge.html?photo=20080115_19","Photo");
		addImage(1, 19, "../images/photo_gallery/pho/s20080115_20.jpg", "pho_enlarge.html?photo=20080115_20","Photo");
		addImage(1, 20, "../images/photo_gallery/pho/s20080115_21.jpg", "pho_enlarge.html?photo=20080115_21","Photo");
		addImage(1, 21, "../images/photo_gallery/pho/s20080115_22.jpg", "pho_enlarge.html?photo=20080115_22","Photo");
		addImage(1, 22, "../images/photo_gallery/pho/s20080115_23.jpg", "pho_enlarge.html?photo=20080115_23","Photo");
		addImage(1, 23, "../images/photo_gallery/pho/s20080115_24.jpg", "pho_enlarge.html?photo=20080115_24","Photo");
		addImage(1, 24, "../images/photo_gallery/pho/s20080115_25.jpg", "pho_enlarge.html?photo=20080115_25","Photo");
		addImage(1, 25, "../images/photo_gallery/pho/s20080115_26.jpg", "pho_enlarge.html?photo=20080115_26","Photo");
		addImage(1, 26, "../images/photo_gallery/pho/s20080115_27.jpg", "pho_enlarge.html?photo=20080115_27","Photo");
		addImage(1, 27, "../images/photo_gallery/pho/s20080115_28.jpg", "pho_enlarge.html?photo=20080115_28","Photo");
		addImage(1, 28, "../images/photo_gallery/pho/s20080115_29.jpg", "pho_enlarge.html?photo=20080115_29","Photo");
		addImage(1, 29, "../images/photo_gallery/pho/s20080115_30.jpg", "pho_enlarge.html?photo=20080115_30","Photo");
		addImage(1, 30, "../images/photo_gallery/pho/s20080115_31.jpg", "pho_enlarge.html?photo=20080115_31","Photo");
		addImage(1, 31, "../images/photo_gallery/pho/s20080115_32.jpg", "pho_enlarge.html?photo=20080115_32","Photo");
		addImage(1, 32, "../images/photo_gallery/pho/s20080115_33.jpg", "pho_enlarge.html?photo=20080115_33","Photo");
		addImage(1, 33, "../images/photo_gallery/pho/s20080115_34.jpg", "pho_enlarge.html?photo=20080115_34","Photo");
		addImage(1, 34, "../images/photo_gallery/pho/s20080115_35.jpg", "pho_enlarge.html?photo=20080115_35","Photo");
		addImage(1, 35, "../images/photo_gallery/pho/s20080115_36.jpg", "pho_enlarge.html?photo=20080115_36","Photo");
		addImage(1, 36, "../images/photo_gallery/pho/s20080115_37.jpg", "pho_enlarge.html?photo=20080115_37","Photo");
		addImage(1, 37, "../images/photo_gallery/pho/s20080115_38.jpg", "pho_enlarge.html?photo=20080115_38","Photo");
		addImage(1, 38, "../images/photo_gallery/pho/s20080115_39.jpg", "pho_enlarge.html?photo=20080115_39","Photo");
		//End Add Images
		
	}
	
function initProgram13(){
		var urlStr = location.href.toString();
		var pageParm = urlStr.search("page=");
		if(pageParm!=-1){
			currentPage = urlStr.substring(pageParm+5,urlStr.length);
		}
		addAlbum(1);

		//Start Add Images
		addImage(1, 0, "../images/photo_gallery/pho/s20080128_01.jpg", "pho_enlarge.html?photo=20080128_01","Photo");
		addImage(1, 1, "../images/photo_gallery/pho/s20080128_02.jpg", "pho_enlarge.html?photo=20080128_02","Photo");
		addImage(1, 2, "../images/photo_gallery/pho/s20080128_03.jpg", "pho_enlarge.html?photo=20080128_03","Photo");
		addImage(1, 3, "../images/photo_gallery/pho/s20080128_04.jpg", "pho_enlarge.html?photo=20080128_04","Photo");
		addImage(1, 4, "../images/photo_gallery/pho/s20080128_05.jpg", "pho_enlarge.html?photo=20080128_05","Photo");
		addImage(1, 5, "../images/photo_gallery/pho/s20080128_06.jpg", "pho_enlarge.html?photo=20080128_06","Photo");
	   //End Add Images
		
	}
	
function initProgram14(){
		var urlStr = location.href.toString();
		var pageParm = urlStr.search("page=");
		if(pageParm!=-1){
			currentPage = urlStr.substring(pageParm+5,urlStr.length);
		}
		addAlbum(1);

		//Start Add Images
		addImage(1, 0, "../images/photo_gallery/pho/s20080205_01.jpg", "pho_enlarge.html?photo=20080205_01","Photo");
		addImage(1, 1, "../images/photo_gallery/pho/s20080205_02.jpg", "pho_enlarge.html?photo=20080205_02","Photo");
		addImage(1, 2, "../images/photo_gallery/pho/s20080205_03.jpg", "pho_enlarge.html?photo=20080205_03","Photo");
		addImage(1, 3, "../images/photo_gallery/pho/s20080205_04.jpg", "pho_enlarge.html?photo=20080205_04","Photo");
		addImage(1, 4, "../images/photo_gallery/pho/s20080205_05.jpg", "pho_enlarge.html?photo=20080205_05","Photo");
		addImage(1, 5, "../images/photo_gallery/pho/s20080205_06.jpg", "pho_enlarge.html?photo=20080205_06","Photo");
		addImage(1, 6, "../images/photo_gallery/pho/s20080205_08.jpg", "pho_enlarge.html?photo=20080205_08","Photo");
		addImage(1, 7, "../images/photo_gallery/pho/s20080205_09.jpg", "pho_enlarge.html?photo=20080205_09","Photo");
		addImage(1, 8, "../images/photo_gallery/pho/s20080205_10.jpg", "pho_enlarge.html?photo=20080205_10","Photo");
		addImage(1, 9, "../images/photo_gallery/pho/s20080205_11.jpg", "pho_enlarge.html?photo=20080205_11","Photo");
		addImage(1, 10, "../images/photo_gallery/pho/s20080205_12.jpg", "pho_enlarge.html?photo=20080205_12","Photo");
		addImage(1, 11, "../images/photo_gallery/pho/s20080205_13.jpg", "pho_enlarge.html?photo=20080205_13","Photo");
		addImage(1, 12, "../images/photo_gallery/pho/s20080205_14.jpg", "pho_enlarge.html?photo=20080205_14","Photo");
		addImage(1, 13, "../images/photo_gallery/pho/s20080205_15.jpg", "pho_enlarge.html?photo=20080205_15","Photo");
		addImage(1, 14, "../images/photo_gallery/pho/s20080205_16.jpg", "pho_enlarge.html?photo=20080205_16","Photo");
		addImage(1, 15, "../images/photo_gallery/pho/s20080205_17.jpg", "pho_enlarge.html?photo=20080205_17","Photo");
		addImage(1, 16, "../images/photo_gallery/pho/s20080205_18.jpg", "pho_enlarge.html?photo=20080205_18","Photo");
		addImage(1, 17, "../images/photo_gallery/pho/s20080205_19.jpg", "pho_enlarge.html?photo=20080205_19","Photo");
		addImage(1, 18, "../images/photo_gallery/pho/s20080205_20.jpg", "pho_enlarge.html?photo=20080205_20","Photo");
		addImage(1, 19, "../images/photo_gallery/pho/s20080205_21.jpg", "pho_enlarge.html?photo=20080205_21","Photo");
		addImage(1, 20, "../images/photo_gallery/pho/s20080205_22.jpg", "pho_enlarge.html?photo=20080205_22","Photo");
		addImage(1, 21, "../images/photo_gallery/pho/s20080205_23.jpg", "pho_enlarge.html?photo=20080205_23","Photo");
		addImage(1, 22, "../images/photo_gallery/pho/s20080205_24.jpg", "pho_enlarge.html?photo=20080205_24","Photo");
		addImage(1, 23, "../images/photo_gallery/pho/s20080205_25.jpg", "pho_enlarge.html?photo=20080205_25","Photo");
		addImage(1, 24, "../images/photo_gallery/pho/s20080205_26.jpg", "pho_enlarge.html?photo=20080205_26","Photo");
		addImage(1, 25, "../images/photo_gallery/pho/s20080205_27.jpg", "pho_enlarge.html?photo=20080205_27","Photo");
		addImage(1, 26, "../images/photo_gallery/pho/s20080205_28.jpg", "pho_enlarge.html?photo=20080205_28","Photo");
		addImage(1, 27, "../images/photo_gallery/pho/s20080205_29.jpg", "pho_enlarge.html?photo=20080205_29","Photo");
		addImage(1, 28, "../images/photo_gallery/pho/s20080205_30.jpg", "pho_enlarge.html?photo=20080205_30","Photo");
		addImage(1, 29, "../images/photo_gallery/pho/s20080205_31.jpg", "pho_enlarge.html?photo=20080205_31","Photo");
		addImage(1, 30, "../images/photo_gallery/pho/s20080205_32.jpg", "pho_enlarge.html?photo=20080205_32","Photo");
		addImage(1, 31, "../images/photo_gallery/pho/s20080205_33.jpg", "pho_enlarge.html?photo=20080205_33","Photo");
		addImage(1, 32, "../images/photo_gallery/pho/s20080205_34.jpg", "pho_enlarge.html?photo=20080205_34","Photo");
		addImage(1, 33, "../images/photo_gallery/pho/s20080205_35.jpg", "pho_enlarge.html?photo=20080205_35","Photo");
		addImage(1, 34, "../images/photo_gallery/pho/s20080205_36.jpg", "pho_enlarge.html?photo=20080205_36","Photo");
		addImage(1, 35, "../images/photo_gallery/pho/s20080205_37.jpg", "pho_enlarge.html?photo=20080205_37","Photo");
		addImage(1, 36, "../images/photo_gallery/pho/s20080205_38.jpg", "pho_enlarge.html?photo=20080205_38","Photo");
		addImage(1, 37, "../images/photo_gallery/pho/s20080205_39.jpg", "pho_enlarge.html?photo=20080205_39","Photo");
		addImage(1, 38, "../images/photo_gallery/pho/s20080205_40.jpg", "pho_enlarge.html?photo=20080205_40","Photo");
		addImage(1, 39, "../images/photo_gallery/pho/s20080205_41.jpg", "pho_enlarge.html?photo=20080205_41","Photo");
		addImage(1, 40, "../images/photo_gallery/pho/s20080205_42.jpg", "pho_enlarge.html?photo=20080205_42","Photo");
		addImage(1, 41, "../images/photo_gallery/pho/s20080205_07.jpg", "pho_enlarge.html?photo=20080205_07","Photo");
		addImage(1, 42, "../images/photo_gallery/pho/s20080205_43.jpg", "pho_enlarge.html?photo=20080205_43","Photo");
		addImage(1, 43, "../images/photo_gallery/pho/s20080205_44.jpg", "pho_enlarge.html?photo=20080205_44","Photo");
		addImage(1, 44, "../images/photo_gallery/pho/s20080205_45.jpg", "pho_enlarge.html?photo=20080205_45","Photo");
		addImage(1, 45, "../images/photo_gallery/pho/s20080205_46.jpg", "pho_enlarge.html?photo=20080205_46","Photo");
		addImage(1, 46, "../images/photo_gallery/pho/s20080205_47.jpg", "pho_enlarge.html?photo=20080205_47","Photo");
		addImage(1, 47, "../images/photo_gallery/pho/s20080205_48.jpg", "pho_enlarge.html?photo=20080205_48","Photo");
		addImage(1, 48, "../images/photo_gallery/pho/s20080205_49.jpg", "pho_enlarge.html?photo=20080205_49","Photo");
		addImage(1, 49, "../images/photo_gallery/pho/s20080205_50.jpg", "pho_enlarge.html?photo=20080205_50","Photo");
		addImage(1, 50, "../images/photo_gallery/pho/s20080205_51.jpg", "pho_enlarge.html?photo=20080205_51","Photo");
		//End Add Images
		
	}	

            
function getAlbum(albumID, pageNo, cols, rows){
		var strBuffer="";
		currentPage = pageNo;	
		var imageID = getStartRecord(1, pageNo);
		cloneImageCollection(albumID);

		strBuffer=strBuffer+'                  <table width="100%" border="0" cellspacing="0" cellpadding="0">';
			for(var j=0; j<17; j++){	
				strBuffer=strBuffer+'                    <tr valign="top"> ';
					for(var i=0; i<3; i++){
						if(checkVaild(albumID,imageID)){
							//strBuffer=strBuffer+'<td width="33%" align="center"><a href="'+getEnlargePath(albumID,imageID)+'" target="_blank"><img src="'+getThumbsPath(albumID,imageID)+'" border="0" alt="'+getAltText(albumID,imageID)+'"></a></td>';	
							strBuffer=strBuffer+'                      <td width="33%" align="center" height="100%">'; 
							strBuffer=strBuffer+'                        	<table width="100" border="0" cellspacing="0" cellpadding="0" height="0">'; 
							strBuffer=strBuffer+'                          <tr valign="top"> '; 
							strBuffer=strBuffer+'                            <td height="1"><img src="../images/photo_gallery/pho/abt_pho_sbdr_01.gif"></td>'; 
							strBuffer=strBuffer+'                            <td height="1" background="../images/photo_gallery/pho/abt_pho_sbdr_02.gif"><img src="../images/general/spacer.gif"></td>'; 
							strBuffer=strBuffer+'                            <td height="1"><img src="../images/photo_gallery/pho/abt_pho_sbdr_03.gif"></td>'; 
							strBuffer=strBuffer+'                          </tr>'; 
							strBuffer=strBuffer+'                          <tr valign="top"> '; 
							strBuffer=strBuffer+'                            <td background="../images/photo_gallery/pho/abt_pho_sbdr_04.gif" height="100%"><img src="../images/general/spacer.gif" width="1" height="1"></td>'; 
							strBuffer=strBuffer+'                            <td height="0"><a href="'+getEnlargePath(albumID,imageID)+'"><img src="'+getThumbsPath(albumID,imageID)+'" alt="'+getAltText(albumID,imageID)+'" border="0"></a></td>'; 
							strBuffer=strBuffer+'                            <td background="../images/photo_gallery/pho/abt_pho_sbdr_07.gif" height="100%"><img src="../images/photo_gallery/pho/abt_pho_sbdr_06.gif"></td>'; 
							strBuffer=strBuffer+'                          </tr>'; 
							strBuffer=strBuffer+'                          <tr valign="top"> '; 
							strBuffer=strBuffer+'                            <td height="1"><img src="../images/photo_gallery/pho/abt_pho_sbdr_08.gif"></td>'; 
							strBuffer=strBuffer+'                            <td height="1" background="../images/photo_gallery/pho/abt_pho_sbdr_10.gif"><img src="../images/photo_gallery/pho/abt_pho_sbdr_09.gif"></td>'; 
							strBuffer=strBuffer+'                            <td height="1"><img src="../images/photo_gallery/pho/abt_pho_sbdr_11.gif"></td>'; 
							strBuffer=strBuffer+'                          </tr>'; 
							strBuffer=strBuffer+'                          <tr valign="top"> '; 
							strBuffer=strBuffer+'                            <td class="spacer_txt" height="1"><img src="../images/general/spacer.gif" width="1" height="1"></td>'; 
							strBuffer=strBuffer+'                            <td class="spacer_txt" height="1">&nbsp;</td>'; 
							strBuffer=strBuffer+'                            <td class="spacer_txt" height="1"><img src="../images/general/spacer.gif" width="1" height="1"></td>'; 
							strBuffer=strBuffer+'                          </tr>'; 
							strBuffer=strBuffer+'                          <tr valign="top"> '; 
							strBuffer=strBuffer+'                            <td class="captxt" height="1"><img src="../images/general/spacer.gif" width="1" height="1"></td>'; 
							strBuffer=strBuffer+'                            <td class="captxt" height="1">'; 
							strBuffer=strBuffer+'                              <table width="100%" border="0" cellspacing="0" cellpadding="0">'; 
							strBuffer=strBuffer+'                                <tr>'; 
							strBuffer=strBuffer+'                                  <td class="captxt"><img src="../images/general/spacer.gif" width="5" height="5" align="absmiddle"></td>'; 
							strBuffer=strBuffer+'                                  <td class="captxt" width="100%"><img src="../images/general/bullet.gif" align="texttop"><a href="'+getEnlargePath(albumID,imageID)+'">Enlarge</a></td>'; 
							//strBuffer=strBuffer+'                                  <td class="captxt" nowrap>#'+imageID+'</td>'; 
							strBuffer=strBuffer+'                                </tr>'; 
							strBuffer=strBuffer+'                              </table>'; 
							strBuffer=strBuffer+'                            </td>'; 
							strBuffer=strBuffer+'                            <td class="captxt" height="1"><img src="../images/general/spacer.gif" width="1" height="1"></td>'; 
							strBuffer=strBuffer+'                          </tr>'; 
							strBuffer=strBuffer+'                          <tr valign="top"> '; 
							strBuffer=strBuffer+'                            <td class="spacer_txt" height="1"><img src="../images/general/spacer.gif" width="1" height="1"></td>'; 
							strBuffer=strBuffer+'                            <td class="spacer_txt" height="1">&nbsp;</td>'; 
							strBuffer=strBuffer+'                            <td class="spacer_txt" height="1"><img src="../images/general/spacer.gif" width="1" height="1"></td>'; 
							strBuffer=strBuffer+'                          </tr>'; 
							strBuffer=strBuffer+'                        </table>'; 
							strBuffer=strBuffer+'                      </td>';	
						}
						imageID++;
					}
					/*
				strBuffer=strBuffer+'                    </tr>';
				strBuffer=strBuffer+'                    <tr valign="top"> ';
				strBuffer=strBuffer+'                      <td width="33%" height="100%"></td>';
				strBuffer=strBuffer+'                      <td width="33%" align="center" height="100%"></td>';
				strBuffer=strBuffer+'                      <td width="33%" height="100%"></td>';
				strBuffer=strBuffer+'                    </tr>';
				*/
			}			
		strBuffer=strBuffer+'				</table> 	';
		return 	strBuffer;
	}
	
	function genGalleryNextPage(albumid,pageno){
		var totalpage = getTotalPage(albumid);
		if (pageno < totalpage){
			document.write("<a href=\"abt_pho.html?page="+(parseInt(pageno)+1)+"\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('btnnext','','../images/general/btn_next_over.gif',1)\"><img name=\"btnnext\" border=\"0\" src=\"../images/general/btn_next.gif\" alt=\"next page\"></a>");
		}
	}
	
		

//Photo Gallery - End
