$(function() {
	$("#tabs").tabs({ fx: { duration:'normal', opacity:'toggle' } });
	$("#accordion").accordion({ autoHeight:false, collapsible:true });
	$("#gallerylink").click(function () {
		window.location.href = this.href;
		$("#firstimage").triggerHandler('click');
	});
	//$('body#home #col_tweets').tweetable({username: 'capeotwaylight', time: true, limit: 1});
	//$('body#home #opera_tweets').tweetable({username: 'otwaysopera', time: true, limit: 1});
	//$('body#twitter #tweets').tweetable({username: 'capeotwaylight', time: true, limit: 20});
	
	$("body#home").each(function(index) {
		$("#col_tweets").tweet({
			count: 1,
			username: "capeotwaylight",
//			avatar_size: 20,
//			intro_text: "@capeotwaylight on Twitter:",
			time_prefix: ""
		});
		$("#opera_tweets").tweet({
			count: 1,
			username: "otwaysopera",
//			avatar_size: 20,
//			intro_text: "@otwaysopera on Twitter:",
			time_prefix: ""
		});
	});

	$("body#twitter").each(function(index) {
		$("#tweets").tweet({
			count: 20,
			username: "capeotwaylight",
			time_prefix: ""
		});
	});
		
});
