
Cufon.replace('a.link', {fontFamily: 'MCG-Bold', hover: true});
Cufon.replace('a.hitMe', {fontFamily: 'MCG-Bold', hover: true});
Cufon.replace('.cufonText', {fontFamily: 'MCG-Bold'});
Cufon.replace('.cufonTitle', {fontFamily: 'MCG-Bold', hover: true});
Cufon.replace('.scheduleTop', {fontFamily: 'MCG-Bold', hover: true});
Cufon.replace('h1', { fontFamily: 'MC'});
Cufon.replace('h2', { fontFamily: 'MC'});


//Cufon.replace('.tab_nonactive', { fontFamily: 'MCG-Bold'});
//Cufon.replace('.tab_active', { fontFamily: 'MCG-Bold'});
//Cufon.replace('.ticketing_tab_nonactive a', { fontFamily: 'MCG-Bold'});
//Cufon.replace('.ticketing_tab_active a', { fontFamily: 'MCG-Bold'});
//Cufon.replace('.ticketing_tab_active_login', { fontFamily: 'MCG-Bold'});
Cufon.replace('.bestelknop-bio', { fontFamily: 'MCG-Bold'});
Cufon.replace('a.schema_bestel', { fontFamily: 'MCG-Bold'});





$(document).ready(function(){
	if ($('#over').length) {
		var so = new SWFObject('js/player.swf','video','720','404','9');
		so.addParam('allowfullscreen','true');
		so.addParam('allowscriptaccess','always');
		so.addVariable("wmode","transparent");
		so.addParam("wmode","opaque");
		so.addParam('bgcolor','#000000');
		so.addParam('flashvars','file=http://www.mconline.nl/hn12/MC_HN_2011_720x404.flv&autostart=true&icons=false&dock=false&controlbar=over');
		so.write('mediaspace');
		
		$('#overlay').click(function(){
			$('#video').hide();		
			$(this).hide();
		});
	}
});


$(document).ready(function(){
	$('.crewListSmall a').tooltip({
		showURL: false,
		top: 12, 
		left: 5 
	});
	
	$(".crewList li").mouseover(function(){
		$(this).find('.overlayText').show();
		$(this).find('.overlayCrew').show();

	});

	$(".crewList li").mouseout(function(){
		$(this).find('.overlayText').hide();
		$(this).find('.overlayCrew').hide();

	});
	
	$(".moreNews").click(function(){
		var morenews = $(this);
		morenews.addClass('loading');
			
		$.ajax({
				url : morenews.find('a').attr('href'),
				success: function(html){
					
						var news = $(html).find('div.newsIntro');
						if (news.length) {
							news.insertBefore('div.moreNews')
							var url = $(html).find('div.moreNews a').attr('href');
							morenews.find('a').attr('href', url);
							morenews.removeClass('loading');
							Cufon.replace('h2', { fontFamily: 'MC'});
						}
						
						if (news.length < 3){	
							$('div.moreNews').hide();
							morenews.removeClass('loading');
							$('div.newsIntro').last().addClass('last');
						}	

						return false;						
					
				}
		});	
		
		return false;
		
	});
	
	$(".scheduleDateContainer").click(function(){
		$(this).parents(".schedule").find('.toggleContainer').toggle();
	
	});
	
});

function mcPostSubmit() {
	$('#mcPostForm').attr('action');
	$.ajax({
		type: 'GET',
		url: $('#mcPostForm').attr('action'),
		data: $('#mcPostForm input').serialize(),
		success: function(html){
			alert('Wij hebben uw gegevens ontvangen. Hartelijk dank');
		},
		error: function (msg, error){
			// return an actual http message
                        alert('Wij hebben uw gegevens ontvangen. Hartelijk dank');
                }
	});
}

