function changeNoticeTab(idx) {
	for (var i = 1; i < 4; i++) {
		if (i == idx) {
			jQuery("#noticebtn" + i).attr("src","./ccej/image/notice_butt0" + i + ".gif");
			jQuery("#noticetab" + i).show();
		}
		else {
			jQuery("#noticebtn" + i).attr("src","./ccej/image/notice_butt0" + i + "_off.gif");
			jQuery("#noticetab" + i).hide();
		}
	}
}
function changeSocialTab(idx) {
	for (var i = 1; i < 4; i++) {
		if (i == idx) {
			jQuery("#socialbtn" + i).attr("src","./ccej/image/social_butt0" + i + ".gif");
			jQuery("#socialtab" + i).show();
		}
		else {
			jQuery("#socialbtn" + i).attr("src","./ccej/image/social_butt0" + i + "_off.gif");
			jQuery("#socialtab" + i).hide();
		}
	}
}

function changeTab(tab, idx) {
	for (i=0; i<3; i++) {
		if (i == idx) {
			jQuery("#tab_"+tab+"_"+i).show();
			jQuery("#tabbtn_"+tab+"_"+i).attr('class','menu_select');
		}
		else {
			jQuery("#tab_"+tab+"_"+i).hide();
			jQuery("#tabbtn_"+tab+"_"+i).attr('class','list');
		}
	}
}

function drawTwitterWidget(w, h, shbgcolor, shcolor, twbgcolor, twcolor, twlncolor)
{
	new TWTR.Widget({
		  version: 2,
		  type: 'search',
		  search: '경실련',
		  interval: 30000,
		  width: w,
		  height: h,
		  theme: {
		    shell: {
		      background: shbgcolor,
		      color: shcolor
		    },
		    tweets: {
		      background: twbgcolor,
		      color: twcolor,
		      links: twlncolor
		    }
		  },
		  features: {
		    scrollbar: false,
		    loop: true,
		    live: true,
		    hashtags: true,
		    timestamp: true,
		    avatars: true,
		    toptweets: true,
		    behavior: 'default'
		  }
	}).render().start();
}
