$(document).ready(function() {
	/* superfish used for horizontal menus */
		jQuery('ul.nav').superfish({
			delay: 1000,								// one second delay on mouseout
			animation: {opacity:'show',height:'show'},	// fade-in and slide-down animation
			speed: 'slow',								// faster animation speed
			autoArrows: false,							// disable generation of arrow mark-up
			dropShadows: false
		});

  /* active container used for translate pages */
	$('.activebody').hide();

	$('.activesection h4,.activesection h3').click(
		function() {
			var a=$(this);
			a.parent().find('.activebody').slideToggle('fast');
			$(this).toggleClass('open');
		}
	); // end toggle

  $('.activebodybtn').click(function () {
    $('.activebody').slideToggle('fast');
  });

	$('.open').next('.activebody').show();

	/* accordion widget initialisation */
	$("#accordion").accordion({
		header: 'h3',
		autoHeight: false,
		navigation: true,
		collapsible: true,
		active: '.open',
		selectedClass: 'current'
	});

	/* tab widget initialisation */
	$("#tabs3W").tabs();

	/* other javascript initialisation will go here */
	/*$("#tag-cloud").tagCloud({"speed":7000}); this causes rotator to fail!!*/

	/* hide or highlight any table rows with the class emthide and emtlight */
	$('.emthide').hide();
	$('.emtlight').css("background-color","#dddddd");

	/* CreatorSEO table (class=CSEO_table) format striping functionality */
	$('.CSEO_table tr:nth-child(even)').addClass('alt');
	$(".CSEO_table tr").mouseover(function(){
		$(this).addClass("over");})
	$(".CSEO_table tr").mouseout(function(){
		$(this).removeClass("over");});

});
