function mainmenu(){
$(" #mid_nav_pro ul ").css({display: "none"}); // Opera Fix
$(" #mid_nav_pro li").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});
} 
 $(document).ready(function(){					
	mainmenu();
});

$(function() {$("body").emailSpamProtection("email"); });

function loadPage(list) {location.href=list.options[list.selectedIndex].value}

	
	
jQuery.fn.fadeToggle = function(speed, easing, callback) {
return this.animate({opacity: 'toggle'}, speed, easing, callback);  
};

$(document).ready(function() {
    $('#tipsa').hide();
    $('#verktyg a.mail, #tipsa a.close').click(function() {
    $("#tipsa").fadeToggle('slow');
  });
}); 


$(document).ready(function() {
    $('#bokademo').hide();
    $('#verktyg a.bokademo, #bokademo a.close').click(function() {
    $("#bokademo").fadeToggle('slow');
  });
}); 

jQuery(document).ready(function() {
if ($.browser.msie) { // case Internet Explorer
 var version = parseInt($.browser.version, 10);
   if(version < 7) { // all versions before IE7
     $('<div id="oldbrowser">Webbplatsen stödjer inte din webbläsare <a href="http://windows.microsoft.com/sv-SE/windows/home">uppgradera</a> den nu!</div>').appendTo(document.body);
   }
 }
});


        _jssX = { };
        (function(id) {
               var f = function() {
                       var e = encodeURIComponent, d = document, s = d.createElement("script"), x;
                       var p = d.getElementsByTagName("script")[0], c = d.cookie ? d.cookie.split(";") : [];
                       var a = [ "i="+e(id), "r="+e(d.referrer), "u="+e(d.location), "d="+new Date().getTime() ];
                       while (c.length) {
                               x = c.pop().replace(/^ /, "").split("=");
                               if (x[0].match(/^_jss_/)) a.push(x[0]+"="+x[1]);
                       }
                       s.type = "text/javascript";
                       s.async = true;
                       s.src = location.protocol + "//jss.jajja.com/jss?" + (_jssX._qparam = a.join("&"));
                       p.parentNode.insertBefore(s, p);
               }, w = window;
               w.attachEvent ? w.attachEvent('onload', f) : w.addEventListener('load', f, false);
        }("w33idEwxepTxgJ8k"));
