$(document).ready(function() {
	


	$('.imageviewer a').fancybox();

	
	$(document).ready(function() {
	
	$("span", this).stop().animate({top:'120px'},{queue:false,duration:0});
		$('#feature .slidedown').hover(function(){
					$("span", this).stop().animate({top:'70px'},{queue:false,duration:300});
				}, function() {
					$("span", this).stop().animate({top:'120px'},{queue:false,duration:300});
				});

		
		$("tr:nth-child(odd)").addClass("odd");
	
	

	$('a[href$="pdf"]').addClass('pdf');
		$('a[href$="txt"], a[href$="rft"]').addClass('txt');
		$('a[href$="doc"],a[href$="docx"]').addClass('word');
		$('a[href$="wmv"]').addClass('video');
		$('a[href$="xls"], a[href$="xlsx"]').addClass('excel');
		$('a[href$="ppt"], a[href$="pptx"]').addClass('powerpoint');
		$('a[href$="zip"], a[href$="rar"]').addClass('archive');
	 	$('a[href^="mailto:"]').addClass("mailto");
	 	$('a').filter(function() {
			//Compare the anchor tag's host name with location's host name
			return this.hostname && this.hostname !== location.hostname;
		}).attr("target", "_blank").attr("title","Open link in een nieuw venster");
	});
	
});
