// AddBlock.js (c) copyright 2008 tenderfeel.
// 角丸背景処理とか

window.addEvent('domready', function(){
	
	$$('body').removeClass('off');
	$$('body').addClass('on');
	
	if(Browser.Engine.trident){
		
		var menus = $('sidebar').getElements('div');
		menus.each(function(el){
			var myDiv = new Element('div',{
				'styles':{
					'background':'url(images/lioness/bg_menu_u.png) no-repeat center top',
					'height':'13px',
					'line-height':'0'
				},
				'html':'&nbsp;'
			});
			myDiv.inject(el);
		});
	}
	
	if($('lioness')){
		var wrapTop = new Element('div',{
					'styles':{
						'background':'url(images/lioness/bg_content_t.png) no-repeat center top',
						'height':'13px',
						'line-height':'0'
					},
					'html':'&nbsp;'
				});
		wrapTop.inject($('header'),'after');
	}
	
	if($('leo')){
		var wrapTop = new Element('div',{
					'styles':{
						'background':'url(images/leo/bg_content_t.png) no-repeat left top',
						'height':'13px',
						'line-height':'0'
					},
					'html':'&nbsp;'
				});
		wrapTop.inject($('content'),'top');
		
		var wrapBtm = new Element('div',{
				'styles':{
					'background':'url(images/leo/bg_content_u.png) no-repeat left top',
					'height':'13px',
					'line-height':'0',
					'clear':'both',
					'margin-left':'5px'
				},
				'html':'&nbsp;'
			});
		wrapBtm.inject($('content'),'after');
		
		/* detail */
		var dtlTop = new Element('div',{
					'styles':{
						'background':'url(images/leo/bg_detail_t.png) no-repeat left top',
						'height':'13px',
						'line-height':'0'
					},
					'html':'&nbsp;'
				});
		dtlTop.inject($('detail'),'top');
		
		var dtlBtm = new Element('div',{
				'styles':{
					'background':'url(images/leo/bg_detail_u.png) no-repeat left top',
					'height':'13px',
					'line-height':'0',
					'clear':'both',
					'margin-left':'5px'
				},
				'html':'&nbsp;'
			});
		dtlBtm.inject($('detail'),'after');
		
	}
});