$(document).ready(function(){
	$("a.subMenuImg").hover(function(){
		$("span#showBoxDefault").hide();
		$("span#showBoxHover").empty().append(refImgs[$(this).attr("id")].head).show();
		$("div#newsBoxDefault").hide();
		$("div#newsBoxHover").empty().append(refImgs[$(this).attr("id")].txt).show();
	}, function(){
		$("span#showBoxHover").hide();
		$("span#showBoxDefault").show();
		$("div#newsBoxHover").hide();
		$("div#newsBoxDefault").show();
	});

	// Virker tilsyneladende ikke ordentligt i IE6 eller IE7
	// $("div#newsBoxDefault").center();
	// corner Test
	//$("div#languageBox").corner({tl:{radius:10},tr:{radius:10},bl:{radius:10},br:{radius:10},antiAlias:true,autoPad:true,validTags:["div"]});
});

/*
function rndSpeed(size){
	if (!size){
		size=1001;
	} else {
		size+=1;
	};
	return Math.floor(Math.random()*size);
};

function fadeRed(redId) {
	var spd = rndSpeed(70000);
	$.timer(spd, function(timer){
		$("li#"+redId).fadeIn(spd);
		$("li#"+redId).fadeOut(spd); 
		spd=rndSpeed(10000);
		timer.reset(spd);
	});
};
function fadeRedOut(redId) {
	$("li#"+redId).fadeOut(rndSpeed(), fadeRedIn(redId));
}
*/

// jquery.curvycorners.packed.js
//$(".box").ready(function(){ $(".box").corner({tl:{radius:10},tr:{radius:10},bl:{radius:10},br:{radius:10},antiAlias:true,autoPad:true,validTags:["div"]});});

