jQuery(function(){
	if(jQuery.browser.msie){
		jQuery("body").addClass("msie");
	}
	if (navigator.platform.indexOf("Win") != -1) {
		jQuery("body").addClass("win");
	}
	jQuery(document).pngFix();
	jQuery("#music li a").attr("rel","nofollow");
	
	jQuery.getJSON("http://twitter.com/statuses/user_timeline/daichifive.json?callback=?", function(data) {
		var tweet = data[0].text;
		tweet = tweet.replace(/(s?https?:\/\/[-_.!~*'()a-zA-Z0-9;\/?:@&=+$,%#]+)/gi,'<a href="$1" target="_blank">$1</a>');
		tweet = tweet.replace(/#(\w+)/gi,'<a href="http://twitter.com/search?q=%23$1" target="_blank">#$1</a>');
		tweet = tweet.replace(/@(\w+)/gi,'<a href="http://twitter.com/$1" target="_blank">@$1</a>');
		jQuery("#tweet").html(tweet);
	});
	
});

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-2260059-4']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
