// round bottom corners 
// DD_roundies.addRule('.rounded_button', '0 0 7px 7px', true);
DD_roundies.addRule('.backtotopcheckbox', '4px 4px 4px 4px', true);
DD_roundies.addRule('.round_border_all', '7px 7px 7px 7px', true);
DD_roundies.addRule('.schnickschnack', '7px 7px 7px 7px', true);
DD_roundies.addRule('li.cur a', '7px 7px 0 0', true);
DD_roundies.addRule('li.act a', '7px 7px 0 0', true);
DD_roundies.addRule('.menuheader', '7px 7px 0 0', true);
DD_roundies.addRule('.marg100', '0 0 7px 7px', true);
DD_roundies.addRule('.red_bg_footer', '0 0 7px 7px', true);
// DD_roundies.addRule('.whitefooter', '0 0 7px 7px', true);

// jQuery konfilkt mit mootools

var $j = jQuery.noConflict();

// image preloader
jQuery.preloadImages = function()
{
  for(var i = 0; i<arguments.length; i++)
  {
    jQuery("<img>").attr("src", arguments[i]);
  }
}



// sync height and add classes

$j(document).ready(function(){

	$j("div.hlist ul li:last-child").css({
		'border-right' : '0'
	});	
	
        
	

		// smooth scroll to top
		$j('.backtotop').click(function(){
			$j('html, body').animate({scrollTop:0}, 3000);

			return false;
		});
  
		// IMG Preloader
		$j.preloadImages(
			"fileadmin/template/images/bg__a_on.png",
			"fileadmin/template/images/bg__aa_on.png",
			"fileadmin/template/images/bg__aaa_on.png"
		); 
		
		// Font size A
		var img_a = $j('#hover_a').attr("src");
		$j("#hover_a").hover(
		  function () {
			$j(this).attr("src","fileadmin/template/images/bg__a_on.png");
		  }, 
		  function () {
			$j(this).attr("src",img_a);
		  }
		);
		
		// Font size AA
		var img_aa = $j('#hover_aa').attr("src");
		$j("#hover_aa").hover(
		  function () {
			$j(this).attr("src","fileadmin/template/images/bg__aa_on.png");
		  }, 
		  function () {
			$j(this).attr("src",img_aa);
		  }
		);
		
		// Font size AAA
		var img_aaa = $j('#hover_aaa').attr("src");
		$j("#hover_aaa").hover(
		  function () {
			$j(this).attr("src","fileadmin/template/images/bg__aaa_on.png");
		  }, 
		  function () {
			$j(this).attr("src",img_aaa);
		  }
		);
	  

	// tt_news browser
	var title = $j('.news-single-backlink a').html();
	
	$j('.news-single-backlink a ').html(''); 
	
	$j('.news-single-backlink a').append('<img width="12" height="12"  src="fileadmin/template/images/zurueckzuruebersicht.gif"/>');
	
	$j('.news-single-backlink a img').attr({
		alt: title,
		title: title
	});
	
	// $j('.news-single-backlink a').append(document.createTextNode("Hello"));
	 
	 
	 
	 
	 // synchight

	  $j('.sameheight').syncHeight();
	  $j(window).resize(function(){ 
		$j('.sameheight').syncHeight();
	  });
	  
  


  
});


