/* generated javascript */ var skin = 'monobook'; var stylepath = '/skins-1.5'; /* MediaWiki:Common.js */ /* == Import module == Description: Includes a raw wiki page as javascript or CSS, used for including user made modules. Maintainers: [[:en:User:AzaToth|User:AzaToth]]
*/

importedScripts = {}; // object keeping track of included scripts, so a script ain't included twice
function importScript( page ) {
    if( importedScripts[page] ) {
        return;
    }
    importedScripts[page] = true;
    var url = wgScriptPath
            + '/index.php?title='
            + encodeURIComponent( page.replace( ' ', '_' ) )
            + '&action=raw&ctype=text/javascript&dontcountme=s';
    var scriptElem = document.createElement( 'script' );
    scriptElem.setAttribute( 'src' , url );
    scriptElem.setAttribute( 'type' , 'text/javascript' );
    document.getElementsByTagName( 'head' )[0].appendChild( scriptElem );
}

function importStylesheet( page ) {
    var sheet = '@import "'
              + wgScriptPath
              + '/index.php?title='
              + encodeURIComponent( page.replace( ' ', '_' ) )
              + '&action=raw&ctype=text/css";'
    var styleElem = document.createElement( 'style' );
    styleElem.setAttribute( 'type' , 'text/css' );
    styleElem.appendChild( document.createTextNode( sheet ) );
    document.getElementsByTagName( 'head' )[0].appendChild( styleElem );
}

// Load scripts from subpages
if (wgPageName == "Speciaal:Volglijst") //watchlist scripts
{
    importScript("MediaWiki:Common.js/watchlist.js")
}

/** Attach (or remove) an Event to a specific object **********
 * Cross-browser event attachment (John Resig)
 * http://www.quirksmode.org/blog/archives/2005/10/_and_the_winner_1.html
 *
 * obj  : DOM tree object to attach the event to
 * type : String, event type ("click", "mouseover", "submit", etc.)
 * fn   : Function to be called when the event is triggered (the ''this''
 *        keyword points to ''obj'' inside ''fn'' when the event is triggered)
 *
 * Maintainer: [[:Commons:User:Dschwen]]
 */
 
function addEvent( obj, type, fn )
{
 if (obj.addEventListener)
  obj.addEventListener( type, fn, false );
 else if (obj.attachEvent)
 {
  obj["e"+type+fn] = fn;
  obj[type+fn] = function() { obj["e"+type+fn]( window.event ); }
  obj.attachEvent( "on"+type, obj[type+fn] );
 }
}
 
function removeEvent( obj, type, fn )
{
 if (obj.removeEventListener)
  obj.removeEventListener( type, fn, false );
 else if (obj.detachEvent)
 {
  obj.detachEvent( "on"+type, obj[type+fn] );
  obj[type+fn] = null;
  obj["e"+type+fn] = null;
 }
}

/** JSconfig ************
 * Global configuration options to enable/disable and configure
 * specific script features from [[MediaWiki:Common.js]] and
 * [[MediaWiki:Monobook.js]]
 * This framework adds config options (saved as cookies) to [[Special:Preferences]]
 * For a more permanent change you can override the default settings in your 
 * [[Special:Mypage/monobook.js]]
 * for Example: JSconfig.keys[loadAutoInformationTemplate] = false;
 *
 *  Maintainer: [[:Commons:User:Dschwen]]
 */
 
