
//  ***************************************
//  *******   etching info

var nofEtch = 114;

// constructor for etching objects
function etching (id, desc, image, width, height) {
//alert("id = " + id);
  this.id = id;
  this.desc = desc;
  this.image = image;
  this.height = height;
  this.width = width;

  function getImage() {
    return this.image + ".gif";
  }
  function getWidth() {
    return this.width;
  }
  function getHeight() {
    return this.height;
  }    
  
  function getDesc() {
    return this.desc;
  }
  this.getImage = getImage;
  this.getDesc = getDesc;
  this.getHeight = getHeight;
  this.getWidth = getWidth;    
  
}


var etchings = new Array(nofEtch);

etchings[0] = new etching("0", "Ankh", "graphics/etchings/ankh", 200, 252 );

etchings[1] = new etching("1", "Apple", "graphics/etchings/apple", 200, 205 );

etchings[2] = new etching("2", "Axes in Saltire", "graphics/etchings/axes_in_saltire", 200, 126 );

etchings[3] = new etching("3", "Bastet", "graphics/etchings/bastet", 200, 257 );

etchings[4] = new etching("4", "Bear Erased", "graphics/etchings/bear_erased", 200, 188 );

etchings[5] = new etching("5", "Bear Passant", "graphics/etchings/bear_passant", 200, 115 );

etchings[6] = new etching("6", "Boar", "graphics/etchings/boar", 200, 150 );

etchings[7] = new etching("7", "Border Celtic Swirls", "graphics/etchings/border_celtic_swirls", 200, 70 );

etchings[8] = new etching("8", "Border Grape", "graphics/etchings/border_grape", 200, 76 );

etchings[9] = new etching("9", "Border Oak", "graphics/etchings/border_oak", 200, 51 );

etchings[10] = new etching("10", "Border Persian", "graphics/etchings/border_persian", 200, 79 );

etchings[11] = new etching("11", "Border Rosebuds", "graphics/etchings/border_rosebuds", 200, 60 );

etchings[12] = new etching("12", "Border Wheat", "graphics/etchings/border_wheat", 200, 70 );

etchings[13] = new etching("13", "Brigantine", "graphics/etchings/brigantine", 200, 190 );

etchings[14] = new etching("14", "Broomstick", "graphics/etchings/broomstick", 179, 396 );

etchings[15] = new etching("15", "Bull Passant", "graphics/etchings/bull_passant", 200, 150 );

etchings[16] = new etching("16", "Butterfly Volant", "graphics/etchings/butterfly_volant", 200, 141 );

etchings[17] = new etching("17", "Caidan Cross", "graphics/etchings/caidan_cross", 200, 208 );

etchings[18] = new etching("18", "California Quail", "graphics/etchings/california_quail", 200, 261 );

etchings[19] = new etching("19", "Castle", "graphics/etchings/castle", 200, 115 );

etchings[20] = new etching("20", "Cat in a Round", "graphics/etchings/cat_in_a_round", 200, 190 );

etchings[21] = new etching("21", "Cat on a Plate", "graphics/etchings/cat_on_a_plate", 200, 194 );

etchings[22] = new etching("22", "Cat Sejant Guardant", "graphics/etchings/cat_sejant_guardant", 200, 226 );

etchings[23] = new etching("23", "Cat Sejant", "graphics/etchings/cat_sejant", 200, 236 );

etchings[24] = new etching("24", "Chivalry Belt", "graphics/etchings/chivalry_belt", 200, 256 );

etchings[25] = new etching("25", "Christmas Star", "graphics/etchings/christmas_star", 200, 263 );

etchings[26] = new etching("26", "Claddagh", "graphics/etchings/claddagh", 200, 143 );

etchings[27] = new etching("27", "Comedy & Tragedy", "graphics/etchings/comedy_tragedy", 200, 225 );

etchings[28] = new etching("28", "Crab", "graphics/etchings/crab", 200, 176 );

etchings[29] = new etching("29", "Cross & Dove", "graphics/etchings/cross_&_dove", 200, 289 );

