/**
* @author Christiano Erick
* @url http://christianoerick.com
*/
(function($) {
	// Input Hover - Início
	$.fn.inover = function(){
		if($(this)[0].tagName == 'INPUT'){
			if($(this).val() == ''){
				$(this).val($(this).attr('title'));
			}
			$(this).focus(function(){
				if($(this).val() == $(this).attr('title')){
					$(this).val('');
				}
			});
			$(this).blur(function(){
				if($(this).val() == ''){
					$(this).val($(this).attr('title'));
				}
			});
		}
	};
	// Input Hover - Fim
})(jQuery);

function onBefore(curr, next, opts) {
//    $('#destaqueChamada').html('<p><strong><a href="' + this.href + '" class="link">' + this.title + '</a></strong></p>');
}

function onAfter(curr, next, opts) {
//    $('#destaqueChamada').html('<p><strong><a href="' + this.href + '" class="link">' + this.title + '</a></strong></p>');
	var atual = opts.currSlide + 1;
	var total = opts.slideCount;
	$(this).parent().next().find('div.slide_nav_desc:eq(0)').html('Destaque <strong>' + atual + '</strong> de ' + total);
}

var sizeInic = 3
function FontSize(opcao){
	var operacao = (opcao == 'mais')?1:-1;
	var el = $('#materia');
	var size = sizeInic;
	var sizes = new Array("70%", "80%", "90%", "100%", "120%", "140%", "160%");
	size = size + operacao;
	if(size == sizes.length){ size = sizes.length - 1; }
	if(size < 0){ size = 0; }
	el.css({'font-size':sizes[size]});
	sizeInic = size;
}