var JSconfig =
{
 prefix : 'jsconfig_',
 keys : {},
 meta : {},
 
 //
 // Register a new configuration item
 //  * name          : String, internal name
 //  * default_value : String or Boolean (type determines configuration widget)
 //  * description   : String, text appearing next to the widget in the preferences
 //  * prefpage      : Integer (optional), section in the preferences to insert the widget:
 //                     0 : User profile
 //                     1 : Skin
 //                     2 : Math
 //                     3 : Files
 //                     4 : Date and time
 //                     5 : Editing
 //                     6 : Recent changes
 //                     7 : Watchlist
 //                     8 : Search
 //                     9 : Misc
 //
 // Access keys through JSconfig.keys[name]
 //
 registerKey : function( name, default_value, description, prefpage )
 {
  if( typeof(JSconfig.keys[name]) == 'undefined' ) 
   JSconfig.keys[name] = default_value;
  else {
 
   // all cookies are read as strings, 
   // convert to the type of the default value
   switch( typeof(default_value) )
   {
    case 'boolean' : JSconfig.keys[name] = ( JSconfig.keys[name] == 'true' ); break;
    case 'number'  : JSconfig.keys[name] = JSconfig.keys[name]/1; break;
   }
 
  }
 
  JSconfig.meta[name] = { 'description' : description, 'page' : prefpage || 0, 'default_value' : default_value };
 },
 
 readCookies : function()
 {
  var cookies = document.cookie.split("; ");
  var p =JSconfig.prefix.length;
  var i;
 
  for( var key in cookies )
  {
   if( cookies[key].substring(0,p) == JSconfig.prefix )
   {
    i = cookies[key].indexOf('=');
    //alert( cookies[key] + ',' + key + ',' + cookies[key].substring(p,i) );
    JSconfig.keys[cookies[key].substring(p,i)] = cookies[key].substring(i+1);
   }
  }
 },
 
 writeCookies : function()
 {
  for( var key in JSconfig.keys )
   document.cookie = JSconfig.prefix + key + '=' + JSconfig.keys[key] + '; path=/; expires=Thu, 2 Aug 2009 10:10:10 UTC';
 },
 
 evaluateForm : function()
 {
  var w_ctrl,wt;
  //alert('about to save JSconfig');
  for( var key in JSconfig.meta ) {
   w_ctrl = document.getElementById( JSconfig.prefix + key )
   if( w_ctrl ) 
   {
    wt = typeof( JSconfig.meta[key].default_value );
    switch( wt ) {
     case 'boolean' : JSconfig.keys[key] = w_ctrl.checked; break;
     case 'string' : JSconfig.keys[key] = w_ctrl.value; break;
    }
   }
  }
 
  JSconfig.writeCookies();
  return true;
 },
 
 setUpForm : function()
 { 
  var prefChild = document.getElementById('preferences');
  if( !prefChild ) return;
  prefChild = prefChild.childNodes;
 
  //
  // make a list of all preferences sections
  //
  var tabs = new Array;
  var len = prefChild.length;
  for( var key = 0; key < len; key++ ) {
   if( prefChild[key].tagName &&
       prefChild[key].tagName.toLowerCase() == 'fieldset' ) 
    tabs.push(prefChild[key]);
  }
 
  //
  // Create Widgets for all registered config keys
  //
  var w_div, w_label, w_ctrl, wt;
  for( var key in JSconfig.meta ) {
   w_div = document.createElement( 'DIV' );
 
   w_label = document.createElement( 'LABEL' );
   w_label.appendChild( document.createTextNode( JSconfig.meta[key].description ) )
   w_label.htmlFor = JSconfig.prefix + key;
 
   wt = typeof( JSconfig.meta[key].default_value );
 
   w_ctrl = document.createElement( 'INPUT' );
   w_ctrl.id = JSconfig.prefix + key;
 
   // before insertion into the DOM tree
   switch( wt ) {
    case 'boolean' : w_ctrl.type = 'checkbox'; break;
    case 'string'  : w_ctrl.type = 'text'; break;
   }
 
   w_div.appendChild( w_ctrl );
   w_div.appendChild( w_label );
   tabs[JSconfig.meta[key].page].appendChild( w_div );
 
   // after insertion into the DOM tree
   switch( wt ) {
    case 'boolean' : w_ctrl.defaultChecked = w_ctrl.checked = JSconfig.keys[key]; break;
    case 'string' : w_ctrl.defaultValue = w_ctrl.value = JSconfig.keys[key]; break;
   }
 
  }
  addEvent(document.getElementById('preferences').parentNode, 'submit', JSconfig.evaluateForm );
 }
}
 
JSconfig.readCookies();
addOnloadHook(JSconfig.setUpForm);

/*
{| class="prettytable" ! Skin !! CSS !! JavaScript !! Test |- | (alle) || [[MediaWiki:Common.css|Common.css]] || [[MediaWiki:Common.js|Common.js]] || |- | Chick || [[MediaWiki:Chick.css|Chick.css]] || [[MediaWiki:Chick.js|Chick.js]] || [http://nl.wikipedia.org/w/index.php?title=Hoofdpagina&useskin=chick ] |- | Keuls blauw || [[MediaWiki:Cologneblue.css|Cologneblue.css]] || [[MediaWiki:Cologneblue.js|Cologneblue.js]] || [http://nl.wikipedia.org/w/index.php?title=Hoofdpagina&useskin=cologneblue ] |- | MonoBook (standaard) || [[MediaWiki:Monobook.css|Monobook.css]] || [[MediaWiki:Monobook.js|Monobook.js]] || [http://nl.wikipedia.org/w/index.php?title=Hoofdpagina&useskin=monobook ] |- | Nostalgie || [[MediaWiki:Nostalgia.css|Nostalgia.css]] || [[MediaWiki:Nostalgia.js|Nostalgia.js]] || [http://nl.wikipedia.org/w/index.php?title=Hoofdpagina&useskin=nostalgia ] |- | Simple || [[MediaWiki:Simple.css|Simple.css]] || [[MediaWiki:Simple.js|Simple.js]] || [http://nl.wikipedia.org/w/index.php?title=Hoofdpagina&useskin=simple ] |- | Standaard || [[MediaWiki:Standard.css|Standard.css]] || [[MediaWiki:Standard.js|Standard.js]] || [http://nl.wikipedia.org/w/index.php?title=Hoofdpagina&useskin=standard ] |} == Extra knopje in de toolbar == Gebaseerd op [[:en:Wikipedia:Tools/Editing tools]]. Maintainers: [[:en:User:MarkS|User:MarkS]]?, [[:en:User:Voice of All|User:Voice of All]], [[:en:User:R. Koot|User:R. Koot]] Om uit te zetten voegt u mwCustomEditButtons = []; toe aan [[Speciaal:Mypage/monobook.js]]
*/

 if (mwCustomEditButtons) { 
   mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/04/Button_array.png",
     "speedTip": "Voeg tabel in",
     "tagOpen": '{| class="prettytable"\n|-\n',
     "tagClose": "\n|}",
     "sampleText": "! kop 1\n! kop 2\n! kop 3\n|-\n| rij 1, cel 1\n| rij 1, cel 2\n| rij 1, cel 3\n|-\n| rij 2, cel 1\n| rij 2, cel 2\n| rij 2, cel 3"};
 }
 
