
function toggleNotice() {
	var notice = document.getElementById('centralNotice');
	if (!wgNoticeToggleState) {
		notice.className = notice.className.replace('collapsed', 'expanded');
		toggleNoticeCookie('0');
	} else {
		notice.className = notice.className.replace('expanded', 'collapsed');
		toggleNoticeCookie('1');
	}
	wgNoticeToggleState = !wgNoticeToggleState;
}
function toggleNoticeStyle(elems, display) {
	if(elems)
		for(var i=0;i<elems.length;i++)
			elems[i].style.display = display;
}
function toggleNoticeCookie(state) {
	var e = new Date();
	e.setTime( e.getTime() + (7*24*60*60*1000) ); // one week
	var work='hidesnmessage='+state+'; expires=' + e.toGMTString() + '; path=/';
	document.cookie = work;
}
function pickTemplate(templates, weights) {
	var weightedTemplates = new Array();
	var currentTemplate = 0;
	var totalWeight = 0;

	if (templates.length == 0)
		return '';

	while (currentTemplate < templates.length) {
		totalWeight += weights[currentTemplate];
		for (i=0; i<weights[currentTemplate]; i++) {
			weightedTemplates[weightedTemplates.length] = templates[currentTemplate];
		}
		currentTemplate++;
	}

	if (totalWeight == 0)
		return '';

	var randomnumber=Math.floor(Math.random()*totalWeight);
	return weightedTemplates[randomnumber];
}


var wgNoticeToggleState = (document.cookie.indexOf('hidesnmessage=1')==-1);
document.writeln("\x3cstyle type=\"text/css\"\x3e\n#centralNotice .siteNoticeSmall{display:none;}\n#centralNotice .siteNoticeSmallAnon{display:none;}\n#centralNotice .siteNoticeSmallUser{display:none;}\n#centralNotice.collapsed .siteNoticeBig{display:none;}\n#centralNotice.collapsed .siteNoticeSmall{display:block;}\n#centralNotice.collapsed .siteNoticeSmallUser{display:block;}\n#centralNotice.collapsed .siteNoticeSmallAnon{display:block;}\n#centralNotice.anonnotice .siteNoticeSmallUser{display:none !important;}\n#centralNotice.usernotice .siteNoticeSmallAnon{display:none !important;}\n\x3c/style\x3e");

