﻿function mostrar(i,a,b,c,d,e,f){
	$("#grande").attr('src', 'img/grande'+i+'.jpg');
	$("#nombrep").html(a);
	$("#pesop").html(b);
	$("#referencia").html(c);
	$("#unidades").html(d);
	$("#codigop").html(e);
	$("#pesocaja").html(f+" Kgs");
	$("#fondonegro").fadeIn("fast",function(){
	$("#ventana").fadeIn("slow");
	});
}

function ocultar(){
	$("#ventana").fadeOut("slow",function(){
	$("#fondonegro").fadeOut("fast");
	$("#grande").attr('src', ' ');
	});
}

$(window).load(function() {
    $('#slider').nivoSlider({
        effect:'boxRainGrow', // Specify sets like: 'fold,fade,sliceDown'
        slices:15, // For slice animations
        boxCols: 8, // For box animations
        boxRows: 4, // For box animations
        animSpeed:1000, // Slide transition speed
        pauseTime:5000, // How long each slide will show
        directionNav:false, // Next & Prev navigation
        directionNavHide:false, // Only show on hover
        controlNav:false, // 1,2,3... navigation
        controlNavThumbs:false, // Use thumbnails for Control Nav
        controlNavThumbsFromRel:false, // Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', // Replace this with...
        controlNavThumbsReplace: '_thumb.jpg', // ...this in thumb Image src
        keyboardNav:false, // Use left & right arrows
        pauseOnHover:false, // Stop animation while hovering
        manualAdvance:false, // Force manual transitions
    });
});