etchings[30] = new etching("30", "Cross Fleury", "graphics/etchings/cross_fleury", 200, 192 );

etchings[31] = new etching("31", "Crow", "graphics/etchings/crow", 200, 190 );

etchings[32] = new etching("32", "Four leaf clover", "graphics/etchings/dolphin_houriant_inverted", 200, 278 );

etchings[33] = new etching("33", "Dolphins in the Round", "graphics/etchings/dolphin_round", 200, 203 );

etchings[34] = new etching("34", "Dolphin Houriant Inverted", "graphics/etchings/dolphin_houriant_inverted", 200, 306 );

etchings[35] = new etching("35", "Dolphin Naiant", "graphics/etchings/dolphin_naiant", 200, 121 );

etchings[36] = new etching("36", "Dragon Affronte", "graphics/etchings/dragon_affronte", 200, 260 );

etchings[37] = new etching("37", "Dragon Passant Coward", "graphics/etchings/dragon_passant_coward", 200, 198 );

etchings[38] = new etching("38", "Dragon Passant Guardant", "graphics/etchings/dragon_passant_guardant", 200, 137 );

etchings[39] = new etching("39", "Dragan Rampant", "graphics/etchings/dragon_rampant", 200, 229 );

etchings[40] = new etching("40", "Dragon Regardent", "graphics/etchings/dragon_regardent", 200, 182 );

etchings[41] = new etching("41", "Dragonfly Proper", "graphics/etchings/dragonfly_proper", 200, 120 );

etchings[42] = new etching("42", "Eagle Displayed", "graphics/etchings/eagle_displayed", 200, 246 );

etchings[43] = new etching("43", "Estoile", "graphics/etchings/estoile", 200, 217 );

etchings[44] = new etching("44", "Escallop", "graphics/etchings/escallop", 200, 158 );

etchings[45] = new etching("45", "Fairy Kneeling", "graphics/etchings/fairy_kneeling", 200, 177 );

etchings[46] = new etching("46", "Fairy Walking", "graphics/etchings/fairy_walking", 200, 284 );

etchings[47] = new etching("47", "Flamingo Proper", "graphics/etchings/flamingo_proper", 200, 232 );

etchings[48] = new etching("48", "Fleur D'lis", "graphics/etchings/fleur_d_lis", 200, 227 );

etchings[49] = new etching("49", "Flower Heart", "graphics/etchings/flower_heart", 200, 266 );

etchings[50] = new etching("50", "Flower Wreath", "graphics/etchings/flower_wreath", 200, 191 );


etchings[51] = new etching("50", "Four Leaf Clover", "graphics/etchings/four_leaf_clover", 200, 241 );

etchings[52] = new etching("51", "Grape Cluster", "graphics/etchings/grape_cluster", 200, 202 );

etchings[53] = new etching("52", "Greenman", "graphics/etchings/greenman", 200, 202 );

etchings[54] = new etching("53", "Griffin Passant", "graphics/etchings/griffin_passant", 200, 133 );

etchings[55] = new etching("54", "Griffin Rampant", "graphics/etchings/griffin_rampant", 200, 195 );

etchings[56] = new etching("55", "Griffin's Head Erased", "graphics/etchings/griffin_head_erased", 200, 177 );

etchings[57] = new etching("56", "Hare Rampant", "graphics/etchings/hare_rampant", 200, 306 );

etchings[58] = new etching("57", "Hare Salient", "graphics/etchings/hare_salient", 200, 267 );

etchings[59] = new etching("58", "Celtic Harp", "graphics/etchings/celtic_harp", 200, 278 );

etchings[60] = new etching("59", "Hawk Erased", "graphics/etchings/hawk_head_erased", 200, 244 )


etchings[61] = new etching("60", "Hedgehog Rampant", "graphics/etchings/hedgehog_rampant", 200, 283 );

etchings[62] = new etching("61", "Herald's Horns in Saltire", "graphics/etchings/heralds_horns_in_saltire", 200, 181 );

