// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

jQuery(document).ready(function($) {
	jQuery('input').example(function() {
    	return $(this).attr('title');
    });	
    
    jQuery("a#close").click(function () {
      $("#notification").fadeOut("fast");
    }); 
    
    jQuery("#eventsList .event .eventContent a").hover
	     (
		function()
		{
			jQuery(this).children("h3").fadeOut("fast");
		}
		,function()
		{
			jQuery(this).children("h3").fadeIn(200);
		}
	);
	
	$("a.fancybox",this).fancybox({
		'overlayOpacity': 0.3,
		'overlayColor' 	: '#000',
		'padding'		: 0,
		'titleShow'		: false
	});
	
/*
	$("a.fancyboxIframe",this).fancybox({
		'overlayOpacity': 0.8,
		'overlayColor' 	: '#000',
		'padding'		: 0,
		'titleShow'		: false,			
		'width'			: '425',
		'height'		: '344',
		'autoScale'		: false,		
		'transitionIn'	: 'none',
		'transitionOut'	: 'none'

	});
*/
	
});

 

/*
jQuery(document).ready(function($) {
  $('div.navegador_numerico_listas a').livequery('click', function() {
    $('#main').load(this.href)
    return false
  })
})


//<![CDATA[
function SetHandlers(){
	for(var i=0;i<document.forms.length;i++){
		f=document.forms[i];
		for(var j=0;j<f.length;j++){
			c=f[j];
			if(c.type=="text" || c.type=="textarea"){
				c.onfocus=clearDefault;
				c.onblur=restoreDefault;
			}
		}
	}
}
function restoreDefault(){
	if (!this.value){
		this.value=this.defaultValue;
	}
}
function clearDefault(){
	if (this.value==this.defaultValue){
		this.value="";
	}
}
//]]>


// add Accept:text/javascript header to jQuery ajax requests
$.ajaxSetup({ 'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")} })


$(function () {
var tabContainers = $('div.tabs > div');
tabContainers.hide().filter(':first').show();

$('div.tabs ul.tabNavigation a').click(function () {
tabContainers.hide();
tabContainers.filter(this.hash).show();
$('div.tabs ul.tabNavigation a').removeClass('selected');
$(this).addClass('selected');
return false;
}).filter(':first').click();
});




$(document).ready(function() {
	$.fn.HoverImageText.defaults.AnimShow = { marginTop: "2px", height: "show"};
	$.fn.HoverImageText.defaults.AnimHide = { marginTop: "86px", height: "hide"};

	$('.sideElements a').HoverImageText();
});
*/
