
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
var Designdb = new Object()
Designdb["autumn_tree"] = [
{id:"1", text:"default"}
];

Designdb["autumn_fallen_leaves"] = [
{id:"2", text:"default"}
];

Designdb["artnouveau"] = [
{id:"3", text:"black"},
{id:"5", text:"blue"},
{id:"7", text:"burgundy"},
{id:"4", text:"green"},
{id:"6", text:"purple"}
];

Designdb["strips"] = [
{id:"10", text:"blue"},
{id:"9", text:"green"},
{id:"11", text:"peach"},
{id:"12", text:"pink"},
{id:"8", text:"purple"}
];

Designdb["swash"] = [
{id:"17", text:"black"},
{id:"13", text:"blue"},
{id:"14", text:"green"},
{id:"15", text:"purple"},
{id:"16", text:"red"}
];

Designdb["cruise_ship"] = [
{id:"18", text:"default"}
];

Designdb["double_happiness"] = [
{id:"24", text:"red"},
{id:"25", text:"white"}
];

Designdb["fantasy_flower"] = [
{id:"31", text:"blue_green"},
{id:"34", text:"celadon"},
{id:"26", text:"gold"},
{id:"32", text:"lilac"},
{id:"33", text:"light_blue"},
{id:"29", text:"pink"},
{id:"28", text:"royal_blue"},
{id:"30", text:"seafoam"},
{id:"27", text:"violet"}
];

Designdb["juice_it"] = [
{id:"35", text:"black"},
{id:"39", text:"celadon"},
{id:"38", text:"light_blue"},
{id:"41", text:"pink"},
{id:"42", text:"plum"},
{id:"36", text:"royal_blue"},
{id:"37", text:"sage"},
{id:"43", text:"white"},
{id:"40", text:"yellow"}
];     

Designdb["circle_monogram"] = [
{id:"45", text:"green"},
{id:"47", text:"light_blue"},
{id:"48", text:"light_pink"},
{id:"49", text:"light_yellow"},
{id:"46", text:"medium_blue"},
{id:"50", text:"pink"},
{id:"44", text:"royal_blue"},
{id:"51", text:"violet"}
];

Designdb["fall_leaves"] = [
{id:"52", text:"default"}
];

Designdb["hawaii_mahalo"] = [
{id:"53", text:"default"}
];

Designdb["hearts_and_bubbles"] = [
{id:"54", text:"blue"},
{id:"58", text:"cream"},
{id:"55", text:"lavender"},
{id:"56", text:"pink"},
{id:"57", text:"sage"}
];

Designdb["let_it_snow"] = [
{id:"59", text:"blue"},
{id:"59", text:"fuchsia"},
{id:"59", text:"gray"},
{id:"59", text:"lavender"},
{id:"59", text:"navy_blue"},
{id:"59", text:"red"},
{id:"59", text:"slate_blue"},
{id:"59", text:"turquoise"},
{id:"59", text:"violet"},
{id:"59", text:"winter_green"}
];

Designdb["monogram"] = [
{id:"62", text:"blue"},
{id:"66", text:"cream"},
{id:"63", text:"lavender"},
{id:"64", text:"pink"},
{id:"65", text:"sage"}
];

Designdb["burst_monogram"] = [
{id:"78", text:"brown"},
{id:"67", text:"celadon"},
{id:"70", text:"cocoa"},
{id:"72", text:"coral"},
{id:"73", text:"light_blue"},
{id:"76", text:"mustard"},
{id:"75", text:"pink"},
{id:"71", text:"purple"},
{id:"74", text:"red"},
{id:"77", text:"sage"},
{id:"69", text:"teal"},
{id:"68", text:"turquoise"}
];

Designdb["cherry_blossom"] = [
{id:"84", text:"brown"},
{id:"81", text:"lavender"},
{id:"83", text:"lime"},
{id:"80", text:"pink"},
{id:"85", text:"red"},
{id:"82", text:"sage"},
{id:"79", text:"turquoise"}
];

Designdb["island_shell"] = [
{id:"86", text:"aqua"},
{id:"88", text:"sand"},
{id:"87", text:"yellow"}
];

Designdb["island_starfish"] = [
{id:"89", text:"aqua"},
{id:"90", text:"blue"},
{id:"91", text:"white"}
];

Designdb["island_sun"] = [
{id:"92", text:"aqua"},
{id:"93", text:"blue"},
{id:"94", text:"white"}
];

