jQuery(function(){$('#searchlight').searchlight('../autocomplete/searchdata.php');});

//Navigation        
$(document).ready(function(){
$("#topnav a").click(function(){$(this).blur();});
$("#topnav li").mouseover(function(){$(this).stop().animate({height:'600px'},{queue:false, duration:600, easing: 'easeOutQuad'})});
$("#topnav li").mouseout(function(){$(this).stop().animate({height:'23px'},{queue:false, duration:300, easing: 'easeInQuad'})});
$("#mainnav a").click(function(){$(this).blur();});
$("#mainnav li").mouseover(function(){$(this).stop().animate({height:'600px'},{queue:false, duration:600, easing: 'easeOutQuad'})});
$("#mainnav li").mouseout(function(){$(this).stop().animate({height:'26px'},{queue:false, duration:300, easing: 'easeInQuad'})});});       


//divs
animatedcollapse.ontoggle=function($, divobj, state){ 
	//fires each time a DIV is expanded/contracted
	//$: Access to jQuery
	//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
	//state: "block" or "none", depending on state
	}
animatedcollapse.init();

$(function(){
	$.superbox.settings = {
	closeTxt: "<img src=\"../images/icons/close.gif\" border=\"0\" alt=\"0\">",
	loadTxt: "Laddar...",
	nextTxt: "N&auml;sta",
	prevTxt: "F&ouml;reg&aringende"
	};
	$.superbox();
	});

