	// noConflict
	// jQuery.noConflict();
	
	jQuery(document).ready(function(){
									
		// NiceJForms
/*		jQuery.NiceJForms.build(); */
	
		// jQIR
		//jQuery(".jqir").jQIR("gif", "img/jqir/");

		//JCarousel - New - Rafael - 13/05/08		
		jQuery(".jcarousel-clip").jCarouselLite({
		        btnNext: ".next",
		        btnPrev: ".prev",
				visible: 1,
				start: 0,
				auto: 5000,
				speed: 500,
				afterEnd: function(a) {
					var temp 		= document.getElementById("jcarousel-list");
					var totalItens 	= temp.getElementsByTagName('li').length;
				
					var menu = a.attr("class");
					var getPos = menu.split("-");
	
					//Remover todas as classes de ativado...
					for ( x = 1; x <= totalItens; x++ )
					{
						jQuery(".jcarousel-controls .ctrl" + x).removeClass("actived");
					}
					
					//Adicionando a classe para o que estiver selecionado...
					jQuery(".jcarousel-controls .ctrl" + getPos[2]).addClass("actived");
				
				},
				btnGo:
					[".jcarousel-controls .ctrl1", ".jcarousel-controls .ctrl2", ".jcarousel-controls .ctrl3"]
		    });
		
		
		jQuery("#b1a1 #slideShow").css('visibility','visible');

		jQuery("#externalBar dl").mouseover(function(){
			jQuery(this).css('background','url(/img/bgExternalBarH.gif) repeat-y top left');
		});
		jQuery("#externalBar dl").mouseout(function(){
			jQuery(this).css('background','url(/img/bgExternalBar.gif) repeat-y top left');
		});
		
		//Suplemento Digital
		jQuery("#suplementoDigital").click(function(){
		
			var url = jQuery(this).attr('href');
			window.open(url,'digital','width=800,height=600,top='+(window.screen.height/2-600/2)+',left='+(window.screen.width/2-800/2)+',scrollbars=no,toolbar=no,menubar=no,status=no,location=no,resizable=no')
			return false;
		
		});
		
		if ( jQuery("#view #linkDaRadio") )
		{

			jQuery("#view #linkDaRadio").click(function(){
				janelaRadio=window.open ("http://www.culturamaringa.com.br/ouvirRadio.php", "janelaRadio", "width=300,height=390,status=0,scrollbars=0,resizable=0,menubar=0,toolbar=0");	
				janelaRadio.moveTo(10,10);
				return false;
				
			});
			
		}
	
		
		jQuery("#sideBar #ouvirRadio").click(function(){
			janelaRadio=window.open ("http://www.culturamaringa.com.br/ouvirRadio.php", "janelaRadio", "width=300,height=390,status=0,scrollbars=0,resizable=0,menubar=0,toolbar=0");	
			janelaRadio.moveTo(10,10);
			return false;
		});
		

		
		if ( jQuery(".bannerOdiarioAntecipa a") ) 
		{
			jQuery(".bannerOdiarioAntecipa a").click(function(){
				oDiarioAntecipa=window.open ("/media/video/odiarioantecipa/index.html", "O Diario Antecipa", "width=370,height=340,status=0,scrollbars=0,resizable=0,menubar=0,toolbar=0");	
				oDiarioAntecipa.moveTo(10,10);
				return false;
			});		
		}
		
		
		jQuery('div.imin100 a').each(function(){
	
			jQuery(this).click(function(){
		
				var url = jQuery(this).attr('href');
				window.open(url,'digital','width=800,height=600,top='+(window.screen.height/2-600/2)+',left='+(window.screen.width/2-800/2)+',scrollbars=no,toolbar=no,menubar=no,status=no,location=no,resizable=no')
				return false;
		
			});
		
		});
		
		
		
		
		function addEvent(obj, evType, fn)
		{
			if (obj.addEventListener)
			{
			   obj.addEventListener(evType, fn, false);
			   return true;
			}
			else if (obj.attachEvent)
			{
			   var r = obj.attachEvent("on"+evType, fn);
			   return r;
			} 
			else
			{
			   return false;
			}
		}
		
		addEvent(window, 'load', test);
//		addEvent(window, 'load', bar); 
		
		
		function test()
		{
			jQuery('#test1').html(".")
		}
		

		


	});
	
	
	function verifVote(mult){
	
		if(mult == "mult0"){

			var res = 0;
		
			for(var i = 0; i < document.enquete1.resposta.length; i++){
				if(document.enquete1.resposta[i].checked)
				{
					document.enquete1.submit();
				}
				else
				{
					res++;
				}
			}
			
			if(res == document.enquete1.resposta.length){
				alert('Selecione uma opção para votar.');		
			}
		}
		
		if(mult == "mult1"){

			var res = 0;
			
			document.enquete1.submit();
		}
		
	}