
//$(function() {
//	$('#gastenboek a').each(function() {
//	        PIE.attach(this);
//	});
//}

var $j = jQuery.noConflict();

$j(function() {

	if($j('#boek-gospelband-impact').length){
		$j('#boek-gospelband-impact').fadeIn('slow');
	}
	
	// Lege hyperlinks verwijderen
	$j('#spotlight a[href=""]').parent().remove().remove();
	$j('#spotlight a[href="http://"]').parent().remove().remove();
	
	$j('#optredens ul a[href="http://"]').parent().remove().remove();
	$j('#optredens ul a[href=""]').parent().remove().remove();	
	
	// Speciaal voor Herman
	if($j('#wrapsocialenetwerken li').length < 1){
		$j('#wrapsocialenetwerken').remove();
	}		
	
	// comments en optredens			
 	$j('#wallcomments ul').cycle({ 
 		slideExpr: 'li',
		fx: 'fade',							   
		timeout:  12000, 
		speed:    900,
		next: '#img_top',
		prev: '#img_bottom'
	});  
	$j('#wallcomments').hover(function(){
		$j('#wallcomments ul').cycle('pause'); 
	},function(){
		$j('#wallcomments ul').cycle('resume');
	})		
	
 	$j('#spotlight ul').cycle({ 
		fx: 'fade',		
		slideExpr: 'li.agendapunt',					   
		timeout:  10000, 
		speed:    500
	}); 
	$j('#spotlight').hover(function(){
		$j('#spotlight ul').cycle('pause'); 
	},function(){
		$j('#spotlight ul').cycle('resume');
	})
	

	/* E-mail bescherming
	/*-----------------------------------------------------*/	

	$j('a.e-mail').each(function(){
		e = this.rel.replace('/','@');
		this.href = 'mailto:' + e;
		$j(this).text(e);
	});
		
	/* Widgets
	/*-----------------------------------------------------*/	
	

	$j('#picasa-widget br').remove();
	$j('#picasa-widget a').attr('href','/fotos/');
	
	
	$j('#picasa-widget p').cycle({ 
		fx: 'fade',							   
		timeout:  4000, 
		speed:    500,
		slideExpr: 'a'
	});  
	
	
	$j('picasa-widget').hover(function(){
		$j('#picasa-widget .center').cycle('pause'); 
	},function(){
		$j('#picasa-widget .center').cycle('resume');
	})	
	$j('#weblogs').cycle({ 
		fx: 'fade',							   
		timeout:  0, 
		speed:    0,
		pause: 1,
		random: 0
	}); 
	
	$j('.home_box .tekstvak').jScrollPane();
		
	
	
	$j(".band_updates #tweets").tweet({
        username: "bandimpact",
        join_text: "auto",
        avatar_size: 0,
        count: 2,
        auto_join_text_default: "", //we said
        auto_join_text_ed: "",//we 
        auto_join_text_ing: "",//we were
        auto_join_text_reply: "",//we replied to
        auto_join_text_url: "",//we were checking out
        loading_text: "Even geduld a.u.b..."//loading tweets
    }); 	
        
			
	/* Header
	/*-----------------------------------------------------*/	
	
	$j('.current_page_item a').before('<span class="left"></span>').after('<span class="right"></span>');	
	$j('.current-page-ancestor	 a').before('<span class="left"></span>').after('<span class="right"></span>');	
	
			
	
});


