/* NIVO SLIDER */
$(window).load(function() {
	$('#slider').nivoSlider({
		effect:'fade',
		slices:15,
		animSpeed:500,
		pauseTime:4000,
		directionNav:false, //Next & Prev
		directionNavHide:true, //Only show on hover
		controlNav:false, //1,2,3...
		pauseOnHover:false, //Stop animation while hovering
		manualAdvance:false, //Force manual transitions
		beforeChange: function(){},
		afterChange: function(){}
	});
});


/* inset label form */
$(document).ready(function() {
  $('#example1').ketchup();
});



$(document).ready(function() {
	$('input[title]').each(function() {
		if($(this).val() === '') {
			$(this).val($(this).attr('title'));
		}

		$(this).focus(function() {
			if($(this).val() === $(this).attr('title')) {
				$(this).val('').addClass('focused');
			}
		});

		$(this).blur(function() {
			if($(this).val() === '') {
				$(this).val($(this).attr('title')).removeClass('focused');
			}
		});
	});
});

/* TIPTIP */

$(function(){
	$(".someClass").tipTip({maxWidth: "auto", edgeOffset: 10});
});

/* Fader */

$(document).ready( //Now call the function when document is ready
    function() {
        fader();
    }
);

/* Rollovers */

$("#bt_franchising img").hover(function() {
    $(this).attr('src', '../../../imgs/bt-solicitar-franchising-2.png');
}, function() {
    $(this).attr('src', '../../../imgs/bt-solicitar-franchising-1.png');
});
