window.addEvent('domready', function(){

  for(i = 0; i < 3; i++)
  {
    var t = $$('#imgPT-'+i+" img")[0];
    if(!t) continue;
    var b = $('imgPB-'+i);
    if(i > 0)
    {
      b.setStyle('display','none');
      t.addEvent('mouseover',function () {
        this.setStyle('display','block');
      }.bind(b));
      t.addEvent('mouseout',function () { 
        this.setStyle('display','none');
      }.bind(b));
    }
    
  }
return;
if ($$('.pcDetail .thumbs span img')) {
  if ($$('#imgPT-1').length > 0) {
    $('imgPT-1').addEvent('mouseover', function(event){
      $('imgPB-1').setStyles({
        'z-index': 500,
        'position': 'absolute',
        'display': 'block'
      })
      
      $('imgPB-1').getChildren('img').setStyles({
        'position': 'absolute'
      })
    });
  }
  if ($$('#imgPT-2').length > 0) {
    $('imgPB-2').setStyles({
      'display': 'none'
    })
    $('imgPT-2').addEvent('mouseover', function(event){
      $('imgPB-2').setStyles({
        'z-index': 500,
        'position': 'absolute',
        'display': 'block'
      })
      
      $('imgPB-2').getChildren('img').setStyles({
        'position': 'absolute'
      })
    });
  }
  if ($$('#imgPT-1').length > 0) {
    $('imgPT-1').addEvent('mouseleave', function(event){
      $('imgPB-1').setStyles({
        'z-index': 0,
        'display': 'none'
      })
      
      $('imgPB-1').getChildren('img').setStyles({
        'position': 'relative'
      })
    });
  }
  if ($$('#imgPT-2').length > 0) {
    $('imgPT-2').addEvent('mouseleave', function(event){
      $('imgPB-2').setStyles({
        'z-index': 0,
        'display': 'none'
      })
      
      $('imgPB-2').getChildren('img').setStyles({
        'position': 'relative'
      })
    });
  }
}
});