etchings[63] = new etching("62", "Horse Courant", "graphics/etchings/horse_courant", 200, 124 );

etchings[64] = new etching("63", "Horse Galloping", "graphics/etchings/horse_galloping", 200, 145 );

etchings[65] = new etching("64", "Hound Head", "graphics/etchings/hound_head", 200, 241 );
etchings[66] = new etching("65", "Hound Passant", "graphics/etchings/hound_passant", 200, 168 );

etchings[67] = new etching("66", "Humming Bird", "graphics/etchings/humming_bird", 200, 201 );

etchings[68] = new etching("67", "Kells Dogs", "graphics/etchings/kells_dogs", 200, 234 );

etchings[69] = new etching("68", "Knot Circle", "graphics/etchings/knot_circle", 200, 204 );

etchings[70] = new etching("69", "Knot Double", "graphics/etchings/knot_double", 200, 101 );


etchings[71] = new etching("70", "Knot Round", "graphics/etchings/knot_round", 200, 183 );

etchings[72] = new etching("71", "Laurel Wreath", "graphics/etchings/laurel_wreath", 200, 217 );

etchings[73] = new etching("72", "Leopard Rampant", "graphics/etchings/leopard_rampant", 200, 219 );

etchings[74] = new etching("73", "Leopard Sejant", "graphics/etchings/leopard_sejant", 200, 221 );

etchings[75] = new etching("74", "Lion Rampant", "graphics/etchings/lion_rampant", 200, 254 );

etchings[76] = new etching("75", "Long Ship", "graphics/etchings/long_ship", 200, 119 );

etchings[77] = new etching("76", "Mariner's Compass", "graphics/etchings/mariners_compass", 200, 197 );

etchings[78] = new etching("77", "Merhorse", "graphics/etchings/merhorse", 200, 202 );
etchings[79] = new etching("78", "Mermaid 2", "graphics/etchings/mermaid2", 200, 280 );
etchings[80] = new etching("79", "Mogen David", "graphics/etchings/mogen_david", 200, 212 );


etchings[81] = new etching("80", "Mourning Dove", "graphics/etchings/mourning_dove", 200, 244 );

etchings[82] = new etching("81", "Mouse Rampant", "graphics/etchings/mouse_rampant", 200, 252 );

etchings[83] = new etching("82", "Mullet", "graphics/etchings/mullet", 200, 184 );

etchings[84] = new etching("83", "Owl", "graphics/etchings/owl", 200, 295 );

etchings[85] = new etching("84", "Pegasus Courant", "graphics/etchings/pegasus_courant", 200, 146 );

etchings[86] = new etching("85", "Pelican in Her Piety", "graphics/etchings/pelican_in_her_piety", 200, 221 );


etchings[87] = new etching("86", "Pentacle", "graphics/etchings/pentacle", 200, 179 );

etchings[88] = new etching("87", "Phoenix", "graphics/etchings/phoenix", 200, 203 );


etchings[89] = new etching("87", "Quill", "graphics/etchings/quill", 200, 298 );

etchings[90] = new etching("88", "Ram Head Couped", "graphics/etchings/ram_head_couped", 200, 210 );


etchings[91] = new etching("89", "Rose with buds", "graphics/etchings/rose_with_buds", 200, 90 );

etchings[92] = new etching("90", "Round Tower", "graphics/etchings/round_tower", 200, 274 );
etchings[93] = new etching("91", "Sagittarius", "graphics/etchings/sagitarius", 200, 222 );
etchings[94] = new etching("92", "Scorpion", "graphics/etchings/scorpion", 200, 187 );
etchings[95] = new etching("93", "Skull & bones", "graphics/etchings/skull_n_bones", 200, 198 );
etchings[96] = new etching("94", "Spinning Wheel", "graphics/etchings/spinning_wheel", 200, 142 );


etchings[97] = new etching("95", "Stag at Gaze", "graphics/etchings/stag_at_gaze", 200, 251 );