Designdb["orchids"] = [
{id:"95", text:"lime_cocoa"},
{id:"96", text:"lime_white"},
{id:"97", text:"pink_cocoa"},
{id:"98", text:"pink_white"}
];
Designdb["seasonal_stripes"] = [
{id:"101", text:"fall"},
{id:"100", text:"spring"},
{id:"99", text:"summer"},
{id:"102", text:"winter"}
];             

Designdb["silhouette_bird"] = [
{id:"109", text:"brown"},
{id:"116", text:"lavender"},
{id:"108", text:"light_blue"},
{id:"110", text:"lime"},
{id:"113", text:"orange"},
{id:"114", text:"pink"},
{id:"115", text:"red"},
{id:"111", text:"sage"},
{id:"112", text:"turquoise"}
];

Designdb["silhouette_butterfly"] = [
{id:"118", text:"brown"},
{id:"124", text:"lavender"},
{id:"117", text:"light_blue"},
{id:"119", text:"lime"},
{id:"122", text:"orange"},
{id:"123", text:"pink"},
{id:"125", text:"red"},
{id:"120", text:"sage"},
{id:"121", text:"turquoise"}
];

Designdb["silhouette_feather"] = [
{id:"127", text:"brown"},
{id:"133", text:"lavender"},
{id:"126", text:"light_blue"},
{id:"128", text:"lime"},
{id:"131", text:"orange"},
{id:"132", text:"pink"},
{id:"134", text:"red"},
{id:"129", text:"sage"},
{id:"130", text:"turquoise"}
];

Designdb["silhouette_fern"] = [
{id:"136", text:"brown"},
{id:"142", text:"lavender"},
{id:"135", text:"light_blue"},
{id:"137", text:"lime"},
{id:"140", text:"orange"},
{id:"141", text:"pink"},
{id:"143", text:"red"},
{id:"138", text:"sage"},
{id:"139", text:"turquoise"}
];

Designdb["tropic"] = [
{id:"144", text:"orange"},
{id:"145", text:"lavender"}
];

Designdb["palm_tree"] = [
{id:"146", text:"blue"},
{id:"150", text:"cream"},
{id:"147", text:"lavender"},
{id:"148", text:"pink"},
{id:"149", text:"sage"}
];

Designdb["pin_stripes"] = [
{id:"151", text:"blue"},
{id:"155", text:"cream"},
{id:"152", text:"lavender"},
{id:"153", text:"pink"},
{id:"154", text:"sage"}
];

Designdb["san_francisco"] = [
{id:"156", text:"default"}
];

Designdb["blossom"] =  [
{id:"158", text:"blue"},
{id:"157", text:"pink"},
{id:"160", text:"red"},
{id:"159", text:"water"},
{id:"161", text:"yellow"}
];

Designdb["luv_birds"] = [
{id:"104", text:"blue"},
{id:"107", text:"gold"},
{id:"105", text:"orange"},
{id:"106", text:"purple"},
{id:"103", text:"red"}
];

Designdb["tropical_hibiscus"] = [
{id:"162", text:"default"}
];

Designdb["tropical_palm_tree"] = [
{id:"163", text:"blue"},
{id:"167", text:"cream"},
{id:"164", text:"lavender"},
{id:"165", text:"pink"},
{id:"166", text:"sage"}
];

Designdb["wedding_bells"] = [
{id:"172", text:"blue"},
{id:"170", text:"cream"},
{id:"171", text:"lavender"},
{id:"168", text:"pink"},
{id:"169", text:"sage"}
];

Designdb["wedding_couple"] = [
{id:"173", text:"default"}
];

Designdb["wedding_daisies"] = [
{id:"174", text:"blue"},
{id:"178", text:"cream"},
{id:"175", text:"lavender"},
{id:"176", text:"pink"},
{id:"177", text:"sage"}
];

Designdb["custom_icons_hearts"] = [
{id:"19", text:"blue"},
{id:"23", text:"cream"},
{id:"20", text:"lavender"},
{id:"21", text:"pink"},
{id:"22", text:"sage"}
];

Designdb["custom_icons_rings"] = [
{id:"190", text:"blue"},
{id:"182", text:"cream"},
{id:"179", text:"lavender"},
{id:"180", text:"pink"},
{id:"181", text:"sage"}
];
                      
Designdb["custom_icons_church"] = [
{id:"19", text:"blue"},
{id:"186", text:"cream"},
{id:"183", text:"lavender"},
{id:"184", text:"pink"},
{id:"185", text:"sage"}
];

Designdb["custom_icons_daisy"] = [
{id:"19", text:"blue"},
{id:"191", text:"cream"},
{id:"187", text:"lavender"},
{id:"188", text:"pink"},
{id:"189", text:"sage"}
];

