/**
 * Common use this site.
 */
jQuery(function($){
	//Caption Sliding (Partially Hidden to Visible)
	$('div.boxgrid.caption').hover(function() {
		var cover = $('div.cover', this);
		cover.stop().animate({top: ($(this).height() - cover.height() +1)}, {queue:false, duration:200});
	}, function() {
		$('div.cover', this).stop().animate({top:91}, {queue:false, duration:400});
	});
	
	// round corner, Require "jquery.corner.js"
	$('#content h2').corner('round 10px top');
	$('#content > div.post-wrap').corner('round 10px bottom');
	$('#sidebar > div.sidebar-group').corner('round 12px').find('div.sidebar-item').corner('round 10px');
	$('#content div.category-thumbs div.boxgrid a.thumb').corner('round 3px').parent().corner('round 5px top');
	
	// scrollTo, Require "jquery.scrollTo-min.js"
	$('#content div.pageup a').click(function(){ $(window).scrollTo(0, 800, {queue:true}); return false; });
	
	// external link is open new window.
	var myhost = window.location.href.split('/')[2];	//alert(myhost);
	if (myhost) {
		$('a[href^=http]').not('[href*="'+ myhost +'"]').attr('target', '_blank');
	}
});

