	   $(document).ready(function(){	
			$("#news_banner").easySlider({
				auto: true, 
				continuous: true,
				speed: 		1200,
				pause:		3000
			});
		});	


this.randomtip1 = function(){
	var length = $(".nestrand").length;
	var ran = Math.floor(Math.random()*length) + 1;
	$(".nestrand:nth-child(" + ran + ")").show();
};
$(document).ready(function(){	
	randomtip1();
});

	this.randomtip2 = function(){
	var length = $(".sunrand").length;
	var ran = Math.floor(Math.random()*length) + 1;
	$(".sunrand:nth-child(" + ran + ")").show();
};
$(document).ready(function(){	
	randomtip2();
});

	this.randomtip3 = function(){
	var length = $(".solar").length;
	var ran = Math.floor(Math.random()*length) + 1;
	$(".solar:nth-child(" + ran + ")").show();
};
$(document).ready(function(){	
	randomtip3();
});

	this.randomtip4 = function(){
	var length = $(".ten").length;
	var ran = Math.floor(Math.random()*length) + 1;
	$(".ten:nth-child(" + ran + ")").show();
};
$(document).ready(function(){	
	randomtip4();
});




  
function Accordion() {  
  $('#accordion ul').hide(); // hide all unordered lists inside the accordion list  
  $('#accordion li').children('ul').eq(0).show();
   //show the first unordered list inside the accordion  
  $('#accordion li a').click(  
  
  function() {
  $('#accordion a').removeClass('active');
  var $clicked = $(this);
	$(this).addClass('active');
  var checkElement = $(this).next(); 
      

  if((checkElement.is('ul')) && (checkElement.is(':visible'))) { //if you click on an unordered list and this list is opened (visible)  
  return false; //nothing happens  
  }  
  if((checkElement.is('ul')) && (!checkElement.is(':visible'))) { //if you click on an unordered list and this list is not opened (visible)  
  $('#accordion ul:visible').slideUp('normal'); // the list that is visible will close (slideUp) 
   
  checkElement.slideDown('normal');//the list you clicked will open (slideDown) 
  
  return false;  
  } 
  }  
  );  
  }  
  $(document).ready(function() {Accordion();}); //when the document is ready to load the script it iniciates the function  
  

