newSizes->height; $width=$this->newSizes->width; $duration=$this->params->get('product_effect_duration'); if(empty($duration)){ $duration=1000; } if($this->params->get('background_color','')==''){ $config =& hikashop_config(); $this->params->set('background_color',$config->get('background_color')); } $backgroundColor=""; $backgroundColor=$this->params->get('background_color'); if(!HIKASHOP_J30) JHTML::_('behavior.mootools'); else JHTML::_('behavior.framework'); $Fadefunction=" try{ myFx_".$this->params->get('main_div_name')."_".$this->row->product_id." = new Fx.Style('myElement_".$this->params->get('main_div_name')."_".$this->row->product_id."', 'opacity', { wait: false, duration: ".$duration." }); }catch(err){ $('myElement_".$this->params->get('main_div_name')."_".$this->row->product_id."').set('morph', { duration: ".$duration.", transition: 'linear', }); }"; $FadeStartOne=" try{ this.morph({ 'opacity': 0.0, duration: ".$duration." }); }catch(err){ myFx_".$this->params->get('main_div_name')."_".$this->row->product_id.".stop(); myFx_".$this->params->get('main_div_name')."_".$this->row->product_id.".start(0); }"; $FadeStartTwo=" try{ this.morph({ 'opacity': 1.0, duration: ".$duration." }); }catch(err){ myFx_".$this->params->get('main_div_name')."_".$this->row->product_id.".stop(); myFx_".$this->params->get('main_div_name')."_".$this->row->product_id.".start(1); }"; $js="var myFx_".$this->params->get('main_div_name')."_".$this->row->product_id." = null; window.addEvent('domready', function(){ ".$Fadefunction." $('myElement_".$this->params->get('main_div_name')."_".$this->row->product_id."').addEvents({ mouseenter: function(){ ".$FadeStartOne." }, mouseleave: function(){ ".$FadeStartTwo." } }); });"; $doc =& JFactory::getDocument(); $doc->addScriptDeclaration("\n\n"); $pane_percent_height=$this->params->get('pane_height'); $link = hikashop_completeLink('product&task=show&cid='.$this->row->product_id.'&name='.$this->row->alias.$this->itemid.$this->category_pathway); $htmlLink=""; $cursor=""; if($this->params->get('link_to_product_page',1)){ $htmlLink='onclick = "window.location.href = \''.$link.'\''; $cursor="cursor:pointer;"; } ?>