Cufon.replace('.botonera', {
hover: { color: '#3B5998'}
});

Cufon.replace('.slider h3', {
});

Cufon.replace('.posteo h4', {
});

Cufon.replace('.posteo h3', {
});

Cufon.replace('.slider p', {
});

Cufon.replace('.footer_col3', {
});

Cufon.replace('.footer_col3 span', {
});

Cufon.replace('h2', {
});

Cufon.replace('h2 span', {
});

Cufon.replace('.model_name', {
});

Cufon.replace('.searchform-label', {
});

Cufon.replace('.filters', {
});

Cufon.replace('.confirm_mailing span', {
});

Cufon.replace('.wpcf7 span', {
});

$(document).ready(function() {
	
$("#loopin").carouFredSel({
	items: {
		visible: "variable"
	},
	scroll: {
		pauseOnHover: true,
		duration: 800
	},
	next: {
		button: ".next",
		key: "right"
	},
	prev: {
		button: ".prev",
		key: "left"
	}
});
	
		//When you click on a link with class of poplight and the href starts with a # 
	$('a[href^=#]').click(function() {
		var popID = $(this).attr('title'); //Get Popup Name
		var popURL = $(this).attr('href'); //Get Popup href to define size
				
		//Pull Query & Variables from href URL
		var query= popURL.split('?');
		var dim= query[1].split('&');
		var popWidth = dim[0].split('=')[1]; //Gets the first query string value

		//Fade in the Popup and add close button
		$('#' + popID).fadeIn().css({ 'width': Number( popWidth ) }).prepend('<a href="#" class="close"><img src="/wp-content/themes/nativa_web/images/close_pop.png" class="btn_close" title="Cerrar ventana" alt="Cerrar" /></a>');
		
		//Define margin for center alignment (vertical + horizontal) - we add 80 to the height/width to accomodate for the padding + border width defined in the css
		var popMargTop = ($('#' + popID).height() + 80) / 2;
		var popMargLeft = ($('#' + popID).width() + 80) / 2;
		
		//Apply Margin to Popup
		$('#' + popID).css({ 
			'margin-top' : -popMargTop,
			'margin-left' : -popMargLeft
		});
		
		//Fade in Background
		$('body').append('<div id="fade"></div>'); //Add the fade layer to bottom of the body tag.
		$('#fade').css({'filter' : 'alpha(opacity=80)'}).fadeIn(); //Fade in the fade layer 
		
		return false;
	});
	
	
	//Close Popups and Fade Layer
	$('a.close, #fade').live('click', function() { //When clicking on the close or fade layer...
	  	$('#fade , .popup_block').fadeOut(function() {
			$('#fade, a.close').remove();  
	}); //fade them both out
		
		return false;
	});

	
});

(function($){
 $.fn.extend({
 
 	customStyle : function(options) {
	  if(!$.browser.msie || ($.browser.msie&&$.browser.version>6)){
	  return this.each(function() {
	  
			var currentSelected = $(this).find(':selected');
			$(this).after('<span class="customStyleSelectBox"><span class="customStyleSelectBoxInner">'+currentSelected.text()+'</span></span>').css({position:'absolute', opacity:0,fontSize:$(this).next().css('font-size')});
			var selectBoxSpan = $(this).next();
			var selectBoxWidth = parseInt($(this).width()) - parseInt(selectBoxSpan.css('padding-left')) -parseInt(selectBoxSpan.css('padding-right'));			
			var selectBoxSpanInner = selectBoxSpan.find(':first-child');
			selectBoxSpan.css({display:'inline-block'});
			selectBoxSpanInner.css({width:selectBoxWidth, display:'inline-block'});
			var selectBoxHeight = parseInt(selectBoxSpan.height()) + parseInt(selectBoxSpan.css('padding-top')) + parseInt(selectBoxSpan.css('padding-bottom'));
			$(this).height(selectBoxHeight).change(function(){
				selectBoxSpanInner.text($(this).val()).parent().addClass('changed');
			});
			
	  });
	  }
	}
 });
})(jQuery);


$(function(){

$('select.styled').customStyle();

});

$(document).ready ( function() {
   $('.botonera ul li ul').hover (function() {
   $('.botonera ul li#menu-item-61 > a:first-child').toggleClass('hover');
}); 
});