etchings[98] = new etching("96", "Stag Head Couped", "graphics/etchings/stag_head_couped", 200, 275 );
etchings[99] = new etching("97", "Stag Lodged", "graphics/etchings/stag_lodged", 200, 178 );
etchings[100] = new etching("98", "Stag Rampant", "graphics/etchings/stag_rampant", 200, 255 );
etchings[101] = new etching("99", "Stag Regardent", "graphics/etchings/stag_regardent", 200, 213 );
etchings[102] = new etching("100", "Stag Sejant Silly", "graphics/etchings/stag_sejant_silly", 200, 268 );
etchings[103] = new etching("101", "Stag Salient", "graphics/etchings/stag_salient", 200, 269 );
etchings[104] = new etching("102", "Stag Springing", "graphics/etchings/stag_springing", 200, 202 );
etchings[105] = new etching("103", "Stag Trippant", "graphics/etchings/stag_trippant", 200, 225 );

etchings[106] = new etching("104", "Sun in her Splendour", "graphics/etchings/sun_in_her_splendour", 200, 207 );

etchings[107] = new etching("105", "Thistle", "graphics/etchings/thistle", 200, 200 );
etchings[108] = new etching("106", "Triwave", "graphics/etchings/triwave", 200, 196 );
etchings[109] = new etching("107", "Tudor Rose", "graphics/etchings/tudor_rose2", 200, 205 );

etchings[110] = new etching("108", "Unicorn", "graphics/etchings/unicorn", 200, 300 );
etchings[111] = new etching("109", "Wheat", "graphics/etchings/wheat", 200, 190 );

etchings[112] = new etching("110", "Wolf Courant", "graphics/etchings/wolf_courant", 200, 151 );
etchings[113] = new etching("111", "Wyvern 2", "graphics/etchings/wyvern2", 200, 231 );






/**



//etchings[5] = new etching("5", "Bear Guardant", "graphics/etchings/temp", 200, 252 );

//etchings[6] = new etching("6", "Bear in a Round", "graphics/etchings/temp", 200, 252 );

//etchings[8] = new etching("8", "Bear Rampant", "graphics/etchings/temp", 200, 172 );

//etchings[23] = new etching("23", "Cat Guardant", "graphics/etchings/temp", 200, 226 );

//etchings[28] = new etching("28", "Celtic Cat", "graphics/etchings/temp", 200, 226 );

//etchings[52] = new etching("52", "Falcon Swooping", "graphics/etchings/temp", 200, 384 );

//etchings[72] = new etching("72", "Hound Sejant", "graphics/etchings/temp", 200, 384 );

//etchings[73] = new etching("73", "Hound Courant", "graphics/etchings/temp", 200, 384 );

//etchings[83] = new etching("83", "Lion Winged", "graphics/etchings/temp", 200, 384 );


//etchings[85] = new etching("85", "Lindesfarne Hounds", "graphics/etchings/temp", 200, 384 );

// etchings[95] = new etching("95", "Pegasus", "graphics/etchings/temp", 200, 384 );



**/



function getEtchingsOptions( ) {

  var xline = "";
  for (var yy = 0; yy < etchings.length; yy++ ) {
   xline += "<option value='" + yy + "'>";
   xline += etchings[yy].desc;
   xline += "</option>";
  }

  return xline;
}


function getEtchingsSelect( numLines, showFunction ) {

  // alert("start")
  var xline = "<select name='etching_06' title='Etching selection' size='" + numLines + "'";
  
  if (showFunction) {
       xline += " onchange='JavaScript:showEtchingPicture()'";  
       
       //xline += " onchange='JavaScript:fillInpuSelection()'";
  }  
  xline += ">" ;
 
  for (var yy = 0; yy < etchings.length; yy++ ) {
   xline += "<option value='" + yy + "'>";
   xline += etchings[yy].desc;
   xline += "</option>";
  }
  xline += "</select>";

  // alert (xline)
  return xline;
}


function getEtchings() {
alert("error -- use getEtchingsSelect");


}

