var imgarr = new Array();
imgarr[1] = new Array();
imgarr[1]['txt'] = new Array('<b>Landslip .11</b><br>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  4"h x  6"w  x 1"d',
'<b>Landslip .5</b><br>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  4"h x  6"w  x 1"d',
'<b>Landslip .6</b><br>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  4"h x  6"w  x 1"d',
'<b>Landslip .10</b><br>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  4"h x  6"w  x 1"d',
'<b>Landslip .12</b><br>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  4"h x  6"w  x 1"d',
'<b>Landslip .13</b><br>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  4"h x  6"w  x 1"d');
imgarr[1]['imgs']=new Array('./imgs/pap_land11_1.jpg','./imgs/pap_land5_2.jpg','./imgs/pap_land6_3.jpg','./imgs/pap_land10_4.jpg','./imgs/pap_land12_5.jpg','./imgs/pap_land13_6.jpg');

imgarr[2] = new Array();
imgarr[2]['txt'] = new Array('<b>Notation 4</b><br/>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  8"h x 51"w x 3/4" d    (5 parts)','<b>Notation 10</b><br/>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  8"h x 41"w x 3/4" d    (4 parts)',
'<b>Notation 8</b><br/>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  8"h x 92"w  x 3/4"d    (9 parts)',
'<b>Notation 6</b><br/>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  8"h x 51"w x 3/4"d   (5 parts)',
'<b>Notation 7</b><br/>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  8"h x 71"w x 3/4"d   (7 parts)',
'<b>Notation 11</b><br/>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  8"h x 30"w x 3/4"d    (3 parts)');
imgarr[2]['imgs']=new Array('./imgs/pap_not4_1.jpg','./imgs/pap_not10_2.jpg','./imgs/pap_not8_3.jpg','./imgs/pap_not6_4.jpg','./imgs/pap_not7_5.jpg','./imgs/pap_not11_6.jpg');

imgarr[3] = new Array();
imgarr[3]['txt'] = new Array('<b>Fragment w .2</b><br/>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  8"h x 20 1/2"w x 3/4"d   (2 parts)',
'<b>Fragment w .8</b><br/>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  8"h x 10"w x 3/4"d',
'<b>Fragment w .31</b><br/>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  8"h x 20 1/2"w x 3/4"d   (2 parts)',
'<b>Fragment w .6</b><br/>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  8"h x 10"w x 3/4"d',
'<b>Fragment w .7</b><br/>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  8"h x 10"w x 3/4"d',
'<b>Fragment w .4</b><br/>Materials:  pastel, graphite, gel medium, plastic mount<br/>Size:  8"h x 20 1/2"w x 3/4"d   (2 parts)');
imgarr[3]['imgs']=new Array('./imgs/pap_frg2_1.jpg','./imgs/pap_frg8_2.jpg','./imgs/pap_frg31_3.jpg','./imgs/pap_frg6_4.jpg','./imgs/pap_frg7_5.jpg','./imgs/pap_frg4_6.jpg');

imgarr[4] = new Array();
imgarr[4]['txt'] = new Array('<b>Littoral Extract .4 - 7</b><br/>Materials:  pastel, graphite, gel medium, mounted on wood<br/>Size:  4 parts, ea. 14"h x 14"w x 1"d',
'<b>Littoral Extract .4</b><br/>Materials:  pastel, graphite, gel medium, mounted on wood<br/>Size:  14"h x 14"w x 1"d',
'<b>Littoral Extract .5</b><br/>Materials:  pastel, graphite, gel medium, mounted on wood     <br/>   Size:  14"h x 14"w x 1"d',
'<b>Littoral Extract .6</b><br/>Materials:  pastel, graphite, gel medium, mounted on wood        <br/>Size:  14"h x 14"w x 1"d',
'<b>Littoral Extract .7</b><br/>Materials:  pastel, graphite, gel medium, mounted on wood        <br/>Size:  14"h x 14"w x 1"d',
'<b>Littoral Extract .12</b><br/>Materials:  pastel, graphite, gel medium, mounted on wood        <br/>Size:  14"h x 14"w x 1"d');
imgarr[4]['imgs']=new Array('./imgs/pap_litex4_7_1.jpg','./imgs/pap_litex4_2.jpg','./imgs/pap_litex5_3.jpg','./imgs/pap_litex6_4.jpg','./imgs/pap_litex7_5.jpg','./imgs/pap_litex12_6.jpg');

