var $j = jQuery.noConflict();

$j(document).ready(function(){
	
/* ###################################################################################### */
/* GENERAL                                                                                */
/* ###################################################################################### */ 

	$j('#aktWohnprojekt9 .anmeldung').html('<a href="http://www.walding.at/system/web/person.aspx?detailonr=20125" target="_blank">Weitere Informationen &gt;&gt;</a>');
	


/* ###################################################################################### */
/* TABELLE                                                                              */
/* ###################################################################################### */ 
	
	/* ACTIVATE TABS */ 
	$j('table.contenttable tr:odd td').addClass('oddTable');
	$j('table.contenttable td:first-child').addClass('leftTable');



/* ###################################################################################### */
/* MENU MIT BILDERN                                                                              */
/* ###################################################################################### */ 
	
	$j('#menuWithPic div.item a:first-child').each(function () {
		//alert('test' + this.children());
		//var a1 = $j(this + 'a:first-child');
		//var a2 = $j(this + 'a:last-child');
		//alert(a1);
		//$j(this).replaceWith('test' + a1);
		
		//this.insertAfter();
		$j(this).parent().append(this);
		//$j(this).insertAfter('#menuWithPic div a:last-child');
		//alert(this).insertAfter(this.);
	});
	$j('.subline').each(function () {
		//alert('test' + this.children());
		//var a1 = $j(this + 'a:first-child');
		//var a2 = $j(this + 'a:last-child');
		//alert(a1);
		//$j(this).replaceWith('test' + a1);
		
		//this.insertAfter();
		$j(this).parent().append(this);
		//$j(this).insertAfter('#menuWithPic div a:last-child');
		//alert(this).insertAfter(this.);
	});	//$j('#menuWithPic div a:first-child').insertAfter('#menuWithPic div a:last-child');

	
/* ###################################################################################### */
/* ABSTAND UL ZU P                                                                        */
/* ###################################################################################### */ 
	
 $j(".content p.rot + ul").prev().addClass('noMargin');	
 $j(".content p + ul").prev().addClass('noMargin');	
 
 
 $j("div.item a:first-child").not("a:has(img)").hide();
	

/* ###################################################################################### */
/* ENDE                                                                                   */
/* ###################################################################################### */ 
 });
