var $jq = jQuery.noConflict();
$jq(document).ready(function() {
									  
	$jq('#SingleView .Overview .ImagesSmall td:last').addClass('Last');
	$jq('#SingleView .Documents').css('margin-top', '20px');
	
	$jq('#SingleView h2').css('padding-top', '20px');
	$jq("h2:contains('Performance'), h2:contains('Documents'), h2:contains('Overview'), h2:contains('Unterlagen'), h2:contains('Leistung')", $('#SingleView')).css('padding-top', '0px');	

	var ImagesBig = $jq('#SingleView .Overview .ImagesBig img');
	var ImagesSmall = $jq('#SingleView .Overview .ImagesSmall td');
	
	ImagesBig.eq(0).show();
	
	ImagesSmall.mouseover(function(index) {
		ImagesBig.hide();
		ImagesBig.eq(ImagesSmall.index(this)).show();
	});
	
	$jq("#SingleView .Documents a:not([id^='c'])").each(function () {
		if ($jq(this).text().indexOf('pdf') != -1) {
			$jq(this).replaceWith('<div class="PDF"><a target="_blank" href="' + $jq(this).attr('href') + '"><img alt="pdf_icon" src="fileadmin/templates/_renew/img/icon_pdf.gif" /></a><a target="_blank" href="' + $jq(this).attr('href') + '">' + $jq(this).text() + '</a></div>');
		}
	});

});
