$(document).ready(function(){  
  
  //$("a").click(function(event){
  	//alert("click overwrite");
  	//event.preventDefault();
  //});
  
   $("a")
   .filter(".clickme")
     .click(function(){
       alert("You are now leaving the site.");
     })
   .end()
   
   .filter(".hideme")
     .click(function(){
       $(this).hide();
       return false;
     })
   .end();
   
  $("#tip_body").hide();
  
  $("#tip_body").click(function(event){
  	event.preventDefault();
  	$(this).hide("slow");
  });
  
    $("#sq1").click(function(){
      $("#tip_body").toggle("slow");
    });
	
	$("#accordion").accordion({
		active: false,
		collapsible: true,
		header: 'dt',
		autoHeight: true,
		fillSpace: false});
	$('.accordion .head').click(function() {
	$(this).next().toggle('slow');
		return false;
	}).next().hide();


/*	
	$("#sunburst").click(function(){
      $("#sun").animate( { width:"176",height:"179" }, { queue:false, duration:1000 } )
    });
	
	$("#wiper").click(function(){
      $("a,div,button:not('#wiper')").toggle("slow");
    });
	
	$("#go1").click(function(){
      $("#block1").animate( { width:"90%" }, { queue:false, duration:3000 } )
         .animate( { fontSize:"24px" }, 1500 )
         .animate( { borderRightWidth:"15px" }, 1500);
    });

    $("#go2").click(function(){
      $("#block2").animate( { width:"90%"}, 1000 )
         .animate( { fontSize:"24px" } , 1000 )
         .animate( { borderLeftWidth:"15px" }, 1000);
    });

    $("#go3").click(function(){
      $("#go1").add("#go2").click();
    });

    $("#go4").click(function(){
      $(".block").css({width:"", fontSize:"", borderWidth:""});
    });
*/
  //alert("document ready!")
});