function placetwitter(twitheight,twitrows,twitcolor,twitsearch,twittype,twittitle,twitsubject) {

	if (twittitle==undefined) {twittitle=""};
	if (twitsubject==undefined) {twitsubject=""};

	if (twittype=="search") {
		new TWTR.Widget({
			version: 2,
			type: 'search',
			rpp: twitrows,
			search: twitsearch,
			interval: 6000,
			title: twittitle,
			subject: twitsubject,
			width: 'auto',
			height: twitheight,
			theme: {
				shell: {
				background: twitcolor,
				color: '#ffffff'
				},
				tweets: {
					background: '#ffffff',
					color: '#000000',
					links: twitcolor
				}
			},
			features: {
				scrollbar: true,
				loop: false,
				live: true,
				hashtags: true,
				timestamp: true,
				avatars: true,
				toptweets: true,
				behavior: 'all'
			}
}).render().start();
	}
	else if (twittype=="profile") {
		new TWTR.Widget({
			version: 2,
			type: 'profile',
			rpp: twitrows,
			interval: 6000,
			width: 'auto',
			height: twitheight,
			theme: {
				shell: {
					background: twitcolor,
					color: '#ffffff'
				},
				tweets: {
					background: '#ffffff',
					color: '#000000',
					links: twitcolor
				}
			},
			features: {
				scrollbar: true,
				loop: false,
				live: true,
				hashtags: true,
				timestamp: true,
				avatars: true,
				behavior: 'all'
			}
}).render().setUser(twitsearch).start();
	};

}


