onload = function ()
{
  for (var lnk = document.links, j = 0; j < lnk.length; j++)
  if (lnk [j].href == document.URL)
  {
    if ( lnk [j].className == 'm1' )
    {
       lnk [j].style.background = 'url(css/img/m_main_hover.jpg) no-repeat';
    }
    if ( lnk [j].className == 'm2' )
    {
       lnk [j].style.background = 'url(css/img/m_wedding_hover2.jpg) no-repeat';
    }
    if ( lnk [j].className == 'm3' )
    {
       lnk [j].style.background = 'url(css/img/m_evening_dress_hover.jpg) no-repeat';
    }
    if ( lnk [j].className == 'm4' )
    {
       lnk [j].style.background = 'url(css/img/m_kids_hover.jpg) no-repeat';
    }
    if ( lnk [j].className == 'm5' )
    {
       lnk [j].style.background = 'url(css/img/m_wedding_access_hover.jpg) no-repeat';
    }
    if ( lnk [j].className == 'm6' )
    {
       lnk [j].style.background = 'url(css/img/m_fata.jpg) no-repeat';
    }
    if ( lnk [j].className == 'm7' )
    {
       lnk [j].style.background = 'url(css/img/m_bilyzna.jpg) no-repeat';
    }
	if ( lnk [j].className == 'm8' )
    {
       lnk [j].style.background = 'url(css/img/m_brides_hover.jpg) no-repeat';
    }
    if ( lnk [j].className == 'm9' )
    {
       lnk [j].style.background = 'url(css/img/m_news_hover.jpg) no-repeat';
    }
    if ( lnk [j].className == 'm10' )
    {
       lnk [j].style.background = 'url(css/img/m_partners_hover.jpg) no-repeat';
    }
    if ( lnk [j].className == 'm11' )
    {
       lnk [j].style.background = 'url(css/img/m_wholesale_hover.jpg) no-repeat';
    }
    if ( lnk [j].className == 'm12' )
    {
       lnk [j].style.background = 'url(css/img/m_contacts_hover.jpg) no-repeat';
    }

    if ( lnk [j].className == 'mf' )
    {
       lnk [j].style.fontWeight = '600';
       //lnk [j].style.background = 'url(css/img/menu_hover.png) repeat-x';
       lnk [j].style.textDecoration = 'underline';
    }
  if ( lnk [j].className == 'page' )
    {
       lnk [j].style.color = '#e72e01';
       /*
       document.getElementById('p1').style.display = 'inline-block';
       document.getElementById('p2').style.display = 'inline-block';
       */
    }


  }
} 

