$(document).ready(function() {


/*
$('#homeNews').find('dd').hide().end().find('dt').click(function() {
     $(this).next().slideToggle();
   });
*/


$('#homeNews').find('dd').hide();
   
   
 $("dt").hover(
  function () {
		$(this).addClass("homeNewsDTover");
  }, 
  function () {
			$(this).removeClass("homeNewsDTout");
  }
);





$("dt").hover(function(){
	 $(this).css("background-color", "#eee");
},function(){
	 $(this).css("background-color", "#fff");
});


 

/*
          
   $(".mainh1").toggle(function(){
     $(".stuff").animate({ height: 'hide', opacity: 'hide' }, 'slow');
   },function(){
     $(".stuff").animate({ height: 'show', opacity: 'show' }, 'fast');
   });


   $(".mainh1").toggle(function(){
     $(".stuff").hide('slow');
   },function(){
     $(".stuff").show('fast');
   });
 


   // generate markup
   $("#rating").append("Please rate: ");
   
   for ( var i = 1; i <= 5; i++ )
     $("#rating").append("<a href='#'><img src='imgs/fire.gif' title='" + i + "' /></a> ");
   
   // add markup to container and applier click handlers to anchors
   $("#rating a").click(function(e){
     // send request
     $.post("rate.php", {rating: $(this).html()}, function(xml) {
       // format and output result
       $("#rating").html(
         "Thanks for rating, current average: " +
         $("average", xml).text() +
         ", number of votes: " +
         $("count", xml).text()
       );
     });
     
     // stop normal link click
     return false;
   });
 
$("#portfolio a").css("background", "url('imgs/fire.gif') no-repeat left");
 
$("a").hover(function(){
	 $(this).parents("p").addClass("highlight");
},function(){
	 $(this).parents("p").removeClass("highlight");
});
 
 $('#faq').find('dd').hide().end().find('dt').click(function() {
     $(this).next().slideToggle();
   });
 	
$("#orderedlist").find("li").each(function(i) {
 $(this).append(" BAM! "+i);
});

// $("a[@name]").css("background", "red" );

//$("li").not(":has(ul)").css("border", "1px solid white"); 

 $("div").hover(
  function () {
	$(this).addClass("greyBG");
  }, 
  function () {
	$(this).removeClass("greyBG");
  }
);


$("#faq > dt").addClass("bold");

$("#faq > dt").addClass("fire");
$("#orderedlist").addClass("pink");
$("#orderedlist > li").addClass("white");


$("#orderedlist li:last").hover(function() {
     $(this).addClass("green");
   },function(){
     $(this).removeClass("green");
   });
   
   
 

$("#faq > dt").hover(function() {
     $(this).css("background-color", "#aaa" ).css("color", "#fff" );
   },function(){
     $(this).css("background-color", "transparent" ).css("color", "#666" );
   });


   
   */ 
 });