$(document).ready(function(){
	$("#mediacenter_menu").hide();
	$("#awards_menu").hide();
	
	$("#menu a, #menu_pt a").hover(
	  function () { $(this).animate({ color: "#777777" }, 90); $(this).find("span").animate({ color: "#777777" }, 90); },
	  function () { $(this).animate({ color: "#ffffff" }, 90); $(this).find("span").animate({ color: "#215ee4" }, 90); }
	);
	
	$("#container, #header, #searchResults, .menu-disabled").mouseover(function () {
	  $("#menu a, #menu_pt a").stop().animate({ color: "#ffffff" }, 90); $("#menu a, #menu_pt a").find("span").animate({ color: "#215ee4" }, 90);
	  $("#mediacenter_menu").slideUp(1);
	  $("#awards_menu").slideUp(1);
	});
	
	$("#btnNews").mouseover(function () {
	  $("#mediacenter_menu").slideUp(1);
	  $("#awards_menu").slideUp(1);
	  $("#btnAwards").animate({ color: "#ffffff" }, 90); $("#btnAwards").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnJuriMembers").animate({ color: "#ffffff" }, 90); $("#btnJuriMembers").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnSectionsFilms").animate({ color: "#ffffff" }, 90); $("#btnSectionsFilms").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnMediaCenter").animate({ color: "#ffffff" }, 90); $("#btnMediaCenter").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnRegulations").animate({ color: "#ffffff" }, 90); $("#btnRegulations").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnEntryForm").animate({ color: "#ffffff" }, 90); $("#btnEntryForm").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnContacts").animate({ color: "#ffffff" }, 90); $("#btnContacts").find("span").animate({ color: "#215ee4" }, 90);
	  $("#menu #mediacenter_menu a, #menu_pt #mediacenter_menu a").animate({ color: "#ffffff" }, 90);
	});
	
	$("#btnAwards").mouseover(function () {
	  $("#awards_menu").slideDown(150);
	  $("#mediacenter_menu").slideUp(1);
	  $("#btnNews").animate({ color: "#ffffff" }, 90); $("#btnNews").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnJuriMembers").animate({ color: "#ffffff" }, 90); $("#btnJuriMembers").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnSectionsFilms").animate({ color: "#ffffff" }, 90); $("#btnSectionsFilms").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnMediaCenter").animate({ color: "#ffffff" }, 90); $("#btnMediaCenter").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnRegulations").animate({ color: "#ffffff" }, 90); $("#btnRegulations").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnEntryForm").animate({ color: "#ffffff" }, 90); $("#btnEntryForm").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnContacts").animate({ color: "#ffffff" }, 90); $("#btnContacts").find("span").animate({ color: "#215ee4" }, 90);
	  $("#menu #mediacenter_menu a, #menu_pt #mediacenter_menu a").animate({ color: "#ffffff" }, 90);
	});
	
	$("#btnJuriMembers").mouseover(function () {
	  $("#mediacenter_menu").slideUp(1);
	  $("#awards_menu").slideUp(1);
	  $("#btnAwards").animate({ color: "#ffffff" }, 90); $("#btnAwards").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnNews").animate({ color: "#ffffff" }, 90); $("#btnNews").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnSectionsFilms").animate({ color: "#ffffff" }, 90); $("#btnSectionsFilms").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnMediaCenter").animate({ color: "#ffffff" }, 90); $("#btnMediaCenter").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnRegulations").animate({ color: "#ffffff" }, 90); $("#btnRegulations").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnEntryForm").animate({ color: "#ffffff" }, 90); $("#btnEntryForm").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnContacts").animate({ color: "#ffffff" }, 90); $("#btnContacts").find("span").animate({ color: "#215ee4" }, 90);
	  $("#menu #mediacenter_menu a, #menu_pt #mediacenter_menu a").animate({ color: "#ffffff" }, 90);
	});
	
	$("#btnSectionsFilms").mouseover(function () {
	  $("#mediacenter_menu").slideUp(1);
	  $("#awards_menu").slideUp(1);
	  $("#btnAwards").animate({ color: "#ffffff" }, 90); $("#btnAwards").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnJuriMembers").animate({ color: "#ffffff" }, 90); $("#btnJuriMembers").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnNews").animate({ color: "#ffffff" }, 90); $("#btnNews").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnMediaCenter").animate({ color: "#ffffff" }, 90); $("#btnMediaCenter").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnRegulations").animate({ color: "#ffffff" }, 90); $("#btnRegulations").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnEntryForm").animate({ color: "#ffffff" }, 90); $("#btnEntryForm").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnContacts").animate({ color: "#ffffff" }, 90); $("#btnContacts").find("span").animate({ color: "#215ee4" }, 90);
	  $("#menu #mediacenter_menu a, #menu_pt #mediacenter_menu a").animate({ color: "#ffffff" }, 90);
	});
	
	$("#btnMediaCenter").mouseover(function () {
	  $("#mediacenter_menu").slideDown(150);
	  $("#btnAwards").animate({ color: "#ffffff" }, 90); $("#btnAwards").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnJuriMembers").animate({ color: "#ffffff" }, 90); $("#btnJuriMembers").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnSectionsFilms").animate({ color: "#ffffff" }, 90); $("#btnSectionsFilms").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnNews").animate({ color: "#ffffff" }, 90); $("#btnNews").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnRegulations").animate({ color: "#ffffff" }, 90); $("#btnRegulations").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnEntryForm").animate({ color: "#ffffff" }, 90); $("#btnEntryForm").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnContacts").animate({ color: "#ffffff" }, 90); $("#btnContacts").find("span").animate({ color: "#215ee4" }, 90);
	  $("#menu #mediacenter_menu a, #menu_pt #mediacenter_menu a").animate({ color: "#ffffff" }, 90);
	});
	
	$("#btnRegulations").mouseover(function () {
	  $("#mediacenter_menu").slideUp(1);
	  $("#awards_menu").slideUp(1);
	  $("#btnAwards").animate({ color: "#ffffff" }, 90); $("#btnAwards").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnJuriMembers").animate({ color: "#ffffff" }, 90); $("#btnJuriMembers").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnSectionsFilms").animate({ color: "#ffffff" }, 90); $("#btnSectionsFilms").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnMediaCenter").animate({ color: "#ffffff" }, 90); $("#btnMediaCenter").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnNews").animate({ color: "#ffffff" }, 90); $("#btnNews").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnEntryForm").animate({ color: "#ffffff" }, 90); $("#btnEntryForm").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnContacts").animate({ color: "#ffffff" }, 90); $("#btnContacts").find("span").animate({ color: "#215ee4" }, 90);
	  $("#menu #mediacenter_menu a, #menu_pt #mediacenter_menu a").animate({ color: "#ffffff" }, 90);
	});
	
	$("#btnEntryForm").mouseover(function () {
	  $("#mediacenter_menu").slideUp(1);
	  $("#awards_menu").slideUp(1);
	  $("#btnAwards").animate({ color: "#ffffff" }, 90); $("#btnAwards").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnJuriMembers").animate({ color: "#ffffff" }, 90); $("#btnJuriMembers").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnSectionsFilms").animate({ color: "#ffffff" }, 90); $("#btnSectionsFilms").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnMediaCenter").animate({ color: "#ffffff" }, 90); $("#btnMediaCenter").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnRegulations").animate({ color: "#ffffff" }, 90); $("#btnRegulations").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnNews").animate({ color: "#ffffff" }, 90); $("#btnNews").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnContacts").animate({ color: "#ffffff" }, 90); $("#btnContacts").find("span").animate({ color: "#215ee4" }, 90);
	  $("#menu #mediacenter_menu a, #menu_pt #mediacenter_menu a").animate({ color: "#ffffff" }, 90);
	});
	
	$("#btnContacts").mouseover(function () {
	  $("#mediacenter_menu").slideUp(1);
	  $("#awards_menu").slideUp(1);
	  $("#btnAwards").animate({ color: "#ffffff" }, 90); $("#btnAwards").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnJuriMembers").animate({ color: "#ffffff" }, 90); $("#btnJuriMembers").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnSectionsFilms").animate({ color: "#ffffff" }, 90); $("#btnSectionsFilms").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnMediaCenter").animate({ color: "#ffffff" }, 90); $("#btnMediaCenter").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnRegulations").animate({ color: "#ffffff" }, 90); $("#btnRegulations").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnEntryForm").animate({ color: "#ffffff" }, 90); $("#btnEntryForm").find("span").animate({ color: "#215ee4" }, 90);
	  $("#btnNews").animate({ color: "#ffffff" }, 90); $("#btnNews").find("span").animate({ color: "#215ee4" }, 90);
	  $("#menu #mediacenter_menu a, #menu_pt #mediacenter_menu a").animate({ color: "#ffffff" }, 90);
	});	
	
	$("#rightHighlights a").hover(
      function () { $(this).animate({ backgroundColor: '#444444' }, 90); }, 
      function () { $(this).animate({ backgroundColor: '#222222' }, 90); }
    );
	$("#leftHighlights a").hover(
      function () { $(this).animate({ color: '#444444' }, 90); $(this).find("span").animate({ color: "#444444" }, 90); },
      function () { $(this).animate({ color: '#ffffff' }, 90); $(this).find("span").animate({ color: "#215ee4" }, 90); }
    );
	$("#extraHighlight").hover(
      function () { $(this).animate({ backgroundColor: '#444444' }, 90); }, 
      function () { $(this).animate({ backgroundColor: '#3c3c3c' }, 90); }
    );
	
	
	$('.dplist li').mouseover(function () { $(this).css('color','#215ee4'); });
	$('.dplist li').mouseout(function () { $(this).css('color','#000000');  });
	
	
	$('#one .dplist, #one .dateUp, #one .05jun-txt, #one .06jun-txt, #one .07jun-txt, #one .08jun-txt, #one .09jun-txt, #one .10jun-txt, #one .11jun-txt, #one .12jun-txt, #one .13jun-txt').hide();
	$('#two .dplist, #two .dateUp, #two .05jun-txt, #two .06jun-txt, #two .07jun-txt, #two .08jun-txt, #two .09jun-txt, #two .10jun-txt, #two .11jun-txt, #two .12jun-txt, #two .13jun-txt').hide();
	
	$('#one .window, #one .jScrollPaneTrack, #one .jScrollPaneDrag, #two .window, #two .jScrollPaneTrack, #two .jScrollPaneDrag, #three .window, #three .jScrollPaneTrack, #three .jScrollPaneDrag, #four .window, #four .jScrollPaneTrack, #four .jScrollPaneDrag').click(function(){
	  oneHide(); $('#one .dateUp').hide(); $('#one .dateDown').show();
	  twoHide(); $('#two .dateUp').hide(); $('#two .dateDown').show();
	});
	
	$('#one .btnDown').click(function (){ oneShow(); twoHide(); });
	$('#one .btnUp').click(function(){ oneHide(); twoHide(); });
	$('#two .btnDown').click(function (){ twoShow(); oneHide(); });
	$('#two .btnUp').click(function(){ twoHide(); oneHide(); });
	
	$('#one .dateDown, #one .dateUp').mouseover(function() { $('#one .actualDate').css('color','#215ee4'); });
	$('#one .dateDown, #one .dateUp').mouseout(function() { $('#one .actualDate').css('color','#000000'); });
	$('#two .dateDown, #two .dateUp').mouseover(function() { $('#two .actualDate').css('color','#215ee4'); });
	$('#two .dateDown, #two .dateUp').mouseout(function() { $('#two .actualDate').css('color','#000000'); });
	
	
	$('#one .dateDown').click(function () { oneShow(); $(this).hide(); $('#one .dateUp, #one .btnUp').show(); twoHide(); });
	$('#one .dateUp').click(function () { oneHide(); $(this).hide(); $('#one .dateDown, #one .btnDown').show(); twoHide(); });
	$('#two .dateDown').click(function () { twoShow(); $(this).hide(); $('#two .dateUp, #two .btnUp').show(); oneHide(); });
	$('#two .dateUp').click(function () { twoHide(); $(this).hide(); $('#two .dateDown, #two .btnDown').show(); oneHide(); });
	
	
	$('#one .dplist li').click(function () {
	  oneHide();
	  $('#one .dateUp').hide();
	  $('#one .dateDown').show();
	  $('#one .scroll-pane').jScrollPane();
	});
	
	$('#one .04jun').click(function () {
	  oneHideTXT();
	  $('#one .04jun-txt').show();
	  $changeDate = $(this).text(); $('#one .actualDate').text($changeDate);
	  $('#one .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#one .scroll-pane').jScrollPane();
	});
	
	$('#one .05jun').click(function () {
	  oneHideTXT();
	  $('#one .05jun-txt').show();
	  $changeDate = $(this).text(); $('#one .actualDate').text($changeDate);
	  $('#one .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#one .scroll-pane').jScrollPane();
	});
	
	$('#one .06jun').click(function () {
	  oneHideTXT();
	  $('#one .06jun-txt').show();
	  $changeDate = $(this).text(); $('#one .actualDate').text($changeDate);
	  $('#one .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#one .scroll-pane').jScrollPane();
	});
	
	$('#one .07jun').click(function () {
	  oneHideTXT();
	  $('#one .07jun-txt').show();
	  $changeDate = $(this).text(); $('#one .actualDate').text($changeDate);
	  $('#one .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#one .scroll-pane').jScrollPane();
	});
	
	$('#one .08jun').click(function () {
	  oneHideTXT();
	  $('#one .08jun-txt').show();
	  $changeDate = $(this).text(); $('#one .actualDate').text($changeDate);
	  $('#one .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#one .scroll-pane').jScrollPane();
	});
	
	$('#one .09jun').click(function () {
	  oneHideTXT();
	  $('#one .09jun-txt').show();
	  $changeDate = $(this).text(); $('#one .actualDate').text($changeDate);
	  $('#one .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#one .scroll-pane').jScrollPane();
	});
	
	$('#one .10jun').click(function () {
	  oneHideTXT();
	  $('#one .10jun-txt').show();
	  $changeDate = $(this).text(); $('#one .actualDate').text($changeDate);
	  $('#one .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#one .scroll-pane').jScrollPane();
	});
	
	$('#one .11jun').click(function () {
	  oneHideTXT();
	  $('#one .11jun-txt').show();
	  $changeDate = $(this).text(); $('#one .actualDate').text($changeDate);
	  $('#one .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#one .scroll-pane').jScrollPane();
	});
	
	$('#one .12jun').click(function () {
	  oneHideTXT();
	  $('#one .12jun-txt').show();
	  $changeDate = $(this).text(); $('#one .actualDate').text($changeDate);
	  $('#one .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#one .scroll-pane').jScrollPane();
	});
	
	$('#one .13jun').click(function () {
	  oneHideTXT();
	  $('#one .13jun-txt').show();
	  $changeDate = $(this).text(); $('#one .actualDate').text($changeDate);
	  $('#one .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#one .scroll-pane').jScrollPane();
	});
	
	
	//TWO
	
	$('#two .dplist li').click(function () {
	  twoHide();
	  $('#two .dateUp').hide();
	  $('#two .dateDown').show();
	  $('#two .scroll-pane').jScrollPane();
	});
	
	$('#two .04jun').click(function () {
	  twoHideTXT();
	  $('#two .04jun-txt').show();
	  $changeDate = $(this).text(); $('#two .actualDate').text($changeDate);
	  $('#two .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#two .scroll-pane').jScrollPane();
	});
	
	$('#two .05jun').click(function () {
	  twoHideTXT();
	  $('#two .05jun-txt').show();
	  $changeDate = $(this).text(); $('#two .actualDate').text($changeDate);
	  $('#two .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#two .scroll-pane').jScrollPane();
	});
	
	$('#two .06jun').click(function () {
	  twoHideTXT();
	  $('#two .06jun-txt').show();
	  $changeDate = $(this).text(); $('#two .actualDate').text($changeDate);
	  $('#two .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#two .scroll-pane').jScrollPane();
	});
	
	$('#two .07jun').click(function () {
	  twoHideTXT();
	  $('#two .07jun-txt').show();
	  $changeDate = $(this).text(); $('#two .actualDate').text($changeDate);
	  $('#two .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#two .scroll-pane').jScrollPane();
	});
	
	$('#two .08jun').click(function () {
	  twoHideTXT();
	  $('#two .08jun-txt').show();
	  $changeDate = $(this).text(); $('#two .actualDate').text($changeDate);
	  $('#two .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#two .scroll-pane').jScrollPane();
	});
	
	$('#two .09jun').click(function () {
	  twoHideTXT();
	  $('#two .09jun-txt').show();
	  $changeDate = $(this).text(); $('#two .actualDate').text($changeDate);
	  $('#two .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#two .scroll-pane').jScrollPane();
	});
	
	$('#two .10jun').click(function () {
	  twoHideTXT();
	  $('#two .10jun-txt').show();
	  $changeDate = $(this).text(); $('#two .actualDate').text($changeDate);
	  $('#two .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#two .scroll-pane').jScrollPane();
	});
	
	$('#two .11jun').click(function () {
	  twoHideTXT();
	  $('#two .11jun-txt').show();
	  $changeDate = $(this).text(); $('#two .actualDate').text($changeDate);
	  $('#two .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#two .scroll-pane').jScrollPane();
	});
	
	$('#two .12jun').click(function () {
	  twoHideTXT();
	  $('#two .12jun-txt').show();
	  $changeDate = $(this).text(); $('#two .actualDate').text($changeDate);
	  $('#two .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#two .scroll-pane').jScrollPane();
	});
	
	$('#two .13jun').click(function () {
	  twoHideTXT();
	  $('#two .13jun-txt').show();
	  $changeDate = $(this).text(); $('#two .actualDate').text($changeDate);
	  $('#two .dplist li').css('color','#000000'); $(this).css('color','#666666');
	  $('#two .scroll-pane').jScrollPane();
	});
	
});

