// round bottom corners 
// DD_roundies.addRule('.rounded_button', '0 0 7px 7px', true);
DD_roundies.addRule('.round_border_all', '7px 7px 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(){
  
	// IMG Preloader
	$j.preloadImages(
		"fileadmin/template/images/flag_en_ro.gif",
		"fileadmin/template/images/flag_de_ro.gif",
		"fileadmin/template/searchbox/bg_go_hover.gif"
	); 
	
	// Langmenu hover
    $j("#lng_en").hover(
      function () {
        $j(this).attr("src","fileadmin/template/images/flag_en_ro.gif");
      }, 
      function () {
        $j(this).attr("src","fileadmin/template/images/flag_en.gif");
      }
    );
    $j("#lng_de").hover(
      function () {
        $j(this).attr("src","fileadmin/template/images/flag_de_ro.gif");
      }, 
      function () {
        $j(this).attr("src","fileadmin/template/images/flag_de.gif");
      }
    );  
  


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



