$(document).ready(function() {
	document.getElementById('tabb2').style.display = 'block';
	document.getElementById('tabb3').style.display = 'block';

	maxHeight = 0;
	$("div.tab").each(function() {
		if($(this).height() > maxHeight) maxHeight = $(this).height();
	});
  $("#product-tabs").tabs();
  
  maxHeight = 0;
	$("div.product-card").each(function() {
		if($(this).height() > maxHeight) maxHeight = $(this).height();
	});
  
  $("#product-tabs #tab-2 tr:even").attr("class", "even");
  $("#product-tabs #tab-2 tr:odd").attr("class", "odd");
//  $("#product-tabs #tab-2 td").wrap("<div></div>"); // извращаемся, чтобы в опере не прыгала страница при переключении вкладок

});

startList = function() {
      if (document.all&&document.getElementById) {
            navRoot = document.getElementById("nav");
            for (i=0; i<navRoot.childNodes.length; i++) {
                  node = navRoot.childNodes[i];
                  if (node.nodeName=="LI") {
                        node.onmouseover=function() {
                              if(this.className=="no") {
                                this.className="over";
                              }
                              //this.style.display = "block";
                        }
                        node.onmouseout=function() {
                              if(this.className=="over") {
                                this.className="no";
                              }
                              //this.style.display = "none";
                        }
                  }
            }
      }
}

window.onload=startList;

function fixPNG(element)
{
    var src;

    if (element.tagName=='IMG') //Если текущий элемент картинка (тэг IMG)
    {
        src = element.src;
        element.src = "/clear.gif"; //заменяем изображение прозрачным gif-ом
    }
    element.width = element.clientWidth;
    element.height = element.clientHeight;

    if (src) element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader (src='" + src + "',sizingMethod='crop')";
 
}
