// JavaScript Document


function makeBlock(who){
	
	var ele = jQuery(who);
	
	var bwWth = ele.width();
	var bwHth = ele.height();
	
	var bcWth = bwWth - 8;
	var bcHth = bwHth - 8;
	
	var bccWth = bwWth - 23;
	var bccHth = bwHth - 28;

	var bshdRwth = 6;
	var bshdRhth = bwHth;
	
	var bshdBwth = bwWth - 6;
	var bshdBhth = 6;
	
	var bshdRfilWth = 6;
	var bshdRfilHth = bwHth - 12;
	
	var bshdBfilWth = bwWth - 12;
	var bshdBfilHth = 6;
	
	var bcCss = {
	'width' : bcWth + 'px',
	'height' : bcHth + 'px',
	'border' : 'solid 1px #FFF',
	'background-color' : '#e90e88',
	'position' : 'relative',
	'float' : 'left'}
	
	var bccCss = {
	'width' : bccWth + 'px',
	'height' : bccHth + 'px',
	'position' : 'relative',
	'float' : 'left',
	'padding' : '10px 5px 10px 10px'}
	var bshdRCss = {
	'width' : bshdRwth + 'px',
	'height' : bshdRhth + 'px',
	'position':'relative',
	'float' : 'right'}
	
	var bshdBCss = {
	'position':'relative',
	'width' : bshdBwth + 'px',
	'height' : bshdBhth + 'px',
	'float' : 'left'}

	var bshdRfilCss = {
	'position':'relative',
	'width' : bshdRfilWth + 'px',
	'height' : bshdRfilHth + 'px',
	'background-repeat' :'repeat-y'}

	var bshdBfilCss = {
	'width' : bshdBfilWth + 'px',
	'height' : bshdBfilHth + 'px',
	'background-repeat':'repeat-x',
	'float' : 'right'
	}
	
	//jQuery(ele).children('#block_content').css(bcCss);
	jQuery(ele).children("#block_content").css(bcCss);
	jQuery(ele).children("#block_content").children("div[id*='block_content_holder']").css(bccCss);
	jQuery(ele).children("#block_shadow_right").css(bshdRCss);
	jQuery(ele).children("#block_shadow_bottom").css(bshdBCss);
	jQuery(ele).children("#block_shadow_right").children("#bg_shadow_block_right_filler").css(bshdRfilCss);
	jQuery(ele).children("#block_shadow_bottom").children("#bg_shadow_block_bottom_filler").css(bshdBfilCss);
}	




