/**
 * @author Thanh Nguyen
 * @site http://www.sutekidane.net
 * @description	Behaviour for Pink Chinese
 */

jQuery.noConflict();

jQuery(document).ready(function() {
	var currentSidebar = jQuery.cookie('currentSidebar') == null ? 'primary' : jQuery.cookie('currentSidebar');	
	jQuery('.sidebar').hide();
	jQuery('#'+currentSidebar).fadeIn();
	jQuery('#shortcut-'+currentSidebar).attr('class', 'current');
	
	jQuery('#sidebars-shortcut li a').click(function(){
		jQuery('#sidebars-shortcut li a').attr('class','');
		jQuery('.sidebar').hide();
		jQuery('#'+jQuery(this).attr('rel')).fadeIn();
		jQuery(this).attr('class', 'current');
		jQuery.cookie('currentSidebar', jQuery(this).attr('rel'));
		return false;
	});
});