imgarr[5] = new Array();
imgarr[5]['txt'] = new Array('<b>Littoral Study .11</b><br/>Materials:  graphite, pastel  <br/>       Size:  22"h x 30"w',					
'<b>Littorial Study .17</b><br/>Materials:  graphite, pastel, abaca fiber  <br/>Size:  22"h x 30"w',
'<b>Littorial Study .1</b><br/>Materials:  graphite, pastel, abaca fiber  <br/>Size:  22"h x 30"w',			
'<b>Littorial Study .4</b><br/>Materials:  graphite, pastel, abaca fiber  <br/>Size:  22"h x 30"w');
imgarr[5]['imgs']=new Array('./imgs/pap_lits11_1.jpg','./imgs/pap_lits17_2.jpg','./imgs/pap_lits1_3.jpg','./imgs/pap_lits4_4.jpg');

imgarr[6] = new Array();
imgarr[6]['txt'] = new Array('<b>Littorial .7</b><br>Materials:  graphite, pastel, acrylic         Size:  80" h x 120" w<br/>Drawings are based on traces of the ocean at the waters edge. Marks are photographed and projected onto the paper suggesting the landscape of a place as an always changing sequence of moments.',
'<b>Littorial .7</b><br>Materials:  graphite, pastel, acrylic         Size:  80" h x 120" w<br/>Drawings are based on traces of the ocean at the waters edge. Marks are photographed and projected onto the paper suggesting the landscape of a place as an always changing sequence of moments.',
'<b>Littorial .8</b><br>Materials:  graphite, pastel, acrylic         Size:  80" h x 120" w<br/>Drawings are based on traces of the ocean at the waters edge. Marks are photographed and projected onto the paper suggesting the landscape of a place as an always changing sequence of moments.',
'<b>Littorial .6</b><br>Materials:  graphite, pastel, acrylic         Size:  80" h x 120" w<br/>Drawings are based on traces of the ocean at the waters edge. Marks are photographed and projected onto the paper suggesting the landscape of a place as an always changing sequence of moments.',
'<b>Littorial .5</b><br>Materials:  graphite, pastel, acrylic         Size:  80" h x 120" w<br/>Drawings are based on traces of the ocean at the waters edge. Marks are photographed and projected onto the paper suggesting the landscape of a place as an always changing sequence of moments.',
'<b>Littorial .10</b><br>Materials:  graphite, pastel, acrylic         Size:  80" h x 120" w<br/>Drawings are based on traces of the ocean at the waters edge. Marks are photographed and projected onto the paper suggesting the landscape of a place as an always changing sequence of moments.');
imgarr[6]['imgs']=new Array('./imgs/pap_lit7_1.jpg','./imgs/pap_lit7_2.jpg','./imgs/pap_lit8_3.jpg','./imgs/pap_lit6_4.jpg','./imgs/pap_lit5_5.jpg','./imgs/pap_lit10_6.jpg');

imgarr[7] = new Array();
imgarr[7]['txt'] = new Array('<b>Littoral Formation .11</b><br/>Materials:  graphite, pastel, abaca fiber<br/>Size: 22"h x 30"w',
'<b>Littoral Formation .12</b><br/>Materials:  graphite, pastel<br/>Size: 22"h x 30"w',
'<b>Littoral Formation .17</b><br/>Materials:  graphite, pastel, abaca fiber<br/>Size: 22"h x 30"w',
'<b>Littoral Formation .3</b><br/>Materials:  graphite, pastel, abaca fiber<br/>Size: 22"h x 30"w',
'<b>Littoral Formation .9</b><br/>Materials:  graphite, pastel, abaca fiber<br/>Size: 22"h x 30"w',
'<b>Littoral Formation .4</b><br/>Materials:  graphite, pastel, abaca fiber<br/>Size: 22"h x 30"w');
imgarr[7]['imgs']=new Array('./imgs/pap_litf11_1.jpg','./imgs/pap_litf12_2.jpg','./imgs/pap_litf17_3.jpg','./imgs/pap_litf3_4.jpg','./imgs/pap_litf9_5.jpg','./imgs/pap_litf4_6.jpg');

