<!--

 var bName = navigator.appName;
 var bVer = parseInt(navigator.appVersion);
 var NS6 = (bName == "Netscape" && bVer >= 5);
 var NS4 = (bName == "Netscape" && bVer >= 4 && bVer < 5);
 var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
 var IE5 = (bName == "Microsoft Internet Explorer" && bVer >= 5);
 var IE6 = (bName == "Microsoft Internet Explorer" && bVer >= 6);
 var NS3 = (bName == "Netscape" && bVer < 4);
 var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
 var onHMenuLayer;
 var onHMenuLayerColor;
 var onMenuLayer;
 var onMenuLayerColor;
 var onIMenuLayer;
 var onLayer;
 var onLayerColor;
 var onLayer2;
 var onLayerColor2;
 var onLayer3;
 var onLayerColor3;
 var onMainMenu;
 var onMainMenuImg;
 var onSubMenu;
 var onSubMenuImg;
 var onSub2Menu;
 var onSub2MenuImg;
 var onHMenuLayerColor;
 var prodSort;
 var prodParam1;
 window.onerror = null;
 if (NS4 || IE4 || NS6) {
         if (navigator.appName == "Netscape" && !document.getElementById){
         layerStyleRef="layer.";
         layerRef="document.layers";
         styleSwitch="";
         layerVis="show";
         layerHid="hide";
         }
         else if (!document.all && document.getElementById) {
         layerStyleRef="layer.style.";
         layerRef="document.getElementById";
         styleSwitch=".style";
         layerVis="visible";
         layerHid="hidden";
         }
         else {
         layerStyleRef="layer.style.";
         layerRef="document.all";
         styleSwitch=".style";
         layerVis="visible";
         layerHid="hidden";
         }
 }
// onLayer2="sz7";
// onLayer2="#ff0000";


// Table data -- an array of objects
var pd = new Array();
var arrSorted = new Array();
var lNuSortedElements;

document.write('<script src="pdata.js"><\/script>');

function init()
{
        var prm = location.search.substring(1,3);
        var prm2 = location.search.substring(3,6);
        var t = 0;
        if(prm == 04)
        {
                if(prm2==000)
                {
                        top.mainframe.location.href='bestall1.htm';
                        setHMenuBGColor('m4','#68b8e8');
                }
        }
        else if(prm == 11)
        {
//                alert(prm2);
//                setHMenuBGColor('m11','#68b8e8');
                t=Number(prm2);
//                alert(t);
                top.mainframe.location.href='galleri'+t+'.htm';
        }
        else if(prm == 40)
        {
                t=Number(prm2);
                top.mainframe.location.href='svar.htm';
        }
        else if(prm == 50)
        {
                t=Number(prm2);
                window.open('massa050531.htm','newwin','toolbar=no,status=no,menubar=no,resizable=no,width=660,height=470');
//                top.mainframe.location.href='massa050531.htm';
        }
        else
        {
                setHMenuBGColor('m1','#68b8e8');
        }
}

function toggleMainMenu(id,picid)
{
        if(id.style.display=="none")
        {
                if(onMainMenu)
                {
                        onMainMenu.style.display="none";
                         onMainMenuImg.src="images/plus.gif";
                }

                id.style.display="block";
                 picid.src="images/minus.gif";

                onMainMenu=id;
                onMainMenuImg=picid;

        }
        else
        {
                id.style.display="none";
                picid.src="images/plus.gif";
        }
}

function toggleSubMenu(id,picid)
{
        if(id.style.display=="none")
        {
                if(onSubMenu)
                {
                        onSubMenu.style.display="none";
                         onSubMenuImg.src="images/plus.gif";
                }

                id.style.display="block";
                 picid.src="images/minus.gif";

                onSubMenu=id;
                onSubMenuImg=picid;

        }
        else
        {
                id.style.display="none";
                picid.src="images/plus.gif";
        }
}

function toggleSub2Menu(id,picid)
{
        if(id.style.display=="none")
        {
                if(onSub2Menu)
                {
                        onSub2Menu.style.display="none";
                         onSub2MenuImg.src="images/plus.gif";
                }

                id.style.display="block";
                 picid.src="images/minus.gif";

                onSub2Menu=id;
                onSub2MenuImg=picid;

        }
        else
        {
                id.style.display="none";
                picid.src="images/plus.gif";
        }
}

