//Open window function
function openWin( windowURL, windowName, windowFeatures ) { 
	return window.open( windowURL, windowName, windowFeatures ) ; 
} 

function initPage(siteRoot){
	addNavEvents();
	var pageBG = new Image(); 
	pageBG.src = siteRoot + '/images/template/striped_bg.gif'; 
	
	//Remove link on last Breadcrumb item
	var bCrumb = document.getElementById("breadCrumb");
	if (bCrumb){
		var aTags = bCrumb.getElementsByTagName('a');
		var lastItem = aTags.length-1;
		aTags[lastItem].removeAttribute('href');	
		aTags[lastItem].style.fontWeight = 'bold';
		
	}
	if (!isPCIE6){
		//setting this here becuase bg on IE6  to slow things down 
		document.body.background = pageBG.src;
	}
	
}

function outLink(url){
	var message = '';
	var width = 400;
	var height = 150;
		
	message = message + '<p style="text-align:center; font-weight:bold;">You are about to leave the SUNY Student Web site.</p><p style="text-align:left; font-weight:none;">Clicking the Continue link below will take you to an independent Web site. For your convenience, the independent site will be displayed in a new browser window, and the SUNY Student site will remain visible and accessible through its current browser window.</p>';
	message = message + '<p style="text-align:center; font-weight:bold;"><a href="javascript:void(0)" onclick="outLinkGo(\'' + url + '\')" class="formButton" style="text-decoration:none; padding:4px;">Continue</a>&nbsp;&nbsp;&nbsp;';
	message = message + '<a href="javascript:void(0)" onclick="closeRefreshMessage()" class="formButton" style="text-decoration:none; padding:4px;">Close</a></p>';
	
	refreshMessage(message,width,height);
}

function outLinkGo(url){
	window.open(url);
	closeRefreshMessage();
}