$(document).ready(function() {
	$('.box:nth-child(4n+4)').css('margin-right', '0px');
	$('.box:nth-child(5)').css('border', 'none').css('padding-bottom', '0px').css('padding-top', '0px');
	$('.box:nth-child(6)').css('border', 'none').css('padding-bottom', '0px').css('padding-top', '0px');
	$('.box:nth-child(7)').css('border', 'none').css('padding-bottom', '0px');
	$('.box:nth-child(8)').css('border', 'none').css('padding-bottom', '0px').css('padding-top', '0px');
	$('#footer ul li:nth-child(1)').css('background', 'none').css('padding-left', '0px');
	$('#footer ul li:nth-child(2) a').css('padding-left', '33px').css('background', 'url(Files/Templates/Designs/Ziteman/images/icon-blog.png) center left no-repeat').css('color', '#94193b');
	$('#nav ul li a.activeitem').parent().addClass('active');
	$('#nav ul li a.inpath').parent().addClass('active');

	// Cross Browser Placeholder input[type=text]
	function placeholder(){  
		$("input[type=text]").each(function(){  
			var phvalue = $(this).attr("placeholder");  
			$(this).val(phvalue);  
		});  
		}  
	placeholder();  
		
	$("input[type=text]").focusin(function(){  
		var phvalue = $(this).attr("placeholder");  
		if (phvalue == $(this).val()) {  
			$(this).val("");  
		}  
	});  
		
	$("input[type=text]").focusout(function(){  
		var phvalue = $(this).attr("placeholder");  
		if ($(this).val() == "") {  
			$(this).val(phvalue);  
		}  
	}); 

	
	//$('#aargang').cycle({ 
    //fx:     'scrollLeft', 
    //timeout: 3500, 
	//});
	
	$('#nyheder').cycle({ 
    fx:    'scrollRight', 
    delay: 2500,
	easing: 'backout'	
	});
	
	$('#slider').delay(5000).cycle({ 
    fx:    'scrollDown', 
    delay: 3700,
	easing: 'backout'	
	});
	
});
