MediaWiki:Monobook.js

/* Any JavaScript here will be loaded for users using the MonoBook skin */ function columnAreaImage{ if(document.title.split(" ")[0] == "Preferences") {       return; }   var divS; var divC; if (document.getElementById ) { divS = document.getElementById("column-content"); divC = document.getElementById("content"); } else if (document.all ) { divS = document.all["column-content"]; divC = document.all["content"]; } else { return; }   if ( divS && divS.style ){ var divSHval; if (divS.style.pixelHeight) { divSHval= divS.style.pixelHeight; } else { divSHval= divS.offsetHeight; }       if(Number(divSHval) >1176){ //1136=768(number bigger than background image and side buttons)+imgheight(370) divS.style.backgroundImage = "url(/images/c/cb/Infosphere_Sidebar.png)"; divS.style.backgroundPosition = "bottom left"; divS.style.backgroundRepeat = "no-repeat"; if(divC && divC.style ) { //Uhm... apparently this is working now! Woo! divC.style.backgroundImage = "url(/images/4/43/Infosphere_Content.png)"; divC.style.backgroundPosition = "bottom left"; divC.style.backgroundRepeat = "no-repeat"; }       }    } }

addOnloadHook(columnAreaImage);