// JavaScript Document
$(document).ready( function(){
	
	//fade - sponsors
	$('#sponsors ul').innerfade({ speed: 1000, timeout: 3000, type: 'sequence', containerheight: '160px' }); 
    $('.fade').innerfade({ speed: 'slow', timeout: 1000, type: 'sequence', containerheight: '1.5em' });
	
	var articleHeight 	= $("#article-area").height();
	var menuHeight 		= $("#menu-area").height();
	


	if( menuHeight < articleHeight){
		$("#menu-area").height(articleHeight);
		
	} else {
		$("#article-area").height(menuHeight);
	}	
	
	
	$("#header-search input").focus( function(){
	
		$("input").css({ color: "#666666" });
				
	});
	
	
	//klik på lille stiker logo i bunden
	$("#ccc-logo-small").click(function() {
		window.location.href = "/";
	});
	
	
	$("#ccc-logo-small").hover(function(){
		$(this).css({ cursor:"pointer" });
	},function(){ });
	
	
	$("#ccc-logo-small").hover(function() {
		$(this).css
	});
	
	//sIFR Replacement
	if(typeof sIFR == "function"){
    	sIFR.replaceElement("h1.branding", named({sFlashSrc: ".fonts/franklin.swf", sColor: "#000"}));
		sIFR.replaceElement("h1.front-headline", named({sFlashSrc: ".fonts/franklin.swf", sColor: "#000"}));
		sIFR.replaceElement("h1.countdown-event", named({sFlashSrc: ".fonts/franklin.swf", sColor: "#000"}));
	};

});
