	/* hoverIntent*/
	(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev]);}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev]);};var handleHover=function(e){var p=(e.type=="mouseover"?e.fromElement:e.toElement)||e.relatedTarget;while(p&&p!=this){try{p=p.parentNode;}catch(e){p=this;}}if(p==this){return false;}var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);}if(e.type=="mouseover"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob);},cfg.interval);}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob);},cfg.timeout);}}};return this.mouseover(handleHover).mouseout(handleHover);};})(jQuery);
	
/*
 * jQuery Color Animations
 * Copyright 2007 John Resig
 * Released under the MIT and GPL licenses.
 */

(function(jQuery){

	// We override the animation for all of these color styles
	jQuery.each(['backgroundColor', 'borderBottomColor', 'borderLeftColor', 'borderRightColor', 'borderTopColor', 'color', 'outlineColor'], function(i,attr){
		jQuery.fx.step[attr] = function(fx){
			if ( fx.state == 0 ) {
				fx.start = getColor( fx.elem, attr );
				fx.end = getRGB( fx.end );
			}

			fx.elem.style[attr] = "rgb(" + [
				Math.max(Math.min( parseInt((fx.pos * (fx.end[0] - fx.start[0])) + fx.start[0]), 255), 0),
				Math.max(Math.min( parseInt((fx.pos * (fx.end[1] - fx.start[1])) + fx.start[1]), 255), 0),
				Math.max(Math.min( parseInt((fx.pos * (fx.end[2] - fx.start[2])) + fx.start[2]), 255), 0)
			].join(",") + ")";
		}
	});

	// Color Conversion functions from highlightFade
	// By Blair Mitchelmore
	// http://jquery.offput.ca/highlightFade/

	// Parse strings looking for color tuples [255,255,255]
	function getRGB(color) {
		var result;

		// Check if we're already dealing with an array of colors
		if ( color && color.constructor == Array && color.length == 3 )
			return color;

		// Look for rgb(num,num,num)
		if (result = /rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(color))
			return [parseInt(result[1]), parseInt(result[2]), parseInt(result[3])];

		// Look for rgb(num%,num%,num%)
		if (result = /rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(color))
			return [parseFloat(result[1])*2.55, parseFloat(result[2])*2.55, parseFloat(result[3])*2.55];

		// Look for #a0b1c2
		if (result = /#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(color))
			return [parseInt(result[1],16), parseInt(result[2],16), parseInt(result[3],16)];

		// Look for #fff
		if (result = /#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(color))
			return [parseInt(result[1]+result[1],16), parseInt(result[2]+result[2],16), parseInt(result[3]+result[3],16)];

		// Otherwise, we're most likely dealing with a named color
		return colors[jQuery.trim(color).toLowerCase()];
	}
	
	function getColor(elem, attr) {
		var color;

		do {
			color = jQuery.curCSS(elem, attr);

			// Keep going until we find an element that has color, or we hit the body
			if ( color != '' && color != 'transparent' || jQuery.nodeName(elem, "body") )
				break; 

			attr = "backgroundColor";
		} while ( elem = elem.parentNode );

		return getRGB(color);
	};
	
})(jQuery);
	 
	$(document).ready(function(){
		$('a').focus(function(par) {this.blur();});
 
	
//*	
	$('.norm').hoverIntent(
	{
		sensitivity: 10,
		interval: 10,
		timeout: 10,
		over: aover,
		out: aout
	});
	$('.subnorm').hoverIntent(
	{
		sensitivity: 10,
		interval: 10,
		timeout: 10,
		over: aover4,
		out: aout4
	});
	$('.tall').hoverIntent(
	{
		sensitivity: 10,interval: 10,timeout: 10,
		over: aover2,out: aout2
	});
	$('.huge').hoverIntent(
	{
		sensitivity: 10,interval: 10,timeout: 10,
		over: aover3,out: aout3
	});
	
	$('#h_menu a').hoverIntent(
	{
		sensitivity: 10,interval: 10,timeout: 10,
		over: function(){ $(this).stop; $(this).animate({marginTop:"0",  color: "#fff", backgroundColor: "#555"},150);},
		out: function(){ $(this).stop; $(this).animate({marginTop:"0",  color: "#fff", backgroundColor: "#000"},450);}
	});
/* 
	$('#h_menu a').hover(
		function(){ $(this).stop; $(this).animate({marginTop:"0",  color: "#fff", backgroundColor: "#555"},150);},
		function(){ $(this).stop; $(this).animate({marginTop:"0",  color: "#fff", backgroundColor: "#000"},450);}
	);
 
	
//*/
 
	vis();
	});
	
	function vis(){
		//alert($("#hovedbilde2").is(":visible"));
		$("#hovedbilde2").fadeIn(3000);
		//$("#t3info2").fadeIn(3000);
		setTimeout("skjul()",3500);	}
	function skjul(){
		$("#hovedbilde2").fadeOut(2500);
		//$("#t3info2").fadeOut(2500);
		setTimeout("vis()",5000);
	}
 
	function aover() {anim($(this), "20", "#000",    "#DCF2FD", 150);}
	function aout()  {anim($(this),  "0", "#848688", "#c5e7fa", 250);}
 
	function aover2(){anim($(this), "20", "#000",    "#EEF9FE", 150);}
	function aout2() {anim($(this),  "0", "#848688", "#DCF2FD", 250);}
 
	function aover3(){anim($(this), "20", "#000",    "#F3FCFF", 150);}
	function aout3() {anim($(this),  "0", "#848688", "#EEF9FE", 250);}
 
	function aover4() {anim($(this), "20", "#000",    "#F6F6F6", 150);}
	function aout4()  {anim($(this),  "0", "#848688", "#DDDDDD", 250);}
 
	function anim(obj, mal, col, bg, speed){
		var sp = obj.find("span");
		obj.stop();
		sp.stop();
		obj.animate({ 
			color: col,
			backgroundColor: bg
			},speed );
		sp.animate({ 
			paddingLeft: mal
			},speed );
	}
