$(function(){ // after document loaded
		   
	// external links target added dynamicly	   
	$("a[rel='extern']").each(function(){
			$(this).attr("target","_blank");
		});

	// remove borders
	$("#rightcol div.sidebarbox:last").css("border","0");
	$("#metanav_right ul li:last, #metanav_left ul li:last").css("border","0");
	
	// init navigation
	$("#navigation").droppy();
	$("#metanavi").droppy();

	// blinky
	$('.blink').each( function(){
		$(this).oneTime(100,'blinky', function(){animateColorBlink(this)});
	});
	

});
// end on load document




// custom blink functions 
function animateColorBlink(el){
	c = $(el).css('color');
	$(el).css({backgroundPosition: '0 1px'});
	$(el).animate({
		color: 'red'
	}, 1000, function(){
		$(el).animate({
			color: c
		}, 1000, function(){ animateColorBlink(el); });
	
	});
};



