<!------- hide the script from old browsersW3C = (document.getElementById) ? 1 : 0; IE4 = (document.all) ? 1 : 0; NS4 = (document.layers) ? 1 : 0; function dhtml_check() { // browser specific items  if (W3C) { // netscape 6 (gecko) or greater - DOM specific object variables    layerRef = "document.getElementById('";    layerStyle = "').style";    layerText = "').innerHTML";    visible = '.visibility = "visible"';    hidden = '.visibility = "hidden"';    zlevel = '.zindex';    pxunits = 'px';    okMenu = true;  }  else if (NS4) { // netscape 4 - DOM specific object variables    window.onResize = reloadIt;// patch for netscape window resizing problem    layerRef = "document.layers['";    layerStyle = "']";    visible = '.visibility = "show"';    hidden = '.visibility = "hide"';    zlevel = '.zIndex';    pxunits = 'px';    okMenu = true;  }  else if (IE4) { // msie 4 or greater - DOM specific object variables    layerRef = "document.all['";    layerStyle = "'].style";    layerText = "'].innerHTML";    visible = '.visibility = "visible"';    hidden = '.visibility = "hidden"';    zlevel = '.zindex';    pxunits = 'px';    okMenu = true;  }  else { okMenu = false; }}function reloadIt() { document.location = document.location; }dhtml_check();// variables used in more than one javascript functiontotal_slides = last_img = 1;next_tag = back_tag = caption_tag = "";function gallery(ref,img_array,size_array,txt_tag,nav_flag,caption_flag,form_name) {  if (!img_array) { img_array = "photos"; }  if (!size_array) { size_array = "sizes"; }  if (!txt_tag) { txt_tag = "this_form"; }   if (!form_name) { form_name = "slides"; }  // subtract 1 from image array length since the array starts at 1 (not 0)  total_slides = eval(img_array).length - 1;  if (ref == "next") {     ref = last_img + 1;     if (ref > (total_slides)) { ref = 1; }  }  else if (ref == "back") {     ref = last_img - 1;     if (ref < 1) { ref = total_slides; }  }  else if (ref == "c") {   ref = eval('document.' + form_name + '.slide').value;   ref = ref * 1;   if (ref > (total_slides - 1)) { ref = total_slides; }   else if (ref < 1) { ref = 1; }  }  eval('document.' + form_name + '.slide').value = ref;   last_img = ref * 1;  var img = '<IMG SRC="' + eval(img_array)[ref] + '" ';  // variables defining image alt, height & width for each orientation   // (e.g., portrait, landscape) are defined in javascript in the header   img += eval(eval(size_array)[ref]); // add image info  img += " >";   ChangeText(txt_tag,img);  if (caption_flag) {     // caption_tag set in javascript in header    if (!caption_tag) { caption_tag = "this_text"; }    gallery_caption(ref,caption_tag);  }  if (nav_flag) {     show_nav(ref);  }}function show_nav(ref) {  // next_tag  and back_tag set in javascript in header  // next and back html definied in javascript in header  if (!next_tag) { next_tag = "nav_next"; }  if (!back_tag) { back_tag = "nav_back"; }  if (ref == 1) {     ChangeText(next_tag,next);    ChangeText(back_tag,'<br>');  }  else if (ref == total_slides) {     var next1 = next.replace(/Next/,"Start Over");    ChangeText(next_tag,next1);    ChangeText(back_tag,back);  }  else {    ChangeText(next_tag,next);    ChangeText(back_tag,back);  }}function gallery_caption(ref,txt_tag) {   if (!txt_tag) { txt_tag = "this_text"; }  var txt = captions[ref];  ChangeText(txt_tag,txt);}function slide_count(img_array,form_name) {  if (!img_array) { img_array = "photos"; }   if (!form_name) { form_name = "slides"; }  var ll = 3;  // subtract 1 from image array length since the array starts at 1 (not 0)  total_slides = eval(img_array).length - 1;  if (total_slides < 10) { ll = 1; }  else if (total_slides < 100) { ll = 2; }  var ss = "color:#333399;font-size:11px;font-family:arial";  var str = '<DIV STYLE="' + ss + '">'  str += '<INPUT TYPE=TEXT SIZE=' + ll + ' NAME="slide" VALUE="1" ';  str += 'STYLE="text-align:right;' + ss + '" ';  str += 'onFocus="javascript:document.' + form_name + '.slide.value=' + "''" + ';" ';   str += 'onChange="gallery(\'c\');return false;"> of ' + total_slides;  document.write(str);}function ChangeText(txt_tag,this_txt,id) {  // txt_tag - id of div and ilayer (layer name is txt_tag + _a)   // this_txt - what is to be displayed or array name  // id - array id if this_txt is array name  if (id) { this_txt =  eval(this_txt)[id]; }  if (W3C) { eval(layerRef + txt_tag + "')").innerHTML  = this_txt; }  else if (IE4) { eval(layerRef + txt_tag + "']").innerText  = this_txt; }  else if (NS4) {     var txt_tag2 = txt_tag + '_a';      document.eval(txt_tag).document.eval(txt_tag2).document.open();    document.eval(txt_tag).document.eval(txt_tag2).document.write(this_txt);     document.eval(txt_tag).document.eval(txt_tag2).document.close();  }  else { alert("Don't recognize this browser"); }}//close off comment to hide this script from old browsers----------->