").attr("id", "menuebutton").appendTo($("#header")).click(function() {
//$("#navioverlay").toggle();
var st = $(document).scrollTop() + 'px';
var navpos = ($('#navioverlay').css("top"));
//alert(st + ' - ' + navpos);
if ((st == navpos) && ($('#navioverlay').css('display') == 'block'))
$('#navioverlay').fadeOut(300);
else
$("#navioverlay").fadeIn(300).css({display: 'block', top: st});
// alert('"' + $(document).scrollTop() + 'px "' + $("#navioverlay").css("width"));
//$("#horizMenue").toggle();
});
//Hide the menus if visible
$('html').click(function() {
$('#navioverlay').hide();
});
$('#navioverlay').click(function(event) {
event.stopPropagation();
});
$('#menuebutton').click(function(event) {
event.stopPropagation();
});
$("#horizMenue").appendTo("#navioverlay").css({height:"auto"});
$("#suche").prependTo("#horizMenue").css("display", "block");
$("#unilogin").prependTo("#horizMenue").css({"display":"block"});
$(".tx-srlanguagemenu-pi1").prependTo("#horizMenue");
$("#faklink").insertBefore($("div#main"));
$("#bereich-titel").insertBefore($("div#main"));
$("#site-titel").before($("#menue"));
$("a#main").remove();
$("#c86360").css({left: 'auto', right: '50px', top: "0px"});
$("#c86360 img")
.attr("src", "http://www.uni-oldenburg.de/fileadmin/templates/img/40.png")
.removeAttr("width").removeAttr("height")
.css({"border-bottom-left-radius": '0px', "border-bottom-right-radius": '0px'});
var inh_width = $('#inhalt').width();
$("div#main table,div#main form").wrap('
');
$(".scroll_wrap").css({width: '100%', overflowX: 'auto'});
if ($(window).width() < 418) $(".multicolumnContainer li.column").css({width: "100%", maxWidth: inh_width});
$(".layout1 .multicolumnContainer li.column").css({width: "100%", maxWidth: inh_width});
$("#inhalt img").each(function() {
var divw = $(this).closest("div").width();
var iw = $(this).width();
// var ci = $(this).closest(".columnItems");
// var ciw = $(ci).width()?$(ci).width():false;
// if(ciw && (iw > ciw)) $(this).removeAttr("width").removeAttr("height").css({width:ciw,maxWidth:ciw,height:'auto'});
// else
if (iw > divw /*$('#inhalt').width()*/)
$(this).removeAttr("width").removeAttr("height").css({width: divw, height: 'auto', maxWidth: '100%'}); //attr("width",$('#inhalt').width()).attr("height","auto");
});
$(".csc-textpic-intext-right-nowrap .csc-textpic-imagewrap").css({float: "none", marginLeft: 0});
$(".csc-textpic-intext-right-nowrap .csc-textpic-imagewrap + div").css({marginRight: 0, marginTop: "20px"});
$(".csc-textpic-intext-left-nowrap .csc-textpic-imagewrap").css({float: "none", marginRight: 0});
$(".csc-textpic-intext-left-nowrap .csc-textpic-imagewrap + div").css({marginLeft: 0, marginTop: "20px"});
$(".news-image img").removeAttr("width").removeAttr("height").attr("width", $('#inhalt').width());
$("ul.news-list-slides li").removeAttr("width").removeAttr("height");
// $("tbody").css({maxWidth: inh_width + 'px', overflow: 'scroll'});
}
/* Wenn sich die Fensterbreite ändert, Seite neu laden */
$(window).resize(function() {
if ($(window).width() != winwidth)
document.location.href = document.location.href;
});
});