if(typeof jQuery != 'undefined') {
	$(document).ready(function() {
		
		//tables
		$("table tr:first").addClass("head");
   		$("table tr:even:not(.head)").addClass("odd");
		
		// gradient
		$('#mgradient').gradient({
			from:      '000000',
			to:        '666666',
			direction: 'horizontal'
		});
		
		
		//round + shadow
		$(".csc-textpic-imagewrap img, .teaserImage img, .news-list-image img").each(function() {
		
				
		if ($(this).hasClass('mjRounded')) return;
		$(this).wrap(function() {
			mT = $(this).css("margin-top");
			mR = $(this).css("margin-right");
			mB = $(this).css("margin-bottom");
			mL = $(this).css("margin-left");
			// fix IE bug
			if (mT == 'auto') { mT = '0px'; }
			if (mR == 'auto') { mR = '0px'; }
			if (mB == 'auto') { mB = '0px'; }
			if (mL == 'auto') { mL = '0px'; }
			return '<div class="roundimgshadow"  style="'
					+ 'background: url(' + $(this).attr('src') + ') no-repeat left top; '
					+ 'width: ' + $(this).width() + 'px; '
					+ 'height: ' + $(this).height() + 'px; '
					+ 'margin-top: ' + mT + '; '
					+ 'margin-right: ' + mR + '; '
					+ 'margin-bottom: ' + mB + '; '
					+ 'margin-left: ' + mL + '; '
					+ '" />';
		});
		$(this).css("visibility", "hidden");
		$(this).css("margin", "0");
		$(this).addClass('mjRounded');
		if ($(this).parent().parent().is('a')) {
			$(this).parent().css('cursor', 'pointer');
		}
		 
	     
	});
		

	});
}