Designdb["stripe_monogram"] = [
{id:"19", text:"blue"},
{id:"195", text:"cream"},
{id:"192", text:"lavender"},
{id:"193", text:"pink"},
{id:"194", text:"sage"}
];
                      
Designdb["xmas_bird"] = [
{id:"199", text:"brown"},
{id:"196", text:"coral"},
{id:"197", text:"green"},
{id:"198", text:"red"},
{id:"200", text:"turquoise"}
];   

Designdb["xmas_tree"] = [
{id:"202", text:"blue"},
{id:"204", text:"brown"},
{id:"201", text:"dk_blue"},
{id:"203", text:"purple"},
{id:"205", text:"teal"}
];   

Designdb["gingham"] = [
{id:"206", text:"brown_black"},
{id:"209", text:"brown_red"},
{id:"208", text:"green"},
{id:"207", text:"red"}
];
   
Designdb["cheers"] = [
{id:"210", text:"brown"},
{id:"211", text:"green"},
{id:"212", text:"pink"},
{id:"213", text:"red"}
];

Designdb["party_dress"] = [
{id:"214", text:"chocolate"},
{id:"217", text:"gold"},
{id:"216", text:"green"},
{id:"215", text:"red"},
{id:"218", text:"silver"}
];

Designdb["ornaments"] = [
{id:"219", text:"gold"},
{id:"220", text:"green"},
{id:"222", text:"red"},
{id:"221", text:"silver"}
];

Designdb["starburst"] = [
{id:"227", text:"blue"},
{id:"223", text:"gold"},
{id:"225", text:"grey"},
{id:"224", text:"silver"},
{id:"226", text:"white"}
];

Designdb["spring_flowers"] = [
{id:"223", text:"blue"},
{id:"224", text:"brown"},
{id:"225", text:"pink"},
{id:"226", text:"red"}
];

Designdb["fireworks"] = [
{id:"224", text:"blue"},
{id:"223", text:"green"}
];

Designdb["alhambra"] = [
{id:"223", text:"aqua"},
{id:"224", text:"blue"},
{id:"225", text:"chartreuse"},
{id:"226", text:"cocoa"},
{id:"224", text:"lavender"},
{id:"225", text:"multi"},
{id:"226", text:"navy"},
{id:"226", text:"pink"},
{id:"226", text:"red"},
{id:"226", text:"sage"}
];

Designdb["citrus"] = [
{id:"223", text:"blue"},
{id:"224", text:"brown_lime"},
{id:"225", text:"brown_orange"},
{id:"226", text:"brown_pink"},
{id:"",text:"lime_orange"},
{id:"", text:"pink"},
{id:"", text:"white_lime"},
{id:"", text:"white_orange"},
{id:"", text:"white_pink"}
];

Designdb["posy_dots"] = [
{id:"223", text:"antique"},
{id:"224", text:"antique_gray"},
{id:"225", text:"blue"},
{id:"226", text:"blue_navy"},
{id:"226", text:"green"},
{id:"226", text:"green_rose"},
{id:"", text:"tropical"},
{id:"", text:"tropical_brown"}
];

Designdb["gingko"] = [
{id:"223", text:"blue"},
{id:"224", text:"brown"},
{id:"225", text:"orange"},
{id:"226", text:"purple"},
{id:"", text:"white"}
];

Designdb["mix_tape"] = [
{id:"223", text:"default"}
];

Designdb["oak_tree"] = [
{id:"223", text:"brown"},
{id:"224", text:"cocoa"},
{id:"225", text:"green"},
{id:"226", text:"lime"},
{id:"226", text:"purple"}
];

Designdb["clover"] = [
{id:"223", text:"default"}
];

Designdb["giddy_up"] = [
{id:"223", text:"blue"},
{id:"224", text:"gold"},
{id:"225", text:"green"},
{id:"226", text:"moss"},
{id:"226", text:"rose"}
];
						
Designdb["love_music"] = [
{id:"223", text:"aqua_marine"},
{id:"224", text:"blue"},
{id:"225", text:"green"},
{id:"226", text:"rose"},
{id:"226", text:"yellow"}
];

Designdb["mondrian"] = [
{id:"223", text:"default"}
];

Designdb["nyc"] = [
{id:"223", text:"black"},
{id:"224", text:"blue"},
{id:"225", text:"brown"},
{id:"226", text:"green"},
{id:"226", text:"red"}
];

Designdb["picasso"] = [
{id:"223", text:"default"}
];

