
(function($){
  $.fn.shuffle = function() {
    return this.each(function(){
      var items = $(this).children();
      return (items.length)
        ? $(this).html($.shuffle(items))
        : this;
    });
  }
 
  $.shuffle = function(arr) {
    for(
      var j, x, i = arr.length; i;
      j = parseInt(Math.random() * i),
      x = arr[--i], arr[i] = arr[j], arr[j] = x
    );
    return arr;
  }
})(jQuery);


function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0

if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function xlink(l){
	document.location.href=l;
}

function xlinkNewWinBig(l){
	MM_openBrWindow(l, '', 'scrollbars=yes,resizable=yes,menubar=yes', 1000, 700, "true");
}

function xlinkNewWin(l){	
	MM_openBrWindow(l, '', 'scrollbars=yes,resizable=yes', 820, 550, "true");
}

function xlinkNewWinPress(l){	
	MM_openBrWindow(l, '', 'scrollbars=yes,resizable=yes', 820, 550, "true");
}

function xlinkNewWinGallery(l){	
	MM_openBrWindow(l, '', 'scrollbars=yes,resizable=yes', 960, 650, "true");
}

function xlinkNewWinQuiz(l){
	MM_openBrWindow(l, '', 'scrollbars=yes,resizable=yes', 650, 550, "true");
}

function xlinkNewWinSmall(l){
	MM_openBrWindow(l, '', 'scrollbars=yes,resizable=yes', 690, 650, "true");
}

function xlinkNewWinMiddle(l){
	MM_openBrWindow(l, '', 'scrollbars=yes,resizable=yes', 760, 500, "true");
}

function xlinkNewWinCV(l){
	MM_openBrWindow(l, '', 'scrollbars=yes,resizable=yes', 670, 690, "true");
}

function xlinkNewBig(l){
	MM_openBrWindow(l, '', 'scrollbars=yes,resizable=yes', 1100, 800, true);
}

function xlinkNewProgramme(l){
	MM_openBrWindow(l, '', 'scrollbars=yes,resizable=yes', 990, 650, true);
}






















