// JavaScript Document
 $(document).ready(function() {
							
						
// hides the slickbox as soon as the DOM is ready

 // (a little sooner than page load)
 

  var $allRows = $('#archive ul .hideshow ul');
  for(var i=1;i<$allRows.length;i++){
  	//alert('hello: '+$allRows.length);
 	 $($allRows.get(i)).hide();
  }
 $('.archivebutton:first').css({backgroundImage: 'url(images/minus.gif)'});
  //$('.archive ul .hideshow ul:first').show();
/*
 // shows the slickbox on clicking the noted link  

  $('.archive h7').click(function() {

    $('.archive h7').next().show('slow');

    return false;

  });

 // hides the slickbox on clicking the noted link  

  $('a#slick-hide').click(function() {

    $('ul#hideshow ul').hide('fast');

    return false;

  });
*/
 

 // toggles the slickbox on clicking the noted link 

  $('.archivebutton').mouseup(function() {
									 
	var bg = $(this).css('background-image').indexOf('plus.gif');
	//alert($(this).css('background-image'));
	if(bg>-1){
		//{backgroudImage: 'url(ico/ico_shout_n.gif)'}
		$(this).css({backgroundImage: 'url(images/minus.gif)'});
	}else{
		$(this).css({backgroundImage: 'url(images/plus.gif)'});
	}
	  /**/
	//if($(this).css
    $(this).next().toggle(400);
	
    return false;

  });

});
