var $j = jQuery.noConflict();
$j(document).ready(function(){

	$j('ul li:first-child').addClass('first');
	$j('ul li:last-child').addClass('last');
	
	$j('tr:first-child').addClass('first');
	$j('tr:last-child').addClass('last');
	
	$j('td:first-child').addClass('first');
	$j('td:last-child').addClass('last');

	$j('.blueBox .widget:first-child').addClass('left');
	$j('.blueBox .widget:last-child').addClass('right');

	$j('ul li ul').parent().addClass('parent');
	
	// BANNER 
	$j('.mImage .category_images_ii').next().remove();
	$j('.mImage .category_images_ii').children().children().children().css({
		'width': 976,
		'height': 228
	});
	$j('.mImage img').css('display', 'block');
	
divide_ul_content();

});

function divide_ul_content(){
 var li_data = new Array();
 var li_data_count = 0;
 
 $j('#ul_list li').each(function(){
  li_data_count++;
  li_data[li_data_count] = $j(this).html();
 });
 
 var li_data_count_half = parseInt(li_data_count/2)+1;
 
 var ul_list_html = '';
 for(i=1;i<=li_data_count_half;i++){
  ul_list_html += '<li>'+li_data[i]+'</li>';
 }
 
 var ul_list_html2 = '';
 for(c=li_data_count_half+1;c<=li_data_count;c++){
  ul_list_html2 += '<li>'+li_data[c]+'</li>';
 }
 
 $j('#ul_list').html(ul_list_html);
 $j('#ul_list2').html(ul_list_html2);
 
}

