// JavaScript Document

function applyHover (myObject)
{
		jQuery(myObject).parent().parent().parent().hover(myHoverZoomIn,myHoverZoomOut);
}

function myHoverZoomIn ()
{
		jQuery(".producto img",this).width(190);
		jQuery(".producto img",this).css("margin","-10px 0 0 -5px");
}

function myHoverZoomOut ()
{
		jQuery(".producto img",this).width(170);
		jQuery(".producto img",this).css("margin","0");

}

jQuery(document).ready( function (){
	
	jQuery(".BEproduct").each( function () {
		
		//Apply fixed height
		jQuery(this).css("height", jQuery(this).height());
		jQuery(this).css("position", "relative");
		
		jQuery(".BEproductBtn", this).css("position", "absolute");
		jQuery(".BEproductBtn", this).css("bottom", "0px");
		
		applyHover("#BEprod1");
		applyHover("#BEprod2");
		applyHover("#BEprod3");
				
	} );
	
	
});
