$(document).ready(function(){
	$('.header_nav .menu_right a').click(
		function(){
			$('.header_nav .menu_right a').removeClass('active');
			$(this).addClass('active');
		}
	)
})


// share link
function shareLink(type)
{	
	switch(type)
	{
		case 'yume':
			window.open('http://yume.vn/share_partners/link?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title), 'yumeshare','toolbar=1,status=0,width=980,height=475,scrollbars=1,menubar=1,location=1,resizable=1','_blank');
			break;
		case 'facebook':
			window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title),'sharer',',width=980,height=600');		
			break;
		case 'yahoo':
			document.getElementById('yahoo_share').href="ymsgr:im?msg="+document.title+' '+location.href;		
			break;
		case 'yahoo2':
			document.getElementById('yahoo_share2').href="ymsgr:im?msg="+document.title+' '+location.href;		
			break;
		case 'twitter':
			window.open('http://twitter.com/home?status=Reading:'+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title),'sharer',',width=980,height=600');		
			break;
		case 'linkedin':
			window.open('http://www.linkedin.com/shareArticle?mini=true&url='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title),'sharer',',width=980,height=600');		
			break;
	}
	return false;
}
