$(document).ready(function(){
	
							
	Cufon.replace('#mainmenu a', { fontFamily: 'DINMenu', hover:true });
	Cufon.replace('.news strong, strong > not(#ForumContainer), .newsnoimage strong,.submenu li a', { fontFamily: 'DIN', hover:true });
	Cufon.replace('h1,h4,h2, .interactionblock, #submit, p b, address b', { fontFamily: 'DIN' });

	var $type;
	$("input").each(function(){
		$type = $(this).attr('type');
		$(this).addClass($type);
		$(this).parent('p').addClass($type);
	});

	$("a[rel=external]").each(function(i){
		this.target="_blank";
	});
	
	if($( ".register" ).length==0){
		if($( ".column-right" ).length>0){
			$( ".column-right" ).accordion({ header: 'h5' });
		}
	}
	else {
		$( ".register" ).accordion({ header: 'h5' });
	}
	
		if ($.browser.msie && $.browser.version.substr(0,1)==6){
		DD_belatedPNG.fix('h1 a img, .overlay');
	}
	
/*
	<!-- Shadowbox -->
	Shadowbox.init({
			  overlayColor: '#e1eef3',
			  language:		"en"
	});
*/
	
	if($(".login").length>0){
		$(".login").click(function(){
			
			 Shadowbox.open({
				  content:    '/~popups/aanmelden.cfm',
				  player:     "iframe",
				  height:     308,
				  width:      444
			 });
		});
	}
	
	if($("#logout").length>0){
		$("#logout").click(function(){
			 Shadowbox.open({
				  content:    '/~popups/afmelden.cfm',
				  player:     "iframe",
				  height:     308,
				  width:      444
			 });
		});
	}
	
});
