function openCenteredWindow(URL, width, height)
{
    // Window dimensions:
    var theWidth, theHeight;
    if (window.innerWidth)
    {
        theWidth=window.innerWidth;
    }
    else if (document.documentElement && document.documentElement.clientWidth)
    {
        theWidth=document.documentElement.clientWidth;
    }
    else if (document.body)
    {
        theWidth=document.body.clientWidth;
    }

    if (window.innerHeight)
    {
        theHeight=window.innerHeight;
    }
    else if (document.documentElement && document.documentElement.clientHeight)
    {
        theHeight=document.documentElement.clientHeight;
    }
    else if (document.body)
    {
        theHeight=document.body.clientHeight;
    }        

    // Window origin
    var originX, originY;
    if (window.innerHeight) 
    {
        originX=screenX+(window.outerWidth-window.innerWidth);
        originY=screenY+(window.outerHeight-window.innerHeight);
    }
    else 
    {
        originX=screenLeft;
        originY=screenTop;
    }

    var X = theWidth/2;
    var Y = theHeight/2;
    var features=   '"scrollbars=0, ' +
                    'width=' + width + ', ' +
                    'height=' + height + ', ' +
                    'top=' + parseInt(originY + (Y - (height/2))) + ', ' + //
                    'left=' + parseInt(originX + (X - (width/2))) + '"';
    popup = window.open(URL, "PopUp", features);
    popup.focus()
}

function toggle(divName)
{
	var divToToggle = document.getElementById(divName);
	if (divToToggle.style.display == 'none')
	{
		divToToggle.style.display='block';
	}
	else
	{
		divToToggle.style.display='none';
	}
}

//jQuery Code below...
$(document).ready(
function()
{
    $('td.tipCard').cluetip({width: 207});
    $('td.tipTournament').cluetip({splitTitle: '|'});
}
);