function showList(pCat,pOption1,pOption2,pOptionSort)
{
  var si1;
  var si2;
  var siSort;
  var opt1;
  var opt2;
  var optSort;
  var minSize;
  var maxSize;
  var t;
  var n = 0;
  var temp;
        var opt1All = 0;
        var opt2All = 0;
  arrSorted[0] = {c:"", a1:"", a2:"", a3:"", an:"", b:"", n:"", p:"", pic:""};
        if(pOption1)
        {
          si1=pOption1.selectedIndex;
          opt1=pOption1.options[si1].value;
        }
        else
        {
                opt1="";
        }
        if(pOption2)
        {
          si2=pOption2.selectedIndex;
          opt2=pOption2.options[si2].value;
        }
        else
        {
                opt2="";
        }
        if(pOption2)
        {
          siSort=pOptionSort.selectedIndex;
          optSort=pOptionSort.options[siSort].value;
        }
        else
        {
                optSort="";
        }
  lNuSortedElements=0;
        if(opt1=="Alla")
        {
                opt1All=1;
        }
        if(opt2=="Alla")
        {
                opt2All=1;
        }
  for (var i = 0; i < pd.length; i++)
  {
                if(pCat==pd[i].c)
                {
                        if(opt1All==1||opt1==pd[i].a1)
                        {
                                if(opt2All==1||pd[i].b==opt2)
                                {
                                        arrSorted[lNuSortedElements]=pd[i]; lNuSortedElements++;
                                }
                        }
                }
        }

        // Sort
        if(optSort=="Ingen")
        {
        }
        else if(optSort=="Fabrikat")
        {
                sortByB();
        }
        else if(optSort=="Pris")
        {
                sortByP();
        }
        createTable("Produktlista - "+opt1+" - "+opt2+" - "+optSort);

        top.mainframe.productlistframe.document.close();
}

function sortByS()
{
        var temp;
  for (var i = 0; i < lNuSortedElements-1; i++)
  {
   for (var j = i+1; j < lNuSortedElements; j++)
   {
     if(arrSorted[j].a2.valueOf()<arrSorted[i].a2.valueOf())
     {
       temp=arrSorted[i];
       arrSorted[i]=arrSorted[j];
       arrSorted[j]=temp;
     }
         }
        }
}

function sortByB()
{
        var temp;
  for (var i = 0; i < lNuSortedElements-1; i++)
  {
   for (var j = i+1; j < lNuSortedElements; j++)
   {
     if(arrSorted[j].b<arrSorted[i].b)
     {
       temp=arrSorted[i];
       arrSorted[i]=arrSorted[j];
       arrSorted[j]=temp;
     }
         }
        }
}

function sortByP()
{
        var temp;
  for (var i = 0; i < lNuSortedElements-1; i++)
  {
   for (var j = i+1; j < lNuSortedElements; j++)
   {
     if(parseFloat(arrSorted[j].p.valueOf())<parseFloat(arrSorted[i].p.valueOf()))
     {
       temp=arrSorted[i];
       arrSorted[i]=arrSorted[j];
       arrSorted[j]=temp;
     }
         }
        }
}

