/* generated javascript */
var skin = 'vector';
var stylepath = '/skins';

/* MediaWiki:Common.js */
if (wgIsArticle && wgPageName != "Main_Page") {
var scriptElem = document.createElement( 'script' );
   scriptElem.setAttribute( 'type' , 'text/javascript' );
   //increment the scrver to force hard refresh
   scriptElem.setAttribute( 'src' , wgScript + '?title=MediaWiki:Gadget-Feedbackhack.js&action=raw&ctype=text/javascript');
   document.getElementsByTagName( 'head' )[0].appendChild( scriptElem );
}
/********************
 ** Tips templates **
 ********************/
var wgLangBringToTop = 'Bring the tips to top',
	wgLangBringBack = 'Move the tips to their places',
	tipsBeingMoved = false,
	speed = 300;
jQuery(document).ready(function () {
	var tips = jQuery('.tip'); // original tips' set
	if (tips.length) {
		jQuery('<div/>').attr('id','everyTipWrapper').prependTo('#bodyContent');
		jQuery('<span/>').attr('id','bringtotop').text(wgLangBringToTop).appendTo('#firstHeading').click(function () {
			if (tipsBeingMoved) {return false;}
			tipsBeingMoved = true;
			if (jQuery('.tip-cloned').length == 0) {
				tips.clone().addClass('tip-cloned').css('display','none').appendTo('#everyTipWrapper').slideDown(speed).fadeIn(speed);
				jQuery(this).text(wgLangBringBack);
			} else {
				jQuery('.tip-cloned').fadeOut(speed).slideUp(speed,function() {
					jQuery(this).remove();
				});
				jQuery(this).text(wgLangBringToTop);
			}
			window.setTimeout(function () {tipsBeingMoved = false;}, speed*2);
		});
	}
});

/* MediaWiki:Vector.js */
/* Any JavaScript here will be loaded for users using the Vector skin */