/*
== Uitgelicht in andere talen == Sterren voor interwikilinks van de [[Wikipedia:Etalage]]-artikelen van andere Wikipedia's. Zie {{[[Template:Link FA|Link FA]]}}. Overgenomen van [[:de:MediaWiki:Common.js]] Om deze functie uit te zetten, zet enable_linkFA = false; in [[Special:Mypage/monobook.js]].
*/

 var enable_linkFA = true;

 function linkFA() {
     if (!enable_linkFA) return;
     
     // links are to replaced in p-lang only
     var pLang = document.getElementById("p-lang");
     if (!pLang) {
         return;
     }
     var lis = pLang.getElementsByTagName("li");
     for (var i=0; i
== Autotekst in uploadpagina voor bestanden ==
Description: Script voor Speciaal:Uploaden
Maintainers: [[:commons:User:Yonidebest]], [[:commons:User:Dschwen]]

*/
if (wgPageName == 'Speciaal:Uploaden' || wgPageName == 'Special:Upload' || wgPageName == 'Speciaal:Upload') {
document.write('');
 }
 
/*
== NavFrame == Van [[:en:MediaWiki:Common.js]] Test if an element has a certain class Description: Uses regular expressions and caching for better performance. Maintainers: [[:en:User:Mike Dillon]], [[:en:User:R. Koot]], [[:en:User:SG]]
*/
 
 var hasClass = (function () {
     var reCache = {};
     return function (element, className) {
         return (reCache[className] ? reCache[className] : (reCache[className] = new RegExp("(?:\\s|^)" + className + "(?:\\s|$)"))).test(element.className);
     };
 })();

/* 
Collapsible tables Description: Allows tables to be collapsed, showing only the header. See [[:en:Wikipedia:NavFrame]]. Maintainers: [[:en:User:R. Koot]]
*/
 var autoCollapse = 2;
 var collapseCaption = "verberg";
 var expandCaption = "toon";
 
 function collapseTable( tableIndex )
 {
     var Button = document.getElementById( "collapseButton" + tableIndex );
     var Table = document.getElementById( "collapsibleTable" + tableIndex );
 
     if ( !Table || !Button ) {
         return false;
     }
 
     var Rows = Table.getElementsByTagName( "tr" ); 
 
     if ( Button.firstChild.data == collapseCaption ) {
         for ( var i = 1; i < Rows.length; i++ ) {
             Rows[i].style.display = "none";
         }
         Button.firstChild.data = expandCaption;
     } else {
         for ( var i = 1; i < Rows.length; i++ ) {
             Rows[i].style.display = Rows[0].style.display;
         }
         Button.firstChild.data = collapseCaption;
     }
 }
 
 function createCollapseButtons()
 {
     var tableIndex = 0;
     var NavigationBoxes = new Object();
     var Tables = document.getElementsByTagName( "table" );
 
     for ( var i = 0; i < Tables.length; i++ ) {
         if ( hasClass( Tables[i], "collapsible" ) ) {
             NavigationBoxes[ tableIndex ] = Tables[i];
             Tables[i].setAttribute( "id", "collapsibleTable" + tableIndex );
 
             var Button     = document.createElement( "span" );
             var ButtonLink = document.createElement( "a" );
             var ButtonText = document.createTextNode( collapseCaption );
 
             Button.style.styleFloat = "right";
             Button.style.cssFloat = "right";
             Button.style.fontWeight = "normal";
             Button.style.textAlign = "right";
             Button.style.width = "6em";
 
             ButtonLink.setAttribute( "id", "collapseButton" + tableIndex );
             ButtonLink.setAttribute( "href", "javascript:collapseTable(" + tableIndex + ");" );
             ButtonLink.appendChild( ButtonText );
 
             Button.appendChild( document.createTextNode( "[" ) );
             Button.appendChild( ButtonLink );
             Button.appendChild( document.createTextNode( "]" ) );
 
             var Header = Tables[i].getElementsByTagName( "tr" )[0].getElementsByTagName( "th" )[0];
             /* only add button and increment count if there is a header row to work with */
             if (Header) {
                 Header.insertBefore( Button, Header.childNodes[0] );
                 tableIndex++;
             }
         }
     }
 
     for ( var i = 0;  i < tableIndex; i++ ) {
         if ( hasClass( NavigationBoxes[i], "collapsed" ) || ( tableIndex >= autoCollapse && hasClass( NavigationBoxes[i], "autocollapse" ) ) ) {
             collapseTable( i );
         }
     }
 }
 
 addOnloadHook( createCollapseButtons );

/*
== Sortering == //Overrides the function with the same name in http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js //Fixes a bug: for the sorting order, takes the whole number, not the number before the second comma. //Also, removes spaces. See [[Help:Sorting]]. Kopie van [[:m:MediaWiki:Common.js]] door [[:m:User:Patrick]] ===Numerieke sortering in sortable-tabellen=== Aangepaste functie voor het parseren van getallen in numerieke kolommen van tabellen met class="sortable". Deze zorgt ervoor dat getallen in de Nederlandse notatie (punten voor de duizendtallen, komma's voor de decimalen) juist worden gesorteerd.
*/

function ts_parseFloat(num) {
	if (!num) return 0;
	num = parseFloat(num.replace(/\./g, "").replace(/,/, "."));
	return (isNaN(num) ? 0 : num);
}

//Keep spaces in "currency" mode, to sort a range "70 to 80" at 70, not 7080
function ts_parseFloat_ks(num) {
	if (!num) return 0;
	num = parseFloat(num.replace(/\./g, "").replace(/,/, "."));
	return (isNaN(num) ? 0 : num);
}
 
//Auxiliary function for function ts_resortTable(lnk)
function removeSpaces(string) {
        var tstring = "";
        string = '' + string;
        splitstring = string.split(" ");
        for(i = 0; i < splitstring.length; i++)
        tstring += splitstring[i];
        return tstring;
}

//Adapted for handling colums with a sortbottom = Aangepast versie, om tabellen met een sortbottom over meerdere kolommen verdeeld
//Bug [[:bugzilla:8028]]
function ts_getInnerText(el) {
        if (typeof el == "string") return el;
        if (typeof el == "undefined") { return "" }; // aangepast, retourneer een lege string indien undefined
        if (el.textContent) return el.textContent; // not needed but it is faster
        if (el.innerText) return el.innerText;     // IE doesn't have textContent
        var str = "";
 
        var cs = el.childNodes;
        var l = cs.length;
        for (var i = 0; i < l; i++) {
                switch (cs[i].nodeType) {
                        case 1: //ELEMENT_NODE
                                str += ts_getInnerText(cs[i]);
                                break;
                        case 3:       //TEXT_NODE
                                str += cs[i].nodeValue;
                                break;
                }
        }
        return str;
}

 
//Overrides the function with the same name in http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/common/wikibits.js
//Changes the criteria for various sorting modes, see [[Help:Sorting]].
//For easy maintenance the difference with wikibits.js is kept limited to a few lines.
function ts_resortTable(lnk) {
	// get the span
	var span = lnk.getElementsByTagName('span')[0];
 
	var td = lnk.parentNode;
	var tr = td.parentNode;
	var column = td.cellIndex;
 
	var table = tr.parentNode;
	while (table && !(table.tagName && table.tagName.toLowerCase() == 'table'))
		table = table.parentNode;
	if (!table) return;
 
	// Work out a type for the column
	if (table.rows.length <= 1) return;
 
	// Skip the first row if that's where the headings are
	var rowStart = (table.tHead && table.tHead.rows.length > 0 ? 0 : 1);
 
	var itm = "";
	for (var i = rowStart; i < table.rows.length; i++) {
		if (table.rows[i].cells.length > column) {
			itm = ts_getInnerText(table.rows[i].cells[column]);
			itm = itm.replace(/^[\s\xa0]+/, "").replace(/[\s\xa0]+$/, "");
			if (itm != "") break;
		}
	}
 
	sortfn = ts_sort_caseinsensitive;
     itmns = removeSpaces(itm);
     if (itmns.match(/^[\d\.\,\-\+]+\%?$/)) sortfn = ts_sort_numeric;
     if (itmns.match(/^[\d\.\,\-\+]+[eE][\d\-\+]+\%?$/)) sortfn = ts_sort_numeric;
     if (itmns.match(/^[\d\.\,\-\+]+e[\d\-\+]+\u00d710[\d\-\+]+\%?$/)) sortfn = ts_sort_numeric;
	if (itm.match(/^\d\d[\/. -][a-zA-Z]{3}[\/. -]\d\d\d\d$/))
		sortfn = ts_sort_date;
	if (itm.match(/^\d\d[\/.-]\d\d[\/.-]\d\d\d\d$/))
		sortfn = ts_sort_date;
	if (itm.match(/^\d\d[\/.-]\d\d[\/.-]\d\d$/))
		sortfn = ts_sort_date;
	if (itm.match(/^[\u00a3$\u20ac\u00a5]/)) // pound dollar euro yen
		sortfn = ts_sort_currency;
     if (itm.match(/sm=c$/)) sortfn = ts_sort_currency;
     if (itm.match(/sm=d$/)) sortfn = ts_sort_date;
     if (itm.match(/sm=n$/)) sortfn = ts_sort_numeric;
 
	var reverse = (span.getAttribute("sortdir") == 'down');
 
	var newRows = new Array();
	for (var j = rowStart; j < table.rows.length; j++) {
		var row = table.rows[j];
		var keyText = ts_getInnerText(row.cells[column]);
		var oldIndex = (reverse ? -j : j);
 
		newRows[newRows.length] = new Array(row, keyText, oldIndex);
	}
 
	newRows.sort(sortfn);
 
	var arrowHTML;
	if (reverse) {
			arrowHTML = '↓';
			newRows.reverse();
			span.setAttribute('sortdir','up');
	} else {
			arrowHTML = '↑';
			span.setAttribute('sortdir','down');
	}
 
	// We appendChild rows that already exist to the tbody, so it moves them rather than creating new ones
	// don't do sortbottom rows
	for (var i = 0; i < newRows.length; i++) {
		if ((" "+newRows[i][0].className+" ").indexOf(" sortbottom ") == -1)
			table.tBodies[0].appendChild(newRows[i][0]);
	}
	// do sortbottom rows only
	for (var i = 0; i < newRows.length; i++) {
		if ((" "+newRows[i][0].className+" ").indexOf(" sortbottom ") != -1)
			table.tBodies[0].appendChild(newRows[i][0]);
	}
 
	// Delete any other arrows there may be showing
	var spans = getElementsByClassName(tr, "span", "sortarrow");
	for (var i = 0; i < spans.length; i++) {
		spans[i].innerHTML = '↓';
	}
	span.innerHTML = arrowHTML;
 
	ts_alternate(table);		
}
 
function ts_dateToSortKey(date) {	
	// y2k notes: two digit years less than 50 are treated as 20XX, greater than 50 are treated as 19XX
	if (date.length > 10) {
		switch (date.substr(3,3).toLowerCase()) {
			case "jan": var month = "01"; break;
			case "feb": var month = "02"; break;
			case "mar": var month = "03"; break;
			case "apr": var month = "04"; break;
			case "mei": var month = "05"; break;
			case "jun": var month = "06"; break;
			case "jul": var month = "07"; break;
			case "aug": var month = "08"; break;
			case "sep": var month = "09"; break;
			case "okt": var month = "10"; break;
			case "nov": var month = "11"; break;
			case "dec": var month = "12"; break;
			// default: var month = "00";
		}
		return date.substr(7,4)+month+date.substr(0,2);
	} else if (date.length == 10) {
			return date.substr(6,4)+date.substr(3,2)+date.substr(0,2);
	} else if (date.length == 8) {
		yr = date.substr(6,2);
		if (parseInt(yr) < 50) { 
			yr = '20'+yr; 
		} else { 
			yr = '19'+yr; 
		}
			return yr+date.substr(3,2)+date.substr(0,2);
	}
	return "00000000";
}
 
function ts_sort_currency(a,b) {
	var aa = ts_parseFloat_ks(a[1].replace(/[\u00a3$\u20ac\u00a5a-zA-Z]/g,''));
	var bb = ts_parseFloat_ks(b[1].replace(/[\u00a3$\u20ac\u00a5a-zA-Z]/g,''));
	return (aa != bb ? aa - bb : a[2] - b[2]);
}

/*
== Overige == ;pickUpText(aParentElement) :similar to innerHTML, but only returns the text portions of the insides, excludes HTML :Overblijfsel van de RealTitle functie :Maintainers op enwiki: [[:en:User:Interiot|User:Interiot]], [[:en:User:Mets501|User:Mets501]]
*/

function pickUpText(aParentElement) {
  var str = "";

  function pickUpTextInternal(aElement) {
    var child = aElement.firstChild;
    while (child) {
      if (child.nodeType == 1)          // ELEMENT_NODE 
        pickUpTextInternal(child);
      else if (child.nodeType == 3)     // TEXT_NODE
        str += child.nodeValue;

      child = child.nextSibling;
    }
  }

  pickUpTextInternal(aParentElement);

  return str;
}

/* Geen knop en geen uitleg over het vet in de volglijst */
if ( (document.location.href == "http://nl.wikipedia.org/wiki/Speciaal:Volglijst") || (document.location.href.indexOf("?title=Speciaal:Volglijst&") > 0) )
document.write("");

/*
== begin SpecialSearchEnhanced == Dit voegt twee externe zoekmachines toe aan Speciaal:Search Het is een bewerking van fr:MediaWiki:Monobook.js en en:MediaWiki:Common.js wat gemaakt is door fr:User:Dake en de auteurs van en:MediaWiki:Common.js onder de licentie GFDL Deze functie is aangepast aan MWSearch.
*/
if (wgCanonicalSpecialPageName == "Search") {
        addOnloadHook(SpecialSearchEnhanced);
}

function SpecialSearchEnhanced() 
{
    if (document.forms['powersearch'])
    var searchForm = document.forms['powersearch'];
    if (document.forms['search'])
    var searchForm = document.forms['search'];
    if (searchForm.lsearchbox) {
        var searchBox = searchForm.lsearchbox;
    } else {
        var searchBox = searchForm.search;
    }

    var searchValue = searchBox.value
    var safeSearchValue = searchValue.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """);

    var node = document.createElement('div');

    var SearchEnhancedText = '


U kunt ook met onderstaande externe zoekmachines zoeken in Wikipedia. Deze kunnen resultaten opleveren die met de interne zoekmachine niet gevonden worden. Bij Google kunt u ook andere taalversies van Wikipedia selecteren.'; var googleSearch = '

'; var wikiwixSearch = ''; var yahooSearch = '
'; googleSearch += '
'; googleSearch += ''; googleSearch += ''; googleSearch += ' '; googleSearch += '
 '; wikiwixSearch += '
'; wikiwixSearch += ''; wikiwixSearch += ' '; wikiwixSearch += '
 '; yahooSearch += '
'; yahooSearch += ''; yahooSearch += ''; yahooSearch += ' '; yahooSearch += '

'; node.innerHTML = node.innerHTML + SearchEnhancedText + googleSearch + wikiwixSearch + yahooSearch; var nonefound = document.getElementById("nonefound") if (nonefound) { nonefound.innerHTML = nonefound.innerHTML + '

' + node.innerHTML + '
'; } else { searchForm.parentNode.insertBefore(node, searchForm.nextSibling); } } /* * 10 regels in plaats van 7 bij suggestiefunctie bij zoekvak. * Dit voorkomt het tonen van een scrollbalk. */ os_max_lines_per_suggest = 10; /** * Titel_item * * Zoek Titel items op (class="Titel_item") (let op de hoofdletter) * en plaats deze rechts van de titel * Pas nadat overige titelbewerkingen hebben plaatsgevonden * (te gebruiken voor bijv. {{Beveiligd}} en {{Semibeveiligd}} zodat deze onder de sluit-knop van de sitenotice komt */ function Titel_item() { var h1 = document.getElementsByTagName("h1")[0]; var content = document.getElementById("content"); var icones = document.getElementsByTagName("div"); var icones2 = new Array(); var j = 0; for (var i = 0; i < icones.length; ++i) { if (icones[i].className == "Titel_item") { icones2[j++] = icones[i]; } } for (; j > 0; --j) { icones2[j-1].style.display = "block"; /* annule display:none par défaut */ icones2[j-1].style.borderWidth = "1px"; icones2[j-1].style.borderStyle = "solid"; icones2[j-1].style.borderColor = "white"; content.insertBefore(icones2[j-1], h1); /* déplacement de l'élément */ } } addOnloadHook(Titel_item); /*
*/ /* Voor rechterbovenmargesjablonen */ /* Verbeterde versie, werkt beter dan Titel_item() */ function Titel_item3() { var h1 = document.getElementsByTagName("h1")[0]; var content = document.getElementById("content"); var icones = document.getElementsByTagName("div"); var icones2 = new Array(); var j = 0; for (var i = 0; i < icones.length; ++i) { if (icones[i].className == "Titel_item2") { icones2[j++] = icones[i]; } } for (; j > 0; --j) { icones2[j-1].className = "Titel_item3"; if (icones2[j-1].id == "Titelbeveiligd" && wgUserName == null){ icones2[j-1].style.display = "none"; // titelwijzigingssjabloon alleen voor ingelogde gebruikers } content.insertBefore(icones2[j-1], h1); /* Verplaats het element naar de juiste plek */ } Titel_toevoegen("Semibeveiligd", h1, content); Titel_toevoegen("Titelbeveiligd", h1, content); Titel_toevoegen("Beveiligd", h1, content); Titel_toevoegen("Etalage", h1, content); Titel_toevoegen("Woordenboek", h1, content) Titel_toevoegen("Coordinaten", h1, content) } function Titel_toevoegen(de_div_id, h1, content) { if (document.getElementById(de_div_id)){ document.getElementById(de_div_id).className = "Titel_item3"; content.insertBefore(document.getElementById(de_div_id), h1); /* Verplaats het element naar de juiste plek */ } } if (wgNamespaceNumber == 0) { if (skin != "cologneblue"){ addOnloadHook(function() { Titel_item3(); } ); } } // ============================================================ // BEGIN Dynamisch inklapbare div // set up the words in your language var UitklapDivHide = 'Inklappen'; var UitklapDivShow = 'Uitklappen'; // shows and hides content of Uitklap divs // Parameters: // indexUitklapDiv: the index of Uitklap div to be toggled function toggleUitklapDiv(indexUitklapDiv) { var UitklapToggle = document.getElementById("UitklapToggle" + indexUitklapDiv); var UitklapFrame = document.getElementById("UitklapFrame" + indexUitklapDiv); if (!UitklapFrame || !UitklapToggle) { return false; } // if shown now if (UitklapToggle.firstChild.data == UitklapDivHide) { for ( var UitklapChild = UitklapFrame.firstChild; UitklapChild != null; UitklapChild = UitklapChild.nextSibling ) { if (UitklapChild.className == 'UitklapContent') { UitklapChild.style.display = 'none'; } if (UitklapChild.className == 'UitklapToggle') { UitklapChild.firstChild.data = UitklapDivShow; } } // if hidden now } else if (UitklapToggle.firstChild.data == UitklapDivShow) { for ( var UitklapChild = UitklapFrame.firstChild; UitklapChild != null; UitklapChild = UitklapChild.nextSibling ) { if (UitklapChild.className == 'UitklapContent') { UitklapChild.style.display = 'block'; } if (UitklapChild.className == 'UitklapToggle') { UitklapChild.firstChild.data = UitklapDivHide; } } } } // adds show/hide-button to navigation bars function createUitklapDivToggleButton() { var indexUitklapDiv = 0; // iterate over all < div >-elements for( var i=0; UitklapFrame = document.getElementsByTagName("div")[i]; i++ ) { // if found a navigation bar if (UitklapFrame.className == "UitklapFrame" || UitklapFrame.className == "UitklapFrameNoClear") { indexUitklapDiv++; var UitklapToggle = document.createElement("a"); UitklapToggle.className = 'UitklapToggle'; UitklapToggle.setAttribute('id', 'UitklapToggle' + indexUitklapDiv); UitklapToggle.setAttribute('href', 'javascript:toggleUitklapDiv(' + indexUitklapDiv + ');'); var UitklapToggleText = document.createTextNode(UitklapDivHide); UitklapToggle.appendChild(UitklapToggleText); // add NavToggle-Button as first div-element // in < div class="UitklapFrame" > UitklapFrame.insertBefore( UitklapToggle, UitklapFrame.firstChild ); UitklapFrame.setAttribute('id', 'UitklapFrame' + indexUitklapDiv); } } for( var i=1; i<=indexUitklapDiv; i++ ) { toggleUitklapDiv(i); } } addOnloadHook( createUitklapDivToggleButton ); // EIND Dynamisch inklapbare div // ============================================================ /* MediaWiki:Monobook.js */ /* {| class="prettytable" ! Skin !! CSS !! JavaScript !! Test |- | (alle) || [[MediaWiki:Common.css|Common.css]] || [[MediaWiki:Common.js|Common.js]] || |- | Chick || [[MediaWiki:Chick.css|Chick.css]] || [[MediaWiki:Chick.js|Chick.js]] || [http://nl.wikipedia.org/w/index.php?title=Hoofdpagina&useskin=chick ] |- | Keuls blauw || [[MediaWiki:Cologneblue.css|Cologneblue.css]] || [[MediaWiki:Cologneblue.js|Cologneblue.js]] || [http://nl.wikipedia.org/w/index.php?title=Hoofdpagina&useskin=cologneblue ] |- | MonoBook (standaard) || [[MediaWiki:Monobook.css|Monobook.css]] || [[MediaWiki:Monobook.js|Monobook.js]] || [http://nl.wikipedia.org/w/index.php?title=Hoofdpagina&useskin=monobook ] |- | Nostalgie || [[MediaWiki:Nostalgia.css|Nostalgia.css]] || [[MediaWiki:Nostalgia.js|Nostalgia.js]] || [http://nl.wikipedia.org/w/index.php?title=Hoofdpagina&useskin=nostalgia ] |- | Simple || [[MediaWiki:Simple.css|Simple.css]] || [[MediaWiki:Simple.js|Simple.js]] || [http://nl.wikipedia.org/w/index.php?title=Hoofdpagina&useskin=simple ] |- | Standaard || [[MediaWiki:Standard.css|Standard.css]] || [[MediaWiki:Standard.js|Standard.js]] || [http://nl.wikipedia.org/w/index.php?title=Hoofdpagina&useskin=standard ] |}

Deze pagina is verouderd. Alle code moet verplaatst worden naar [[MediaWiki:Common.js]].

 */

/* tooltips and access keys */ 

ta = new Object();
ta['pt-userpage'] = new Array('.','Mijn gebruikerspagina');
ta['pt-anonuserpage'] = new Array('.','Gebruikerspagina voor het IP-adres dat u gebruikt');
ta['pt-mytalk'] = new Array('n','Mijn overlegpagina');
ta['pt-anontalk'] = new Array('n','Overlegpagina van de anonieme gebruiker van dit IP-adres');
ta['pt-preferences'] = new Array('','Mijn voorkeuren');
ta['pt-watchlist'] = new Array('l','De lijst van pagina\'s die op mijn volglijst staan');
ta['pt-mycontris'] = new Array('y','Mijn bijdragen');
ta['pt-login'] = new Array('o','U wordt van harte uitgenodigd om u aan te melden als gebruiker, maar dit is niet verplicht');
ta['pt-anonlogin'] = new Array('o','U wordt van harte uitgenodigd om u aan te melden als gebruiker, maar dit is niet verplicht');
ta['pt-logout'] = new Array('o','Afmelden');
ta['ca-article'] = new Array('a','Laat de inhoud van deze pagina zien');
ta['ca-talk'] = new Array('t','Laat de overlegtekst over deze pagina zien');
ta['ca-edit'] = new Array('e','Bewerk deze pagina');
ta['ca-addsection'] = new Array('+','Voeg uw commentaar onder een nieuw kopje toe aan deze pagina');
ta['ca-viewsource'] = new Array('e','Deze pagina is beveiligd tegen wijzigen. U kunt de pagina wel inzien');
ta['ca-history'] = new Array('h','Eerdere versies van deze pagina');
ta['ca-protect'] = new Array('=','Beveilig deze pagina tegen wijzigen');
ta['ca-delete'] = new Array('d','Verwijder deze pagina');
ta['ca-undelete'] = new Array('d','Herstel de inhoud van deze pagina voor de verwijdering');
ta['ca-move'] = new Array('m','Geef deze pagina een andere titel');
ta['ca-nomove'] = new Array('','U kunt deze pagina geen andere naam geven');
ta['ca-watch'] = new Array('w','Voeg deze pagina toe aan uw volglijst');
ta['ca-unwatch'] = new Array('w','Verwijder deze pagina van uw volglijst');
ta['search'] = new Array('f','Doorzoek deze wikipedia');
ta['p-logo'] = new Array('','Hoofdpagina-logo');
ta['n-mainpage'] = new Array('z','Ga naar de Hoofdpagina');
ta['n-portal'] = new Array('','Informatie over het project: wie, wat, hoe en waarom');
ta['n-currentevents'] = new Array('','Achtergrondinformatie over actuele zaken');
ta['n-recentchanges'] = new Array('r','Lijst van recente wijzigingen');
ta['n-randompage'] = new Array('x','Laat een willekeurige pagina zien');
ta['n-help'] = new Array('','Hulpinformatie over Wikipedia');
ta['n-sitesupport'] = new Array('','Ondersteun ons financieel');
ta['t-whatlinkshere'] = new Array('j','Lijst van alle pagina\'s die hiernaar verwijzen');
ta['t-recentchangeslinked'] = new Array('k','Recente wijzigingen die naar deze pagina verwijzen');
ta['feed-rss'] = new Array('','RSS-feed voor deze pagina');
ta['feed-atom'] = new Array('','Atom-feed voor deze pagina');
ta['t-contributions'] = new Array('','Lijst met bijdragen van deze gebruiker');
ta['t-emailuser'] = new Array('','Stuur een e-mail naar deze gebruiker');
ta['t-upload'] = new Array('u','Upload afbeeldingen en/of audiomateriaal');
ta['t-specialpages'] = new Array('q','Lijst van alle speciale pagina\'s');
ta['t-permalink'] = new Array('','Permanente link naar de huidige versie van deze pagina');
ta['ca-nstab-main'] = new Array('c','Laat de artikeltekst zien');
ta['ca-nstab-user'] = new Array('c','Laat de gebruikerspagina zien');
ta['ca-nstab-media'] = new Array('c','Laat de mediatekst zien');
ta['ca-nstab-special'] = new Array('','Dit is een speciale pagina die u niet kunt wijzigen');
ta['ca-nstab-wp'] = new Array('a','Laat de projectpagina zien');
ta['ca-nstab-image'] = new Array('c','Laat de afbeeldingenpagina zien');
ta['ca-nstab-mediawiki'] = new Array('c','Laat de systeemtekstpagina zien');
ta['ca-nstab-template'] = new Array('c','Laat de sjabloonpagina zien');
ta['ca-nstab-help'] = new Array('c','Laat de helppagina zien');
ta['ca-nstab-category'] = new Array('c','Laat de rubriekpagina zien');

// ============================================================
// BEGIN Enable multiple onload functions

// setup onload functions this way:
// aOnloadFunctions[aOnloadFunctions.length] = function_name; // without brackets!

if (!window.aOnloadFunctions) {
  var aOnloadFunctions = new Array();
}

window.onload = function() {
  if (window.aOnloadFunctions) {
    for (var _i=0; _iFormulier voor tabel');
  popup.document.write('