var loadedScripts={};function importScript(page){var url=wgScript+'?title='+encodeURIComponent(page.replace(/ /g,'_')).replace(/%2F/ig,'/').replace(/%3A/ig,':')+'&action=raw&ctype=text/javascript';if(loadedScripts[url])return null;loadedScripts[url]=true;var s=document.createElement('script');s.setAttribute('src',url);s.setAttribute('type','text/javascript');document.getElementsByTagName('head')[0].appendChild(s);}function importStylesheet(page){var sheet='@import "'+wgScriptPath+'/wiki?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);}function imageButons(){if(wgAction=='edit'||wgAction=='submit'){mwEditButtons[5].speedTip='Image';mwEditButtons[5].tagOpen='{{Image|';mwEditButtons[5].tagClose='|right|250px|Image Caption}}';if(mwCustomEditButtons){mwCustomEditButtons[mwCustomEditButtons.length]={"imageFile":"http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png","speedTip":"Redirect","tagOpen":"#REDIRECT [[","tagClose":"]]","sampleText":"Insert text"};mwCustomEditButtons[mwCustomEditButtons.length]={"imageFile":"http://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png","speedTip":"Strike","tagOpen":"","tagClose":"","sampleText":"Strike-through text"};mwCustomEditButtons[mwCustomEditButtons.length]={"imageFile":"http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png","speedTip":
"Line break","tagOpen":"
","tagClose":"","sampleText":""};mwCustomEditButtons[mwCustomEditButtons.length]={"imageFile":"http://upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png","speedTip":"Superscript","tagOpen":"","tagClose":"","sampleText":"Superscript text"};mwCustomEditButtons[mwCustomEditButtons.length]={"imageFile":"http://upload.wikimedia.org/wikipedia/en/7/70/Button_lower_letter.png","speedTip":"Subscript","tagOpen":"","tagClose":"","sampleText":"Subscript text"};mwCustomEditButtons[mwCustomEditButtons.length]={"imageFile":"http://upload.wikimedia.org/wikipedia/en/5/58/Button_small.png","speedTip":"Small","tagOpen":"","tagClose":"","sampleText":"Small Text"};mwCustomEditButtons[mwCustomEditButtons.length]={"imageFile":"http://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png","speedTip":"Insert a table","tagOpen":'{| class="wikitable"\n|-\n',"tagClose":"\n|}","sampleText":
"! header 1\n! header 2\n! header 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, cell 1\n| row 2, cell 2\n| row 2, cell 3"};mwCustomEditButtons[mwCustomEditButtons.length]={"imageFile":"http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png","speedTip":"Insert a reference","tagOpen":"[","tagClose":"]","sampleText":"Insert footnote text here"};}}}addOnloadHook(imageButons);function uploadForm(){if((wgPageName=='Special:Upload')&&(wgUserLanguage!='basic')){if((document.getElementById('wpUploadDescription').value=='')&&document.getElementById('preload')){document.getElementById('wpUploadDescription').value=document.getElementById('preload').innerHTML;document.getElementById('preload').parentNode.innerHTML='Fill in all the details you know:';}if(wgUserLanguage=='replace'){document.getElementById('wpDestFile').parentNode.parentNode.style.display='none';document.getElementById('wpUploadDescription').setAttribute('rows','5');}if((document.
getElementById('wpUploadDescription').value.indexOf('{{Image_Details')!=-1)&&(wgUserLanguage!='advanced')){var license=document.getElementById('wpLicense');var licenses=Array();for(var i in license.childNodes){if(license.childNodes[i].nodeName=='OPTION'&&license.childNodes[i].value!=''){licenses.push(license.childNodes[i].value);}}if(licenses.length==1){license.value=licenses[0];licenseSelectorCheck();license.style.display='none';}var labels={'description':'Image description:','author':'Creator name:','copyright':'Copyright holder:','source':'Source:','date-created':'Date created:','pub-country':'Publication country:','notes':'Notes:','versions':'Other versions:'};var sig='~~'+'~';var summary=document.getElementById('wpUploadDescription');var table=summary.parentNode.parentNode.parentNode;var next=summary.parentNode.parentNode.nextSibling;var args=Array();if(summary.value.indexOf('Details|')!=-1)args=summary.value.substring(summary.value.indexOf('Details|')+8,summary.value.indexOf('\n'
)).split('|');var details=summary.value.substring(summary.value.indexOf('\n|')+2,summary.value.indexOf('\n}}')).split('\n|');for(var i in details){details[i]=details[i].split('=');}for(var i in details){var tr=document.createElement('tr');var td1=document.createElement('td');var td2=document.createElement('td');tr.appendChild(td1);tr.appendChild(td2);td1.setAttribute('class','mw-label');td2.setAttribute('class','mw-input');td1.style.width='12em';if((details[i][0].replace(/^\s+|\s+$/g,''))=='notes'){var textarea=document.createElement('textarea');textarea.setAttribute('wrap','virtual');textarea.setAttribute('id',details[i][0].replace(/^\s+|\s+$/g,''));textarea.setAttribute('name',details[i][0].replace(/^\s+|\s+$/g,''));textarea.setAttribute('value',details[i][1].replace(/^\s+|\s+$/g,''));textarea.setAttribute('rows','5');td2.appendChild(textarea);textarea.style.width='90%';}else{var input=document.createElement('input');input.setAttribute('type','text');input.setAttribute('id',details[i
][0].replace(/^\s+|\s+$/g,''));input.setAttribute('name',details[i][0].replace(/^\s+|\s+$/g,''));input.setAttribute('value',details[i][1].replace(/^\s+|\s+$/g,''));td2.appendChild(input);input.style.width='90%';}var label=document.createElement('label');label.setAttribute('for',details[i][0].replace(/^\s+|\s+$/g,''));label.appendChild(document.createTextNode(labels[details[i][0].replace(/^\s+|\s+$/g,'')]));td1.appendChild(label);table.insertBefore(tr,next);if((details[i][0].replace(/^\s+|\s+$/g,''))=='author'&&(details[i][1].replace(/^\s+|\s+$/g,'')==sig))tr.style.display='none';}summary.parentNode.parentNode.style.display='none';var septr=document.createElement('tr');var septd=document.createElement('td');septr.appendChild(septd);septd.appendChild(document.createElement('br'));table.insertBefore(septr,summary.parentNode.parentNode);document.getElementById('mw-upload-form').onsubmit=function(){var temp='{{Image_Details';for(i in args){temp+='|'+args[i];}for(i in details){temp+='\n|'+
details[i][0]+'= '+document.getElementById(details[i][0].replace(/^\s+|\s+$/g,'')).value;}temp+='\n}}';summary.value=temp;if(license.value==''){alert('Please select a licence!');return false;}}}}}addOnloadHook(uploadForm);function uploadReplaceLink(){if(wgNamespaceNumber==6){var a=document.getElementsByTagName('a');for(var i in a){if(a[i].getAttribute('href')&&a[i].getAttribute('href').indexOf('wpDestFile')!=-1)a[i].setAttribute('href',a[i].getAttribute('href')+'&uselang=replace');}}}addOnloadHook(uploadReplaceLink);function creditEdit(){if((wgPageName.indexOf('/credit')!=-1)&&(wgAction=='edit')){var text=document.getElementById('wpTextbox1').value;if(text.indexOf('{{creditline')==-1)return false;var args=text.substring(text.indexOf('|')+1,text.indexOf('}}')).split('|');var bodycontent=document.getElementById('bodycontent');bodycontent.setAttribute('id','bodycontent-old');bodycontent.style.display='none';var div=document.createElement('div');bodycontent.parentNode.appendChild(div);div.
setAttribute('id','bodycontent');div.innerHTML=
"\
\n\
"
;if(args[0]&&args[0]!='licence'){document.getElementById('licence-other').value=args[0];for(var i=0;i<4;i++){if(args[0].toUpperCase()==Array('CC','GNU','PD','C')[i]){document.getElementById('licence').value=args[0].toUpperCase();document.getElementById('licence-other').style.display='none';}}}else{document.getElementById('licence').value='C';document.getElementById('licence-other').style.display='none';}if(args[1]&&args[1]!='imagetype'){document.getElementById('imagetype-other').value=args[1];for(var i=0;i<6;i++){if(args[1].toLowerCase()==Array('Image','Photo','Diagram','Drawing','Painting','Artwork')[i].toLowerCase()){document.getElementById('imagetype').value=Array('Image','Photo','Diagram','Drawing','Painting','Artwork')[i];document.getElementById('imagetype-other').style.display='none';}}}else{document.getElementById('imagetype').value='Image';document.getElementById('imagetype-other').style.display='none';}if(args[2]&&args[2]!='author')document.getElementById('author').value=args[
2];document.getElementById('licence').onchange=function(){if(document.getElementById('licence').value=='other')document.getElementById('licence-other').style.display='inline';else document.getElementById('licence-other').style.display='none';}
document.getElementById('imagetype').onchange=function(){if(document.getElementById('imagetype').value=='other')document.getElementById('imagetype-other').style.display='inline';else document.getElementById('imagetype-other').style.display='none';}
document.getElementById('save').onclick=function(){var value='{{creditline';if(document.getElementById('licence').value!='other')value+='|'+document.getElementById('licence').value;else if(document.getElementById('licence-other').value!='')value+='|'+document.getElementById('licence-other').value;if(document.getElementById('imagetype').value!='Image'||document.getElementById('author').value!=''){if(document.getElementById('imagetype').value!='other')value+='|'+document.getElementById('imagetype').value;else if(document.getElementById('imagetype-other').value!='')value+='|'+document.getElementById('imagetype-other').value;if(document.getElementById('author').value!='')value+='|'+document.getElementById('author').value;}value+='}}';document.getElementById('wpTextbox1').value=value;document.getElementById('editform').submit();}}}addOnloadHook(creditEdit);var hasClass=(function(){var reCache={};return function(element,className){return(reCache[className]?reCache[className]:(reCache[
className]=new RegExp("(?:\\s|^)"+className+"(?:\\s|$)"))).test(element.className);};})();var autoCollapse=2;var collapseCaption="hide";var expandCaption="show";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=autoCollapse&&hasClass(NavigationBoxes[i],"autocollapse"))){collapseTable(i);}}}addOnloadHook(createCollapseButtons);function addDismissButton(){var watchlistMessage=document.getElementById(
"watchlist-message");if(watchlistMessage==null)return;if(document.cookie.indexOf("hidewatchlistmessage=yes")!=-1){watchlistMessage.style.display="none";}var Button=document.createElement("span");var ButtonLink=document.createElement("a");var ButtonText=document.createTextNode("dismiss");ButtonLink.setAttribute("id","dismissButton");ButtonLink.setAttribute("href","javascript:dismissWatchlistMessage();");ButtonLink.setAttribute("title","Hide this message for one week");ButtonLink.appendChild(ButtonText);Button.appendChild(document.createTextNode("["));Button.appendChild(ButtonLink);Button.appendChild(document.createTextNode("]"));watchlistMessage.appendChild(Button);}function dismissWatchlistMessage(){var e=new Date();e.setTime(e.getTime()+(7*24*60*60*1000));document.cookie="hidewatchlistmessage=yes; expires="+e.toGMTString()+"; path=/";var watchlistMessage=document.getElementById("watchlist-message");watchlistMessage.style.display="none";}addOnloadHook(addDismissButton);function
ts_parseFloat(num){if(!num)return 0;num=parseFloat(num.replace(/,/g,""));return(isNaN(num)?0:num);}var clientPC=navigator.userAgent.toLowerCase();var is_gecko=((clientPC.indexOf('gecko')!=-1)&&(clientPC.indexOf('spoofer')==-1)&&(clientPC.indexOf('khtml')==-1)&&(clientPC.indexOf('netscape/7.0')==-1));var is_safari=((clientPC.indexOf('applewebkit')!=-1)&&(clientPC.indexOf('spoofer')==-1));var is_khtml=(navigator.vendor=='KDE'||(document.childNodes&&!document.all&&!navigator.taintEnabled));var is_ff2_win=(clientPC.indexOf('firefox/2')!=-1||clientPC.indexOf('minefield/3')!=-1)&&clientPC.indexOf('windows')!=-1;var is_ff2_x11=(clientPC.indexOf('firefox/2')!=-1||clientPC.indexOf('minefield/3')!=-1)&&clientPC.indexOf('x11')!=-1;if(clientPC.indexOf('opera')!=-1){var is_opera=true;var is_opera_preseven=(window.opera&&!document.childNodes);var is_opera_seven=(window.opera&&document.childNodes);var is_opera_95=(clientPC.search(/opera\/(9.[5-9]|[1-9][0-9])/)!=-1);}var doneOnloadHook;if(!window.
onloadFuncts){var onloadFuncts=[];}function addOnloadHook(hookFunct){onloadFuncts[onloadFuncts.length]=hookFunct;}function hookEvent(hookName,hookFunct){if(window.addEventListener){window.addEventListener(hookName,hookFunct,false);}else if(window.attachEvent){window.attachEvent("on"+hookName,hookFunct);}}if(typeof stylepath!='undefined'&&typeof skin!='undefined'){if(is_opera_preseven){document.write('');}else if(is_opera_seven&&!is_opera_95){document.write('');}else if(is_opera_95){document.write('');}else if(is_khtml){document.write('');}}if(wgBreakFrames){if(window.top!=window){window.top.location=window.location;}}function toggleVisibility(_levelId,
_otherId,_linkId){var thisLevel=document.getElementById(_levelId);var otherLevel=document.getElementById(_otherId);var linkLevel=document.getElementById(_linkId);if(thisLevel.style.display=='none'){thisLevel.style.display='block';otherLevel.style.display='none';linkLevel.style.display='inline';}else{thisLevel.style.display='none';otherLevel.style.display='inline';linkLevel.style.display='none';}}function historyRadios(parent){var inputs=parent.getElementsByTagName('input');var radios=[];for(var i=0;i=0)?"-":"+")+((tzHour<10)?"0":"")+tzHour+((tzMin<10)?"0":"")+tzMin;if(tz!=tzString){var junk=msg.split('$1');document.write(junk[0]+"UTC"+tzString+junk[1]);}
}function unhidetzbutton(){var tzb=document.getElementById('guesstimezonebutton');if(tzb){tzb.style.display='inline';}}function fetchTimezone(){var localclock=new Date();var tzRaw=localclock.getTimezoneOffset();var tzHour=Math.floor(Math.abs(tzRaw)/60);var tzMin=Math.abs(tzRaw)%60;var tzString=((tzRaw>=0)?"-":"")+((tzHour<10)?"0":"")+tzHour+":"+((tzMin<10)?"0":"")+tzMin;return tzString;}function guessTimezone(box){document.getElementsByName("wpHourDiff")[0].value=fetchTimezone();}function showTocToggle(){if(document.createTextNode){var linkHolder=document.getElementById('toctitle');if(!linkHolder){return;}var outerSpan=document.createElement('span');outerSpan.className='toctoggle';var toggleLink=document.createElement('a');toggleLink.id='togglelink';toggleLink.className='internal';toggleLink.href='javascript:toggleToc()';toggleLink.appendChild(document.createTextNode(tocHideText));outerSpan.appendChild(document.createTextNode('['));outerSpan.appendChild(toggleLink);outerSpan.
appendChild(document.createTextNode(']'));linkHolder.appendChild(document.createTextNode(' '));linkHolder.appendChild(outerSpan);var cookiePos=document.cookie.indexOf("hidetoc=");if(cookiePos>-1&&document.cookie.charAt(cookiePos+8)==1){toggleToc();}}}function changeText(el,newText){if(el.innerText){el.innerText=newText;}else if(el.firstChild&&el.firstChild.nodeValue){el.firstChild.nodeValue=newText;}}function toggleToc(){var toc=document.getElementById('toc').getElementsByTagName('ul')[0];var toggleLink=document.getElementById('togglelink');if(toc&&toggleLink&&toc.style.display=='none'){changeText(toggleLink,tocHideText);toc.style.display='block';document.cookie="hidetoc=0";}else{changeText(toggleLink,tocShowText);toc.style.display='none';document.cookie="hidetoc=1";}}function escapeQuotes(text){var re=new RegExp("'","g");text=text.replace(re,"\\'");re=new RegExp("\\n","g");text=text.replace(re,"\\n");return escapeQuotesHTML(text);}function escapeQuotesHTML(text){var re=new RegExp('&',
"g");text=text.replace(re,"&");re=new RegExp('"',"g");text=text.replace(re,""");re=new RegExp('<',"g");text=text.replace(re,"<");re=new RegExp('>',"g");text=text.replace(re,">");return text;}function insertTags(tagOpen,tagClose,sampleText){var txtarea;if(document.editform){txtarea=document.editform.wpTextbox1;}else{var areas=document.getElementsByTagName('textarea');txtarea=areas[0];}var selText,isSample=false;if(document.selection&&document.selection.createRange){if(document.documentElement&&document.documentElement.scrollTop)var winScroll=document.documentElement.scrollTop
else if(document.body)var winScroll=document.body.scrollTop;txtarea.focus();var range=document.selection.createRange();selText=range.text;checkSelectedText();range.text=tagOpen+selText+tagClose;if(isSample&&range.moveStart){if(window.opera)tagClose=tagClose.replace(/\n/g,'');range.moveStart('character',-tagClose.length-selText.length);range.moveEnd('character',-tagClose.length);}range.select();if(document.documentElement&&document.documentElement.scrollTop)document.documentElement.scrollTop=winScroll
else if(document.body)document.body.scrollTop=winScroll;}else if(txtarea.selectionStart||txtarea.selectionStart=='0'){var textScroll=txtarea.scrollTop;txtarea.focus();var startPos=txtarea.selectionStart;var endPos=txtarea.selectionEnd;selText=txtarea.value.substring(startPos,endPos);checkSelectedText();txtarea.value=txtarea.value.substring(0,startPos)+tagOpen+selText+tagClose+txtarea.value.substring(endPos,txtarea.value.length);if(isSample){txtarea.selectionStart=startPos+tagOpen.length;txtarea.selectionEnd=startPos+tagOpen.length+selText.length;}else{txtarea.selectionStart=startPos+tagOpen.length+selText.length+tagClose.length;txtarea.selectionEnd=txtarea.selectionStart;}txtarea.scrollTop=textScroll;}function checkSelectedText(){if(!selText){selText=sampleText;isSample=true;}else if(selText.charAt(selText.length-1)==' '){selText=selText.substring(0,selText.length-1);tagClose+=' '}}}var tooltipAccessKeyPrefix='alt-';if(is_opera){tooltipAccessKeyPrefix='shift-esc-';}else if(is_safari||
navigator.userAgent.toLowerCase().indexOf('mac')!=-1||navigator.userAgent.toLowerCase().indexOf('konqueror')!=-1){tooltipAccessKeyPrefix='ctrl-';}else if(is_ff2_x11||is_ff2_win){tooltipAccessKeyPrefix='alt-shift-';}var tooltipAccessKeyRegexp=/\[(ctrl-)?(alt-)?(shift-)?(esc-)?.\]$/;function updateTooltipAccessKeys(nodeList){if(!nodeList){var columnOne=document.getElementById("column-one");if(columnOne)updateTooltipAccessKeys(columnOne.getElementsByTagName("a"));updateTooltipAccessKeys(document.getElementsByTagName("input"));updateTooltipAccessKeys(document.getElementsByTagName("label"));return;}for(var i=0;i0){if(n.nodeName.toLowerCase()=="a"){a=n;}else{a=n.childNodes[0];}if(a&&((id!='ca-watch'&&id!='ca-unwatch')||!watchCheckboxExists)){a.accessKey=ta
[id][0];ak=' ['+tooltipAccessKeyPrefix+ta[id][0]+']';}}else{a=n;ak='';}if(a){a.title=ta[id][1]+ak;}}}}function setupRightClickEdit(){if(document.getElementsByTagName){var spans=document.getElementsByTagName('span');for(var i=0;iinputs.length)finish=inputs.length;for(var i=start;i0){if(table.tHead&&table.tHead.rows.length>0){firstRow=table.tHead.rows[table.tHead.rows.length-1];}else{firstRow=table.rows[0];}}if(!firstRow)return;for(var i=0;i