//29.5.2006
function sort_type_a(Id)
 {
  document.getElementById(Id).SortColumn="+Type";
  document.getElementById(Id).Reset();
  }
 function sort_type_d(Id)
 {
   document.getElementById(Id).SortColumn="-Type";
   document.getElementById(Id).Reset();
 }
 function sort_description_a(Id)
 {
   document.getElementById(Id).SortColumn="+Description";
   document.getElementById(Id).Reset();
 }
 function sort_description_d(Id)
 {
   document.getElementById(Id).SortColumn="-Description";
   document.getElementById(Id).Reset();
 }
function CSeznam ()
{
  // Metody
  this.PripojIkony = PripojIkony;
  this.Skryj = Skryj;
  this.Zobraz = Zobraz;

  function PripojIkony ()
  {
    var ul, L;
    var li = document.all.tags("li");
    for (i=0; i<li.length; i++)
    { L = li[i];
      ul = L.children.tags("ul");
      if (ul.length > 0) // v prvku li je aspon jeden prvek ul
        {
         L.insertAdjacentHTML("afterBegin","<img onclick='Seznam.Zobraz();' src='../../ulI.gif' />");
         ul.item(0).style.display = 'none';
        }
      else
        L.insertAdjacentHTML("afterBegin","<img src='../../li.gif' />");
      }  
  }
   
   function Skryj()
  {
    var Obr=window.event.srcElement;
    var P = Obr.parentElement.children.tags("ul").item(0);
    window.event.srcElement.parentElement.children.tags("ul").item(0).style.display = 'none';
    window.event.srcElement.src='../../ulI.gif';
    window.event.srcElement.onclick=Seznam.Zobraz;
  }
  
  function Zobraz()
  {
    var Obr=window.event.srcElement;
    var P = Obr.parentElement.children.tags("UL").item(0);
    P.style.display = '';
    Obr.src='../../ulV.gif';
    Obr.onclick=Seznam.Skryj;
  }
}
// Tvorba třídy Seznam
var Seznam = new CSeznam ();


// navigation menu 
var nav = new Array(64)                
nav[0] = "i_index"
nav[1] = "i_active"
nav[2] = "i_passive" 
nav[3] = "i_electromechanics"
nav[4] = "i_manufacturers"
nav[5] = "i_about_us"
nav[6] = "i_contact"
nav[7] = "i_terms"
nav[8] = "a_index"
nav[9] = "a_active"
nav[10] = "a_passive" 
nav[11] = "a_electromechanics"
nav[12] = "a_manufacturers"
nav[13] = "a_about_us"
nav[14] = "a_contact"
nav[15] = "a_terms"
nav[16] = "p_index"
nav[17] = "p_active"
nav[18] = "p_passive" 
nav[19] = "p_electromechanics"
nav[20] = "p_manufacturers"
nav[21] = "p_about_us"
nav[22] = "p_contact"
nav[23] = "p_terms"
nav[24] = "e_index"
nav[25] = "e_active"
nav[26] = "e_passive" 
nav[27] = "e_electromechanics"
nav[28] = "e_manufacturers"
nav[29] = "e_about_us"
nav[30] = "e_contact"
nav[31] = "e_terms"
nav[32] = "m_index"
nav[33] = "m_active"
nav[34] = "m_passive" 
nav[35] = "m_electromechanics"
nav[36] = "m_manufacturers"
nav[37] = "m_about_us"
nav[38] = "m_contact"
nav[39] = "m_terms"
nav[40] = "ab_index"
nav[41] = "ab_active"
nav[42] = "ab_passive" 
nav[43] = "ab_electromechanics"
nav[44] = "ab_manufacturers"
nav[45] = "ab_about_us"
nav[46] = "ab_contact"
nav[47] = "ab_terms"
nav[48] = "c_index"
nav[49] = "c_active"
nav[50] = "c_passive" 
nav[51] = "c_electromechanics"
nav[52] = "c_manufacturers"
nav[53] = "c_about_us"
nav[54] = "c_contact"
nav[55] = "c_terms"
nav[56] = "t_index"
nav[57] = "t_active"
nav[58] = "t_passive" 
nav[59] = "t_electromechanics"
nav[60] = "t_manufacturers"
nav[61] = "t_about_us"
nav[62] = "t_contact"
nav[63] = "t_terms"

