
var _images = ['images/bg-bt-left-hover.png','images/bg-bt-right-hover.png','images/bg-bt-mid-hover.png','images/boton-hover.png','images/bg-verde.png','images/logo-small.png','images/boton-search-hover.png'];
 
$.each(_images,function(e) {
$(new Image()).load(function() {
}).attr('src',this);
});

$(document).ready(function() {
	if($('#sliderindex').length){
		$('#sliderindex').nivoSlider({
			effect:'fade',
		 directionNav:false, 
      	 controlNav:false,
		 captionOpacity:1
		});} 
	if($('#sliderdos').length){
		$('#sliderdos').nivoSlider({
			effect:'fade',
		 directionNav:false, 
      	 controlNav:false
		});} 
	if($('.color').length){
		$('.color').colorbox({
			iframe:true,
			width:"80%",
			height:"170%",
			scrolling:true
					});} 
					if($('.colobox').length){
		$('.colobox').colorbox();} 
		if($('.youtube').length){
		$('.youtube').colorbox({iframe:true,width:560,height:440});} 
});

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-11152742-27']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

