$(document).ready(function(){
var myTimer = {};
	
$('.LeftMenyBottom').bind('mouseenter',function(){		
		$('.InsideMenyBottomHead').hide();
		$('.InsideMenyBottomBody').hide();
		$('.RightMenyBottom').hide();

		$('.InsideMenyBottomHeadH').show();
		$('.InsideMenyBottomBodyH').show();
		$('.RightMenyBottomH').show();

	}).bind('mouseleave',function(){
		$('.InsideMenyBottomHead').show();
		$('.InsideMenyBottomBody').show();
		$('.RightMenyBottom').show();

		$('.InsideMenyBottomHeadH').hide();
		$('.InsideMenyBottomBodyH').hide();
		$('.RightMenyBottomH').hide();
	});
	$("ul#ticker01").show();
	$("ul#ticker01").liScroll({travelocity: 0.02});

	$('.TheSub').hide();

	$('#selected').parent().find('.TheSub').show();
	$('#selected').css({'color':'orange'});


	$('.Meny').click(function(){
		$('.Meny').find('.TheSub').hide();
		$(this).find('.TheSub').show();
		$('.Meny').find('.link').css({"color":"#fff"});
		$(this).find('.link').css({"color":"orange"});
	});

	$('.Bilde').bind('mouseenter',function(){
		$(this).find('.BildeSW').hide();
		$(this).find('.BildeCol').show();
		$(this).find('.BildeText').show();
	});

	$('.BildeCol').bind('mouseleave',function(){
		
		$('.BildeSW').show();
		$('.BildeCol').hide();
		$('.BildeText').hide();
	});

	var cst = $('#ContentSub').height();
	var ls = $('#LeftMenyTop').height();
	var ch = $('#ContentSub').height();
//	alert(cst);
	var tot = cst-ls;
	if(cst > 600)
	{ 
		$('.RestLeft').height(tot-141);
//		$('.Bottom').css({"position":"absolute"});
//		$('.Bottom').css({"top":ch+tot-250});
		$('#shadow').css({"height":cst+250});
	}else{
		$('.RestLeft').hide();
	}

	$('#CloseFrontInfoKnapp').click(function(){
		$(this).parent().parent().parent().fadeOut();
	});

//	myTimer = $.timer(1000,function(){
//		$('#FrontInfoShadow').fadeIn();
//		$('#FrontInfoText').fadeIn();
//		$('.FrontInfoText').fadeIn();
//		$('.CloseFrontInfo').fadeIn();
//	});

});