imgarr[8] = new Array();
imgarr[8]['txt'] = new Array(
'<b>Mapping .009</b><br/>Materials:  abaca paper, sandblasted plastic case<br/>Size:  14"h x 14"w x 1"d',
'<b>Mapping .013</b><br/>Materials:  abaca paper, sandblasted plastic case     <br/>Size:  14"h x 14"w x 1"d',								
'<b>Mapping .006</b><br/>Materials:  abaca paper, sandblasted plastic case         <br/>Size:  14"h x 14"w x 1"d',
'<b>Mapping .008</b><br/>Materials:  abaca paper, sandblasted plastic case         <br/>Size:  14"h x 14"w x 1"d',
'<b>Mapping .015</b><br/>Materials:  abaca paper, sandblasted plastic case         <br/>Size:  14"h x 14"w x 1"d',
'<b>Mapping .011</b><br/>Materials:  abaca paper, sandblasted plastic case         <br/>Size:  14"h x 14"w x 1"d');
imgarr[8]['imgs']=new Array('./imgs/pap_map009_1.jpg','./imgs/pap_map013_2.jpg','./imgs/pap_map006_3.jpg','./imgs/pap_map008_4.jpg','./imgs/pap_map015_5.jpg','./imgs/pap_map011_6.jpg');

imgarr[9] = new Array();
imgarr[9]['txt'] = new Array(
'<b>Layered Formation .3</b><br/>Materials:  sprayed pulp on paper with charcoal, graphite, pastel       <br/>Size:  42"h x 30"w',
'<b>Layered Formation .2</b><br/>Material:  sprayed paper fiber on paper with charcoal, graphite, pastel	<br/>Size:  42"h x 30"w',
'<b>Layered Formation .8</b><br/>Material:  sprayed paper fiber on paper with charcoal, graphite, pastel	<br/>Size:  42"h x 30"w',		
'<b>Layered Formation .25	</b><br/>Material:  sprayed paper fiber on paper with charcoal, graphite, pastel	<br/>Size:  42"h x 30"w',	
'<b>Layered Formation .1</b><br/>Material:  sprayed paper fiber on paper with charcoal, graphite, pastel	<br/>Size:  42"h x 30"w',		
'<b>Layered Formation .12	</b><br/>Material:  sprayed paper fiber on paper with charcoal, graphite, pastel	<br/>Size:  42"h x 30"w');
imgarr[9]['imgs']=new Array('./imgs/pap_lf3_1.jpg','./imgs/pap_lf2_2.jpg','./imgs/pap_lf8_3.jpg','./imgs/pap_lf25_4.jpg','./imgs/pap_lf1_5.jpg','./imgs/pap_lf12_6.jpg');

imgarr[10] = new Array();
imgarr[10]['txt'] = new Array(
'<b>Erased Formations 19</b><br/>Materials:  pastel, graphite, charcoal<br/>Size:  51"h x 38"w',
'<b>Erased Formations 2</b><br/>Material:  pastel, graphite, charcoal<br/>Size:  60"h x 46"w',
'<b>Erased Formations 3</b><br/>Material:  pastel, graphite, charcoal<br/>Size:  60"h x 44"w',
'<b>Erased Formations 6</b><br/>Material:  pastel, graphite, charcoal<br/>Size:  62"h x 48"w',
'<b>Erased Formations 14</b><br/>Material:  pastel, graphite, charcoal<br/>Size:  60"h x 42"w',
'<b>Erased Formations 8</b><br/>Material:  pastel, graphite, charcoal<br/>Size:  60"h x 48"w');
imgarr[10]['imgs']=new Array('./imgs/pap_ef19_1.jpg','./imgs/pap_ef2_2.jpg','./imgs/pap_ef3_3.jpg','./imgs/pap_ef6_4.jpg','./imgs/pap_ef14_6.jpg','./imgs/pap_ef8_5.jpg');

