 $(document).ready(function() {
  $('.pipe').remove();
	$('#men_lv2 .lv2nav ul.level_1 li:not(.last)').after('<li class="pipe">|</li>');
	var page = this.URL.substring(this.URL.lastIndexOf("/")+1,this.URL.lastIndexOf("."));
	switch(page){
    case "index":
    case "home":
    case ".de/":
    case ".org/":
    case ".info/":
      $('#wrapper').css("background-color","#073663");
      break;
  }
	$(".round").replaceWith(function(){
	      var bg_color = "bg_none";
	      this.className.split(/\s+/).each(function(item){
         if(item.indexOf('bg_')>-1){
           bg_color = item;
           return false;  
         }            
        });
      $(this).removeClass('round').removeClass('bg_blue').addClass('nround');
      if(this.alt.length > 1 ) return '<div class="' + bg_color + '" style="position:relative;height:' + this.height + 'px;width:'+ (this.width) +'px;"><table class="' + this.className + '" style="position:relative;background:url(' + this.src + ') no-repeat center center transparent; width: ' + this.width + 'px; height: ' + this.height + 'px;"><tr class=\"img_title\"><td>'+ this.alt + '</td></tr></table></div>';
      else return '<div class="' + bg_color + '" style="position:relative;height:' + this.height + 'px;width:'+ (this.width) +'px;"><div class="' + this.className + '" style="position:relative;background:url(' + this.src + ') no-repeat center center transparent; width: ' + this.width + 'px; height: ' + this.height + 'px;"></div></div>';
  });
  $('.nround').removeClass('bg_blue').corner("round 15px").parent().css({'padding':'4px'}).corner("round 18px");
 });
