$(window).load(function () {
	$("#d_left img.border").each(function () {
	     var w = $(this).width() + 4;
	     var h = $(this).height() + 4;
	     if (w >= 120) {
	         $(this).wrap('<div class="shadow_image1"><div class="shadow_image2"></div></div>');
	         if (($(this).css('float') == 'left') || ($(this).attr('align') == 'left')) {
	             //$(this).css({'float' : 'inherit'});
	             $(this).parent().parent().css({'float' : 'left', 'margin-left': '0px'});
	         } else if (($(this).css('float') == 'right') || ($(this).attr('align') == 'right')) {
	             //$(this).css({'float' : 'inherit'});
	             $(this).parent().parent().css({'float' : 'right', 'margin-right': '0px'});
	         }
	         $(this).parent().parent().css({'width' : w + 'px'});
	         $(this).parent().css({'height' : h + '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');
	         $(this).parent().parent().css('margin', '0px');
	     }
	});
	$("#d_left .zend_form input").addClass('ui-corner-all');
	$("#d_left .zend_form textarea").addClass('ui-corner-all');
});
$(document).ready(function () {
	$('.table_rows tr:odd').css('background-color', '#f7f6f6');
	$('#d_menu li.active + li').css('background-image', 'none');
});
