/* -------------------------------------------------------------------------- */
/** 
 *    @fileoverview
 *       
 *
 *    @version rev001.2007-12-28
 *    @requires jquery.js
 *    @requires common.js
 */
/* -------------------------------------------------------------------------- */

// $(function(){   // this causes error when jqbrowser.js is applied.
BAAddOnload(function(){
	$.browser.setClass();
	$('#contents-body h1 + h2').addClass('h1+');
	$('#contents-body h1 + ul.anchor-link01').addClass('h1+');
	$('#contents-body h2 + h3').addClass('h2+');
	$('#contents-body h3 + h4').addClass('h3+');
	
	$('#contents-body .text-title + address').addClass('text-title+');
	$('#contents-body address + h2.text').addClass('address+');
	
	$('#contents-body dl dt:first-child').addClass('pseudo-first-child');
	$('#contents-body div.note-block dl:first-child').addClass('pseudo-first-child');
	$('#contents-body dl.column dd dl:first-child').addClass('pseudo-first-child');
	
	/* index-block */
	$('#contents-body div.index-block-group dl:first-child').addClass('pseudo-first-child');
	$('#contents-body div.cat-index-block-group dl:first-child').addClass('pseudo-first-child');
	$('#contents-body div.cat-index-block-group:first-child').addClass('pseudo-first-child');
	
	/* table.releases */
	$('#contents-body table.releases td ul.link-list-arrow li:first-child').addClass('pseudo-first-child');
	
	/* table.timeline */
	$('#contents-body table.timeline ul:first-child').addClass('pseudo-first-child');
	$('#contents-body table.timeline ol:first-child').addClass('pseudo-first-child');
	$('#contents-body table.timeline ul:first-child li:first-child').addClass('pseudo-first-child');
	$('#contents-body table.timeline ol:first-child li:first-child').addClass('pseudo-first-child');
	$('#contents-body table.timeline tr:first-child').addClass('pseudo-first-child');
	
	/* table.base */
	$('#contents-body table.base ul:first-child').addClass('pseudo-first-child');
	$('#contents-body table.base ol:first-child').addClass('pseudo-first-child');
	$('#contents-body table.base ul:first-child li:first-child').addClass('pseudo-first-child');
	$('#contents-body table.base ol:first-child li:first-child').addClass('pseudo-first-child');
	$('#contents-body table.base tr:first-child').addClass('pseudo-first-child');
	
	/* table.detail */
	$('#contents-body table.detail ul:first-child').addClass('pseudo-first-child');
	$('#contents-body table.detail ol:first-child').addClass('pseudo-first-child');
	$('#contents-body table.detail ul:first-child li:first-child').addClass('pseudo-first-child');
	$('#contents-body table.detail ol:first-child li:first-child').addClass('pseudo-first-child');
	
	/* ul.back */
	$('#contents-body ul.back + h2').addClass('back+');
	$('#contents-body ul.back + h3').addClass('back+');
	
	/* faq */
	$('#contents-body ul.question-list li:first-child').addClass('pseudo-first-child');
	$('#contents-body dl.answer-block dt:first-child + dd').addClass('first-child+');
	
	/* local-nav */
	$('#local-nav dd li:first-child').addClass('pseudo-first-child');
	
	/* ul.partner-list */
	$('#contents-body ul.partner-list li:first-child').addClass('pseudo-first-child');
	$('#contents-body ul.partner-list li:first-child + li').addClass('first-child+');
	$('#contents-body ul.partner-list li:last-child').addClass('pseudo-last-child');
	
	/* home */
	$('div.news-block ul.link-list-arrow li:first-child').addClass('pseudo-first-child');
	$('ul.info-list li:first-child').addClass('pseudo-first-child');
});