Designdb["quotes"] = [
{id:"223", text:"blue_and_red"},
{id:"224", text:"chocolate_and_red"},
{id:"225", text:"olive_and_red"},
{id:"226", text:"slate_and_red"},
{id:"226", text:"taupe_and_red"}
];

Designdb["chapel"] = [
{id:"223", text:"default"}
];

Designdb["san_francisco"] = [
{id:"223", text:"black"},
{id:"224", text:"blue"},
{id:"225", text:"brown"},
{id:"226", text:"green"},
{id:"226", text:"mauve"}
];

Designdb["warhol"] = [
{id:"223", text:"blues"},
{id:"224", text:"greens"},
{id:"225", text:"pop_art"},
{id:"226", text:"reds"}
];

Designdb["love_letter"] = [
{id:"223", text:"default"}
];

Designdb["alien"] = [
{id:"230", text:"black"},
{id:"230", text:"orange"},
{id:"230", text:"white"}
];
Designdb["boo"] = [
{id:"230", text:"black"},
{id:"230", text:"green"},
{id:"230", text:"orange"},
{id:"230", text:"white"}
];
						
Designdb["fall_stripes"] = [
{id:"230", text:"red"},
{id:"230", text:"sage"},
{id:"230", text:"yellow"}
];

Designdb["fence"] = [
{id:"230", text:"default"}
];
						
Designdb["ghost"] = [
{id:"230", text:"default"}
];

Designdb["pirate"] = [
{id:"230", text:"default"}
];

Designdb["witch"] = [
{id:"230", text:"black"},
{id:"230", text:"green"},
{id:"230", text:"orange"},
{id:"230", text:"white"}
];
Designdb["all_hearts"] = [{text:"blue"},{text:"green"},{text:"red"}];
Designdb["cherry_hearts"] = [{text:"default"}];
Designdb["for_the_record"] = [{text:"default"}];
Designdb["in_the_cards"] = [{text:"blue"},{text:"red"},];
Designdb["island_moon"] = [{text:"default"}];
Designdb["lantern"] = [{text:"black"},{text:"navy"},{text:"white"}];
Designdb["lets_elope"] = [{text:"black"},{text:"pink"},{text:"white"},{text:"yellow"}];
Designdb["lilies"] = [{text:"brown"},{text:"green"},{text:"yellow"}];
Designdb["lucky_cards"] = [{text:"blue"},{text:"brown"},{text:"lime"},{text:"navy"},{text:"pink"},{text:"red"},{text:"tan"},{text:"teal"}];
Designdb["marquis"] = [{text:"default"}];
Designdb["neon_plunge"] = [{text:"blue"},{text:"pink"}];
Designdb["sand_grain"] = [{text:"default"}];
Designdb["sea_shell"] = [{text:"default"}];
Designdb["vegas_script"] = [{text:"green"},{text:"pink"},{text:"red"},{text:"turquoise"}];
Designdb["well_suited"] = [{text:"grey"},{text:"pink"},{text:"white"},{text:"yellow"}];


function setCities(chooser) {
    var newElem;
    var where = (navigator.appName == "Microsoft Internet Explorer") ? -1 : null;
    var AttributeValueChooser = document.getElementById('color');
    while (AttributeValueChooser.options.length) {
        AttributeValueChooser.remove(0);
    }
    var choice = chooser.options[chooser.selectedIndex].id;
    var db = Designdb[choice];
    newElem = document.createElement("option");
    newElem.text = "choose a color";
    newElem.id = "0";
    newElem.value = 0;
    AttributeValueChooser.add(newElem, where);
    if (choice != "") {
        for (var i = 0; i < db.length; i++) {
            newElem = document.createElement("option");
            newElem.text = db[i].text;
            newElem.id = db[i].id;
            AttributeValueChooser.add(newElem, where);
        }
    }
}

/**********
  DOM LEVEL 0 ALTERNATE
 **********
function setCities(chooser) {
    var AttributeValueChooser = chooser.form.elements["AttributeValue"];
    // empty previous settings
    AttributeValueChooser.options.length = 0;
    // get chosen id to act as index to Designdb hash table
    var choice = chooser.options[chooser.selectedIndex].id;
    var db = Designdb[choice];
    // insert default first item
    AttributeValueChooser.options[0] = new Option("Choose a AttributeValue:", "", true, false);
    if (choice != "") {
        // loop through array of the hash table entry, and populate options
        for (var i = 0; i < db.length; i++) {
            AttributeValueChooser.options[i + 1] = new Option(db[i].text, db[i].id);
        }
    }
}
**********/

