$(function () {
var docurl = location.href;
//$(document).ready(function () {alert("here");});
//alert("hre")
// This allows thumbnail images be linked to a url when followed by
//
url
. See http://virbo.org/Polar
$(document).ready(function () { $('div .tleft').css('clear','none') });
$(document).ready(function () {$('div .thumb + div').children().each(function () {$(this).parent().prev().children().children('a').attr('href',$(this).attr('href'))});});
// Remove logo div
p_logo = document.getElementById('p-logo');
p_logo.parentNode.removeChild(p_logo);
xcontent = document.getElementById('column-content');
tabs = document.getElementById("p-cactions");
tabs.parentNode.removeChild(tabs);
xcontent.insertBefore(tabs, xcontent.firstChild);
personal = document.getElementById("p-personal");
personal.parentNode.removeChild(personal);
xcontent.insertBefore(personal, xcontent.firstChild);
$('#p-navigation').before($('#toc'));
$('#t-recentchangeslinked').before($('#n-recentchanges'));
$('#t-whatlinkshere').before($('#n-mainpage'));
$('#p-navigation').hide();
$('#t-whatlinkshere').parent().before('Tools | \
');
$('#t-whatlinkshere').parent().hide(); $('#separator').after($('#n-mainpage > a'));
// Move top navigation information under Tools
$("#p-cactions .pBody li").add($("#p-personal .pBody li")).appendTo("#p-tb .pBody ul");
$('').insertBefore("#p-tb .pBody ul");
$("#p-tb .pBody ul *").prependTo("#p-tb .pBody #p-tb-options");
$("#p-tb-options").css("width", "100%").hide();
$("#p-tb-options").css('list-style-type','none');
$("#p-tb-options #pt-login").html($('#pt-anonlogin').html());
//remove top spaces
$('#content').css('margin-top','0em');
$('#privacy').hide();
$('#about').hide();
$('#disclaimer').hide();
if (0) {
$('#p-navigation').before($('#toc'));
$('#t-recentchangeslinked').before($('#n-recentchanges'));
$('#t-whatlinkshere').before($('#n-mainpage'));
//$('#p-navigation').hide();
$('#t-whatlinkshere').parent().after(' | Tools');
$('#p-tb').attr('class','toc');
$('#p-tb').css('width','19em');
//$('#about').after('Tools');
$('#pt-anonuserpage').hide();
$('#pt-anontalk').hide();
$('#pt-anonlogin').hide();
//$('#t-whatlinkshere').parent().hide();
$('#p-tb').html($('#n-mainpage').html());
$('#p-tb-options li').css('list-style-type','none');
}
modstr = $('#lastmod').text();
modstr = modstr.replace(/.*, (.*)./,"Modified $1");
$('#lastmod').hide();
$('#p-cactions').css('width','auto');
viewstr = $('#viewcount').text();
viewstr = viewstr.replace(/This page has been accessed (.*) times./,"$1");
if (parseInt(viewstr.replace(/,/,"")) > 10000) {
$('#p-tb').before('' + viewstr + ' views
.' + modstr + '
' + '
');
$('#viewcount').hide();
} else {
$('#p-tb').before('');
viewstr = viewstr + " views.";
$('#viewcount').html(viewstr);
}
$('#viewcount').hide();
$('#stats').hide();
$('#footer').css('padding','0px');
$('#content').css('margin-bottom','0px');
$('#content').css('padding-top','0px');
$('#content').css('padding-left','1.5em');
$('#f-poweredbyico').hide();
$('#disclaimer').after('Powered by MediaWiki');
$('#n-mainpage').hide();
$('.toctoggle').hide();
$('#tools').toggle(function(){
$('#t-whatlinkshere').parent().show();
},function (){
$('#t-whatlinkshere').parent().hide();
});
port = document.getElementById("searchGoButton");
port = document.getElementById("n-portal");
port.style.display = "none";
port = document.getElementById("n-randompage");
port.style.display = "none";
port = document.getElementById("n-sitesupport");
port.style.display = "none";
port.innerHTML = "Recent Changes to Wiki";
port = document.getElementById("n-currentevents");
port.style.display = "none";
port = document.getElementById("n-help");
port.style.display = "none";
if ( docurl.match(/Image:/) ) {
tmpstr = $('.firstHeading').text();
tmpstr = "[[" + tmpstr + "]]";
$('.fullImageLink').before('This is a special page for uploaded images.- To see the pages that use this image, see Links.
- To include this image in any wiki page (besides this one), edit the page and type
' + tmpstr + '.');
}
$('#n-recentchanges > a').attr('href',$('#n-recentchanges > a').attr('href')+'&days=100&limit=500');
//alert("her"+$('#n-recentchanges > a'));
if ( docurl.match(/action\=history/) ) {
var d = new Date();
var shiftstr = d.toString().match('GMT-');
if (shiftstr.length > 0) {
var tmpstr = d.toString().replace(/.*GMT-([0-9][0-9]).*/,' The times listed below can be converted to your local time by subtracting $1 hours.');
} else {
var tmpstr = d.toString().replace(/.*GMT+([0-9][0-9]).*/,' The times listed below can be converted to your local time by adding $1 hours.');
}
var tmpstr = tmpstr.replace(/0([0-9])/,'$1');
$('#contentSub').before('All times are in GMT.'+tmpstr);
$('#pagehistory').html($('#pagehistory').html().replace(/([0-9][0-9]:[0-9][0-9])/g,'$1 (GMT)'));
}
// Modify edit page
if ((docurl.match("edit") == "edit") || (docurl.match("submit") == "submit")) {
$('#editpage-copywarn').hide();
$('#wpSummaryLabel').hide();
$('#wpSummary').attr("value", "Summary of edits");
$('#wpSummary').click(function(){
$(this).attr("value", "")
});
$('#editform').prepend($('#toolbar'))
$('.editOptions').insertBefore($('#toolbar'));
$('#content').css("margin-left", "1em");
$('#column-one').hide();
$('#footer').css("margin-left", "1em"); }
else {
$('.toclevel-1 ol').hide();
$('.toclevel-1 > a').toggle(function ()
{
$(this).siblings('ol').show();
window.location=$(this).attr('href');
}
,function ()
{
$(this).siblings('ol').hide();
}
);
$('#globalWrapper').before('');
$('#col1hide').css('position', 'fixed').css('z-index', '100');
$("#col1hide").toggle(function(){
$('#content').css("margin-left", "1em");
$('#column-one').hide();
$('#col1hidelink').text('+');
$('#footer').css("margin-left", "1em");
}, function(){
$('#content').css("margin-left", "20.3em");
$('#footer').css("margin-left", "21.0em");
$('#col1hidelink').text('x');
$('#column-one').show();
});
}
// Layout fix for IE
var regExp = /MSIE/i, index = navigator.appVersion.search(regExp);
if ($.browser.msie && regExp.test(navigator.appVersion)){
if (navigator.appVersion.slice(index + 5, index + 6) === "7"){
$("#column-one").css("width", 250);
$("table#toc li").css("margin-left", "0.8em");
$("table#toc").css("width", "100%");
$("#p-tb, #p-search").css("width", "100%");
$("#content").css("margin", presentation.style.contentMargin.normalTocShown);
}
}
// This may cause a problem because present mode js is loaded after layout.js.
//setupPresentationMode();
// Indent subsections
if (0) { // Because it breaks present.js
text = $('#content').html();
// Grab everything in the main content DIV
DIVOPEN = "";
// Replace all with
text = text.replace(/\<\/h1\>/g,""+DIVOPEN);
// Replace all
with
text = text.replace(/\/g,"
");
// Undo first replacement
text = text.replace("","");
// Add a closing DIV at end of last section
text = text.replace('