$(document).ready(function() {
	$(".style-ul ol").each(function() {
		$(this).find("li").each(function(index) {
			$(this).prepend("<span class='bullet'>" + (index+1) + "</span>");		
		});
	});

	$(".style-ul .list_normal ul").each(function() {
		$(this).find("span").each(function() {
			$(this).remove('.bullet');		
		});
	});

	$('.tekst').focus(function() {
		$(this).css({'background-color' : '#ECF5FC'}),
		$(this).css({'color' : '#000'})
	});
	$('.tekst').blur(function() {
		$(this).css({'background-color' : '#ffffff'}),
		$(this).css({'color' : '#999999'})		
	});		
	$('.default').focus(function() {
		$(this).css({'background-color' : '#ECF5FC'}),
		$(this).css({'color' : '#000'})
	});
	$('.default').blur(function() {
		$(this).css({'background-color' : '#ffffff'}),
		$(this).css({'color' : '#999999'})
	});				
	
	$('.button_top a').hover(
	function() {
		$('.button_top_line').css({'color' : '#023168'})							  	
	},
	function() {
		$('.button_top_line').css({'color' : '#979797'})							  	
	});
	
	$("a.location").fancybox({
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
		'overlayOpacity':	0.8,
		'overlayColor'  :   '#000'
	});	

	$('.madeby a[href^="http://"]')	.attr({ target: "_blank" }); //Makes all links open in a new window
	$('.madeby a[href^="http://"].target')	.attr({ target: "_blank" }); //a link with the class of "target" opens in a new window
		
});