oneShow = function(){ $('#one .dplist').slideDown(150); $('#one .btnDown').hide(); }
oneHide = function(){ $('#one .dplist').slideUp(150); $('#one .btnDown').show(); }
oneHideTXT = function(){ $('#one .04jun-txt, #one .05jun-txt, #one .06jun-txt, #one .07jun-txt, #one .08jun-txt, #one .09jun-txt, #one .10jun-txt, #one .11jun-txt, #one .12jun-txt, #one .13jun-txt').hide(); }

twoShow = function(){ $('#two .dplist').slideDown(150); $('#two .btnDown').hide(); }
twoHide = function(){ $('#two .dplist').slideUp(150); $('#two .btnDown').show(); }
twoHideTXT = function(){ $('#two .04jun-txt, #two .05jun-txt, #two .06jun-txt, #two .07jun-txt, #two .08jun-txt, #two .09jun-txt, #two .10jun-txt, #two .11jun-txt, #two .12jun-txt, #two .13jun-txt').hide(); }


sFocus = function()
{
	var searchField = document.getElementById('searchfield');
	if (searchField.value == 'Search...') { searchField.value=''; } searchField.style.color='#222';
}

sBlur = function()
{
	var searchField = document.getElementById('searchfield');
	if (searchField.value == '') { searchField.style.color = '#999'; searchField.value = 'Search...'; }
}

sFocus_pt = function()
{
	var searchField = document.getElementById('searchfield');
	if (searchField.value == 'Pesquisar...') { searchField.value=''; } searchField.style.color='#222';
}

sBlur_pt = function()
{
	var searchField = document.getElementById('searchfield');
	if (searchField.value == '') { searchField.style.color = '#999'; searchField.value = 'Pesquisar...'; }
}

function validate_required(field,alerttxt)
{
with (field)
{
if (value==null||value=="")
  {alert(alerttxt);return false;}
else {return true}
}
}

function validateSearch(thisform)
{
	with (thisform)
	{
		if (query.value == "")
		{
			query.focus();
			return false;
		}
		if (query.value == "Search..." || query.value == "Pesquisar...")
		{
			query.focus();
			return false;
		}
	}
}