function createTable(title)
{
        top.mainframe.productlistframe.document.writeln('<body bgcolor="#ffffff">');
        top.mainframe.productlistframe.document.writeln('<style>');
        top.mainframe.productlistframe.document.writeln('.plink {COLOR: #6060c0; FONT-FAMILY: verdana, arial, helvetica, '+"'"+'sans serif'+"'"+'; FONT-SIZE: 8pt; TEXT-DECORATION: none}');
        top.mainframe.productlistframe.document.writeln('.plink:hover {COLOR: #0000e0; FONT-FAMILY: verdana, arial, helvetica, '+"'"+'sans serif'+"'"+'; FONT-SIZE: 8pt; TEXT-DECORATION: underline}');
        top.mainframe.productlistframe.document.writeln('.nlink {COLOR: #4080f0; FONT-FAMILY: verdana, arial, helvetica, '+"'"+'sans serif'+"'"+'; FONT-SIZE: 9pt; TEXT-DECORATION: none}');
        top.mainframe.productlistframe.document.writeln('.nlink:hover {COLOR: #3040d0; FONT-FAMILY: verdana, arial, helvetica, '+"'"+'sans serif'+"'"+'; FONT-SIZE: 9pt; TEXT-DECORATION: underline}');
        top.mainframe.productlistframe.document.writeln('');
        top.mainframe.productlistframe.document.writeln('</style>');
        top.mainframe.productlistframe.document.writeln('<table style="left: 0; top: 0; width: 100%; height: 100%; position: relative;" width="1" border="0" cellspacing="0" cellpadding="0" height="40" bgcolor="#ffffff">');
        top.mainframe.productlistframe.document.writeln(' <tr valign="top">');
        top.mainframe.productlistframe.document.writeln(' <td width=100%>');
        top.mainframe.productlistframe.document.writeln('  <table width=100% height=20 cellpadding=2 cellspacing=0 border=0 align=center bgcolor="#000000">');
        top.mainframe.productlistframe.document.writeln('   <tbody bgcolor="#ffffff">');
        top.mainframe.productlistframe.document.writeln('    <table width=100% height=1 cellSpacing=0 cellPadding=2 align=center border=0 bgcolor="#000000">');
        top.mainframe.productlistframe.document.writeln('     <tbody bgcolor="#ffffff">');
        top.mainframe.productlistframe.document.writeln('      <tr style="COLOR: #000000; FONT-FAMILY: verdana, arial, helvetica, '+"'"+'sans serif'+"'"+'; FONT-SIZE: 9pt; TEXT-DECORATION: none">');
        if(lNuSortedElements==1)
        {
                top.mainframe.productlistframe.document.writeln('       <td width=100% bgcolor="#e0e0e0"><B><P>'+title+'  ('+lNuSortedElements+" produkt listad.)"+'</P></B></td>');
        }
        else
        {
                top.mainframe.productlistframe.document.writeln('       <td width=100% bgcolor="#e0e0e0"><B><P>'+title+'  ('+lNuSortedElements+" produkter listade.)"+'</P></B></td>');
        }
        top.mainframe.productlistframe.document.writeln('      </tr>');
        top.mainframe.productlistframe.document.writeln('     </tbody>');
        top.mainframe.productlistframe.document.writeln('    </table>');
        top.mainframe.productlistframe.document.writeln('    <table width=100% height=24 cellSpacing=1 cellPadding=4 align=center border=0 bgcolor="#e0e0e0">');
        top.mainframe.productlistframe.document.writeln('     <tbody bgcolor="#ffffff">');

  for (var i = 0; i < lNuSortedElements; i++)
  {
                top.mainframe.productlistframe.document.writeln('<tr style="COLOR: #000000; FONT-FAMILY: verdana, arial, helvetica, '+"'"+'sans serif'+"'"+'; FONT-SIZE: 8pt; TEXT-DECORATION: none">');
                top.mainframe.productlistframe.document.writeln(' <td width=45% bgcolor="#fafafa">');
                top.mainframe.productlistframe.document.writeln('  <table width=100% height=1 cellSpacing=3 cellPadding=0 align=center border=0 bgcolor="#ffffff">');
                top.mainframe.productlistframe.document.writeln('   <tbody bgcolor="#ffffff">');
                top.mainframe.productlistframe.document.writeln('    <tr style="COLOR: #000000; FONT-FAMILY: verdana, arial, helvetica, '+"'"+'sans serif'+"'"+'; FONT-SIZE: 8pt; TEXT-DECORATION: none">');
                top.mainframe.productlistframe.document.writeln('     <td width=1 height=1 bgcolor="#ffffff">');
//                top.mainframe.productlistframe.document.writeln('      <a class="nlink" href="javascript:;" onClick="">');
                top.mainframe.productlistframe.document.writeln('      <a class="nlink" href="javascript:;" onClick="window.open('+"'"+arrSorted[i].i+"'"+','+"'"+'newwin'+"'"+','+"'"+'toolbar=no,status=no,menubar=no,resizable=no,width=590,height=350'+"'"+')">');
                top.mainframe.productlistframe.document.writeln('       <IMG align=left border=0 src="images/products/t'+arrSorted[i].pic+'"'+' width=64 height=64>');
                top.mainframe.productlistframe.document.writeln('      </a>');
                top.mainframe.productlistframe.document.writeln('     </td>');
                top.mainframe.productlistframe.document.writeln('     <td width=100% height=64 bgcolor="#ffffff">');
//                top.mainframe.productlistframe.document.writeln('      <a class="nlink" href="javascript:;" onClick="">');
                top.mainframe.productlistframe.document.writeln('      <a class="nlink" href="javascript:;" onClick="window.open('+"'"+arrSorted[i].i+"'"+','+"'"+'newwin'+"'"+','+"'"+'toolbar=no,status=no,menubar=no,resizable=no,width=590,height=350'+"'"+')">');
                top.mainframe.productlistframe.document.writeln('       <font style="FONT-FAMILY: verdana; FONT-SIZE: 8pt"><b>'+arrSorted[i].b+' '+arrSorted[i].n+'</b></font><br>');
                top.mainframe.productlistframe.document.writeln('      </a>');
                top.mainframe.productlistframe.document.writeln('      <font size=1><b>Art.nr: </b>'+arrSorted[i].an+'</font><br>');

                if(arrSorted[i].a1!='') {top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');}
                if(arrSorted[i].a3!='') {top.mainframe.productlistframe.document.writeln('      <font size=1><b>Läst: </b>'+arrSorted[i].a3+'</font><br>');}
                if(arrSorted[i].a4!='') {top.mainframe.productlistframe.document.writeln('      <font size=1><b>Längd: </b>'+arrSorted[i].a4+'</font><br>');}
                if(arrSorted[i].a5!='') {top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a5+'</font><br>');}
                if(arrSorted[i].a6!='') {top.mainframe.productlistframe.document.writeln('      <font size=1><b>Styvhet: </b>'+arrSorted[i].a6+'</font><br>');}
                if(arrSorted[i].a7!='') {top.mainframe.productlistframe.document.writeln('      <font size=1><b>Blad: </b>'+arrSorted[i].a7+'</font><br>');}
//                if(arrSorted[i].c=='4_2')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                }
//                if(arrSorted[i].c=='4_3')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                }
//                if(arrSorted[i].c=='4_4')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='7_3')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='11_1')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='3_1')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='5_1')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='2_4')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Blad: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='2_1')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Styvhet: </b>'+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Blad: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='2_3')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Styvhet: </b>'+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Längd: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='2_2')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Styvhet: </b>'+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Blad: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='7_1')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='1_1')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Läst: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='7_2')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='10_1')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='10_6')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='10_3')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='10_7')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Blad: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='10_4')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                }
//                if(arrSorted[i].c=='10_9')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='10_2')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='10_5')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Läst: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='10_8')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='4_1')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                }
//                if(arrSorted[i].c=='6_1')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='8_1')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }
//                if(arrSorted[i].c=='9_1')
//                {
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Storlek: </b>'+arrSorted[i].a1+' '+arrSorted[i].a2+'</font><br>');
//                        top.mainframe.productlistframe.document.writeln('      <font size=1><b>Färg: </b>'+arrSorted[i].a3+'</font><br>');
//                }

                top.mainframe.productlistframe.document.writeln('      <font size=1 color="#000000"><b>Övrigt:</b>'+arrSorted[i].st+'</font><br>');
//                top.mainframe.productlistframe.document.writeln('      <br>');
                if(arrSorted[i].p!='')
                {
                        top.mainframe.productlistframe.document.writeln('      <font size=2><p align="right"><B>Pris: '+arrSorted[i].p+'</B></p></font>');
                }
                else
                {
                        top.mainframe.productlistframe.document.writeln('      <font size=2><p align="right">');
                        top.mainframe.productlistframe.document.writeln('      <B>Pris:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</B></p></font>');
                }
                top.mainframe.productlistframe.document.writeln('     </td>');
                top.mainframe.productlistframe.document.writeln('    </tr>');
                top.mainframe.productlistframe.document.writeln('   </tbody>');
                top.mainframe.productlistframe.document.writeln('  </table>');
                top.mainframe.productlistframe.document.writeln(' </td>');
                top.mainframe.productlistframe.document.writeln('</tr>');
        }
        top.mainframe.productlistframe.document.writeln('      </tbody>');
        top.mainframe.productlistframe.document.writeln('     </table>');
        if(lNuSortedElements==0)
        {
                        top.mainframe.productlistframe.document.writeln('      <font face="Verdana" size=2><p align="left">');
                        top.mainframe.productlistframe.document.writeln('      &nbsp;Inga produkter i denna kategori med valda sökkriterier. (Produkter är under inläggning)</p></font>');
        }
        top.mainframe.productlistframe.document.writeln('    </tbody>');
        top.mainframe.productlistframe.document.writeln('   </table>');
        top.mainframe.productlistframe.document.writeln('  </td>');
        top.mainframe.productlistframe.document.writeln(' </tr>');
        top.mainframe.productlistframe.document.writeln('</table>');
        top.mainframe.productlistframe.document.writeln('</body>');
}

