// **********************************************************************
// Javascript File
// Raphael Durrer
// Datum: 29. März 2011
// Website: GAB - Gemeinschaft Alternativer Bergradfahrer
// **********************************************************************

// wait for the DOM to load using jQuery
// $(function() {
// 	
// 	// setup player normally
// 	$f("player1", "js/flowplayer/flowplayer-3.2.7.swf", {
// 	
// 		// clip properties common to all playlist entries
// 		clip: {
// 			baseUrl: 'http://vimeo.com/Bergradfahrer/',
// 			subTitle: 'Vimeo',
// 			time: '20 sec'
// 		},
// 		
// 		// our playlist
// 		playlist: [
// 			{
// 				url: 'http://www.youtube.com/embed/w1cKKnjkDmc',
// 				title: 'IXS Swiss Cup Bellwald 2010'
// 			},	
// 			{
// 				url: 'KimAronson-TwentySeconds58192.flv',
// 				title: 'Happy feet in a car'
// 			},	
// 			{
// 				url: 'KimAronson-TwentySeconds63617.flv',
// 				title: 'People jogging'
// 			}
// 		],
// 		
// 		// show playlist buttons in controlbar
// 		plugins: {
// 			controls: {
// 				playlist: true
// 			}
// 		}
// 	});
// 	
// 	/*
// 		here comes the magic plugin. It uses first div.clips element as the 
// 		root for as playlist entries. loop parameter makes clips play
// 		from the beginning to the end.
// 	*/
// 	$f("player1").playlist("div.clips:first", {loop:true});
// 	
// });

$(document).ready(function() {
	
	$('#flickr').flickrGallery({
	    api_key: 'a0ab42267dcda02cdf6a95cefabb4abc',
	    user_id: '47834356@N06',
	    photoset_ids: [
	        '72157623594374589',
			'72157623727166220',
			'72157623594447527',
			'72157623594336523',
			'72157623594306299',
			'72157623718864382',
			'72157623374165221'
	    ],
	    loading_msg: 'Loading ...',
	    thumb_click_hide: false,
	    slideshow_interval: 5000
	});


	$('.twitter').twitterfeed('Bergradfahrer', {
	    limit: 5,
		header:	false,	//If true, includes the header section containing the user icon and name.
		tweeticon:false,	//If true, includes the user icon in each tweet.
		tweetname:false,	//If true, includes the user name in each tweet.
		tweettime:false	//If true, includes the lasped time since the tweet was posted.
	  });
});

