function formatText(index, panel) {
return index + "";
}

$(function() {

$('.anythingSlider').anythingSlider({
easing: "easeInOutExpo", // Anything other than "linear" or "swing" requires the easing plugin
autoPlay: true, // This turns off the entire FUNCTIONALY, not just if it starts running or not.
delay: 3000, // How long between slide transitions in AutoPlay mode
startStopped: true, // If autoPlay is on, this can force it to start stopped
animationTime: 600, // How long the slide transition takes
hashTags: true, // Should links change the hashtag in the URL?
buildNavigation: true, // If true, builds and list of anchor links to link to each slide
pauseOnHover: true, // If true, and autoPlay is enabled, the show will pause on hover
startText: "Go", // Start text
stopText: "Stop", // Stop text
navigationFormatter: formatText // Details at the top of the file on this use (advanced use)
});

$("#slide-jump").click(function(){ $('.anythingSlider').anythingSlider(6);});

//run the currently selected effect
function runEffect(){
//get effect type from 
var selectedEffect = $('#effectTypes').val();

//most effect types need no options passed by default
var options = {};
//check if it's scale, transfer, or size - they need options explicitly set
if(selectedEffect == 'scale'){ options = {percent: 100}; }
else if(selectedEffect == 'transfer'){ options = { to: "#button", className: 'ui-effects-transfer' }; }
else if(selectedEffect == 'size'){ options = { to: {width: 280,height: 185} }; }

//run the effect
$("#effect").show(selectedEffect,options,500,callback);
};

//callback function to bring a hidden box back
function callback(){
setTimeout(function(){
$("#effect:visible").removeAttr('style').hide().fadeOut();
}, 50000);
};

//set effect from select menu value
$("#button").hover(function() {
runEffect();
return false;
});

$("#effect").hide();


$("ul.menu_body li:even").addClass("alt");


var menu_is_over = false;
var menu_timeout = null;
var menu_is_collapsing = false;
var menu_time_before_collapse = 500;

$('.menyknapp').bind("mouseover",function () { 
	var self = this;
	if(menu_is_collapsing) return;
	$(self).find('ul.menu_body').slideDown('slow');
	menu_is_over = true;
	
	$(self).bind("mouseout",function(){
		clearTimeout(menu_timeout);
		menu_is_over = false;
		menu_timeout = setTimeout(function(){
			if(!menu_is_over){
				menu_is_collapsing = true;
				$(self).find('ul.menu_body').slideUp('slow',function(){
						menu_is_collapsing = false;
				});	
			}
		},menu_time_before_collapse);
							
	});
									
});
});

<!-- menyrollover
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->

$(document).ready(function(){
$("#kurskatalog").dialog({ autoOpen:false, height: 740, width: 1040, title: 'Kurskatalog', modal: true });
$(".opendialog").click(function(){ $("#kurskatalog").dialog("open"); });
});
<!-- nyheter

$(document).ready(function(){
$("#nyheter_kort").load("http://www.strombacksfolkhogskola.se/wp-content/themes/prologue/hamta_nyheter/index.php?url=2&shorten=1&shorten_to=100&antal=3");
});

$(document).ready(function(){
$("#nyheter").load("http://www.strombacksfolkhogskola.se/wp-content/themes/prologue/hamta_nyheter/index.php?url=2&antal=10");
});

$(document).ready(function(){
$("#nyheter_utbildning").load("http://www.strombacksfolkhogskola.se/wp-content/themes/prologue/hamta_nyheter/index.php?url=1&antal=3&shorten_to=100");
});

$(document).ready(function(){
$("#fbook").load("http://www.strombacksfolkhogskola.se/wp-content/themes/prologue/hamta_nyheter/index.php?url=3&antal=5&shorten_to=100");
});

// -->

$(document).ready(function(){
$("#menyn").load("http://www.strombacksfolkhogskola.se/wp-content/themes/prologue/menu.php");
});

$(document).ready(function(){
	$(".ansokningsformularet").dialog({ autoOpen: false, height: 530, width: 680 });
	$(".oppnaform").click(function (){
		$(".ansokningsformularet").dialog('open');
		});
	
	$(".tackfordinansokan").click(function () {
      $(this).effect("highlight", {color:'#9fbe78'}, 3000);
	});
	$('.tackfordinansokan').trigger('click');
	
	$(".ansokbutton").click(function () {
		$('.ansokload').show();
	});
	

});