function pcActivateImageSelector(pc_item_id,pc_image_id){image_selectors_container=getById('pc_image_selectors_'+pc_item_id);for(var image_sel in image_selectors_container.childNodes){if(image_selectors_container.childNodes[image_sel].nodeType==1){image_selectors_container.childNodes[image_sel].className='pc_image_selector';}}
var image_selector=getById('pc_image_'+pc_item_id+'_'+pc_image_id);image_selector.className='pc_image_selector_active';}
function pcLoadImage(pc_item_id,pc_image_id){var pc_image=getById('pc_image_'+pc_item_id);pc_image.src=pc_data_arr[pc_item_id][5][pc_image_id];pcActivateImageSelector(pc_item_id,pc_image_id);}
function getById(id){if(document.getElementById!==null)return document.getElementById(id);if(document.all!==null)return document.all[id];}
try{var pc_data_arr=JSON.parse(pc_data);}
catch(e){var pc_data_arr=eval('('+pc_data+')');}
var pc_obj_count=pc_data_arr.length;var pc_output_prefix='<table cellpadding="0" cellspacing="0" class="pc_container_border"><tr><td style="border: 1px solid #e8e8e8;">';pc_output_prefix+='<table cellpadding="0" cellspacing="0" class="pc_container">';var pc_output='';for(var i=0;i<pc_obj_count;i++){pc_output+='<tr>';pc_output+='  <td style="padding: 14px 6px 5px 9px;" valign="top">';pc_output+='    <div style="position:relative;">';pc_output+='      <table width="218" cellpadding="0" cellspacing="0">';pc_output+='        <tr>';pc_output+='          <td style="width: 139px; text-align: center;">';pc_output+='            <a href="'+pc_data_arr[i][2]+'" target="_blank"><img class="pc_image" id="pc_image_'+i+'" src="'+pc_data_arr[i][5][0]+'" alt="" title="" width="130" height="130"/></a>';pc_output+='          </td>';pc_output+='          <td style="vertical-align: top; padding: 15px 0 0 5px;" align="right">';pc_output+='            <table cellspacing="0" cellpadding="0" border="0" style="width: 83px" align="center">';pc_output+='              <tr>';pc_output+='                <td class="pc_price_left"></td>';pc_output+='                <td class="pc_price_center" onclick="window.open(\''+pc_data_arr[i][2]+'\');">'+pc_data_arr[i][3]+'&nbsp;'+pc_data_arr[i][4]+'</td>';pc_output+='                <td class="pc_price_right"></td>';pc_output+='              </tr>';pc_output+='            </table>';pc_output+='            <table cellspacing="0" cellpadding="0" border="0" style="width: 83px" align="center">';pc_output+='              <tr>';pc_output+='          <td class="pc_image_selectors" id="pc_image_selectors_'+i+'">';if(pc_data_arr[i][5].length>1){for(var j=0;j<pc_data_arr[i][5].length;j++){pc_output+='          <span class="pc_image_selector'+(j==0?'_active':'')+'" id="pc_image_'+i+'_'+j+'" onclick="pcLoadImage('+i+', '+j+')">Фото '+(j+1)+'</span>';if(j!=pc_data_arr[i][5].length-1){pc_output+='<br/>';}}}
pc_output+='              </td>';pc_output+='              </tr>';pc_output+='            </table>';pc_output+='          </td>';pc_output+='        </tr>';pc_output+='      </table>';pc_output+='    </div>';pc_output+='  </td>';pc_output+='</tr>';pc_output+='<tr>';pc_output+='  <td>';pc_output+='    <div class="pc_header">';pc_output+='      <a href="'+pc_data_arr[i][2]+'" target="_blank" class="pc_header_link">'+pc_data_arr[i][0]+'</a>';pc_output+='    </div>';pc_output+='    <div class="pc_descr">';pc_output+='      <span class="pc_descr_link">'+pc_data_arr[i][1]+'</span>';pc_output+='    </div>';pc_output+='  </td>';pc_output+='</tr>';if(i!=pc_obj_count-1){pc_output+='<tr>';pc_output+='  <td class="pc_separator_container"><div class="pc_separator"></div></td>';pc_output+='</tr>';}}
var pc_output_postfix='</table>';pc_output_postfix+='</td></tr></table>';var pc_css='<style type="text/css">';pc_css+='.pc_container, .pc_container table, .pc_container td, .pc_container div {';pc_css+='  text-indent:0;';pc_css+='  text-decoration:none;';pc_css+='  border:none';pc_css+='}';pc_css+='.pc_container, .pc_container table {';pc_css+='  border-collapse:collapse';pc_css+='  empty-cells:hide';pc_css+='}';pc_css+='.pc_container {';pc_css+='  width:218px !important;';pc_css+='  background-color:#fafafa;';pc_css+='  overflow:hidden;';pc_css+='  font-family:Tahoma,Geneva,sans-serif;';pc_css+='}';pc_css+='.pc_container tr {';pc_css+='  background-color:#fafafa';pc_css+='}';pc_css+='.pc_header, .pc_descr {';pc_css+='  padding: 0 0 2px 12px;';pc_css+='  vertical-align: top;';pc_css+='  width: 210px;';pc_css+='  overflow: hidden;';pc_css+='  text-align:left';pc_css+='}';pc_css+='.pc_descr {';pc_css+='  padding: 0 0 10px 12px;';pc_css+='}';pc_css+='.pc_container .pc_header_link {';pc_css+='  font-size:11px;';pc_css+='  line-height:15px;';pc_css+='  color:#0066CC;';pc_css+='  font-weight:bold';pc_css+='}';pc_css+='.pc_descr_link, .pc_descr_link:active, .pc_descr_link:hover, .pc_descr_link:visited {';pc_css+='  font-size:11px;';pc_css+='  line-height:14px;';pc_css+='  text-decoration:none;';pc_css+='  color: #676767 !important';pc_css+='}';pc_css+='.pc_image_selectors {';pc_css+='  width: 82px;';pc_css+='  vertical-align: top;';pc_css+='  padding-top: 10px;';pc_css+='  text-align: center;';pc_css+='}';pc_css+='.pc_image_selector, .pc_image_selector_hover, .pc_image_selector_active {';pc_css+='  text-decoration: underline;';pc_css+='  color: #00931c;';pc_css+='  font-size: 11px;';pc_css+='  line-height: 16px;';pc_css+='  cursor: pointer;';pc_css+='}';pc_css+='.pc_image_selector_active {';pc_css+='  text-decoration: none;';pc_css+='  color: #a5a5a5;';pc_css+='  cursor: default;';pc_css+='  font-weight: bold;';pc_css+='}';pc_css+='.pc_price {';pc_css+='  position: absolute;';pc_css+='  top: 10px;';pc_css+='  right: 0px;';pc_css+='  width: 79px;';pc_css+='  text-align: center;';pc_css+='  border: 1px solid black;';pc_css+='}';pc_css+='.pc_price_left, .pc_price_right {';pc_css+='  padding: 0;';pc_css+='  margin: 0;';pc_css+='  width: 3px;';pc_css+='  height: 20px;';pc_css+='  background-color: #00931c;';pc_css+='  background-image: url("'+pc_sys_url+'bg1.gif");';pc_css+='  background-position: 0 0;';pc_css+='  background-repeat: no-repeat;';pc_css+='}';pc_css+='.pc_price_right {';pc_css+='  background-position: -3px 0px;';pc_css+='}';pc_css+='.pc_price_center {';pc_css+='  text-align: center;';pc_css+='  font-weight: bold;';pc_css+='  font-size: 11px;';pc_css+='  line-height: 19px;';pc_css+='  height: 20px;';pc_css+='  width: 77px;';pc_css+='  vertical-align: middle;';pc_css+='  background-color: #00931c;';pc_css+='  color: #ffffff;';pc_css+='  cursor:pointer';pc_css+='}';pc_css+='.pc_separator_container {';pc_css+='  padding: 0 0 2px 10px;';pc_css+='  margin: 0;';pc_css+='  height: 1px;';pc_css+='  font-size: 1px;';pc_css+='  line-height: 1px;';pc_css+='  text-align: center;';pc_css+='}';pc_css+='.pc_separator {';pc_css+='  padding: 0;';pc_css+='  height: 1px;';pc_css+='  width: 218px;';pc_css+='  background-image: url("'+pc_sys_url+'bg1.gif");';pc_css+='  background-position: center -20px;';pc_css+='  background-repeat: repeat-x;';pc_css+='}';pc_css+='</style>';document.write(pc_css);document.write(pc_output_prefix+pc_output+pc_output_postfix);