wgNotice=pickTemplate(["\x3cstyle type=\"text/css\"\x3e \n/* Styles for Notices */\n\n.notice-wrapper-vector_transition, .notice-collapsed-wrapper-vector_transition {\n margin: 2px auto 0;\n width: 100%;\n padding: 0;\n font-family: \'Arial\',\'Helvetica\',\'Tahoma\',sans-serif;\n color: #333;\n background-color: #ddd;\n font-size: 1em;\n font-weight: 200;\n vertical-align:middle;\n}\n\n.notice-wrapper-vector_transition {\n border: 1px solid #bbb;\n background-color: #fcfcfc;\n text-align: left;\n font-size: 1em;\n}\n\n.notice-wrapper-vector_transition a {\n color: #006699;\n}\n\n.toggle-box {\n text-align: right;\n font-size: 0.8em;\n padding: 0;\n}\n\n.trans-box {\n text-align: right;\n font-size: 0.8em;\n padding: 0;\n white-space: nowrap;\n}\n\ntd#table-cell-1 {\n margin: 0 auto;\n padding: 1px 0 3px 5px;\n width: 30px;\n}\n\ntd#table-cell-2 {\n margin: 0 auto;\n padding: 0 5px 0 0;\n font-size: 1.3em;\n}\n\n.line-ht-fix {\n line-height: 1em;\n}\n\n#centralNotice.collapsed .siteNoticeUser {\n display:none;\n}\n\ndiv.notice-links-vector_transition {\n text-align:right;\n}\n\x3c/style\x3e\n\n\x3ctable class=\"siteNoticeUser notice-wrapper-vector_transition\"\x3e\n \x3ctr\x3e\n  \x3ctd id=\"table-cell-2\" align=\"center\"\x3e\n   \x3cspan\x3e\n    Notice something different?  We\'ve made a few improvements to Wikipedia. \x3ca href=\"http://en.wikipedia.org/wiki/Special:UsabilityInitiativePrefSwitch\"\x3eLearn more.\x3c/a\x3e\n   \x3c/span\x3e\n  \x3c/td\x3e\n  \x3ctd id=\"table-cell-3\" class=\"line-ht-fix\"\x3e\n      \x3cspan class=\"toggle-box\"\x3e\n   [\x3ca href=\"#\" onclick=\"toggleNotice();return false\"\x3eHide\x3c/a\x3e]\n \x3c/span\x3e\n  \x3c/td\x3e\n \x3c/tr\x3e\n\x3c/table\x3e", "\x3cstyle type=\"text/css\"\x3e\n#centralNotice.collapsed .central-notice-banner {\n display: none;\n}\n.central-notice-banner {\n position: relative;\n margin-bottom: 1em !important;\n}\n.toggle-box {\n position: absolute;\n right: 0.25em;\n top: 1.3em;\n font-size: 0.8em;\n}\n.vector-banner-base {\n height: 3em;\n background-color: white;\n background-image: url(http://upload.wikimedia.org/centralnotice/enwiki/vector/base.png);\n background-repeat: repeat-x;\n background-position: center bottom;\n}\n.vector-banner-base-left {\n height: 3em;\n background-image: url(http://upload.wikimedia.org/centralnotice/enwiki/vector/left.png);\n background-repeat: no-repeat;\n background-position: left bottom;\n}\n.vector-banner-base-right {\n height: 3em;\n background-image: url(http://upload.wikimedia.org/centralnotice/enwiki/vector/right.png);\n background-repeat: no-repeat;\n background-position: right bottom;\n}\n.vector-banner-message {\n text-align: center;\n height: 3em;\n}\n.vector-banner-message a {\n display: inline-block;\n height: 2em;\n padding: 0 1em !important;\n padding-top: 1em !important;\n cursor: pointer;\n text-decoration: none;\n}\n.vector-banner-message a.vector-banner-message-left {\n background-image: url(http://upload.wikimedia.org/centralnotice/enwiki/vector/break.png) !important;\n background-repeat: no-repeat !important;\n background-position: right bottom !important;\n color: #333333;\n}\n.vector-banner-message a.vector-banner-message-right {\n color: #0645AD;\n}\n.vector-banner-message a.vector-banner-message-right:hover {\n text-decoration: underline;\n}\n\x3c/style\x3e\n\x3cdiv class=\"central-notice-banner\" id=\"vector_transition_message\"\x3e\n \x3cdiv class=\"toggle-box\"\x3e\x3ca href=\"#\" onclick=\"toggleNotice();return false\"\x3eHide\x3c/a\x3e\x3c/div\x3e\n \x3cdiv class=\"vector-banner-base\"\x3e\n  \x3cdiv class=\"vector-banner-base-left\"\x3e\n   \x3cdiv class=\"vector-banner-base-right\"\x3e\n    \x3cdiv class=\"vector-banner-message\"\x3e\n     \x3ca href=\"http://meta.wikimedia.org/wiki/2010_Wikimedia_design_and_feature_change\" class=\"vector-banner-message-left\"\x3eWikipedia is getting a new look\x3c/a\x3e\x3ca href=\"http://meta.wikimedia.org/wiki/2010_Wikimedia_design_and_feature_change\" class=\"vector-banner-message-right\"\x3eHelp us find bugs and complete user interface translations\x3c/a\x3e\n    \x3c/div\x3e\n   \x3c/div\x3e\n  \x3c/div\x3e\n \x3c/div\x3e\n\x3c/div\x3e\n\n\x3cscript type=\"text/javascript\"\x3e\n// Control whether or not this is displayed\nif( wgUserName == null ||  \n wgDBname  == \'enwiki\' || \n wgDBname == \'dewiki\' || \n wgDBname == \'frwiki\'|| \n wgDBname == \'plwiki\'|| \n wgDBname == \'itwiki\'|| \n wgDBname == \'jawiki\'|| \n wgDBname == \'eswiki\'|| \n wgDBname == \'nlwiki\'|| \n wgDBname == \'ptwiki\'|| \n wgDBname == \'ruwiki\'|| \n wgDBname == \'enwikinews\'|| \n wgDBname == \'nostalgiawiki\'|| \n wgDBname == \'strategywiki\'|| \n wgDBname ==\'strategyappswiki\'|| \n wgDBname ==\'usabilitywiki\'|| \n wgDBname == \'fiwikimedia\'|| \n wgDBname == \'trwikimedia\'|| \n wgDBname == \'outreachwiki\'|| \n wgDBname == \'srwikinews\'|| \n wgDBname == \'liquidthreads_labswikimedia\'|| \n wgDBname == \'flaggedrevs_labswikimedia\'|| \n wgDBname == \'foundationwiki\'|| \n wgDBname == \'officewiki\'|| \n wgDBname == \'ukwikimedia\'|| \n wgDBname == \'commonswiki\'\n) {\n    document.getElementById(\'vector_transition_message\').style.display=\'none\';\n}\n\x3c/script\x3e", "\x3cstyle type=\"text/css\"\x3e\n/* Styles for Notices */\n/*COPIED FROM VECTORCHANGED */\n\n.notice-wrapper-vector_transition, .notice-collapsed-wrapper-vector_transition {\n margin: 2px auto 0;\n width: 100%;\n padding: 0;\n font-family: \'Arial\',\'Helvetica\',\'Tahoma\',sans-serif;\n color: #333;\n background-color: #ddd;\n font-size: 1em;\n font-weight: 200;\n vertical-align:middle;\n}\n\n.notice-wrapper-vector_transition {\n border: 1px solid #bbb;\n background-color: #fcfcfc;\n text-align: left;\n font-size: 1em;\n}\n\n.notice-wrapper-vector_transition a {\n color: #006699;\n}\n\n#vector_post_release_message .toggle-box {\n text-align: right;\n font-size: 0.8em;\n padding: 0;\n}\n\n#vector_post_release_message .trans-box {\n text-align: right;\n font-size: 0.8em;\n padding: 0;\n white-space: nowrap;\n}\n\ntd#table-cell-1 {\n margin: 0 auto;\n padding: 1px 0 3px 5px;\n width: 30px;\n}\n\ntd#table-cell-2 {\n margin: 0 auto;\n padding: 0 5px 0 0;\n font-size: 1.3em;\n}\n\ntd#table-cell-lht {\n font-size: 0.8em;\n padding: 0 5px 0 0;\n text-align: center;\n}\n\n#vector_post_release_message .line-ht-fix {\n line-height: 1em;\n align: center;\n}\n\n\n#centralNotice.collapsed .siteNoticeUser {\n display:none;\n}\n\ndiv.notice-links-vector_transition {\n text-align:right;\n}\n\n\n/* FROM VECTORNEWLOOK */\n\n\n#centralNotice.collapsed .central-notice-banner {\n display: none;\n}\n#vector_transition_message .central-notice-banner {\n position: relative;\n margin-bottom: 1em !important;\n}\n#vector_transition_message .toggle-box {\n position: absolute;\n right: 8em;\n /* right: 0.25em; */\n /* top: 1.3em; */\n font-size: 0.8em;\n}\n.vector-banner-base {\n height: 3em;\n background-color: white;\n background-image: url(http://upload.wikimedia.org/centralnotice/enwiki/vector/base.png);\n background-repeat: repeat-x;\n background-position: center bottom;\n}\n.vector-banner-base-left {\n height: 3em;\n background-image: url(http://upload.wikimedia.org/centralnotice/enwiki/vector/left.png);\n background-repeat: no-repeat;\n background-position: left bottom;\n}\n.vector-banner-base-right {\n height: 3em;\n background-image: url(http://upload.wikimedia.org/centralnotice/enwiki/vector/right.png);\n background-repeat: no-repeat;\n background-position: right bottom;\n}\n.vector-banner-message {\n text-align: center;\n height: 3em;\n}\n.vector-banner-message a {\n display: inline-block;\n height: 2em;\n padding: 0 1em !important;\n padding-top: 1em !important;\n cursor: pointer;\n text-decoration: none;\n}\n.vector-banner-message a.vector-banner-message-left {\n background-image: url(http://upload.wikimedia.org/centralnotice/enwiki/vector/break.png) !important;\n background-repeat: no-repeat !important;\n background-position: right bottom !important;\n color: #333333;\n}\n.vector-banner-message a.vector-banner-message-right {\n color: #0645AD;\n}\n.vector-banner-message a.vector-banner-message-right:hover {\n text-decoration: underline;\n}\n\x3c/style\x3e\n\x3cdiv class=\"central-notice-banner\" id=\"vector_transition_message\"\x3e\n \x3cdiv class=\"toggle-box\"\x3e\x3ca href=\"#\" onclick=\"toggleNotice();return false\"\x3eHide\x3c/a\x3e\x3c/div\x3e\n \x3cdiv class=\"vector-banner-base\"\x3e\n  \x3cdiv class=\"vector-banner-base-left\"\x3e\n   \x3cdiv class=\"vector-banner-base-right\"\x3e\n    \x3cdiv class=\"vector-banner-message\"\x3e\n     \x3ca href=\"http://meta.wikimedia.org/wiki/2010_Wikimedia_design_and_feature_change\" class=\"vector-banner-message-left\"\x3eWikipedia is getting a new look\x3c/a\x3e\x3ca href=\"http://meta.wikimedia.org/wiki/2010_Wikimedia_design_and_feature_change\" class=\"vector-banner-message-right\"\x3eHelp us find bugs and complete user interface translations\x3c/a\x3e\n    \x3c/div\x3e\n   \x3c/div\x3e\n  \x3c/div\x3e\n \x3c/div\x3e\n\x3c/div\x3e\n\x3ctable class=\"siteNoticeUser notice-wrapper-vector_transition\" id=\"vector_post_release_message\"\x3e\n \x3ctr\x3e\n  \x3ctd id=\"table-cell-2\" align=\"center\"\x3e\n   \x3cspan\x3e\n    Notice something different?  We\'ve made a few improvements to Wikipedia. \x3ca href=\"http://en.wikipedia.org/wiki/Special:UsabilityInitiativePrefSwitch\"\x3eLearn more.\x3c/a\x3e\n   \x3c/span\x3e\n  \x3c/td\x3e\n  \x3ctd id=\"table-cell-lht\" class=\"line-ht-fix\"\x3e\n      \x3cspan class=\"toggle-box\"\x3e\n   [\x3ca href=\"#\" onclick=\"toggleNotice();return false\"\x3eHide\x3c/a\x3e]\n \x3c/span\x3e\x3cbr/\x3e\n  \x3cspan class=\"trans-box\"\x3e\n  [\x3ca href=\"http://usability.wikimedia.org/wiki/Releases/Default_Switch#Phase_IV_Deployment\"\x3eHelp us with translations!\x3c/a\x3e]\n  \x3c/span\x3e\n  \x3c/td\x3e\n \x3c/tr\x3e\n\x3c/table\x3e\n\n\x3cscript type=\"text/javascript\"\x3e\n// Control which will be displayed\n// This is the lowest form of JS that will work in all supported browsers, is not pretty but it works\nif( \n (typeof(wgDBname) == \"undefined\") ||\n wgDBname  == \'enwiki\' || \n wgDBname == \'dewiki\' || \n wgDBname == \'frwiki\'|| \n wgDBname == \'plwiki\'|| \n wgDBname == \'itwiki\'|| \n wgDBname == \'jawiki\'|| \n wgDBname == \'eswiki\'|| \n wgDBname == \'nlwiki\'|| \n wgDBname == \'ptwiki\'|| \n wgDBname == \'ruwiki\'|| \n wgDBname == \'enwikinews\'|| \n wgDBname == \'nostalgiawiki\'|| \n wgDBname == \'strategywiki\'|| \n wgDBname ==\'strategyappswiki\'|| \n wgDBname ==\'usabilitywiki\'|| \n wgDBname == \'fiwikimedia\'|| \n wgDBname == \'trwikimedia\'|| \n wgDBname == \'outreachwiki\'|| \n wgDBname == \'srwikinews\'|| \n wgDBname == \'liquidthreads_labswikimedia\'|| \n wgDBname == \'flaggedrevs_labswikimedia\'|| \n wgDBname == \'foundationwiki\'|| \n wgDBname == \'officewiki\'|| \n wgDBname == \'ukwikimedia\'|| \n wgDBname == \'commonswiki\' ||\n wgDBname == \"wikimania2011wiki\" || \n wgDBname == \"wikimania2010wiki\" || \nwgDBname == \"wikimania2009wiki\" || \nwgDBname == \"wikimania2008wiki\" || \nwgDBname == \"wikimania2007wiki\" || \nwgDBname == \"wikimania2006wiki\" || \nwgDBname == \"wikimania2005wiki\" ||\nwgDBname == \"brwikimedia\" || \nwgDBname == \"dkwikimedia\" || \nwgDBname == \"vewikimedia\" || \nwgDBname == \"ptwikimedia\" || \nwgDBname == \"nowikimedia\" || \nwgDBname == \"ruwikimedia\" || \nwgDBname == \"sewikimedia\" || \nwgDBname == \"rswikimedia\" || \nwgDBname == \"cowikimedia\" || \nwgDBname == \"plwikimedia\" || \nwgDBname == \"chwikimedia\" || \nwgDBname == \"ilwikimedia\" || \nwgDBname == \"nlwikimedia\" || \nwgDBname == \"nzwikimedia\" || \nwgDBname == \"uawikimedia\" || \nwgDBname == \"metawiki\" || \nwgDBname == \"en_labswikimedia\" || \nwgDBname == \"de_labswikimedia\" || \nwgDBname == \"readerfeedback_labswikimedia\"\n) {\n/* already changed */\n    document.getElementById(\'vector_transition_message\').style.display=\'none\';\n    document.getElementById(\'vector_post_release_message\').style.display=\'none\';\n}\nelse if(\nwgDBname == \"afwiki\" || \nwgDBname == \"alswiki\" || \nwgDBname == \"arwiki\" || \nwgDBname == \"be_x_oldwiki\" || \nwgDBname == \"bgwiki\" || \nwgDBname == \"bnwiki\" || \nwgDBname == \"brwiki\" || \nwgDBname == \"bswiki\" || \nwgDBname == \"cawiki\" || \nwgDBname == \"cswiki\" || \nwgDBname == \"cywiki\" || \nwgDBname == \"dawiki\" || \nwgDBname == \"diqwiki\" || \nwgDBname == \"dsbwiki\" || \nwgDBname == \"elwiki\" || \nwgDBname == \"eowiki\" || \nwgDBname == \"etwiki\" || \nwgDBname == \"euwiki\" || \nwgDBname == \"fawiki\" || \nwgDBname == \"fiwiki\" || \nwgDBname == \"frpwiki\" || \nwgDBname == \"glwiki\" || \nwgDBname == \"hewiki\" || \nwgDBname == \"hsbwiki\" || \nwgDBname == \"huwiki\" || \nwgDBname == \"iawiki\" || \nwgDBname == \"idwiki\" || \nwgDBname == \"kawiki\" || \nwgDBname == \"kowiki\" || \nwgDBname == \"kshwiki\" || \nwgDBname == \"lbwiki\" || \nwgDBname == \"mkwiki\" || \nwgDBname == \"mlwiki\" || \nwgDBname == \"mswiki\" || \nwgDBname == \"mtwiki\" || \nwgDBname == \"nnwiki\" || \nwgDBname == \"nowiki\" || \nwgDBname == \"ocwiki\" || \nwgDBname == \"pmswiki\" || \nwgDBname == \"rowiki\" || \nwgDBname == \"roa_tarawiki\" || \nwgDBname == \"sahwiki\" || \nwgDBname == \"skwiki\" || \nwgDBname == \"slwiki\" || \nwgDBname == \"sqwiki\" || \nwgDBname == \"svwiki\" || \nwgDBname == \"tewiki\" || \nwgDBname == \"thwiki\" || \nwgDBname == \"tlwiki\" || \nwgDBname == \"trwiki\" || \nwgDBname == \"viwiki\" || \nwgDBname == \"yiwiki\" || \nwgDBname == \"yowiki\" || \nwgDBname == \"zhwiki\" || \nwgDBname == \"zh_yuewiki\" ||\nwgDBname == \"incubatorwiki\" || \nwgDBname == \"mediawikiwiki\" \n) {\n/* Phase IV projects, show nothing as well for now */\n    document.getElementById(\'vector_transition_message\').style.display=\'none\';\n    document.getElementById(\'vector_post_release_message\').style.display=\'none\';\n}\nelse{\n/* all others, just hide post-release */\n    document.getElementById(\'vector_post_release_message\').style.display=\'none\';\n   if(wgUserName == null){\n    document.getElementById(\'vector_transition_message\').style.display=\'none\';\n   }\n}\n\n\n\x3c/script\x3e", "\x3cstyle type=\"text/css\"\x3e \n/* Styles for Notices */\n\n.notice-wrapper-vector_transition, .notice-collapsed-wrapper-vector_transition {\n margin: 2px auto 0;\n width: 100%;\n padding: 0;\n font-family: \'Arial\',\'Helvetica\',\'Tahoma\',sans-serif;\n color: #333;\n background-color: #ddd;\n font-size: 1em;\n font-weight: 200;\n vertical-align:middle;\n}\n\n.notice-wrapper-vector_transition {\n border: 1px solid #bbb;\n background-color: #fcfcfc;\n text-align: left;\n font-size: 1em;\n}\n\n.notice-wrapper-vector_transition a {\n color: #006699;\n}\n\n.toggle-box {\n text-align: right;\n font-size: 0.8em;\n padding: 0;\n}\n\n.trans-box {\n text-align: right;\n font-size: 0.8em;\n padding: 0;\n white-space: nowrap;\n}\n\ntd#table-cell-1 {\n margin: 0 auto;\n padding: 1px 0 3px 5px;\n width: 30px;\n}\n\ntd#table-cell-2 {\n margin: 0 auto;\n padding: 0 5px 0 0;\n font-size: 1.3em;\n}\n\n.line-ht-fix {\n line-height: 1em;\n}\n\n#centralNotice.collapsed .siteNoticeUser {\n display:none;\n}\n\ndiv.notice-links-vector_transition {\n text-align:right;\n}\n\x3c/style\x3e\n\n\x3cscript type=\"text/javascript\"\x3e\n//control whether or not this is displayed\nif( \n      (wgUserName == null) ||\n(wgServer.match(/wikipedia/) == null) || \n    (wgDBname == \"enwiki\") ||\n    (wgDBname == \"dewiki\") ||\n    (wgDBname == \"frwiki\") ||\n    (wgDBname == \"plwiki\") ||\n    (wgDBname == \"itwiki\") ||\n    (wgDBname == \"jawiki\") ||\n    (wgDBname == \"eswiki\") || \n    (wgDBname == \"nlwiki\") ||\n    (wgDBname == \"ptwiki\") ||\n    (wgDBname == \"ruwiki\") ){\ndocument.getElementById(\'vector_transition_message\').style.display=\'none\';}\n\x3c/script\x3e\n\n\x3ctable class=\"siteNoticeUser notice-wrapper-vector_transition\" id=\"vector_transition_message\"\x3e\n \x3ctr\x3e\n  \x3ctd id=\"table-cell-2\" align=\"center\"\x3e\n   \x3cspan\x3e\n    Wikipedia is getting a new look \x3cbr/\x3e \x3ca href=\"http://meta.wikimedia.org/wiki/2010_Wikimedia_design_and_feature_change\"\x3eHelp us find bugs and complete user interface translations\x3c/a\x3e\n   \x3c/span\x3e\n  \x3c/td\x3e\n  \x3ctd id=\"table-cell-3\" class=\"line-ht-fix\"\x3e\n      \x3cspan class=\"toggle-box\"\x3e\n   [\x3ca href=\"#\" onclick=\"toggleNotice();return false\"\x3eHide\x3c/a\x3e]\n \x3c/span\x3e\n  \x3c/td\x3e\n \x3c/tr\x3e\n\x3c/table\x3e"],[0, 0, 25, 0]);
if (wgNotice != '')
wgNotice='<div id="centralNotice" class="' + (wgNoticeToggleState ? 'expanded' : 'collapsed') + ' ' + (wgUserName ? 'usernotice' : 'anonnotice' ) + '">' + wgNotice+'</div>';