var anchor = new Array(64)        
anchor[0] = "index.html"
anchor[1] = "cesky/active/active.html"
anchor[2] = "cesky/passive/passive.html"
anchor[3] = "cesky/electromechanics/electromechanics.html"
anchor[4] = "cesky/manufacturers/manufacturers.html"
anchor[5] = "cesky/about_us/about_us.html"
anchor[6] = "cesky/contact/contact.html"
anchor[7] = "cesky/terms/terms.html"
anchor[8] = "../../index.html"
anchor[9] = "active.html"
anchor[10] = "../passive/passive.html" 
anchor[11] = "../electromechanics/electromechanics.html"
anchor[12] = "../manufacturers/manufacturers.html"
anchor[13] = "../about_us/about_us.html"
anchor[14] = "../contact/contact.html"
anchor[15] = "../terms/terms.html"
anchor[16] = "../../index.html"
anchor[17] = "../active/active.html"
anchor[18] = "passive.html" 
anchor[19] = "../electromechanics/electromechanics.html"
anchor[20] = "../manufacturers/manufacturers.html"
anchor[21] = "../about_us/about_us.html"
anchor[22] = "../contact/contact.html"
anchor[23] = "../terms/terms.html"
anchor[24] = "../../index.html"
anchor[25] = "../active/active.html"
anchor[26] = "../passive/passive.html" 
anchor[27] = "electromechanics.html"
anchor[28] = "../manufacturers/manufacturers.html"
anchor[29] = "../about_us/about_us.html"
anchor[30] = "../contact/contact.html"
anchor[31] = "../terms/terms.html"
anchor[32] = "../../index.html"
anchor[33] = "../active/active.html"
anchor[34] = "../passive/passive.html" 
anchor[35] = "../electromechanics/electromechanics.html"
anchor[36] = "manufacturers.html"
anchor[37] = "../about_us/about_us.html"
anchor[38] = "../contact/contact.html"
anchor[39] = "../terms/terms.html"
anchor[40] = "../../index.html"
anchor[41] = "../active/active.html"
anchor[42] = "../passive/passive.html" 
anchor[43] = "../electromechanics/electromechanics.html"
anchor[44] = "../manufacturers/manufacturers.html"
anchor[45] = "about_us.html"
anchor[46] = "../contact/contact.html"
anchor[47] = "../terms/terms.html"
anchor[48] = "../../index.html"
anchor[49] = "../active/active.html"
anchor[50] = "../passive/passive.html" 
anchor[51] = "../electromechanics/electromechanics.html"
anchor[52] = "../manufacturers/manufacturers.html"
anchor[53] = "../about_us/about_us.html"
anchor[54] = "contact.html"
anchor[55] = "../terms/terms.html"
anchor[56] = "../../index.html"
anchor[57] = "../active/active.html"
anchor[58] = "../passive/passive.html" 
anchor[59] = "../electromechanics/electromechanics.html"
anchor[60] = "../manufacturers/manufacturers.html"
anchor[61] = "../about_us/about_us.html"
anchor[62] = "../contact/contact.html"
anchor[63] = "terms.html"


function overLocationId(Obj)
{
var x = Obj.id
Obj.className='hmenu';
windowStatus(x)
}

function windowStatus(y)
{
switch (y)
{
case nav[0]:
window.status = anchor[0];
break
case nav[1]:
window.status = anchor[1];
break
case nav[2]:
window.status = anchor[2];
break
case nav[3]:
window.status = anchor[3];
break
case nav[4]:
window.status = anchor[4];
break
case nav[5]:
window.status = anchor[5];
break
case nav[6]:
window.status = anchor[6];
break
case nav[7]:
window.status = anchor[7];
break
case nav[8]:
window.status = anchor[8];
break
case nav[9]:
window.status = anchor[9];
break
case nav[10]:
window.status = anchor[10];
break
case nav[11]:
window.status = anchor[11];
break
case nav[12]:
window.status = anchor[12];
break
case nav[13]:
window.status = anchor[13];
break
case nav[14]:
window.status = anchor[14];
break
case nav[15]:
window.status = anchor[15];
break
case nav[16]:
window.status = anchor[16];
break
case nav[17]:
window.status = anchor[17];
break
case nav[18]:
window.status = anchor[18];
break
case nav[19]:
window.status = anchor[19];
break
case nav[20]:
window.status = anchor[20];
break
case nav[21]:
window.status = anchor[21];
break
case nav[22]:
window.status = anchor[22];
break
case nav[23]:
window.status = anchor[23];
break
case nav[24]:
window.status = anchor[24];
break
case nav[25]:
window.status = anchor[25];
break
case nav[26]:
window.status = anchor[26];
break
case nav[27]:
window.status = anchor[27];
break
case nav[28]:
window.status = anchor[28];
break
case nav[29]:
window.status = anchor[29];
break
case nav[30]:
window.status = anchor[30];
break
case nav[31]:
window.status = anchor[31];
break
case nav[32]:
window.status = anchor[32];
break
case nav[33]:
window.status = anchor[33];
break
case nav[34]:
window.status = anchor[34];
break
case nav[35]:
window.status = anchor[35];
break
case nav[36]:
window.status = anchor[36];
break
case nav[37]:
window.status = anchor[37];
break
case nav[38]:
window.status = anchor[38];
break
case nav[39]:
window.status = anchor[39];
break
case nav[40]:
window.status = anchor[40];
break
case nav[41]:
window.status = anchor[41];
break
case nav[42]:
window.status = anchor[42];
break
case nav[43]:
window.status = anchor[43];
break
case nav[44]:
window.status = anchor[44];
break
case nav[45]:
window.status = anchor[45];
break
case nav[46]:
window.status = anchor[46];
break
case nav[47]:
window.status = anchor[47];
break
case nav[48]:
window.status = anchor[48];
break
case nav[49]:
window.status = anchor[49];
break
case nav[50]:
window.status = anchor[50];
break
case nav[51]:
window.status = anchor[51];
break
case nav[52]:
window.status = anchor[52];
break
case nav[53]:
window.status = anchor[53];
break
case nav[54]:
window.status = anchor[54];
break
case nav[55]:
window.status = anchor[55];
break
case nav[56]:
window.status = anchor[56];
break
case nav[57]:
window.status = anchor[57];
break
case nav[58]:
window.status = anchor[58];
break
case nav[59]:
window.status = anchor[59];
break
case nav[60]:
window.status = anchor[60];
break
case nav[61]:
window.status = anchor[61];
break
case nav[62]:
window.status = anchor[62];
break
case nav[63]:
window.status = anchor[63];
break
default:
window.status = "";
}
}