imgarr[11] = new Array();
imgarr[11]['txt'] = new Array(
'<b>Airplayer Landscape .4</b><br/>Materials:  graphite, charcoal, acrylic<br/>Size:  80"h x 60"w',
'<b>Airplayer Landscape .1</b><br/>Materials:  graphite, charcoal, acrylic<br/>Size:  80"h x 62"w',											
'<b>Airplayer Landscape .9</b><br/>Materials:  graphite, charcoal, acrylic, abaca fiber<br/>Size:  80"h x 58"w',							
'<b>Airplayer Landscape .5</b><br/>Materials:  graphite, charcoal, acrylic<br/>Size:  80"h x 58"w',											
'<b>Airplayer Landscape .6</b><br/>Materials:  graphite, charcoal<br/>Size:  80"h x 60"w',													
'<b>Airplayer Landscape .8</b><br/>Materials:  graphite, charcoal, acrylic, abaca fiber<br/>Size:  80"h x 58"w');
imgarr[11]['imgs']=new Array('./imgs/pap_apl4_1.jpg','./imgs/pap_apl1_2.jpg','./imgs/pap_apl9_3.jpg','./imgs/pap_apl5_4.jpg','./imgs/pap_apl6_5.jpg','./imgs/pap_apl8_6.jpg');

imgarr[12] = new Array();
imgarr[12]['txt'] = new Array(
'<b>Airplayer IX</b><br/>Medium:  Intaglio, edition of 20<br/>Size:  22 1/2"h x 30"w',
'<b>Airplayer Landscape IX</b><br/>Medium:  Intaglio with sprayed acrylic stencil; edition of 20<br/>Size:  22 1/2"h x 30"w',
'<b>Airplayer X/2</b><br/>Medium:  lithograph and monoprint with graphite, charcoal, acrylic<br/>Size:  22 1/2"h x 30"w',
'<b>Airplayer X/3</b><br/>Medium:  lithograph and monoprint with graphite, charcoal, acrylic<br/>Size:  22 1/2"h x 30"w',
'<b>Airplayer X/5</b><br/>Medium:  lithograph and monoprint with graphite, charcoal, acrylic<br/>Size:  22 1/2"h x 30"w',					
'<b>Littoral Edition</b><br/>Materials:  catalogue & print with layered velum, edition of 90<br/>Size:  framed 12"h x 15"w');
imgarr[12]['imgs']=new Array('./imgs/pap_prap9_1.jpg','./imgs/pap_prap9_2.jpg','./imgs/pap_prap2_3.jpg','./imgs/pap_prap3_4.jpg','./imgs/pap_prap5_5.jpg','./imgs/pap_prap_6.jpg');

imgarr[13] = new Array();
imgarr[13]['txt'] = new Array(
'<b>Memory R-1</b><br/>Materials: Photo-collage, pastel, graphite, gel medium mounted on lucite<br/>Size:  18"h x 18"w x 1"d(4 parts)',
'<b>Memory R-1</b><br/>Materials: Photo-collage, pastel, graphite, gel medium mounted on lucite<br/>Size:  18"h x 18"w x 1"d(4 parts)',
'<b>Memory R-1</b><br/>Materials: Photo-collage, pastel, graphite, gel medium mounted on lucite<br/>Size:  18"h x 18"w x 1"d(4 parts)',
'<b>Memory R-1</b><br/>Materials: Photo-collage, pastel, graphite, gel medium mounted on lucite<br/>Size:  18"h x 18"w x 1"d(4 parts)',
'<b>Memory R-1</b><br/>Materials: Photo-collage, pastel, graphite, gel medium mounted on lucite<br/>Size:  18"h x 18"w x 1"d(4 parts)',
'<b>Memory R-1</b><br/>Materials: Photo-collage, pastel, graphite, gel medium mounted on lucite<br/>Size:  18"h x 18"w x 1"d(4 parts)');
imgarr[13]['imgs']=new Array('./imgs/pap_memr_1.jpg','./imgs/pap_memp_2.jpg','./imgs/pap_meme_3.jpg','./imgs/pap_memk_4.jpg','./imgs/pap_meml_5.jpg','./imgs/pap_memo_6.jpg');

