var Pic = new Array(); // picture file name var PicW = new Array(); // picture width var PicH = new Array(); // picture height var PicC = new Array(); // picture comment var preLoad = new Array(); Pic[0] = 'photos/20110525_taiwan/IMG_0598.JPG'; PicW[0] = 640; PicH[0] = 480; PicC[0] = ' '; preLoad[0] = new Image(); Pic[1] = 'photos/20110525_taiwan/IMG_0599.JPG'; PicW[1] = 640; PicH[1] = 480; PicC[1] = ' '; preLoad[1] = new Image(); Pic[2] = 'photos/20110525_taiwan/IMG_0600.JPG'; PicW[2] = 640; PicH[2] = 480; PicC[2] = ' '; preLoad[2] = new Image(); Pic[3] = 'photos/20110525_taiwan/IMG_0601.JPG'; PicW[3] = 480; PicH[3] = 640; PicC[3] = ' '; preLoad[3] = new Image(); Pic[4] = 'photos/20110525_taiwan/IMG_0602.JPG'; PicW[4] = 640; PicH[4] = 480; PicC[4] = ' '; preLoad[4] = new Image(); Pic[5] = 'photos/20110525_taiwan/IMG_0606.JPG'; PicW[5] = 640; PicH[5] = 480; PicC[5] = ' '; preLoad[5] = new Image(); Pic[6] = 'photos/20110525_taiwan/IMG_0609.JPG'; PicW[6] = 640; PicH[6] = 480; PicC[6] = ' '; preLoad[6] = new Image(); Pic[7] = 'photos/20110525_taiwan/IMG_0613.JPG'; PicW[7] = 640; PicH[7] = 480; PicC[7] = ' '; preLoad[7] = new Image(); Pic[8] = 'photos/20110525_taiwan/IMG_0622.JPG'; PicW[8] = 640; PicH[8] = 480; PicC[8] = ' '; preLoad[8] = new Image(); Pic[9] = 'photos/20110525_taiwan/IMG_0623.JPG'; PicW[9] = 640; PicH[9] = 480; PicC[9] = ' '; preLoad[9] = new Image(); Pic[10] = 'photos/20110525_taiwan/IMG_0628.JPG'; PicW[10] = 640; PicH[10] = 480; PicC[10] = ' '; preLoad[10] = new Image(); Pic[11] = 'photos/20110525_taiwan/IMG_0629.JPG'; PicW[11] = 480; PicH[11] = 640; PicC[11] = ' '; preLoad[11] = new Image(); Pic[12] = 'photos/20110525_taiwan/IMG_0630.JPG'; PicW[12] = 480; PicH[12] = 640; PicC[12] = ' '; preLoad[12] = new Image(); Pic[13] = 'photos/20110525_taiwan/IMG_0632.JPG'; PicW[13] = 480; PicH[13] = 640; PicC[13] = ' '; preLoad[13] = new Image(); Pic[14] = 'photos/20110525_taiwan/IMG_0633.JPG'; PicW[14] = 480; PicH[14] = 640; PicC[14] = ' '; preLoad[14] = new Image(); Pic[15] = 'photos/20110525_taiwan/IMG_0636.JPG'; PicW[15] = 640; PicH[15] = 480; PicC[15] = ' '; preLoad[15] = new Image(); Pic[16] = 'photos/20110525_taiwan/IMG_0637.JPG'; PicW[16] = 480; PicH[16] = 640; PicC[16] = ' '; preLoad[16] = new Image(); Pic[17] = 'photos/20110525_taiwan/IMG_0638.JPG'; PicW[17] = 640; PicH[17] = 480; PicC[17] = ' '; preLoad[17] = new Image(); Pic[18] = 'photos/20110525_taiwan/IMG_0640.JPG'; PicW[18] = 640; PicH[18] = 480; PicC[18] = ' '; preLoad[18] = new Image(); Pic[19] = 'photos/20110525_taiwan/IMG_0642.JPG'; PicW[19] = 480; PicH[19] = 640; PicC[19] = ' '; preLoad[19] = new Image(); Pic[20] = 'photos/20110525_taiwan/IMG_0647.JPG'; PicW[20] = 480; PicH[20] = 640; PicC[20] = ' '; preLoad[20] = new Image(); Pic[21] = 'photos/20110525_taiwan/IMG_0649.JPG'; PicW[21] = 640; PicH[21] = 480; PicC[21] = ' '; preLoad[21] = new Image(); Pic[22] = 'photos/20110525_taiwan/IMG_0650.JPG'; PicW[22] = 480; PicH[22] = 640; PicC[22] = ' '; preLoad[22] = new Image(); Pic[23] = 'photos/20110525_taiwan/IMG_0651.JPG'; PicW[23] = 480; PicH[23] = 640; PicC[23] = ' '; preLoad[23] = new Image(); Pic[24] = 'photos/20110525_taiwan/IMG_0656.JPG'; PicW[24] = 640; PicH[24] = 480; PicC[24] = ' '; preLoad[24] = new Image(); Pic[25] = 'photos/20110525_taiwan/IMG_0670.JPG'; PicW[25] = 640; PicH[25] = 480; PicC[25] = ' '; preLoad[25] = new Image(); Pic[26] = 'photos/20110525_taiwan/IMG_0671.JPG'; PicW[26] = 640; PicH[26] = 480; PicC[26] = ' '; preLoad[26] = new Image(); Pic[27] = 'photos/20110525_taiwan/IMG_0672.JPG'; PicW[27] = 640; PicH[27] = 480; PicC[27] = ' '; preLoad[27] = new Image(); Pic[28] = 'photos/20110525_taiwan/IMG_0676.JPG'; PicW[28] = 640; PicH[28] = 480; PicC[28] = ' '; preLoad[28] = new Image(); Pic[29] = 'photos/20110525_taiwan/IMG_0683.JPG'; PicW[29] = 640; PicH[29] = 480; PicC[29] = ' '; preLoad[29] = new Image(); Pic[30] = 'photos/20110525_taiwan/IMG_0687.JPG'; PicW[30] = 640; PicH[30] = 480; PicC[30] = ' '; preLoad[30] = new Image(); Pic[31] = 'photos/20110525_taiwan/IMG_0690.JPG'; PicW[31] = 640; PicH[31] = 480; PicC[31] = ' '; preLoad[31] = new Image(); Pic[32] = 'photos/20110525_taiwan/IMG_0700.JPG'; PicW[32] = 480; PicH[32] = 640; PicC[32] = ' '; preLoad[32] = new Image(); Pic[33] = 'photos/20110525_taiwan/IMG_0704.JPG'; PicW[33] = 640; PicH[33] = 480; PicC[33] = ' '; preLoad[33] = new Image(); Pic[34] = 'photos/20110525_taiwan/IMG_0705.JPG'; PicW[34] = 480; PicH[34] = 640; PicC[34] = ' '; preLoad[34] = new Image(); Pic[35] = 'photos/20110525_taiwan/IMG_0706.JPG'; PicW[35] = 640; PicH[35] = 480; PicC[35] = ' '; preLoad[35] = new Image(); Pic[36] = 'photos/20110525_taiwan/IMG_0707.JPG'; PicW[36] = 640; PicH[36] = 480; PicC[36] = ' '; preLoad[36] = new Image(); Pic[37] = 'photos/20110525_taiwan/IMG_0708.JPG'; PicW[37] = 640; PicH[37] = 480; PicC[37] = ' '; preLoad[37] = new Image(); Pic[38] = 'photos/20110525_taiwan/IMG_0709.JPG'; PicW[38] = 480; PicH[38] = 640; PicC[38] = ' '; preLoad[38] = new Image(); Pic[39] = 'photos/20110525_taiwan/IMG_0710.JPG'; PicW[39] = 480; PicH[39] = 640; PicC[39] = ' '; preLoad[39] = new Image(); Pic[40] = 'photos/20110525_taiwan/IMG_0711.JPG'; PicW[40] = 640; PicH[40] = 480; PicC[40] = ' '; preLoad[40] = new Image(); Pic[41] = 'photos/20110525_taiwan/IMG_0715.JPG'; PicW[41] = 480; PicH[41] = 640; PicC[41] = ' '; preLoad[41] = new Image(); Pic[42] = 'photos/20110525_taiwan/IMG_0716.JPG'; PicW[42] = 640; PicH[42] = 480; PicC[42] = ' '; preLoad[42] = new Image(); Pic[43] = 'photos/20110525_taiwan/IMG_0732.JPG'; PicW[43] = 480; PicH[43] = 640; PicC[43] = ' '; preLoad[43] = new Image(); Pic[44] = 'photos/20110525_taiwan/IMG_0738.JPG'; PicW[44] = 640; PicH[44] = 480; PicC[44] = ' '; preLoad[44] = new Image(); Pic[45] = 'photos/20110525_taiwan/IMG_0739.JPG'; PicW[45] = 640; PicH[45] = 480; PicC[45] = ' '; preLoad[45] = new Image(); Pic[46] = 'photos/20110525_taiwan/IMG_0741.JPG'; PicW[46] = 640; PicH[46] = 480; PicC[46] = ' '; preLoad[46] = new Image(); Pic[47] = 'photos/20110525_taiwan/IMG_0745.JPG'; PicW[47] = 640; PicH[47] = 480; PicC[47] = ' '; preLoad[47] = new Image(); Pic[48] = 'photos/20110525_taiwan/IMG_0746.JPG'; PicW[48] = 480; PicH[48] = 640; PicC[48] = ' '; preLoad[48] = new Image(); Pic[49] = 'photos/20110525_taiwan/IMG_0747.JPG'; PicW[49] = 640; PicH[49] = 480; PicC[49] = ' '; preLoad[49] = new Image(); Pic[50] = 'photos/20110525_taiwan/IMG_0750.JPG'; PicW[50] = 640; PicH[50] = 480; PicC[50] = ' '; preLoad[50] = new Image(); Pic[51] = 'photos/20110525_taiwan/IMG_0754.JPG'; PicW[51] = 640; PicH[51] = 480; PicC[51] = ' '; preLoad[51] = new Image(); Pic[52] = 'photos/20110525_taiwan/IMG_0755.JPG'; PicW[52] = 640; PicH[52] = 480; PicC[52] = ' '; preLoad[52] = new Image(); Pic[53] = 'photos/20110525_taiwan/IMG_0756.JPG'; PicW[53] = 640; PicH[53] = 480; PicC[53] = ' '; preLoad[53] = new Image(); Pic[54] = 'photos/20110525_taiwan/IMG_0757.JPG'; PicW[54] = 640; PicH[54] = 480; PicC[54] = ' '; preLoad[54] = new Image(); Pic[55] = 'photos/20110525_taiwan/IMG_0758.JPG'; PicW[55] = 640; PicH[55] = 480; PicC[55] = ' '; preLoad[55] = new Image(); Pic[56] = 'photos/20110525_taiwan/IMG_0759.JPG'; PicW[56] = 640; PicH[56] = 480; PicC[56] = ' '; preLoad[56] = new Image(); Pic[57] = 'photos/20110525_taiwan/IMG_0760.JPG'; PicW[57] = 480; PicH[57] = 640; PicC[57] = ' '; preLoad[57] = new Image(); Pic[58] = 'photos/20110525_taiwan/IMG_0763.JPG'; PicW[58] = 640; PicH[58] = 480; PicC[58] = ' '; preLoad[58] = new Image(); Pic[59] = 'photos/20110525_taiwan/IMG_0764.JPG'; PicW[59] = 640; PicH[59] = 480; PicC[59] = ' '; preLoad[59] = new Image(); Pic[60] = 'photos/20110525_taiwan/IMG_0765.JPG'; PicW[60] = 640; PicH[60] = 480; PicC[60] = ' '; preLoad[60] = new Image(); Pic[61] = 'photos/20110525_taiwan/IMG_0768.JPG'; PicW[61] = 640; PicH[61] = 480; PicC[61] = ' '; preLoad[61] = new Image(); Pic[62] = 'photos/20110525_taiwan/IMG_0770.JPG'; PicW[62] = 480; PicH[62] = 640; PicC[62] = ' '; preLoad[62] = new Image(); Pic[63] = 'photos/20110525_taiwan/IMG_0775.JPG'; PicW[63] = 640; PicH[63] = 480; PicC[63] = ' '; preLoad[63] = new Image(); Pic[64] = 'photos/20110525_taiwan/IMG_0776.JPG'; PicW[64] = 480; PicH[64] = 640; PicC[64] = ' '; preLoad[64] = new Image(); Pic[65] = 'photos/20110525_taiwan/IMG_0783.JPG'; PicW[65] = 640; PicH[65] = 480; PicC[65] = ' '; preLoad[65] = new Image(); Pic[66] = 'photos/20110525_taiwan/IMG_0785.JPG'; PicW[66] = 480; PicH[66] = 640; PicC[66] = ' '; preLoad[66] = new Image(); Pic[67] = 'photos/20110525_taiwan/IMG_0787.JPG'; PicW[67] = 640; PicH[67] = 480; PicC[67] = ' '; preLoad[67] = new Image(); Pic[68] = 'photos/20110525_taiwan/IMG_0797.JPG'; PicW[68] = 640; PicH[68] = 480; PicC[68] = ' '; preLoad[68] = new Image(); Pic[69] = 'photos/20110525_taiwan/IMG_0799.JPG'; PicW[69] = 640; PicH[69] = 480; PicC[69] = ' '; preLoad[69] = new Image(); Pic[70] = 'photos/20110525_taiwan/IMG_0800.JPG'; PicW[70] = 640; PicH[70] = 480; PicC[70] = ' '; preLoad[70] = new Image(); Pic[71] = 'photos/20110525_taiwan/IMG_0803.JPG'; PicW[71] = 480; PicH[71] = 640; PicC[71] = ' '; preLoad[71] = new Image(); Pic[72] = 'photos/20110525_taiwan/IMG_0824.JPG'; PicW[72] = 640; PicH[72] = 480; PicC[72] = ' '; preLoad[72] = new Image(); Pic[73] = 'photos/20110525_taiwan/IMG_0825.JPG'; PicW[73] = 480; PicH[73] = 640; PicC[73] = ' '; preLoad[73] = new Image(); Pic[74] = 'photos/20110525_taiwan/IMG_0827.JPG'; PicW[74] = 640; PicH[74] = 480; PicC[74] = ' '; preLoad[74] = new Image(); Pic[75] = 'photos/20110525_taiwan/IMG_0830.JPG'; PicW[75] = 480; PicH[75] = 640; PicC[75] = ' '; preLoad[75] = new Image(); Pic[76] = 'photos/20110525_taiwan/IMG_0832.JPG'; PicW[76] = 640; PicH[76] = 480; PicC[76] = ' '; preLoad[76] = new Image(); Pic[77] = 'photos/20110525_taiwan/IMG_0833.JPG'; PicW[77] = 640; PicH[77] = 480; PicC[77] = ' '; preLoad[77] = new Image(); Pic[78] = 'photos/20110525_taiwan/IMG_0835.JPG'; PicW[78] = 640; PicH[78] = 480; PicC[78] = ' '; preLoad[78] = new Image(); Pic[79] = 'photos/20110525_taiwan/IMG_0836.JPG'; PicW[79] = 640; PicH[79] = 480; PicC[79] = ' '; preLoad[79] = new Image(); Pic[80] = 'photos/20110525_taiwan/IMG_0838.JPG'; PicW[80] = 640; PicH[80] = 480; PicC[80] = ' '; preLoad[80] = new Image(); Pic[81] = 'photos/20110525_taiwan/IMG_0839.JPG'; PicW[81] = 640; PicH[81] = 480; PicC[81] = ' '; preLoad[81] = new Image(); Pic[82] = 'photos/20110525_taiwan/IMG_0841.JPG'; PicW[82] = 640; PicH[82] = 480; PicC[82] = ' '; preLoad[82] = new Image(); Pic[83] = 'photos/20110525_taiwan/IMG_0842.JPG'; PicW[83] = 640; PicH[83] = 480; PicC[83] = ' '; preLoad[83] = new Image(); Pic[84] = 'photos/20110525_taiwan/IMG_0844.JPG'; PicW[84] = 640; PicH[84] = 480; PicC[84] = ' '; preLoad[84] = new Image(); Pic[85] = 'photos/20110525_taiwan/IMG_0845.JPG'; PicW[85] = 640; PicH[85] = 480; PicC[85] = ' '; preLoad[85] = new Image(); Pic[86] = 'photos/20110525_taiwan/IMG_0846.JPG'; PicW[86] = 640; PicH[86] = 480; PicC[86] = ' '; preLoad[86] = new Image(); Pic[87] = 'photos/20110525_taiwan/IMG_0848.JPG'; PicW[87] = 640; PicH[87] = 480; PicC[87] = ' '; preLoad[87] = new Image(); Pic[88] = 'photos/20110525_taiwan/IMG_0849.JPG'; PicW[88] = 640; PicH[88] = 480; PicC[88] = ' '; preLoad[88] = new Image(); Pic[89] = 'photos/20110525_taiwan/IMG_0850.JPG'; PicW[89] = 640; PicH[89] = 480; PicC[89] = ' '; preLoad[89] = new Image(); Pic[90] = 'photos/20110525_taiwan/IMG_0851.JPG'; PicW[90] = 640; PicH[90] = 480; PicC[90] = ' '; preLoad[90] = new Image(); Pic[91] = 'photos/20110525_taiwan/IMG_0852.JPG'; PicW[91] = 640; PicH[91] = 480; PicC[91] = ' '; preLoad[91] = new Image(); Pic[92] = 'photos/20110525_taiwan/IMG_0853.JPG'; PicW[92] = 640; PicH[92] = 480; PicC[92] = ' '; preLoad[92] = new Image(); Pic[93] = 'photos/20110525_taiwan/IMG_0855.JPG'; PicW[93] = 640; PicH[93] = 480; PicC[93] = ' '; preLoad[93] = new Image(); Pic[94] = 'photos/20110525_taiwan/IMG_0856.JPG'; PicW[94] = 640; PicH[94] = 480; PicC[94] = ' '; preLoad[94] = new Image(); Pic[95] = 'photos/20110525_taiwan/IMG_0857.JPG'; PicW[95] = 640; PicH[95] = 480; PicC[95] = ' '; preLoad[95] = new Image(); Pic[96] = 'photos/20110525_taiwan/IMG_0859.JPG'; PicW[96] = 640; PicH[96] = 480; PicC[96] = ' '; preLoad[96] = new Image(); Pic[97] = 'photos/20110525_taiwan/IMG_0860.JPG'; PicW[97] = 640; PicH[97] = 480; PicC[97] = ' '; preLoad[97] = new Image(); Pic[98] = 'photos/20110525_taiwan/IMG_0861.JPG'; PicW[98] = 640; PicH[98] = 480; PicC[98] = ' '; preLoad[98] = new Image(); Pic[99] = 'photos/20110525_taiwan/IMG_0864.JPG'; PicW[99] = 640; PicH[99] = 480; PicC[99] = ' '; preLoad[99] = new Image(); Pic[100] = 'photos/20110525_taiwan/IMG_0865.JPG'; PicW[100] = 640; PicH[100] = 480; PicC[100] = ' '; preLoad[100] = new Image(); Pic[101] = 'photos/20110525_taiwan/IMG_0868.JPG'; PicW[101] = 480; PicH[101] = 640; PicC[101] = ' '; preLoad[101] = new Image(); Pic[102] = 'photos/20110525_taiwan/IMG_0870.JPG'; PicW[102] = 640; PicH[102] = 480; PicC[102] = ' '; preLoad[102] = new Image(); Pic[103] = 'photos/20110525_taiwan/IMG_0871.JPG'; PicW[103] = 640; PicH[103] = 480; PicC[103] = ' '; preLoad[103] = new Image(); Pic[104] = 'photos/20110525_taiwan/IMG_0872.JPG'; PicW[104] = 640; PicH[104] = 480; PicC[104] = ' '; preLoad[104] = new Image(); Pic[105] = 'photos/20110525_taiwan/IMG_0874.JPG'; PicW[105] = 640; PicH[105] = 480; PicC[105] = ' '; preLoad[105] = new Image(); Pic[106] = 'photos/20110525_taiwan/IMG_0880.JPG'; PicW[106] = 640; PicH[106] = 480; PicC[106] = ' '; preLoad[106] = new Image(); Pic[107] = 'photos/20110525_taiwan/IMG_0881.JPG'; PicW[107] = 640; PicH[107] = 480; PicC[107] = ' '; preLoad[107] = new Image(); Pic[108] = 'photos/20110525_taiwan/IMG_0882.JPG'; PicW[108] = 480; PicH[108] = 640; PicC[108] = ' '; preLoad[108] = new Image(); Pic[109] = 'photos/20110525_taiwan/IMG_0883.JPG'; PicW[109] = 640; PicH[109] = 480; PicC[109] = ' '; preLoad[109] = new Image(); Pic[110] = 'photos/20110525_taiwan/IMG_0885.JPG'; PicW[110] = 480; PicH[110] = 640; PicC[110] = ' '; preLoad[110] = new Image(); Pic[111] = 'photos/20110525_taiwan/IMG_0887.JPG'; PicW[111] = 480; PicH[111] = 640; PicC[111] = ' '; preLoad[111] = new Image(); Pic[112] = 'photos/20110525_taiwan/IMG_0888.JPG'; PicW[112] = 480; PicH[112] = 640; PicC[112] = ' '; preLoad[112] = new Image(); Pic[113] = 'photos/20110525_taiwan/IMG_0892.JPG'; PicW[113] = 480; PicH[113] = 640; PicC[113] = ' '; preLoad[113] = new Image(); Pic[114] = 'photos/20110525_taiwan/IMG_0893.JPG'; PicW[114] = 480; PicH[114] = 640; PicC[114] = ' '; preLoad[114] = new Image(); Pic[115] = 'photos/20110525_taiwan/IMG_0894.JPG'; PicW[115] = 640; PicH[115] = 480; PicC[115] = ' '; preLoad[115] = new Image(); Pic[116] = 'photos/20110525_taiwan/IMG_0896.JPG'; PicW[116] = 640; PicH[116] = 480; PicC[116] = ' '; preLoad[116] = new Image(); Pic[117] = 'photos/20110525_taiwan/IMG_0898.JPG'; PicW[117] = 640; PicH[117] = 480; PicC[117] = ' '; preLoad[117] = new Image(); Pic[118] = 'photos/20110525_taiwan/IMG_0899.JPG'; PicW[118] = 640; PicH[118] = 480; PicC[118] = ' '; preLoad[118] = new Image(); Pic[119] = 'photos/20110525_taiwan/IMG_0900.JPG'; PicW[119] = 640; PicH[119] = 480; PicC[119] = ' '; preLoad[119] = new Image(); Pic[120] = 'photos/20110525_taiwan/IMG_0901.JPG'; PicW[120] = 640; PicH[120] = 480; PicC[120] = ' '; preLoad[120] = new Image(); Pic[121] = 'photos/20110525_taiwan/IMG_0903.JPG'; PicW[121] = 640; PicH[121] = 480; PicC[121] = ' '; preLoad[121] = new Image(); Pic[122] = 'photos/20110525_taiwan/IMG_0904.JPG'; PicW[122] = 640; PicH[122] = 480; PicC[122] = ' '; preLoad[122] = new Image(); Pic[123] = 'photos/20110525_taiwan/IMG_0905.JPG'; PicW[123] = 640; PicH[123] = 480; PicC[123] = ' '; preLoad[123] = new Image(); Pic[124] = 'photos/20110525_taiwan/IMG_0906.JPG'; PicW[124] = 640; PicH[124] = 480; PicC[124] = ' '; preLoad[124] = new Image(); Pic[125] = 'photos/20110525_taiwan/IMG_0907.JPG'; PicW[125] = 640; PicH[125] = 480; PicC[125] = ' '; preLoad[125] = new Image(); Pic[126] = 'photos/20110525_taiwan/IMG_0908.JPG'; PicW[126] = 480; PicH[126] = 640; PicC[126] = ' '; preLoad[126] = new Image(); Pic[127] = 'photos/20110525_taiwan/IMG_0912.JPG'; PicW[127] = 640; PicH[127] = 480; PicC[127] = ' '; preLoad[127] = new Image(); Pic[128] = 'photos/20110525_taiwan/IMG_0913.JPG'; PicW[128] = 640; PicH[128] = 480; PicC[128] = ' '; preLoad[128] = new Image(); Pic[129] = 'photos/20110525_taiwan/IMG_0914.JPG'; PicW[129] = 640; PicH[129] = 480; PicC[129] = ' '; preLoad[129] = new Image(); Pic[130] = 'photos/20110525_taiwan/IMG_0915.JPG'; PicW[130] = 640; PicH[130] = 480; PicC[130] = ' '; preLoad[130] = new Image(); Pic[131] = 'photos/20110525_taiwan/IMG_0917.JPG'; PicW[131] = 640; PicH[131] = 480; PicC[131] = ' '; preLoad[131] = new Image(); Pic[132] = 'photos/20110525_taiwan/IMG_0918.JPG'; PicW[132] = 640; PicH[132] = 480; PicC[132] = ' '; preLoad[132] = new Image(); Pic[133] = 'photos/20110525_taiwan/IMG_0921.JPG'; PicW[133] = 640; PicH[133] = 480; PicC[133] = ' '; preLoad[133] = new Image(); Pic[134] = 'photos/20110525_taiwan/IMG_0923.JPG'; PicW[134] = 640; PicH[134] = 480; PicC[134] = ' '; preLoad[134] = new Image(); Pic[135] = 'photos/20110525_taiwan/IMG_0925.JPG'; PicW[135] = 640; PicH[135] = 480; PicC[135] = ' '; preLoad[135] = new Image(); Pic[136] = 'photos/20110525_taiwan/IMG_0926.JPG'; PicW[136] = 640; PicH[136] = 480; PicC[136] = ' '; preLoad[136] = new Image(); Pic[137] = 'photos/20110525_taiwan/IMG_0929.JPG'; PicW[137] = 640; PicH[137] = 480; PicC[137] = ' '; preLoad[137] = new Image(); Pic[138] = 'photos/20110525_taiwan/IMG_0933.JPG'; PicW[138] = 480; PicH[138] = 640; PicC[138] = ' '; preLoad[138] = new Image(); Pic[139] = 'photos/20110525_taiwan/IMG_0934.JPG'; PicW[139] = 480; PicH[139] = 640; PicC[139] = ' '; preLoad[139] = new Image(); Pic[140] = 'photos/20110525_taiwan/IMG_0936.JPG'; PicW[140] = 640; PicH[140] = 480; PicC[140] = ' '; preLoad[140] = new Image(); Pic[141] = 'photos/20110525_taiwan/IMG_0937.JPG'; PicW[141] = 640; PicH[141] = 480; PicC[141] = ' '; preLoad[141] = new Image(); Pic[142] = 'photos/20110525_taiwan/IMG_0938.JPG'; PicW[142] = 640; PicH[142] = 480; PicC[142] = ' '; preLoad[142] = new Image(); Pic[143] = 'photos/20110525_taiwan/IMG_0939.JPG'; PicW[143] = 480; PicH[143] = 640; PicC[143] = ' '; preLoad[143] = new Image(); Pic[144] = 'photos/20110525_taiwan/IMG_0940.JPG'; PicW[144] = 480; PicH[144] = 640; PicC[144] = ' '; preLoad[144] = new Image(); Pic[145] = 'photos/20110525_taiwan/IMG_0941.JPG'; PicW[145] = 640; PicH[145] = 480; PicC[145] = ' '; preLoad[145] = new Image(); Pic[146] = 'photos/20110525_taiwan/IMG_0942.JPG'; PicW[146] = 640; PicH[146] = 480; PicC[146] = ' '; preLoad[146] = new Image(); Pic[147] = 'photos/20110525_taiwan/IMG_0943.JPG'; PicW[147] = 640; PicH[147] = 480; PicC[147] = ' '; preLoad[147] = new Image(); Pic[148] = 'photos/20110525_taiwan/IMG_0944.JPG'; PicW[148] = 640; PicH[148] = 480; PicC[148] = ' '; preLoad[148] = new Image(); Pic[149] = 'photos/20110525_taiwan/IMG_0950.JPG'; PicW[149] = 640; PicH[149] = 480; PicC[149] = ' '; preLoad[149] = new Image(); Pic[150] = 'photos/20110525_taiwan/IMG_0952.JPG'; PicW[150] = 640; PicH[150] = 480; PicC[150] = ' '; preLoad[150] = new Image(); Pic[151] = 'photos/20110525_taiwan/IMG_0953.JPG'; PicW[151] = 640; PicH[151] = 480; PicC[151] = ' '; preLoad[151] = new Image(); Pic[152] = 'photos/20110525_taiwan/IMG_0955.JPG'; PicW[152] = 480; PicH[152] = 640; PicC[152] = ' '; preLoad[152] = new Image(); Pic[153] = 'photos/20110525_taiwan/IMG_0956.JPG'; PicW[153] = 640; PicH[153] = 480; PicC[153] = ' '; preLoad[153] = new Image(); Pic[154] = 'photos/20110525_taiwan/IMG_0957.JPG'; PicW[154] = 640; PicH[154] = 480; PicC[154] = ' '; preLoad[154] = new Image(); Pic[155] = 'photos/20110525_taiwan/IMG_0958.JPG'; PicW[155] = 640; PicH[155] = 480; PicC[155] = ' '; preLoad[155] = new Image(); Pic[156] = 'photos/20110525_taiwan/IMG_0959.JPG'; PicW[156] = 640; PicH[156] = 480; PicC[156] = ' '; preLoad[156] = new Image(); Pic[157] = 'photos/20110525_taiwan/IMG_0961.JPG'; PicW[157] = 640; PicH[157] = 480; PicC[157] = ' '; preLoad[157] = new Image(); Pic[158] = 'photos/20110525_taiwan/IMG_0962.JPG'; PicW[158] = 640; PicH[158] = 480; PicC[158] = ' '; preLoad[158] = new Image(); Pic[159] = 'photos/20110525_taiwan/IMG_0965.JPG'; PicW[159] = 640; PicH[159] = 480; PicC[159] = ' '; preLoad[159] = new Image(); Pic[160] = 'photos/20110525_taiwan/IMG_0967.JPG'; PicW[160] = 640; PicH[160] = 480; PicC[160] = ' '; preLoad[160] = new Image(); Pic[161] = 'photos/20110525_taiwan/IMG_0969.JPG'; PicW[161] = 640; PicH[161] = 480; PicC[161] = ' '; preLoad[161] = new Image(); Pic[162] = 'photos/20110525_taiwan/IMG_0970.JPG'; PicW[162] = 480; PicH[162] = 640; PicC[162] = ' '; preLoad[162] = new Image(); Pic[163] = 'photos/20110525_taiwan/IMG_0972.JPG'; PicW[163] = 640; PicH[163] = 480; PicC[163] = ' '; preLoad[163] = new Image(); Pic[164] = 'photos/20110525_taiwan/IMG_0973.JPG'; PicW[164] = 640; PicH[164] = 480; PicC[164] = ' '; preLoad[164] = new Image(); Pic[165] = 'photos/20110525_taiwan/IMG_0976.JPG'; PicW[165] = 480; PicH[165] = 640; PicC[165] = ' '; preLoad[165] = new Image(); Pic[166] = 'photos/20110525_taiwan/IMG_0978.JPG'; PicW[166] = 640; PicH[166] = 480; PicC[166] = ' '; preLoad[166] = new Image(); Pic[167] = 'photos/20110525_taiwan/IMG_0979.JPG'; PicW[167] = 640; PicH[167] = 480; PicC[167] = ' '; preLoad[167] = new Image(); Pic[168] = 'photos/20110525_taiwan/IMG_0981.JPG'; PicW[168] = 640; PicH[168] = 480; PicC[168] = ' '; preLoad[168] = new Image(); Pic[169] = 'photos/20110525_taiwan/IMG_0985.JPG'; PicW[169] = 480; PicH[169] = 640; PicC[169] = ' '; preLoad[169] = new Image(); Pic[170] = 'photos/20110525_taiwan/IMG_0988.JPG'; PicW[170] = 640; PicH[170] = 480; PicC[170] = ' '; preLoad[170] = new Image(); Pic[171] = 'photos/20110525_taiwan/IMG_0997.JPG'; PicW[171] = 640; PicH[171] = 480; PicC[171] = ' '; preLoad[171] = new Image(); Pic[172] = 'photos/20110525_taiwan/IMG_0999.JPG'; PicW[172] = 640; PicH[172] = 480; PicC[172] = ' '; preLoad[172] = new Image(); Pic[173] = 'photos/20110525_taiwan/IMG_1000.JPG'; PicW[173] = 480; PicH[173] = 640; PicC[173] = ' '; preLoad[173] = new Image(); Pic[174] = 'photos/20110525_taiwan/IMG_1001.JPG'; PicW[174] = 640; PicH[174] = 480; PicC[174] = ' '; preLoad[174] = new Image(); Pic[175] = 'photos/20110525_taiwan/IMG_1004.JPG'; PicW[175] = 640; PicH[175] = 480; PicC[175] = ' '; preLoad[175] = new Image(); Pic[176] = 'photos/20110525_taiwan/IMG_1006.JPG'; PicW[176] = 640; PicH[176] = 480; PicC[176] = ' '; preLoad[176] = new Image(); Pic[177] = 'photos/20110525_taiwan/IMG_1007.JPG'; PicW[177] = 640; PicH[177] = 480; PicC[177] = ' '; preLoad[177] = new Image(); Pic[178] = 'photos/20110525_taiwan/IMG_1009.JPG'; PicW[178] = 480; PicH[178] = 640; PicC[178] = ' '; preLoad[178] = new Image(); Pic[179] = 'photos/20110525_taiwan/IMG_1010.JPG'; PicW[179] = 480; PicH[179] = 640; PicC[179] = ' '; preLoad[179] = new Image(); Pic[180] = 'photos/20110525_taiwan/IMG_1015.JPG'; PicW[180] = 480; PicH[180] = 640; PicC[180] = ' '; preLoad[180] = new Image(); Pic[181] = 'photos/20110525_taiwan/IMG_1017.JPG'; PicW[181] = 640; PicH[181] = 480; PicC[181] = ' '; preLoad[181] = new Image(); Pic[182] = 'photos/20110525_taiwan/IMG_1019.JPG'; PicW[182] = 640; PicH[182] = 480; PicC[182] = ' '; preLoad[182] = new Image(); Pic[183] = 'photos/20110525_taiwan/IMG_1021.JPG'; PicW[183] = 480; PicH[183] = 640; PicC[183] = ' '; preLoad[183] = new Image(); Pic[184] = 'photos/20110525_taiwan/IMG_1029.JPG'; PicW[184] = 640; PicH[184] = 480; PicC[184] = ' '; preLoad[184] = new Image(); Pic[185] = 'photos/20110525_taiwan/IMG_1030.JPG'; PicW[185] = 640; PicH[185] = 480; PicC[185] = ' '; preLoad[185] = new Image(); Pic[186] = 'photos/20110525_taiwan/IMG_1031.JPG'; PicW[186] = 480; PicH[186] = 640; PicC[186] = ' '; preLoad[186] = new Image(); Pic[187] = 'photos/20110525_taiwan/IMG_1040.JPG'; PicW[187] = 480; PicH[187] = 640; PicC[187] = ' '; preLoad[187] = new Image(); Pic[188] = 'photos/20110525_taiwan/IMG_1047.JPG'; PicW[188] = 640; PicH[188] = 480; PicC[188] = ' '; preLoad[188] = new Image(); Pic[189] = 'photos/20110525_taiwan/IMG_1052.JPG'; PicW[189] = 640; PicH[189] = 480; PicC[189] = ' '; preLoad[189] = new Image(); Pic[190] = 'photos/20110525_taiwan/IMG_1053.JPG'; PicW[190] = 480; PicH[190] = 640; PicC[190] = ' '; preLoad[190] = new Image(); Pic[191] = 'photos/20110525_taiwan/IMG_1054.JPG'; PicW[191] = 480; PicH[191] = 640; PicC[191] = ' '; preLoad[191] = new Image(); Pic[192] = 'photos/20110525_taiwan/IMG_1055.JPG'; PicW[192] = 480; PicH[192] = 640; PicC[192] = ' '; preLoad[192] = new Image(); Pic[193] = 'photos/20110525_taiwan/IMG_1056.JPG'; PicW[193] = 480; PicH[193] = 640; PicC[193] = ' '; preLoad[193] = new Image(); Pic[194] = 'photos/20110525_taiwan/IMG_1057.JPG'; PicW[194] = 480; PicH[194] = 640; PicC[194] = ' '; preLoad[194] = new Image(); Pic[195] = 'photos/20110525_taiwan/IMG_1059.JPG'; PicW[195] = 480; PicH[195] = 640; PicC[195] = ' '; preLoad[195] = new Image(); Pic[196] = 'photos/20110525_taiwan/IMG_1060.JPG'; PicW[196] = 480; PicH[196] = 640; PicC[196] = ' '; preLoad[196] = new Image(); Pic[197] = 'photos/20110525_taiwan/IMG_1069.JPG'; PicW[197] = 640; PicH[197] = 480; PicC[197] = ' '; preLoad[197] = new Image(); Pic[198] = 'photos/20110525_taiwan/IMG_1070.JPG'; PicW[198] = 640; PicH[198] = 480; PicC[198] = ' '; preLoad[198] = new Image(); Pic[199] = 'photos/20110525_taiwan/IMG_1072.JPG'; PicW[199] = 480; PicH[199] = 640; PicC[199] = ' '; preLoad[199] = new Image(); Pic[200] = 'photos/20110525_taiwan/IMG_1076.JPG'; PicW[200] = 640; PicH[200] = 480; PicC[200] = ' '; preLoad[200] = new Image(); Pic[201] = 'photos/20110525_taiwan/IMG_1078.JPG'; PicW[201] = 640; PicH[201] = 480; PicC[201] = ' '; preLoad[201] = new Image(); Pic[202] = 'photos/20110525_taiwan/IMG_1087.JPG'; PicW[202] = 640; PicH[202] = 480; PicC[202] = ' '; preLoad[202] = new Image(); Pic[203] = 'photos/20110525_taiwan/IMG_1088.JPG'; PicW[203] = 640; PicH[203] = 480; PicC[203] = ' '; preLoad[203] = new Image(); Pic[204] = 'photos/20110525_taiwan/IMG_1089.JPG'; PicW[204] = 480; PicH[204] = 640; PicC[204] = ' '; preLoad[204] = new Image(); Pic[205] = 'photos/20110525_taiwan/IMG_1090.JPG'; PicW[205] = 480; PicH[205] = 640; PicC[205] = ' '; preLoad[205] = new Image(); Pic[206] = 'photos/20110525_taiwan/IMG_1091.JPG'; PicW[206] = 480; PicH[206] = 640; PicC[206] = ' '; preLoad[206] = new Image(); Pic[207] = 'photos/20110525_taiwan/IMG_1094.JPG'; PicW[207] = 640; PicH[207] = 480; PicC[207] = ' '; preLoad[207] = new Image(); Pic[208] = 'photos/20110525_taiwan/IMG_1098.JPG'; PicW[208] = 640; PicH[208] = 480; PicC[208] = ' '; preLoad[208] = new Image(); Pic[209] = 'photos/20110525_taiwan/IMG_1099.JPG'; PicW[209] = 640; PicH[209] = 480; PicC[209] = ' '; preLoad[209] = new Image(); Pic[210] = 'photos/20110525_taiwan/IMG_1100.JPG'; PicW[210] = 640; PicH[210] = 480; PicC[210] = ' '; preLoad[210] = new Image(); Pic[211] = 'photos/20110525_taiwan/IMG_1102.JPG'; PicW[211] = 640; PicH[211] = 480; PicC[211] = ' '; preLoad[211] = new Image(); Pic[212] = 'photos/20110525_taiwan/IMG_1105.JPG'; PicW[212] = 480; PicH[212] = 640; PicC[212] = ' '; preLoad[212] = new Image(); Pic[213] = 'photos/20110525_taiwan/IMG_1106.JPG'; PicW[213] = 640; PicH[213] = 480; PicC[213] = ' '; preLoad[213] = new Image(); Pic[214] = 'photos/20110525_taiwan/IMG_1108.JPG'; PicW[214] = 480; PicH[214] = 640; PicC[214] = ' '; preLoad[214] = new Image(); Pic[215] = 'photos/20110525_taiwan/IMG_1109.JPG'; PicW[215] = 640; PicH[215] = 480; PicC[215] = ' '; preLoad[215] = new Image(); Pic[216] = 'photos/20110525_taiwan/IMG_1110.JPG'; PicW[216] = 480; PicH[216] = 640; PicC[216] = ' '; preLoad[216] = new Image(); Pic[217] = 'photos/20110525_taiwan/IMG_1113.JPG'; PicW[217] = 640; PicH[217] = 480; PicC[217] = ' '; preLoad[217] = new Image(); Pic[218] = 'photos/20110525_taiwan/IMG_1114.JPG'; PicW[218] = 480; PicH[218] = 640; PicC[218] = ' '; preLoad[218] = new Image(); Pic[219] = 'photos/20110525_taiwan/IMG_1115.JPG'; PicW[219] = 640; PicH[219] = 480; PicC[219] = ' '; preLoad[219] = new Image(); Pic[220] = 'photos/20110525_taiwan/IMG_1122.JPG'; PicW[220] = 480; PicH[220] = 640; PicC[220] = ' '; preLoad[220] = new Image(); Pic[221] = 'photos/20110525_taiwan/IMG_1123.JPG'; PicW[221] = 480; PicH[221] = 640; PicC[221] = ' '; preLoad[221] = new Image(); Pic[222] = 'photos/20110525_taiwan/IMG_1137.JPG'; PicW[222] = 640; PicH[222] = 480; PicC[222] = ' '; preLoad[222] = new Image(); Pic[223] = 'photos/20110525_taiwan/IMG_1138.JPG'; PicW[223] = 640; PicH[223] = 480; PicC[223] = ' '; preLoad[223] = new Image(); Pic[224] = 'photos/20110525_taiwan/IMG_1139.JPG'; PicW[224] = 640; PicH[224] = 480; PicC[224] = ' '; preLoad[224] = new Image(); Pic[225] = 'photos/20110525_taiwan/IMG_1140.JPG'; PicW[225] = 480; PicH[225] = 640; PicC[225] = ' '; preLoad[225] = new Image(); Pic[226] = 'photos/20110525_taiwan/IMG_1147.JPG'; PicW[226] = 640; PicH[226] = 480; PicC[226] = ' '; preLoad[226] = new Image(); Pic[227] = 'photos/20110525_taiwan/IMG_1154.JPG'; PicW[227] = 640; PicH[227] = 480; PicC[227] = ' '; preLoad[227] = new Image(); Pic[228] = 'photos/20110525_taiwan/IMG_1163.JPG'; PicW[228] = 640; PicH[228] = 480; PicC[228] = ' '; preLoad[228] = new Image(); Pic[229] = 'photos/20110525_taiwan/IMG_1164.JPG'; PicW[229] = 640; PicH[229] = 480; PicC[229] = ' '; preLoad[229] = new Image(); Pic[230] = 'photos/20110525_taiwan/IMG_1165.JPG'; PicW[230] = 480; PicH[230] = 640; PicC[230] = ' '; preLoad[230] = new Image(); Pic[231] = 'photos/20110525_taiwan/IMG_1168.JPG'; PicW[231] = 640; PicH[231] = 480; PicC[231] = ' '; preLoad[231] = new Image(); Pic[232] = 'photos/20110525_taiwan/IMG_1170.JPG'; PicW[232] = 480; PicH[232] = 640; PicC[232] = ' '; preLoad[232] = new Image(); Pic[233] = 'photos/20110525_taiwan/IMG_1171.JPG'; PicW[233] = 480; PicH[233] = 640; PicC[233] = ' '; preLoad[233] = new Image(); Pic[234] = 'photos/20110525_taiwan/IMG_1172.JPG'; PicW[234] = 640; PicH[234] = 480; PicC[234] = ' '; preLoad[234] = new Image(); Pic[235] = 'photos/20110525_taiwan/IMG_1173.JPG'; PicW[235] = 640; PicH[235] = 480; PicC[235] = ' '; preLoad[235] = new Image(); Pic[236] = 'photos/20110525_taiwan/IMG_1175.JPG'; PicW[236] = 640; PicH[236] = 480; PicC[236] = ' '; preLoad[236] = new Image(); Pic[237] = 'photos/20110525_taiwan/IMG_1179.JPG'; PicW[237] = 640; PicH[237] = 480; PicC[237] = ' '; preLoad[237] = new Image(); Pic[238] = 'photos/20110525_taiwan/IMG_1187.JPG'; PicW[238] = 640; PicH[238] = 480; PicC[238] = ' '; preLoad[238] = new Image(); Pic[239] = 'photos/20110525_taiwan/IMG_1188.JPG'; PicW[239] = 640; PicH[239] = 480; PicC[239] = ' '; preLoad[239] = new Image(); Pic[240] = 'photos/20110525_taiwan/IMG_1189.JPG'; PicW[240] = 480; PicH[240] = 640; PicC[240] = ' '; preLoad[240] = new Image(); Pic[241] = 'photos/20110525_taiwan/IMG_1190.JPG'; PicW[241] = 480; PicH[241] = 640; PicC[241] = ' '; preLoad[241] = new Image(); Pic[242] = 'photos/20110525_taiwan/IMG_1191.JPG'; PicW[242] = 640; PicH[242] = 480; PicC[242] = ' '; preLoad[242] = new Image(); Pic[243] = 'photos/20110525_taiwan/IMG_1192.JPG'; PicW[243] = 640; PicH[243] = 480; PicC[243] = ' '; preLoad[243] = new Image(); Pic[244] = 'photos/20110525_taiwan/IMG_1194.JPG'; PicW[244] = 480; PicH[244] = 640; PicC[244] = ' '; preLoad[244] = new Image(); Pic[245] = 'photos/20110525_taiwan/IMG_1196.JPG'; PicW[245] = 480; PicH[245] = 640; PicC[245] = ' '; preLoad[245] = new Image(); Pic[246] = 'photos/20110525_taiwan/IMG_1199.JPG'; PicW[246] = 640; PicH[246] = 480; PicC[246] = ' '; preLoad[246] = new Image(); Pic[247] = 'photos/20110525_taiwan/IMG_1200.JPG'; PicW[247] = 640; PicH[247] = 480; PicC[247] = ' '; preLoad[247] = new Image(); Pic[248] = 'photos/20110525_taiwan/IMG_1208.JPG'; PicW[248] = 640; PicH[248] = 480; PicC[248] = ' '; preLoad[248] = new Image(); Pic[249] = 'photos/20110525_taiwan/IMG_1212.JPG'; PicW[249] = 640; PicH[249] = 480; PicC[249] = ' '; preLoad[249] = new Image(); Pic[250] = 'photos/20110525_taiwan/IMG_1216.JPG'; PicW[250] = 640; PicH[250] = 480; PicC[250] = ' '; preLoad[250] = new Image(); Pic[251] = 'photos/20110525_taiwan/IMG_1227.JPG'; PicW[251] = 640; PicH[251] = 480; PicC[251] = ' '; preLoad[251] = new Image(); Pic[252] = 'photos/20110525_taiwan/IMG_1228.JPG'; PicW[252] = 640; PicH[252] = 480; PicC[252] = ' '; preLoad[252] = new Image(); Pic[253] = 'photos/20110525_taiwan/IMG_1230.JPG'; PicW[253] = 480; PicH[253] = 640; PicC[253] = ' '; preLoad[253] = new Image(); Pic[254] = 'photos/20110525_taiwan/IMG_1232.JPG'; PicW[254] = 480; PicH[254] = 640; PicC[254] = ' '; preLoad[254] = new Image(); Pic[255] = 'photos/20110525_taiwan/IMG_1233.JPG'; PicW[255] = 480; PicH[255] = 640; PicC[255] = ' '; preLoad[255] = new Image(); // alert("111 preLoadPic ix = "+0+":::"+preLoad[0].name); // Set slideShowSpeed (milliseconds) var slideShowSpeed = 5000 // Agent sniffer shamelessly 'stolen' from the excellent X library from cross-browser.com var xOp7=false,xOp5or6=false,xIE4Up=false,xNN4=false,xUA=navigator.userAgent.toLowerCase(); if(window.opera){ xOp7=(xUA.indexOf('opera 7')!=-1 || xUA.indexOf('opera/7')!=-1); if (!xOp7) xOp5or6=(xUA.indexOf('opera 5')!=-1 || xUA.indexOf('opera/5')!=-1 || xUA.indexOf('opera 6')!=-1 || xUA.indexOf('opera/6')!=-1); } else if(document.layers) xNN4=true; else {xIE4Up=document.all && xUA.indexOf('msie')!=-1 && parseInt(navigator.appVersion)>=4;} // Duration of crossfade (seconds) var crossFadeDuration = 1 // Specify the image files var t = -1; var pos = 0; var posNext = 0; var status_slideshow = 0; var count_entry = 0; var html; function preLoadPic(index) { if (index >= 0 && index < Pic.length) { if (preLoad[index].src == "") { preLoad[index].src = "albums/"+Pic[index]; // alert("preLoadPic ix = "+index); // alert("preLoadPic"); } } else { Alert("Error : invalid index."); } } function startSlideShow() { if (Pic.length == 0) { // No picture to start slide show. Alert("Error : Pic.length is less than or equal to 0."); } else if (t == -1) { // Only when the slide show has not been started, // then start it. posNext = pos; if ((posNext+1) < Pic.length) { // Can increment var pos. Thus increment. posNext++; } else if ((posNext +1) >= Pic.length) { // Cannot increment var pos. Thus restart from beginning. posNext = 0; } status_slideshow = 1; count_entry = 0; playSlideShow(); window.status='Starting Slide Show ... '+window.status; } } function playSlideShow() { if (Pic.length <= 0) { endSlideShow(); Alert("Error : Pic.length is less than or equal to 0."); return; } if (preLoad[posNext].src == "") { endSlideShow(); Alert("Error : preLoad[posNext].src is empty"); return; } if (! preLoad[posNext].complete) { // The next picture is not completely loaded. if (count_entry == 3) { // Already attempted 3 times. Abort. endSlideShow(); window.status='Slide show halted. Connection speed is too slow.'; Alert("Error : Connection speed is too slow for slide show."); } else { window.status='Loading Picture '+(posNext+1)+' of '+Pic.length+', '+Pic[posNext]; if (count_entry > 0) { window.status = window.status + ', '+count_entry; } if (t == -1) { t = window.setInterval('playSlideShow();', 3000); // alert("timer started"); } } count_entry++; } else { // The next picture has been completely loaded. // Show the next picture pos = posNext; count_entry = 0; changeSlide(); window.status='Showing Picture '+(pos+1)+' of '+Pic.length; if (status_slideshow != 0 && (posNext+1) < Pic.length) { // Slide show is being played. // Preload the next picture. posNext++; preLoadPic(posNext); if (t == -1) { // Although it is now in the slide show mode, but // the timer has not been started. Thus, start it. t = window.setInterval('playSlideShow();', 3000); } } else { // Slide show is not being played OR slide show has ended. if (status_slideshow != 0) { window.status=window.status+', '+'Slide Show Ended.'; } endSlideShow(); } if (status_slideshow == 0) { // Not in slide show mode. // Also preload the next and the prev photo if ((pos+1) < Pic.length) preLoadPic(pos+1); if (pos > 0) preLoadPic(pos-1); } } } function endSlideShow() { if (t != -1) { window.clearInterval(t); t = -1; } // window.status=''; status_slideshow = 0; } function changeSlide() { if (xIE4Up) { if (document.all) { //document.images.SlideShow.style.filter= "blendTrans(duration=crossFadeDuration)" document.all.SlideShow.style.filter="blendTrans(duration=1)"; document.all.SlideShow.filters.blendTrans.Apply(); } } writeInnerHTML(); if (xIE4Up) { if (document.all) { document.all.SlideShow.filters.blendTrans.Play(); } } displayComment(); return true; } function writeInnerHTML() { html = ""; html += "
\n";
html += " | \n";
html += "