	 $(document).ready(function(){
	    //tira valor padrão de input e textarea quando dado click
    $('input[type=text], textarea').focus(function(){
        if(this.defaultValue == $(this).val())  $(this).val('');
    }).blur(function(){
        if(!$(this).val().length) $(this).val(this.defaultValue);
    });
   
   //Abre em outras janelas páginas com rel=external
   $('a[rel=external]').attr('target','_blank');
   
    $('a.accordionID').click(function(){
      var selector_layers = '.accordionLayer';
      var layer_dependente = $(this).attr('href');
  
      if($(layer_dependente).is(':visible'))
        $(layer_dependente).hide('slow');
      else{
        $(selector_layers).hide('slow');
        $(layer_dependente).show('slow');
      }
      return false;
    });
    
   /*Menu Principal com modificações no plugin.
   if($('#example').size()){
		$('#example').accordion({
    	active: '.selected',
    	header: '.boxTit',
      autoheight: false,
      alwaysOpen: true
     });
     
     $('#example a').click(function(){
       var botInd = $('#example a').index(this);
       if(!$('#example a:eq('+botInd+') + ul').size()) location.href = $('base').attr('href')+$('#example a:eq('+botInd+')').attr('href');
     });     }   */

   }); 