//Functions used in the Playerlist plugin
//Changes style in the playerlist table on mouseover
function changeRow(tableRow, highLight) {	
        if (highLight) {
            tableRow.className='playerlistrowon';}
        else {		
            tableRow.className='playerlistrow';	}
}

//Redirects click to the given URL        
function jumpTo(theUrl) {	
      document.location.href = theUrl;
}

//Opens a window 
function cw(page,pagename,settings,w,h){
	var xMax = screen.width;
	var yMax = screen.height;
	var xOffset = (xMax - w)/2
	var yOffset = (yMax - h)/2;
	var oppna = window.open(page,pagename,settings + ',width=' + w +',height=' + h +',top='+yOffset+',left='+xOffset+'');
	
	if(oppna.window.focus){
		oppna.window.focus();
	}
}