$(function(){
/*
	$('span.s_ico').each(function(){
		var ico_title = $(this).find('a').attr('title');
		$(this).append('<em>'+ico_title+'</em>');
	}).find('a').removeAttr('title');
	$("span.s_ico").hover(function(){
		$(this).find('em').stop(true, true).animate({opacity: "show", left: "-150px"}, "slow");
	}, function(){
		$(this).find("em").animate({opacity: "hide", left: "0"}, "fast");
	});
*/
	/*Contact starts here
	$('#contactAt').contactable({
		recipient: 'email@companyname.com',
		subject: 'The Quick Message'
	});
	Contact Ends here*/
	
	//$('.news li:last').css('borderBottom', 'none');
	$('.news').each(function(){
		$(this).find('li:last').css('borderBottom', 'none');
	})
	
	//Twit start here
	twitShowStatus = 1;
	function twitShow() {
			$('div#twitable').animate({"marginLeft": "-=5px"}, "fast"); 
			$('#twitform').animate({"marginLeft": "-=0px"}, "fast");
			$('div#twitable').animate({"marginLeft": "+=523px"}, "slow"); 
			$('#twitform').animate({"marginLeft": "+=520px"}, "slow");
			$('.twitContainer .close').css({right: '-4px'});
			twitShowStatus = 0;
		}
	function twitHide() {
			$('#twitform').animate({"marginLeft": "-=520px"}, "slow");
			$('div#twitable').animate({"marginLeft": "-=523px"}, "slow").animate({"marginLeft": "+=5px"}, "fast"); 
			$('.twitContainer .close').css({right: '0px'});
			twitShowStatus =1;
		}
	
		$('div#twitable').click(
			function() {
			if(twitShowStatus==1)
				twitShow();
			else
				twitHide();
		
		});
	
	username = 'timesong';// twitter User name
	$('#twitform').twit(username);
	$('#twitform').twit(username, {
	limit: 5,
	label: 'Twitter',
	title: 'My tweets'
	});
	//Twitter ends here
});