imgarr[14] = new Array();
imgarr[14]['txt'] = new Array(
'<b>Co-Memory 7-1</b><br/>Materials: Photo-collage, pastel, graphite, gel medium mounted on wood<br/>Size:  14"h x 14"w x 1.25"d',
'<b>Co-Memory 7-1</b><br/>Materials: Photo-collage, pastel, graphite, gel medium mounted on wood<br/>Size:  14"h x 14"w x 1.25"d',
'<b>Co-Memory 7-1</b><br/>Materials: Photo-collage, pastel, graphite, gel medium mounted on wood<br/>Size:  14"h x 14"w x 1.25"d',
'<b>Co-Memory 7-1</b><br/>Materials: Photo-collage, pastel, graphite, gel medium mounted on wood<br/>Size:  14"h x 14"w x 1.25"d');
imgarr[14]['imgs']=new Array('./imgs/pap_co_mem7_1.jpg','./imgs/pap_co_mem3_2.jpg','./imgs/pap_co_mem9_3.jpg','./imgs/pap_co_mem5_4.jpg');

function swap_gal(prev_gal){
 cur_gal_img = 0;
 document.getElementById('img_gal').src = imgarr[cur_gal]['imgs'][cur_gal_img];
 document.getElementById('txt').innerHTML = imgarr[cur_gal]['txt'][cur_gal_img];
 document.getElementById('cur_img').innerHTML = 1;
 document.getElementById('total_gal').innerHTML = imgarr[cur_gal]['imgs'].length; 
 document.getElementById('prv').innerHTML='<span class="gallery1">prev</span>'; 
 document.getElementById('nxt').innerHTML='<a href="javascript:next()">next</a>';	
oldmenuid=prev_gal+5;
switch(oldmenuid){
	case 6:old="<a class=\"menuItem\" href=\"landslips.php\" onmouseover=\"swap('id6','./imgs/menu/landslips_on.jpg')\" onmouseout=\"swap('id6','./imgs/menu/landslips.jpg')\"><img src=\"./imgs/menu/landslips.jpg\" border=\"0\" id=\"id6\"></a><br style=\"line-height:1px;\"/>";break;
	case 7:old="<a class=\"menuItem\" href=\"notations.php\" onmouseover=\"swap('id7','./imgs/menu/notations_on.jpg')\" onmouseout=\"swap('id7','./imgs/menu/notations.jpg')\"><img src=\"./imgs/menu/notations.jpg\" border=\"0\" id=\"id7\"></a><br style=\"line-height:1px;\"/>";break;
	case 8:old="<a class=\"menuItem\" href=\"fragmentw.php\" onmouseover=\"swap('id8','./imgs/menu/fragment_on.jpg')\" onmouseout=\"swap('id8','./imgs/menu/fragment.jpg')\"><img src=\"./imgs/menu/fragment.jpg\" border=\"0\" id=\"id8\"></a><br style=\"line-height:1px;\"/>";break;
	case 9:old="<a class=\"menuItem\" href=\"littoral_extracts.php\" onmouseover=\"swap('id9','./imgs/menu/littoral_on.jpg')\" onmouseout=\"swap('id9','./imgs/menu/littoral.jpg')\"><img src=\"./imgs/menu/littoral.jpg\" border=\"0\" id=\"id9\"></a><br style=\"line-height:1px;\"/>";break;
	case 10:old="<a class=\"menuItem\" href=\"littoral_studies.php\" onmouseover=\"swap('id10','./imgs/menu/littoralstd_on.jpg')\" onmouseout=\"swap('id10','./imgs/menu/littoralstd.jpg')\"><img src=\"./imgs/menu/littoralstd.jpg\" border=\"0\" id=\"id10\"></a><br style=\"line-height:1px;\"/>";break;
	case 11:old="<a class=\"menuItem\" href=\"littorals.php\" onmouseover=\"swap('id11','./imgs/menu/littorals_on.jpg')\" onmouseout=\"swap('id11','./imgs/menu/littorals.jpg')\"><img src=\"./imgs/menu/littorals.jpg\" border=\"0\" id=\"id11\"></a><br style=\"line-height:1px;\"/>";break;
	case 12:old="<a class=\"menuItem\" href=\"littoral_fomations.php\" onmouseover=\"swap('id12','./imgs/menu/littoralf_on.jpg')\" onmouseout=\"swap('id12','./imgs/menu/littoralf.jpg')\"><img src=\"./imgs/menu/littoralf.jpg\" border=\"0\" id=\"id12\"></a><br style=\"line-height:1px;\"/>";break;
	case 13:old="<a class=\"menuItem\" href=\"mapping.php\" onmouseover=\"swap('id13','./imgs/menu/mapping_on.jpg')\" onmouseout=\"swap('id13','./imgs/menu/mapping.jpg')\"><img src=\"./imgs/menu/mapping.jpg\" border=\"0\" id=\"id13\"></a><br style=\"line-height:1px;\"/>";break;
	case 14:old="<a class=\"menuItem\" href=\"layered_formations.php\" onmouseover=\"swap('id14','./imgs/menu/layered_on.jpg')\" onmouseout=\"swap('id14','./imgs/menu/layered.jpg')\"><img src=\"./imgs/menu/layered.jpg\" border=\"0\" id=\"id14\"></a><br style=\"line-height:1px;\"/>";break;
	case 15:old="<a class=\"menuItem\" href=\"erased_formations.php\" onmouseover=\"swap('id15','./imgs/menu/erased_on.jpg')\" onmouseout=\"swap('id15','./imgs/menu/erased.jpg')\"><img src=\"./imgs/menu/erased.jpg\" border=\"0\" id=\"id15\"></a><br style=\"line-height:1px;\"/>";break;
	case 16:old="<a class=\"menuItem\" href=\"airplayer_landscapes.php\" onmouseover=\"swap('id16','./imgs/menu/airplayerl_on.jpg')\" onmouseout=\"swap('id16','./imgs/menu/airplayerl.jpg')\"><img src=\"./imgs/menu/airplayerl.jpg\" border=\"0\" id=\"id16\"></a><br style=\"line-height:1px;\"/>";break;
	case 17:old="<a class=\"menuItem\" href=\"prints.php\" onmouseover=\"swap('id17','./imgs/menu/prints_on.jpg')\" onmouseout=\"swap('id17','./imgs/menu/prints.jpg')\"><img src=\"./imgs/menu/prints.jpg\" border=\"0\" id=\"id17\"></a><br style=\"line-height:1px;\"/>";break;
	case 18:old="<a class=\"menuItem\" href=\"memory.php\" onmouseover=\"swap('id18','./imgs/menu/memory_on.jpg')\" onmouseout=\"swap('id18','./imgs/menu/memory.jpg')\"><img src=\"./imgs/menu/memory.jpg\" border=\"0\" id=\"id18\"></a><br style=\"line-height:1px;\"/>";break;
	case 19:old="<a class=\"menuItem\" href=\"co-memory.php\" onmouseover=\"swap('id19','./imgs/menu/co_memory_on.jpg')\" onmouseout=\"swap('id19','./imgs/menu/co_memory.jpg')\"><img src=\"./imgs/menu/co_memory.jpg\" border=\"0\" id=\"id19\"></a><br style=\"line-height:1px;\"/>";break;
}
curmenuid=cur_gal+5;
switch(curmenuid){
	case 6:new1="<a class=\"menuItem\" href=\"landslips.php\"><img src=\"./imgs/menu/landslips_on.jpg\" border=\"0\" id=\"id6\"></a><br style=\"line-height:1px;\"/>";break;
	case 7:new1="<a class=\"menuItem\" href=\"notations.php\"><img src=\"./imgs/menu/notations_on.jpg\" border=\"0\" id=\"id7\"></a><br style=\"line-height:1px;\"/>";break;
	case 8:new1="<a class=\"menuItem\" href=\"fragmentw.php\"><img src=\"./imgs/menu/fragment_on.jpg\" border=\"0\" id=\"id8\"></a><br style=\"line-height:1px;\"/>";break;
	case 9:new1="<a class=\"menuItem\" href=\"littoral_extracts.php\"><img src=\"./imgs/menu/littoral_on.jpg\" border=\"0\" id=\"id9\"></a><br style=\"line-height:1px;\"/>";break;
	case 10:new1="<a class=\"menuItem\" href=\"littoral_studies.php\"><img src=\"./imgs/menu/littoralstd_on.jpg\" border=\"0\" id=\"id10\"></a><br style=\"line-height:1px;\"/>";break;
	case 11:new1="<a class=\"menuItem\" href=\"littorals.php\"><img src=\"./imgs/menu/littorals_on.jpg\" border=\"0\" id=\"id11\"></a><br style=\"line-height:1px;\"/>";break;
	case 12:new1="<a class=\"menuItem\" href=\"littoral_fomations.php\"><img src=\"./imgs/menu/littoralf_on.jpg\" border=\"0\" id=\"id12\"></a><br style=\"line-height:1px;\"/>";break;
	case 13:new1="<a class=\"menuItem\" href=\"mapping.php\"><img src=\"./imgs/menu/mapping_on.jpg\" border=\"0\" id=\"id13\"></a><br style=\"line-height:1px;\"/>";break;
	case 14:new1="<a class=\"menuItem\" href=\"layered_formations.php\"><img src=\"./imgs/menu/layered_on.jpg\" border=\"0\" id=\"id14\"></a><br style=\"line-height:1px;\"/>";break;
	case 15:new1="<a class=\"menuItem\" href=\"erased_formations.php\"><img src=\"./imgs/menu/erased_on.jpg\" border=\"0\" id=\"id15\"></a><br style=\"line-height:1px;\"/>";break;
	case 16:new1="<a class=\"menuItem\" href=\"airplayer_landscapes.php\"><img src=\"./imgs/menu/airplayerl_on.jpg\" border=\"0\" id=\"id16\"></a><br style=\"line-height:1px;\"/>";break;
	case 17:new1="<a class=\"menuItem\" href=\"prints.php\"><img src=\"./imgs/menu/prints_on.jpg\" border=\"0\" id=\"id17\"></a><br style=\"line-height:1px;\"/>";break;
	case 18:new1="<a class=\"menuItem\" href=\"memory.php\"><img src=\"./imgs/menu/memory_on.jpg\" border=\"0\" id=\"id18\"></a><br style=\"line-height:1px;\"/>";break;
	case 19:new1="<a class=\"menuItem\" href=\"co-memory.php\"><img src=\"./imgs/menu/co_memory_on.jpg\" border=\"0\" id=\"id19\"></a><br style=\"line-height:1px;\"/>";break;
}
 document.getElementById('js'+oldmenuid).innerHTML=old;
 document.getElementById('js'+curmenuid).innerHTML=new1;
}
//------------------------------------------
function next(){
 cur_gal_img++;
 if(cur_gal_img==(imgarr[cur_gal]['imgs'].length-1)){
	document.getElementById('nxt').innerHTML='<span class="gallery1">next</span>';
 }
 document.getElementById('prv').innerHTML='<a href="javascript:prev()">prev</a>';
 document.getElementById('img_gal').src=imgarr[cur_gal]['imgs'][cur_gal_img];
 document.getElementById('cur_img').innerHTML=cur_gal_img+1;
 document.getElementById('txt').innerHTML = imgarr[cur_gal]['txt'][cur_gal_img];
}
//------------------------------------------
function prev(){
 cur_gal_img--;
 if(cur_gal_img==0){
	document.getElementById('prv').innerHTML='<span class="gallery1">prev</span>';
 }
 document.getElementById('nxt').innerHTML='<a href="javascript:next()">next</a>';
 document.getElementById('img_gal').src=imgarr[cur_gal]['imgs'][cur_gal_img];
 document.getElementById('cur_img').innerHTML=cur_gal_img+1;
 document.getElementById('txt').innerHTML = imgarr[cur_gal]['txt'][cur_gal_img];
}
//------------------------------------------
function swap(id,src){
 document.getElementById(id).src=src;
}

function setGal(){
	document.getElementById('total_gal').innerHTML = imgarr[cur_gal]['imgs'].length;
	preloadMenu();
}
window.onload = setGal;
