jQuery.effects||function(e,h){function l(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1],
16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return m.transparent;return m[e.trim(c).toLowerCase()]}function j(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var f=c.length;f--;){b=c[f];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,i){return i.toUpperCase()});
a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function k(c){var a,b;for(a in c){b=c[a];if(b==null||e.isFunction(b)||a in p||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function q(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function n(c,a,b,d){if(typeof c=="object"){d=a;b=null;a=c;c=a.effect}if(e.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||e.fx.speeds[a]){d=b;b=a;a={}}if(e.isFunction(b)){d=b;b=null}a=a||{};
b=b||a.duration;b=e.fx.off?0:typeof b=="number"?b:b in e.fx.speeds?e.fx.speeds[b]:e.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}function r(c){if(!c||typeof c==="number"||e.fx.speeds[c])return true;if(typeof c==="string"&&!e.effects[c])return true;return false}e.effects={};e.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(c,a){e.fx.step[a]=function(b){if(!b.colorInit){var d;d=b.elem;var f=a,g;do{g=
e.curCSS(d,f);if(g!=""&&g!="transparent"||e.nodeName(d,"body"))break;f="backgroundColor"}while(d=d.parentNode);d=l(g);b.start=d;b.end=l(b.end);b.colorInit=true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var m={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,
0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,
211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},s=["add","remove","toggle"],p={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.effects.animateClass=function(c,a,b,
d){if(e.isFunction(b)){d=b;b=null}return this.queue("fx",function(){var f=e(this),g=f.attr("style")||" ",i=k(j.call(this)),o,v=f.attr("className");e.each(s,function(t,u){c[u]&&f[u+"Class"](c[u])});o=k(j.call(this));f.attr("className",v);f.animate(q(i,o),a,b,function(){e.each(s,function(t,u){c[u]&&f[u+"Class"](c[u])});if(typeof f.attr("style")=="object"){f.attr("style").cssText="";f.attr("style").cssText=g}else f.attr("style",g);d&&d.apply(this,arguments)});i=e.queue(this);o=i.splice(i.length-1,1)[0];
i.splice(1,0,o);e.dequeue(this)})};e.fn.extend({_addClass:e.fn.addClass,addClass:function(c,a,b,d){return a?e.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:e.fn.removeClass,removeClass:function(c,a,b,d){return a?e.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:e.fn.toggleClass,toggleClass:function(c,a,b,d,f){return typeof a=="boolean"||a===h?b?e.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,f]):this._toggleClass(c,
a):e.effects.animateClass.apply(this,[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,f){return e.effects.animateClass.apply(this,[{add:a,remove:c},b,d,f])}});e.extend(e.effects,{version:"1.8.10",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,
a){var b;switch(c[0]){case "top":b=0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":c=0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();var a={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")},b=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",
border:"none",margin:0,padding:0});c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{e.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});e.each(["top","left","bottom","right"],function(d,f){a[f]=c.css(f);if(isNaN(parseInt(a[f],10)))a[f]="auto"});c.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);
return c},setTransition:function(c,a,b,d){d=d||{};e.each(a,function(f,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});e.fn.extend({effect:function(c){var a=n.apply(this,arguments),b={options:a[1],duration:a[2],callback:a[3]};a=b.options.mode;var d=e.effects[c];if(e.fx.off||!d)return a?this[a](b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)});return d.call(this,b)},_show:e.fn.show,show:function(c){if(r(c))return this._show.apply(this,arguments);
else{var a=n.apply(this,arguments);a[1].mode="show";return this.effect.apply(this,a)}},_hide:e.fn.hide,hide:function(c){if(r(c))return this._hide.apply(this,arguments);else{var a=n.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:e.fn.toggle,toggle:function(c){if(r(c)||typeof c==="boolean"||e.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=n.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),
b=[];e.each(["em","px","%","pt"],function(d,f){if(a.indexOf(f)>0)b=[parseFloat(a),f]});return b}});e.easing.jswing=e.easing.swing;e.extend(e.easing,{def:"easeOutQuad",swing:function(c,a,b,d,f){return e.easing[e.easing.def](c,a,b,d,f)},easeInQuad:function(c,a,b,d,f){return d*(a/=f)*a+b},easeOutQuad:function(c,a,b,d,f){return-d*(a/=f)*(a-2)+b},easeInOutQuad:function(c,a,b,d,f){if((a/=f/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,f){return d*(a/=f)*a*a+b},easeOutCubic:function(c,
a,b,d,f){return d*((a=a/f-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,f){if((a/=f/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,f){return d*(a/=f)*a*a*a+b},easeOutQuart:function(c,a,b,d,f){return-d*((a=a/f-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,f){if((a/=f/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,f){return d*(a/=f)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,f){return d*((a=a/f-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,
a,b,d,f){if((a/=f/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,f){return-d*Math.cos(a/f*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,f){return d*Math.sin(a/f*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,f){return-d/2*(Math.cos(Math.PI*a/f)-1)+b},easeInExpo:function(c,a,b,d,f){return a==0?b:d*Math.pow(2,10*(a/f-1))+b},easeOutExpo:function(c,a,b,d,f){return a==f?b+d:d*(-Math.pow(2,-10*a/f)+1)+b},easeInOutExpo:function(c,a,b,d,f){if(a==0)return b;if(a==
f)return b+d;if((a/=f/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,f){return-d*(Math.sqrt(1-(a/=f)*a)-1)+b},easeOutCirc:function(c,a,b,d,f){return d*Math.sqrt(1-(a=a/f-1)*a)+b},easeInOutCirc:function(c,a,b,d,f){if((a/=f/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,d,f){var g=0,i=d;if(a==0)return b;if((a/=f)==1)return b+d;g||(g=f*0.3);if(i<Math.abs(d)){i=d;c=g/4}else c=g/(2*Math.PI)*
Math.asin(d/i);return-(i*Math.pow(2,10*(a-=1))*Math.sin((a*f-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,f){var g=0,i=d;if(a==0)return b;if((a/=f)==1)return b+d;g||(g=f*0.3);if(i<Math.abs(d)){i=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/i);return i*Math.pow(2,-10*a)*Math.sin((a*f-c)*2*Math.PI/g)+d+b},easeInOutElastic:function(c,a,b,d,f){var g=0,i=d;if(a==0)return b;if((a/=f/2)==2)return b+d;g||(g=f*0.3*1.5);if(i<Math.abs(d)){i=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/i);if(a<1)return-0.5*i*
Math.pow(2,10*(a-=1))*Math.sin((a*f-c)*2*Math.PI/g)+b;return i*Math.pow(2,-10*(a-=1))*Math.sin((a*f-c)*2*Math.PI/g)*0.5+d+b},easeInBack:function(c,a,b,d,f,g){if(g==h)g=1.70158;return d*(a/=f)*a*((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,f,g){if(g==h)g=1.70158;return d*((a=a/f-1)*a*((g+1)*a+g)+1)+b},easeInOutBack:function(c,a,b,d,f,g){if(g==h)g=1.70158;if((a/=f/2)<1)return d/2*a*a*(((g*=1.525)+1)*a-g)+b;return d/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+b},easeInBounce:function(c,a,b,d,f){return d-e.easing.easeOutBounce(c,
f-a,0,d,f)+b},easeOutBounce:function(c,a,b,d,f){return(a/=f)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,a,b,d,f){if(a<f/2)return e.easing.easeInBounce(c,a*2,0,d,f)*0.5+b;return e.easing.easeOutBounce(c,a*2-f,0,d,f)*0.5+d*0.5+b}})}(jQuery);(function(e){e.fn.hoverIntent=function(h,l){var j={sensitivity:7,interval:100,timeout:0};j=e.extend(j,l?{over:h,out:l}:h);var k,q,n,r,m=function(c){k=c.pageX;q=c.pageY},s=function(c,a){a.hoverIntent_t=clearTimeout(a.hoverIntent_t);if(Math.abs(n-k)+Math.abs(r-q)<j.sensitivity){e(a).unbind("mousemove",m);a.hoverIntent_s=1;return j.over.apply(a,[c])}else{n=k;r=q;a.hoverIntent_t=setTimeout(function(){s(c,a)},j.interval)}},p=function(c){for(var a=(c.type=="mouseover"?c.fromElement:c.toElement)||c.relatedTarget;a&&
a!=this;)try{a=a.parentNode}catch(b){a=this}if(a==this)return false;var d=jQuery.extend({},c),f=this;if(f.hoverIntent_t)f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if(c.type=="mouseover"){n=d.pageX;r=d.pageY;e(f).bind("mousemove",m);if(f.hoverIntent_s!=1)f.hoverIntent_t=setTimeout(function(){s(d,f)},j.interval)}else{e(f).unbind("mousemove",m);if(f.hoverIntent_s==1)f.hoverIntent_t=setTimeout(function(){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;j.out.apply(f,[d])},j.timeout)}};
return this.mouseover(p).mouseout(p)}})(jQuery);$(function(){var e=$('#search-box input[name="q"]'),h=$("#search-box label").text();e.attr("value",h);e.focus(function(){if(this.value==h)this.value=""});e.blur(function(){if(this.value=="")this.value=h});$("#search-box").parent().submit(function(l){e.attr("value")==h&&l.preventDefault()})});$(window).load(loadMenu);
function loadMenu(){(function(){var e=$("<div>").addClass("mega-menu-content-wrapper").addClass("profile-border");$(".mega-menu-content").wrapInner(e);$(".hover-fix").removeClass("hover-fix")})();(function(){$(".mega-menu-content").each(function(){var e=0,h=$(".submenu",this),l=$(".blurb",this),j=0;l.children().first().find("> div").each(function(){if($(this).html().length>0){j+=$(this).outerWidth(true);if($(this).height()>e)e=$(this).height()}});e=Math.max(h.outerHeight(),e);var k=$(".mega-menu-content-wrapper",
this).first();$(this).width(h.outerWidth()+j+parseInt(k.css("padding-left"))*2+ +(parseInt(k.css("border-left-width"))*2));$(this).height(e);l.children().first().find("> div").each(function(){$(this).html().length>0&&$(this).height(e)})}).hide().css("visibility","visible")})();$(".mega-menu-item").hoverIntent({timeout:500,over:function(){var e=$(this).find(".mega-menu-content"),h=$(this).innerHeight()+(parseInt($(this).parent().css("padding-top"))-parseInt(e.css("padding-top")))+7,l=parseInt($(this).innerWidth()/
2-7);$(".mega-menu-item h2 a").removeClass("hover");var j=$("h2",this).first();j.click(function(){window.location.href=$("a",this).first().attr("href")});$("a",j).addClass("hover");$(".mega-menu-content").hide();e.css("top",h+"px");e.css("background-position",l+"px 0");e.show()},out:function(){$(this).find(".mega-menu-content").hide();var e=$("h2",this).first();$("a",e).removeClass("hover")}})};(function(e){function h(k){(k=j[l][k])||(k="");return k}var l=e("html").attr("lang"),j={sv:{previous:"F\u00f6reg\u00e5ende",next:"N\u00e4sta"},en:{previous:"Previous",next:"Next"}};e.fn.carousel=function(k){var q={slideDelay:0,useOverlayControls:false};k&&e.extend(q,k);this.each(function(){function n(i,o,v){if(o>d)o=b;else if(o<b)o=d;var t=Math.floor(o/c);e(".carousel-shortcuts a[rel!="+t+"] img",i.next()).attr("src","/webdav/images/system/gfx/carousel/shortcut.png");e(".carousel-shortcuts a[rel="+
t+"] img",i.next()).attr("src","/webdav/images/system/gfx/carousel/shortcut-active.png");v?e(i).attr("scrollLeft",o):e(i).animate({scrollLeft:o},1500)}function r(i,o){if(!e(i).is(":animated")){var v=o=="previous",t=e(i).attr("scrollLeft");t+=v?-c:c;n(i,t)}}var m=e(this);if(m.css("overflow")!="hidden"){m.css("overflow","hidden");var s=e(".carousel-item",m),p=s.length,c=e(s[1]).position().left-e(s[0]).position().left,a=m.width();a=Math.ceil(a/c);var b=0,d=(p-a)*c;p=e('<div class="carousel-controls">');
m.after(p);e(p).append('<a class="previous carousel-action" href="#" rel="previous"><img src="/webdav/images/system/gfx/carousel/previous.png" alt="'+h("previous")+'" /></a>').append(' <a class="next carousel-action" href="#" rel="next"><img src="/webdav/images/system/gfx/carousel/next.png" alt="'+h("next")+'" /></a>');if(a==1){var f=e('<div class="carousel-shortcuts">');s.each(function(i){e(f).append('<a class="carousel-action" href="#" rel="'+i+'"><img src="/webdav/images/system/gfx/carousel/shortcut.png" alt="'+
i+'" /></a>')});e(p).append(f);n(m,0,true)}e(p).append(e("<div>").css("clear","both"));e(".carousel-action",p).click(function(){var i=e(this).attr("rel");g&&clearInterval(g);if(i=="previous"||i=="next")r(m,i);else e(m).is(":animated")||n(m,i*c);return false});m.click(function(){g&&clearInterval(g)});if(q.slideDelay>=1E3)var g=setInterval(function(){r(m,"next")},q.slideDelay);q.useOverlayControls&&m.next(".carousel-controls").css("margin-top","-20px")}});return this}})(jQuery);$(window).load(function(){function e(h){function l(n){selector="meta[name="+h+n+"]";return $(selector).attr("content")}var j={},k=l("SlideDelay")*1E3,q=l("UseOverlayControls")=="Ja"?true:false;if(k>=1E3)j.slideDelay=k;j.useOverlayControls=q;return j}$("#feature .carousel").carousel(e("feature"));$("#extra-feature .carousel").carousel(e("extraFeature"));$(".carousel").carousel()});$(function(){if(!($.browser.msie&&$.browser.version.substr(0,1)==6)){var e=$.makeArray($("#schools-shortcuts option")),h=e.shift();$("#schools-shortcuts").after('<div id="schools-shortcuts-list"><div><span>'+$(h).text()+"</span></div><ul></ul></div>");$.each(e,function(){$("#schools-shortcuts-list ul").append('<li class="'+$(this).attr("class")+'"><a href="'+$(this).val()+'">'+$(this).text()+"</a></li>")});$("#schools-shortcuts-list").parent().parent().css("zIndex",1E3);$("#schools-shortcuts").remove();
$("#schools-shortcuts-list").hoverIntent({timeout:500,over:function(){$("#schools-shortcuts-list ul").show()},out:function(){$("#schools-shortcuts-list ul").hide()}})}});$(function(){$("#list-group-members ul").hide();var e=$("#list-group-members h3");e.each(function(){var h=$(this),l=h.next().find("li").length;h.text(h.text()+" ("+l+")")});e.css("cursor","pointer");e.click(function(h){$(h.target).toggleClass("open");$(h.target).next().slideToggle()})});$(function(){$("#bibl-my-loans").hoverIntent({timeout:500,over:function(){var e=$(this).find("#bibl-my-loans-content"),h=$(this).innerHeight()+(parseInt($(this).parent().css("padding-top"))-parseInt(e.css("padding-top")))+10;e.css("top",h+"px");h=$("h2",this).first();h.click(function(){window.location.href=$("a",this).first().attr("href")});$("a",h).addClass("hover");e.show()},out:function(){$(this).find("#bibl-my-loans-content").hide();var e=$("h2",this).first();$("a",e).removeClass("hover")}});
$("#bibl-my-loans-content").css("display","none").css("visibility","visible")});$(function(){var e=$("#news-calendar-selector").parent().next("div").next("div"),h=e.next("div").next("div"),l=$("#news-calendar-selector a.news").detach();e.find("div:last").css("height","15px");e.append(l);l=$("#news-calendar-selector a.calendar").detach();h.find("div:last").css("height","15px");h.append(l);h.hide();var j=$("#news-calendar-selector h2.news"),k=$("#news-calendar-selector h2.calendar");j.addClass("active");j.click(function(){j.addClass("active");k.removeClass("active");h.hide();e.show()});
k.click(function(){k.addClass("active");j.removeClass("active");e.hide();h.show()})});$(function(){if($("#hj-crosslinks").hasClass("hj-crosslinks-drop-down")){var e=$("#hj-crosslinks > li:first-child"),h=$("#hj-crosslinks-schools");h.css("height",h.height());h.hide();e.addClass("hj-crosslinks-contracted");e.prepend('<img src="/webdav/images/system/gfx/crosslinks/select.png" id="hj-crosslinks-select" />');$("#hj-crosslinks-select").click(function(){h.slideToggle();e.toggleClass("hj-crosslinks-contracted","normal");return false})}});$(function(){$('a[href*="studera.nu/aw/courseSearchResult.do"]').click(function(){var e=$(this).attr("href").split("?")[1];_gaq.push(["_trackEvent","Rektrytering","Till ans\u00f6kan hos Studera.nu",e]);return true})});

