function testimonials(url) {
    var x = 500; 
    var y = 590;
    // calculate the center of the screen for positioning window there	
    var xPos = Math.round((screen.width / 2) - (x / 2));
    var yPos = Math.round((screen.height / 2) - (y / 2));
	//url = url + movieid
    var newWindow = window.open(url, 'newWin', 'width=' + x + ', height=' + y + ',scrollbars=yes,resizable=yes,left=' + xPos + ',top=' + yPos + ',screenX=' + xPos + ',screenY=' + yPos, true);
    if (newWindow != null) { 
        newWindow.focus();
        if (newWindow.opener == null) {
            newWindow.opener = window;
        }
    }    
}

function openPlayer(mediaID) {
    var x = 530;
    var y = 300;    // calculate the center of the screen for positioning window there	
    var xPos = Math.round((screen.width / 2) - (x / 2));
    var yPos = Math.round((screen.height / 2) - (y / 2));
    var url = "play.cfm?mediaID=" + mediaID
    var newWindow = window.open(url, 'newWin', 'width=' + x + ', height=' + y + ',scrollbars=yes,resizable=yes,left=' + xPos + ',top=' + yPos + ',screenX=' + xPos + ',screenY=' + yPos, true);
    if (newWindow != null) { 
        newWindow.focus();
        if (newWindow.opener == null) {
            newWindow.opener = window;
        }
    }    
}

function fastfacts() {
    var x = 694; 
    var y = 694;
    // calculate the center of the screen for positioning window there	
    var xPos = Math.round((screen.width / 2) - (x / 2));
    var yPos = Math.round((screen.height / 2) - (y / 2));
	var url = "fastfacts1.cfm";
    var newWindow = window.open(url, 'newWin', 'width=' + x + ', height=' + y + ',scrollbars=yes,resizable=yes,left=' + xPos + ',top=' + yPos + ',screenX=' + xPos + ',screenY=' + yPos, true);
    if (newWindow != null) {
        newWindow.focus();
        if (newWindow.opener == null) {
            newWindow.opener = window;
        }
    }    
}
function neuroplasticity() {
    var x = 800; 
    var y = 530;
    // calculate the center of the screen for positioning window there	
    var xPos = Math.round((screen.width / 2) - (x / 2));
    var yPos = Math.round((screen.height / 2) - (y / 2));
	var url = "regenerate/neuroplasticity.cfm";
    var newWindow = window.open(url, 'newWin', 'width=' + x + ', height=' + y + ',scrollbars=yes,resizable=yes,left=' + xPos + ',top=' + yPos + ',screenX=' + xPos + ',screenY=' + yPos, true);
    if (newWindow != null) {
        newWindow.focus();
        if (newWindow.opener == null) {
            newWindow.opener = window;
        }
    }    
}

function powerfulTopics() {
    var x = 800; 
    var y = 530;
    // calculate the center of the screen for positioning window there	
    var xPos = Math.round((screen.width / 2) - (x / 2));
    var yPos = Math.round((screen.height / 2) - (y / 2));
	var url = "regenerate/powerfulTopics.cfm";
    var newWindow = window.open(url, 'newWin', 'width=' + x + ', height=' + y + ',scrollbars=yes,resizable=yes,left=' + xPos + ',top=' + yPos + ',screenX=' + xPos + ',screenY=' + yPos, true);
    if (newWindow != null) {
        newWindow.focus();
        if (newWindow.opener == null) {
            newWindow.opener = window;
        }
    }    
}

function effects() {
    var x = 790; 
    var y = 500;
    // calculate the center of the screen for positioning window there	
    var xPos = Math.round((screen.width / 2) - (x / 2));
    var yPos = Math.round((screen.height / 2) - (y / 2));
	var url = "effects.cfm";
    var newWindow = window.open(url, 'newWin', 'width=' + x + ', height=' + y + ',scrollbars=yes,resizable=yes,left=' + xPos + ',top=' + yPos + ',screenX=' + xPos + ',screenY=' + yPos, true);
    if (newWindow != null) {
        newWindow.focus();
        if (newWindow.opener == null) {
            newWindow.opener = window;
        }
    }    
}

function newsLinks() {
    var x = 800; 
    var y = 530;
    // calculate the center of the screen for positioning window there	
    var xPos = Math.round((screen.width / 2) - (x / 2));
    var yPos = Math.round((screen.height / 2) - (y / 2));

    var url = "/programs/newsLinks.cfm";


    var newWindow = window.open(url, 'newWin', 'width=' + x + ', height=' + y + ',scrollbars=yes,resizable=yes,left=' + xPos + ',top=' + yPos + ',screenX=' + xPos + ',screenY=' + yPos, true);
    if (newWindow != null) {
        newWindow.focus();
        if (newWindow.opener == null) {
            newWindow.opener = window;
        }
    }    
}