// Javascript New Window
		
var win= null;

function setpopuplinks() {
	allLinks = document.getElementsByTagName("a");
	
	for(i=0; i < allLinks.length; i++){
		if(allLinks[i].getAttribute("rel") == "popup"){
			allLinks[i].onclick = function(){
				return newwindow(this,'BostonCollege',800,500,'yes');
			}
		}
	}
}

function newwindow(thisObj,myname,w,h,scroll){ 
	var winl = 0;
	var wint = 0;
	winl = (screen.width-w)/2;
	if (navigator.userAgent.indexOf("Opera")==-1){  //Opera needs to be zero as it keeps popups within the browser content area
		wint = (screen.height-h)/2;
	}
	w=w+100;
	settings='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar=no,location=no,status=no,menubar=no,resizable=yes,dependent=no'; 
	
	// Get HREF from link
	var thisHref = thisObj.getAttribute("href");

	win=window.open(thisHref,myname,settings) 
	if(parseInt(navigator.appVersion) >= 4){win.window.focus();} 
	return false;
}