// JavaScript Document

var ico = new Array('ico_auto', 'ico_track', 'ico_cto', 'ico_podshipnik');
var descrm = new Array('desc_auto', 'desc_track', 'desc_cto', 'desc_podship');
var icolink = new Array('link_auto', 'link_track', 'link_cto', 'link_podship');

      function showIco(ico_name,descr_name,ico_link)
      {        
        for(i = 0; i < descrm.length; i++)
        {
			var one = document.getElementById(descrm[i]);
			if (one)
			{
				one.style.display = (descr_name == descrm[i]) ? 'block':'none';
			}
        }
		for(i = 0; i < ico.length; i++)
        {
			var one2 = document.getElementById(ico[i]);
			if (one2)
			{
				one2.className = (ico_name == ico[i]) ? 'ico_active':'ico_default';
			}
        }
		for(i = 0; i < icolink.length; i++)
        {
			var one3 = document.getElementById(icolink[i]);
			if (one3)
			{
				one3.className = (ico_link == icolink[i]) ? 'link_active':'link_default';
			}
        }
        return false;
      }

function zoom(i, t , w, h, wn) {
        var width = w;
        var height = h;
        var html = '';
        var params = 'left=' + ((screen.width - width) / 2) + ',top=' + ((screen.height - height - 50) / 2) + ',width=' + (width+41) + 'px,height=' + (height + 50) + 'px,scrollbars=no';
        html  = '<title>Увеличение</title><body title="закрыть" onclick="self.close()" style="cursor:pointer" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>';
        html += '<table width=100% height=100%><tr><td align=center valign=center>';
        html += '<img src="' + i + '" width="'+width+'" height="'+height+'">';
        html += '</td><tr></table>';
        var z_w = window.open('about:blank', wn, params);
        z_w.document.write(html);
        z_w.document.close();
        z_w.focus();
}
