$('#to-top').corner("top");
$('#noticia_navegador').corner("bottom");
$('.bg-blue').corner("top");

jkmegamenu.definemenu("mega-institucional", "megamenu1", "mouseover")
jkmegamenu.definemenu("mega-documentos", "megamenu2", "mouseover")
jkmegamenu.definemenu("mega-conteudo", "megamenu3", "mouseover")


function uniqueArray(arrayName)
{
	var newArray=new Array();
	label:for(var i=0; i<arrayName.length;i++ )
	{
		for(var j=0; j<newArray.length;j++ )
		{
			if(newArray[j]==arrayName[i])
			continue label;
		}
		newArray[newArray.length] = arrayName[i];
	}
	return newArray;
}

$(function(){

	jkmegamenu.render($);

//	$('#FormMW').jqTransform();

	$('.radio-busca').checkBox();

	$('.jqTransformButton').css({'margin-top':'-2px'});

	$('a.thumb').zoomimage({
		controls: true,
		opacity: .8,
		centered: true

	});

	/*
	$('a.thumb').zoomimage({
	controls: true,
	opacity: .8,
	centered: true

	});

	$('#pane').jScrollPane({showArrows:true, scrollbarWidth: 15, arrowSize: 1});


	$("ul.quadro-esquerdo li").hover(function() {
	$(this).css({'z-index' : '10'});
	$(this).find('img').addClass("hover").stop()
	.animate({
	marginLeft: '-25px',
	width: '150px',
	height: '135px'
	}, 200);

	$(this).find('.tituloNoDisplay').addClass("hoverTitulo");


	} , function() {
	$(this).css({'z-index' : '0'});
	$(this).find('img').removeClass("hover").stop()
	.animate({
	marginLeft: '0',
	width: '100px',
	height: '85px'
	}, 200);

	$(this).find('.tituloNoDisplay').removeClass("hoverTitulo").css({'margin':'0', 'display':'none','visible':'hidden'});

	});

	*/
	/**
	* Scroll
	*/

	$('a[href*=#]').click(function() {
		if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
			var $target = $(this.hash);
			$target = $target.length && $target  || $('[name=' + this.hash.slice(1) +']');
			if ($target.length) {
				var targetOffset = $target.offset().top;
				$('html,body')
				.animate({scrollTop: targetOffset}, 1000);
				return false;
			}
		}
	});



});

