User:The last username left/global.js

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/central/images/b/b7/Button_sig3.png", "speedTip": "Custom Signature", "tagOpen": "{" + "{Signatures/The last username left|time=" + "" + "~}" + "}", "tagClose": "", "sampleText": ""}; }

var TLUL_Labels = document.all? document.all.TLUL_Labels : document.getElementByID? document.getELementByID("TLUL_Labels") : document.layers? document.TLUL_Labels : 0; var TLUL_Values = document.all? document.all.TLUL_Values : document.getElementByID? document.getELementByID("TLUL_Values") : document.layers? document.TLUL_Values : 0; if (TLUL_Labels != 0 && TLUL_Labels != undefined && TLUL_Values != 0 && TLUL_Values != undefined) { var TLUL_PageControls = document.all? document.all.page_controls : document.getElementByID? document.getElementByID("page_controls") : document.layers? document.page_controls : 0; if (TLUL_PageControls != 0 && TLUL_PageControls != undefined) {   var TLUL_LabelStrs = TLUL_Labels.innerText.split("|"); var TLUL_ValueStrs = TLUL_Values.innerText.split("|"); if (TLUL_LabelStrs.length > 0 && TLUL_ValueStrs.length > 0) {     var TLUL_FormTxt = "  "; var TLUL_Iter = 0; for(TLUL_Iter = 0; TLUL_Iter < TLUL_LabelStrs.length && TLUL_Iter < TLUL_ValueStrs.length; TLUL_Iter++) {       TLUL_FormTxt += "" + TLUL_LabelStrs[TLUL_Iter] + " "; }     TLUL_FormTxt += "       Show source"; TLUL_PageControls.innerHTML = TLUL_FormTxt + TLUL_PageControls.innerHTML; } } }

function TLUL_SwitchVisible { var TLUL_Labels = document.all? document.all.TLUL_Labels : document.getElementByID? document.getELementByID("TLUL_Labels") : document.layers? document.TLUL_Labels : 0; var TLUL_Values = document.all? document.all.TLUL_Values : document.getElementByID? document.getELementByID("TLUL_Values") : document.layers? document.TLUL_Values : 0; if (TLUL_Labels != 0 && TLUL_Labels != undefined && TLUL_Values != 0 && TLUL_Values != undefined) {   if (TLUL_Labels.style.visibility == "hidden") {     TLUL_Labels.style.visibility = "visible"; TLUL_Values.style.visibility = "visible"; TLUL_Labels.style.position = "relative"; TLUL_Values.style.position = "relative"; var TLUL_ShowSourceListItem = document.all? document.all.TLUL_ShowSourceListItem : document.getElementByID? document.getElementByID("TLUL_ShowSourceListItem") : document.layers? document.TLUL_ShowSourceListItem : 0; if (TLUL_ShowSourceListItem != 0 && TLUL_ShowSourceListItem != undefined) {       TLUL_ShowSourceListItem.innerHTML = "  Hide source" }   }    else {     TLUL_Labels.style.visibility = "hidden"; TLUL_Values.style.visibility = "hidden"; TLUL_Labels.style.position = "absolute"; TLUL_Values.style.position = "absolute"; var TLUL_ShowSourceListItem = document.all? document.all.TLUL_ShowSourceListItem : document.getElementByID? document.getElementByID("TLUL_ShowSourceListItem") : document.layers? document.TLUL_ShowSourceListItem : 0; if (TLUL_ShowSourceListItem != 0 && TLUL_ShowSourceListItem != undefined) {       TLUL_ShowSourceListItem.innerHTML = "  Show source" }   }  } }

function TLUL_SetText(TLUL_Value) { var TLUL_ValueSpan = document.all? document.all.TLUL_ValueSpan : document.getElementByID? document.getElementByID("TLUL_ValueSpan") : document.layers? document.TLUL_ValueSpan : 0; if (TLUL_ValueSpan != 0 && TLUL_ValueSpan != undefined) {   TLUL_ValueSpan.innerText = TLUL_Value; } }