/* Declare a namespace for the site */
var Site = window.Site || {};

/* Create a closure to maintain scope of the '$'
   and remain compatible with other frameworks.  */
(function($) {
	
	//same as $(document).ready();
	$(function() {
		
		

	});


	$(window).bind("load", function() {
		
		
	
	});
	
})(jQuery);

function DetalleProd(id)
{
	var idProducto=id;
	window.location.href="interna2.php?i=" + idProducto;
}

function iniciar_sliders(){
	$('#cont_arribals').cycle({ 
		fx:     'scrollRight', 
		timeout: 0, 
		next:   '#arrowright', 
		prev:   '#arrowleft',
		easing:  'easeInOutQuad',		
		speed: 20
	});
}

function ImageDetail(image, file, alt, marca, title)
{
	var imagen="#"+image;
	$(imagen).fadeOut("slow");
	
	 setTimeout( function(){
	
		$(imagen).attr("src",file);
		$(imagen).attr("alt",file);
		$(imagen).fadeIn("slow");
		
	}, 500 );	
	
	var textimg="";
	
	if((title!="")&&(marca!=""))
	{
		textimg="  -  " ;
	}
	
	
	textimg = textimg + title ;
	
	$("#textImagen").text(marca + textimg);
}


function Redirect(url)
{
		window.location.href=url;
}


