// ============================================================
// ＠＠
// Twitter Widgetタグの挿入
// 
// %update / 2011.09.01
// 
// %use / indispensableFunc.js
// %use / jquery
// %use / http://widgets.twimg.com/j/2/widget.js
// ============================================================

( function() {
	var targetId = 'TwitterWidgetArea';  // 挿入先id

	if( $('#' + targetId).size() === 0 ){  // 挿入先がないとき
		//alert('none');  // DBUG
		return;
	}

	/* 
	// プロフィールウィジェット
	new TWTR.Widget({
	id: targetId,  // id指定
	version: 2,
	type: 'profile',
	rpp: 4,
	interval: 10000,
	width: 200,
	height: 125,
	theme: {
	shell: {
	background: '#aaaaaa',
	color: '#ffffff'
	},
	tweets: {
	background: '#ffffff',
	color: '#333333',
	links: '#0a51a1'
	}
	},
	features: {
	scrollbar: true,
	loop: true,
	live: true,
	hashtags: true,
	timestamp: true,
	avatars: false,
	behavior: 'default'
	}
	}).render().setUser('moak_1').start();
	 */

	/* */
	// 検索ウィジェット
	new TWTR.Widget({
	id: targetId,  // id指定
	version: 2,
	type: 'search',
	search: 'moak_1',
	interval: 10000,
	title: '',
	subject: '',
	width: 200,
	height: 180,
	theme: {
	shell: {
	background: '#aaaaaa',
	color: '#ffffff'
	},
	tweets: {
	background: '#ffffff',
	color: '#333333',
	links: '#0a51a1'
	}
	},
	features: {
	scrollbar: true,
	loop: true,
	live: true,
	hashtags: true,
	timestamp: true,
	avatars: true,
	toptweets: true,
	behavior: 'default'
	}
	}).render().start();
	/* */

} )();

