function design()
{
	$(".content img:not(.noborder)").each(function () {
	     var w = $(this).width() + 10;
	     if (w >= 282) {
	         $(this).wrap('<div class="image"></div>');
	         if ($(this).css('float') == 'left') {
	             $(this).css({'float' : 'none'});
	             $(this).parent().css({'float' : 'left', 'margin-left': '0px'});
	         } else if ($(this).css('float') == 'right') {
	             $(this).css({'float' : 'none'});
	             $(this).parent().css({'float' : 'right', 'margin-right': '0px'});
	         }
	         if (w < 331) {
	             var ceil = Math.ceil((331-w)/2);
	             $(this).parent().css({'padding-left' : ceil + 'px', 'padding-right' : ceil + 'px'});
	         }
	         
	         $(this).parent().css({'width' : w + 'px'});
	     } else {
	         if ($(this).css('float') == 'left') {
	             $(this).css("margin-left","0px");
	         } else if ($(this).css('float') == 'right') {
	             $(this).css("margin-right","6px");
	         }
	     }
	     if ($(this).is('form img')) {
	         $(this).css({"margin":"0px 0px 5px 0px"}).parent('.image').css("margin","0px");
	     }
	});

}
$(document).ready(function () {
	$('.content .table_rows tr:odd').css('background-color', '#333333');
	$('.content .table').wrap('<div class="table_bottom"></div>');
	$('.content .table_rows').wrap('<div class="table_bottom"></div>');
	$('.content .table_bottom table').css('margin-bottom', '0px');
	$('.content h1').dropShadow({left:1, top:1, blur:0, opacity:0.7, color:'black', swap: 0});
	$('#d_logo_flash, #d_logo_flash_inner').flash({ swf: '/images/440x190.swf', width:440, height:190, wmode: 'transparent'});
	var showPop = false;
	$('#d_line').bind('mouseenter', function () { 
		if (!showPop) {
			$('#d_lineb1').css({display: 'block'}).animate({top:'0px'}, 300, function () {showPop = true;});
		}
	});
	$('#d_line').bind('mouseleave', function () { 
		if (showPop) {
			$('#d_lineb1').animate({top:'-200px'}, 300, function () {showPop = false; $(this).fadeOut()});
			showPop = false;
		}
	});
	$('#d_menu ul li').each(function () {
		w = $(this).width();
		if ($('ul', this).width() < w) $('ul', this).width(w); 
	});
	$('#d_menu ul li').hover(function () {$('ul', this).css('display', 'block')}, function () {$('ul', this).css('display', 'none')});
	
});

function showMessage(msg) {
	$.jGrowl(msg, {
		sticky: false,
		glue: 'before',
		speed: 100,
		easing: 'swing',
		animateOpen: {
			height: 'show',
			width: 'show'
		},
		animateClose: {
			height: 'hide',
			width: 'show'
		}
	});
}