function openProductMenu(menu)
{
                if(menu == '')
    {
     top.mainframe.brandlistframe.location.href='productinfo.htm';
     top.mainframe.productlistframe.location.href='productlist.htm';
    }
                else
                {
                        showList(menu,top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
}

function openProductMenu2(menu)
{
//                        top.brandlistframe.location.href='productinfo1.htm';
//                        showList("Skridskor",top.brandlistframe.myform.mydropdown1,top.brandlistframe.myform.mydropdown2,top.brandlistframe.myform.dropdownsort);
//     top.brandlistframe.location.href='productlist2.htm';
//     top.productlistframe.location.href='productinfo2.htm';

                if(menu == 0)
    {
     top.mainframe.brandlistframe.location.href='productinfo.htm';
     top.mainframe.productlistframe.location.href='productlist.htm';
    }
                if(menu == 1001)
    {
                        showList("1_1",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
    }
                if(menu == 2001)
    {
                        showList("2_1",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 2002)
    {
                        showList("2_2",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 2003)
    {
                        showList("2_3",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 2004)
    {
                        showList("2_4",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 3001)
    {
                        showList("3_1",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 4001)
    {
                        showList("4_1",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 4002)
    {
                        showList("4_2",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 4003)
    {
                        showList("4_3",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 4004)
    {
                        showList("4_4",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 5001)
    {
                        showList("5_1",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 6001)
    {
                        showList("6_1",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 7001)
    {
                        showList("7_1",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 7002)
    {
                        showList("7_2",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 7003)
    {
                        showList("7_3",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 8001)
    {
                        showList("8_1",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu == 9001)
    {
                        showList("9_1",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu==10001)
                {
                        showList("10_1",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu==10002)
                {
                        showList("10_2",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu==10003)
                {
                        showList("10_3",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu==10004)
                {
                        showList("10_4",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu==10005)
                {
                        showList("10_5",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu==10006)
                {
                        showList("10_6",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu==10007)
                {
                        showList("10_7",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu==10008)
                {
                        showList("10_8",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu==10009)
                {
//                        alert("test");
                        showList("10_9",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu==11001)
                {
                        showList("11_1",top.mainframe.brandlistframe.myform.mydropdown1,top.mainframe.brandlistframe.myform.mydropdown2,top.mainframe.brandlistframe.myform.dropdownsort);
                }
                if(menu==12001)
                {
                        showList("12_1","","","");
                }
}

function swapPic(loc,picNew)
{
  if(NS4)
  {
   document.layers[loc].src=picNew;
  } else if(IE4)
  {
   document.all[loc].src=picNew;
  } else if(IE5 || IE6)
  {
   document.getElementById(loc).src=picNew;
  }
}

// RESTORE BACKGROUND COLOR
function restoreMenuBGColor()
{
  if (NS6){
    eval('document.getElementById("'+onMenuLayer+'").style.backgroundColor="'+onMenuLayerColor+'"');
  }
  else if (NS4){
    eval('window.document.layers["'+onMenuLayer+'"].document.bgColor="'+onMenuLayerColor+'"');
        eval('window.document.layers["'+onMenuLayer+'"].saveColor="'+onMenuLayerColor+'"');
  }
  else if (IE4){
    eval('document.all.'+onMenuLayer+'.style.backgroundColor="'+onMenuLayerColor+'"');
  }
}

// SET BACKGROUND COLOR
function setMenuBGColor(layer, color)
{
  if(onMenuLayer)
  {
   restoreMenuBGColor();
  }
  if (NS6){
    eval('onLayerColor=document.getElementById("'+layer+'").style.backgroundColor');
    eval('document.getElementById("'+layer+'").style.backgroundColor="'+color+'"');
  }
  else if (NS4){
    eval('window.document.layers["'+layer+'"].document.bgColor="'+color+'"');
        eval('window.document.layers["'+layer+'"].saveColor="'+color+'"');
  }
  else if (IE4){
    eval('onMenuLayerColor=document.all.'+layer+'.style.backgroundColor');
    eval('document.all.'+layer+'.style.backgroundColor="'+color+'"');
  }
        layer.style.visibility=((layer.style.visibility=="hidden")? "visible" : "hidden")

  onMenuLayer=layer;
}

// RESTORE MENU IMAGE
function restoreMenuImage()
{
  if (NS6){
    eval('document.getElementById("'+onMenuILayer+'").style.backgroundColor="'+onMenuILayerColor+'"');
  }
  else if (NS4){
    eval('window.document.layers["'+onMenuILayer+'"].document.bgColor="'+onMenuILayerColor+'"');
        eval('window.document.layers["'+onMenuILayer+'"].saveColor="'+onMenuILayerColor+'"');
  }
  else if (IE4){
    eval('document.all.'+onMenuILayer+'.style.backgroundColor="'+onMenuILayerColor+'"');
  }
}

// SET MENU IMAGE
function setMenuImage(layer)
{
        if (onIMenuLayer)
        {
                document.getElementById(onIMenuLayer).style.visibility="hidden";
        }
        document.getElementById(layer).style.visibility="visible";

  onIMenuLayer=layer;
}

// RESTORE BACKGROUND COLOR
function restoreHMenuBGColor()
{
  if (NS6){
    eval('document.getElementById("'+onHMenuLayer+'").style.backgroundColor="'+onHMenuLayerColor+'"');
  }
  else if (NS4){
    eval('window.document.layers["'+onHMenuLayer+'"].document.bgColor="'+onHMenuLayerColor+'"');
        eval('window.document.layers["'+onHMenuLayer+'"].saveColor="'+onHMenuLayerColor+'"');
  }
  else if (IE4){
    eval('document.all.'+onHMenuLayer+'.style.backgroundColor="'+onHMenuLayerColor+'"');
  }
}

// SET BACKGROUND COLOR
function setHMenuBGColor(layer, color)
{
  if(onHMenuLayer)
  {
   restoreHMenuBGColor();
  }
  if (NS6){
    eval('onHLayerColor=document.getElementById("'+layer+'").style.backgroundColor');
    eval('document.getElementById("'+layer+'").style.backgroundColor="'+color+'"');
  }
  else if (NS4){
    eval('window.document.layers["'+layer+'"].document.bgColor="'+color+'"');
        eval('window.document.layers["'+layer+'"].saveColor="'+color+'"');
  }
  else if (IE4){
    eval('onHMenuLayerColor=document.all.'+layer+'.style.backgroundColor');
    eval('document.all.'+layer+'.style.backgroundColor="'+color+'"');
  }
  onHMenuLayer=layer;
}

// RESTORE BACKGROUND COLOR
function restoreBGColor()
{
  if (NS6){
    eval('document.getElementById("'+onLayer+'").style.backgroundColor="'+onLayerColor+'"');
  }
  else if (NS4){
    eval('window.document.layers["'+onLayer+'"].document.bgColor="'+onLayerColor+'"');
        eval('window.document.layers["'+onLayer+'"].saveColor="'+onLayerColor+'"');
  }
  else if (IE4){
    eval('document.all.'+onLayer+'.style.backgroundColor="'+onLayerColor+'"');
  }
}

// SET BACKGROUND COLOR
function setBGColor(layer, color)
{
  if(onLayer)
  {
   restoreBGColor();
  }
  if (NS6){
    eval('onLayerColor=document.getElementById("'+layer+'").style.backgroundColor');
    eval('document.getElementById("'+layer+'").style.backgroundColor="'+color+'"');
  }
  else if (NS4){
    eval('window.document.layers["'+layer+'"].document.bgColor="'+color+'"');
        eval('window.document.layers["'+layer+'"].saveColor="'+color+'"');
  }
  else if (IE4){
    eval('onLayerColor=document.all.'+layer+'.style.backgroundColor');
    eval('document.all.'+layer+'.style.backgroundColor="'+color+'"');
  }
  onLayer=layer;
}

// -->

