(function(){
	var changingInterval = 5;//interval between picture changing in seconds
	var efffectInterval = 1;//duration of the changing effect in seconds
	
	$(document).ready(function(){
		initSlider();
$('#proposednamehelp').hide()
$('a#proposednamemore').click(function() {
  $('#proposednamehelp').slideToggle(400);
  $(this).toggleClass("on");
  return false;
});
$('#registeredofficehelp').hide()
$('a#registeredofficemore').click(function() {
  $('#registeredofficehelp').slideToggle(400);
  $(this).toggleClass("on");
  return false;
});
$('#secretaryhelp').hide()
$('a#secretarymore').click(function() {
  $('#secretaryhelp').slideToggle(400);
  $(this).toggleClass("on");
  return false;
});
  
$('#packagetypehelp').hide()
$('a#packagetypemore').click(function() {
  $('#packagetypehelp').slideToggle(400);
  $(this).toggleClass("on");
  return false;
});



	});
	function initSlider(){
		$('div.main div.image img:first').addClass('active');
		$('div.main div.image img').css('opacity',0);
		$('div.main div.image img.active').css('opacity',1);
		var index = 0;
		var count = $('div.main div.image img').size();
		$timerHandler = setInterval(function(){
			index++;
			index = index % count;
			$('div.main div.image img').removeClass('active');
			$('div.main div.image img:eq('+index+')').addClass('active');
			$('div.main div.image img').not('.active').animate({'opacity':0},efffectInterval*1000);
			$('div.main div.image img.active').animate({'opacity':1},efffectInterval*1000);
		},changingInterval*1000);
	};
})();