 var yourwords = "* Welcome to Linnéa Art Line! The site is still under construction.*";


 function bytwindow1(which) {         // index.htm
   window.location=which;
   }

 function bytnedersida (which){        // menyeng3.htm
   parent.downcontent.location=which;
 }
 

  function byttid(which)                    //brcol0.htm
   {
     window.location=which;
   }
 
  function parent_hogra_rutan(who,which){       //v4menye.htm  OBS! kolla att denna fungerar.
    parent.hogra_rutan.location=who;
    window.location=which;
  }
 
  function byt(a,b)                               //menyeng3.htm
   {
     var kolleka =a;
     var singelb =b;
     setCookie("varax", kolleka, 120);
     setCookie("singel", singelb, 120);
     parent.parent.doldmenu.location.reload(true);
       //  parent.doldsidmenu.location.reload(true);
     parent.hogra_rutan.location="brcol"+a+".htm";
     window.location="v4menye.htm";
   }
   
  function ordnaKat(which)                         // brodyre1.htm
  {
    parent.sidemenu.location=which;
    window.location="katbrode.htm";
  }
  
   function ordnaKat(which)                     // katbrode.htm
   {
     parent.sidemenu.location=which;
     window.location="brodyre1.htm";
   }
   
   function skrivEsize1(who,which)                //brcol0.htm
   {

     var y = esizes[who][which];
     var sizes = y.split(",");
     for (var x=0; x <= esizes.length-1; x=x+1)
     {
       for (var j=0; j <= designsize.length-1; j++)
       {
         if (sizes[x] == j)
         {

         //  document.write("<TR>");
           document.write(designsize[j]+" ");
         //  document.write("</TR>");
         }
       }
     }
    }
   
     function skrivModul()                         //brcol0.htm
    {
      modul = new Array();
      var a =getCrumb("varax");
      var y = 0;
      var led="0,";
      for (var i=1; i<=evara[a].length-1;i++)
      {
        document.write("<tr>");
        if (eval(parseFloat(pris[a][i]))!=0)
        {
          modul[y]=i;
          var led = led + i+",";
          y = y+1;
        }
      }
      led = led +"0";
      setCookie("singelrad", led, 120);
      if(modul.length>0)
      {
        for (j=0; j<=modul.length-1; j++)
        {
          var x = modul[j];
          document.write("<td ALIGN='LEFT' VALIGN='TOP'>");
          document.write("<table width='150' BORDER='0' CELLSPACING='0' CELLPADDING='0' >");
          document.write("<tr>");
          document.write("<td>"+evara[a][x]+"</td>");
          document.write("</tr>");
          document.write("<tr>");
          document.write("<TD ALIGN='left'><input TYPE='RADIO' NAME='radiox' VALUE='"+j+"'>"+evara[a][x]+"</td>");
          document.write("</tr>");
          document.write("<tr>");
          document.write("<td ALIGN='center'>"+eval(round(eval(round(parseFloat(pris[a][x])))/eval(round(parseFloat(kurs[va])))))+" "+valuta[va]+"</td>");
          document.write("</tr>");
          document.write("</table>");
          document.write("</td>");
          if(j==eval(evara[a].length%4))
          {
            document.write("</tr>");
            if(j>4)
            {
              document.write("<tr>");
            }
          }
        }
       }
      else
       {
          document.write("<td ALIGN='LEFT' VALIGN='TOP'>Single designs are not available for sale </td>");
       }
    }


   function addtoBest()                             //brcol0.htm
  {
    if (parent.loaded)
    {
        setCookie("singel", 0, 120);
        parent.topcontent.location.reload(true);
    }
    else
    {
        window.location = 'col0frme.htm';
    }
  }


  function round(num) {                              //brcol0.htm
    return Math.round(num*100)/100;
  }

  function runX()                                   //brcol0.htm
  {
    var radiox = new Array(20);
    for(i=0;i<=radiox.length-1;i++)
    {
      if(document.brcol0xbuy.radiox[i].checked == true)
      {
        var hitta = eval(i+1);
        break;
      }
    }
    var z = getCrumb("singelrad");
    var zy = z.split(",");
    var sval = zy[hitta];
    setCookie("singel" ,sval ,120);
    if (parent.loaded)
    {
       parent.topcontent.location.reload(true);
    }
    else
    {
        window.location = 'col0frme.htm';
    }
  }
  


     function bytvaluta()                  //brcol0.htm
     {
       for (n=0; n<=valuta.length-1; n++)
       {
         if (document.brcol0buy.selVal.options.selectedIndex >=1)
         {
           if (document.brcol0buy.selVal.options.selectedIndex == [n+1])
           {
             var valutaval = eval(n);
             setCookie("valutax", valutaval, 120);
             window.location.reload(true);
             top.menu.location.reload(true);                       //
           }
         }
       }
     }

      function skrivKat(which)                            //v4menye.htm
   {
     var kat1;
     var y = ecatString[which];
     var kat = y.split(",");
     for (var x=0; x <= kat.length-1; x=x+1)
     {
       for (var j=0; j <= ecat.length-1; j++)
       {
         if (kat[x] == j)
         {
          // var kateg = j;
           document.write("<TR>");
           document.write("<TD><b><input type='RADIO' NAME='radioe' Value='"+j+"'>"+ecat[j]+"</B></TD>");
           document.write("</TR>");
         }
       }
     }
    }

  function sidbyt()                                      //v4menye.htm
  {
    radio1 = new Array(40);
    for (i=0; i<=radio1.length-1; i++)
    {
      if (document.katmenu.radio1[i].checked == true)
      parent.hogra_rutan.location='catcol'+i+'.htm';
      break;
    }
  }
  
   function byt(which)                                  //alcatmen.htm  , alcatme.htm
  {
  var varuindex =which;
   setCookie("varax", varuindex, 120);
   parent.parent.doldmenu.location.reload(true);
    parent.hogra_rutan.location="brcol"+which+".htm";

    window.location='alcatme.htm';
  }

 function Toggle(item) {                         //alcatmen.htm , alcatme.htm
   obj=document.getElementById(item);
   visible=(obj.style.display!="none")
   key=document.getElementById("x" + item);
   if (visible) {
     obj.style.display="none";
     key.innerHTML="[+]";
   } else {
      obj.style.display="block";
      key.innerHTML="[-]";
   }
}

 function skrivKat()                                   //alcatmen.htm
  {
    if (i == 's' || 'undefined')
    {
      document.write("<TD  WIDTH='120' VALIGN='BOTTOM'><FONT CLASS='art5'>The navigation tree below allows you to expand and collapse the categories to see their collections.</TD>");
    }
    else
    {
      document.write("<TD>This collection is especially useful for occasions listed below. Click any circle and press the button to see more collections designed for these occasions.</TD>");
      document.write("</TR>");
      var i = getCrumb("varax");
     // var kat1;
      var y = ecatString[i];
      var kat = y.split(",");
      for (var x=0; x <= kat.length-1; x=x+1)
      {
        for (var j=0; j <= ecat.length-1; j++)
        {
          if (kat[x] == j)
          {
          //  var kateg = j;
             document.write("<TR>");
             document.write("<TD><B><input type='RADIO' NAME='radio1' Value='"+j+"'>"+ecat[j]+"</B></TD>");
             document.write("</TR>");
           }
           }
           }
      document.write("<TR>");
      document.write("<td WIDTH='120' ALIGN='center'><input TYPE='button' VALUE='Show' onClick='sidbyt();'> </TD>");
    }
   }

    function skrivKat()                               //alcatme.htm
  {
      document.write("<TD class='art5'>This collection is especially useful for occasions listed below. Click any circle and press the button to see more collections designed for these occasions.</TD>");
      document.write("</TR>");
      var i = getCrumb("varax");
     // var kat1;
      var y = ecatString[i];
      var kat = y.split(",");
      for (var x=0; x <= kat.length-1; x=x+1)
      {
        for (var j=0; j <= ecat.length-1; j++)
        {
          if (kat[x] == j)
          {
          //  var kateg = j;
             document.write("<TR>");
             document.write("<TD><B><input type='RADIO' NAME='radio1' Value='"+j+"'>"+ecat[j]+"</B></TD>");
             document.write("</TR>");
           }
           }
           }
      document.write("<TR>");
      document.write("<th WIDTH='120' ALIGN='center'><input TYPE='button' VALUE='Show' onClick='sidbyt();'> </th>");

   }