function newLocationId(Obj)
{
var x=Obj.id;
Obj.className='amenu';
switch (x)
{
case nav[0]:
window.location = anchor[0];
break
case nav[1]:
window.location = anchor[1];
break
case nav[2]:
window.location = anchor[2];
break
case nav[3]:
window.location = anchor[3];
break
case nav[4]:
window.location = anchor[4];
break
case nav[5]:
window.location = anchor[5];
break
case nav[6]:
window.location = anchor[6];
break
case nav[7]:
window.location = anchor[7];
break
case nav[8]:
window.location = anchor[8];
break
case nav[9]:
window.location = anchor[9];
break
case nav[10]:
window.location = anchor[10];
break
case nav[11]:
window.location = anchor[11];
break
case nav[12]:
window.location = anchor[12];
break
case nav[13]:
window.location = anchor[13];
break
case nav[14]:
window.location = anchor[14];
break
case nav[15]:
window.location = anchor[15];
break
case nav[16]:
window.location = anchor[16];
break
case nav[17]:
window.location = anchor[17];
break
case nav[18]:
window.location = anchor[18];
break
case nav[19]:
window.location = anchor[19];
break
case nav[20]:
window.location = anchor[20];
break
case nav[21]:
window.location = anchor[21];
break
case nav[22]:
window.location = anchor[22];
break
case nav[23]:
window.location = anchor[23];
break
case nav[24]:
window.location = anchor[24];
break
case nav[25]:
window.location = anchor[25];
break
case nav[26]:
window.location = anchor[26];
break
case nav[27]:
window.location = anchor[27];
break
case nav[28]:
window.location = anchor[28];
break
case nav[29]:
window.location = anchor[29];
break
case nav[30]:
window.location = anchor[30];
break
case nav[31]:
window.location = anchor[31];
break
case nav[32]:
window.location = anchor[32];
break
case nav[33]:
window.location = anchor[33];
break
case nav[34]:
window.location = anchor[34];
break
case nav[35]:
window.location = anchor[35];
break
case nav[36]:
window.location = anchor[36];
break
case nav[37]:
window.location = anchor[37];
break
case nav[38]:
window.location = anchor[38];
break
case nav[39]:
window.location = anchor[39];
break
case nav[40]:
window.location = anchor[40];
break
case nav[41]:
window.location = anchor[41];
break
case nav[42]:
window.location = anchor[42];
break
case nav[43]:
window.location = anchor[43];
break
case nav[44]:
window.location = anchor[44];
break
case nav[45]:
window.location = anchor[45];
break
case nav[46]:
window.location = anchor[46];
break
case nav[47]:
window.location = anchor[47];
break
case nav[48]:
window.location = anchor[48];
break
case nav[49]:
window.location = anchor[49];
break
case nav[50]:
window.location = anchor[50];
break
case nav[51]:
window.location = anchor[51];
break
case nav[52]:
window.location = anchor[52];
break
case nav[53]:
window.location = anchor[53];
break
case nav[54]:
window.location = anchor[54];
break
case nav[55]:
window.location = anchor[55];
break
case nav[56]:
window.location = anchor[56];
break
case nav[57]:
window.location = anchor[57];
break
case nav[58]:
window.location = anchor[58];
break
case nav[59]:
window.location = anchor[59];
break
case nav[60]:
window.location = anchor[60];
break
case nav[61]:
window.location = anchor[61];
break
case nav[62]:
window.location = anchor[62];
break
case nav[63]:
window.location = anchor[63];
break
default:
  window.location = "";
}
}
function outLocationId(Obj)
{
window.status ="";
Obj.className='menu'
}
function NewFontId(Obj)
{
 var x = Obj.id
 Obj.style.fontWeight="normal";
 windowStatus(x)
}
function OldFontId(Obj)
{
 window.status ="";
 Obj.style.fontWeight="";
}
//3.10.2008 nový footer
//25.09.2010 renew footer
function createTable(iden){
var table1 = document.createElement( "table" );
var tbody1 = document.createElement( "tbody" );
var tr1 = document.createElement( "tr" );

var td1 = document.createElement( "td" );
td1.innerHTML = "<a href='http://www.danexcomponents.cz'>Copyright &copy; DANEX COMPONENTS s.r.o. 2005-2010</a>";
td1.className = "foot1";
var td2 = document.createElement( "td" );
td2.innerHTML = "<a href='http://validator.w3.org/check?uri=referer'>validátor XHTML</a><span> <a href='http://jigsaw.w3.org/css-validator/check/referer'>validátor CSS</a></span>";
td2.className = "foot1";
var td3 = document.createElement( "td" );
var td3Text = document.createTextNode( "Datum poslední aktualizace: " + document.lastModified );
td3.appendChild(td3Text);
td3.className = "foot1";
tr1.appendChild(td1);
tr1.appendChild(td2);
tr1.appendChild(td3);
tbody1.appendChild(tr1);
table1.appendChild(tbody1);
table1.className = "table0";

var refTd = table1.getElementsByTagName("td");
refTd.item(0).style.width = "350px";
refTd.item(1).style.textAlign = "center";
refTd.item(2).style.width = "350px";
refTd.item(2).style.textAlign = "right";
var iden1 = document.getElementById(iden);
iden1.appendChild(table1);
}
//2.1.2009 poslední footer
//25.09.2010 renew footer
//30.01.2011 renew footer
function createTableFoot(iden){
var table1 = document.createElement( "table" );
var tbody1 = document.createElement( "tbody" );
var tr1 = document.createElement( "tr" );
var td1 = document.createElement( "td" );
td1.innerHTML = "<a href='http://www.danexcomponents.cz'>Grafický návrh a programování: Ing. Jiří Zelinka, DANEX COMPONENTS s.r.o. 2005-2011</a>";
td1.className = "foot1";
var td2 = document.createElement( "td" );
td2.innerHTML = "<a href='http://validator.w3.org/check?uri=referer'>XHTML </a><span><a href='http://jigsaw.w3.org/css-validator/check/referer'>CSS</a></span>";
td2.className = "foot1";
var td3 = document.createElement( "td" );
var td3Text = document.createTextNode( "Datum poslední aktualizace: " + document.lastModified );
td3.className = "foot1";
td3.appendChild(td3Text);
tr1.appendChild(td1);
tr1.appendChild(td2);
tr1.appendChild(td3);
tbody1.appendChild(tr1);
table1.appendChild(tbody1);
table1.className = "table0";
var refTd = table1.getElementsByTagName("td");
td1.setAttribute("width","550");
td2.style.textAlign = "center";
td3.setAttribute("width","350");
td3.style.textAlign = "right";
var iden1 = document.getElementById(iden);
iden1.appendChild(table1);
}
//18.10.2008 nový head
function createTableHead(iden){
var table1 = document.createElement( "table" );
var tbody1 = document.createElement( "tbody" );
var tr1 = document.createElement( "tr" );
var td1 = document.createElement( "td" );
var elIm1 = document.createElement("img");
elIm1.src = "../../img/logo_100.gif";
elIm1.setAttribute("align","bottom");
td1.appendChild(elIm1);
var td2 = document.createElement( "td" );
var td2Text = document.createTextNode("elektronické součástky pro profesionály")
td2.appendChild(td2Text);
tr1.appendChild(td1);
tr1.appendChild(td2);
tbody1.appendChild(tr1);
table1.appendChild(tbody1);
table1.className = "table0";
var refTd = table1.getElementsByTagName("td");
td1.setAttribute("width","150");
td1.setAttribute("height","45");
td2.style.textAlign = "right";
td2.style.color = "#CED4D7";
td2.style.fontSize = "24px";
td2.style.fontFamily = "Verdana";
refTd.item(1).style.fontWeight = "lighter";
var iden1 = document.getElementById(iden);
iden1.appendChild(table1);
}






    
 


