function loadEvents() {
	pastIssues();
	leftNavHilite();
}

// left nav highlighting
function leftNavHilite() {
	if (document.getElementById) {
		var leftNavArray = ["liv","news","pat","lear","reco","spot","res","prev"];
		var URL = document.URL.toLowerCase();
		for (i=0;i<leftNavArray.length;i++) {
			if ((URL.indexOf(leftNavArray[i]) != -1) && (document.getElementById(leftNavArray[i]))){
				document.getElementById(leftNavArray[i]).className = "leftNavHilite";
				break;
			}
		}
	}
}

function leftNavHilite() {
	if (document.getElementById) {
		var leftNavArray = ["liv","news","pat","lear","reco","spot","res","prev"];
		var URL = document.URL.toLowerCase();
		for (i=0;i<leftNavArray.length;i++) {
			if ((URL.indexOf(leftNavArray[i]) != -1) && (document.getElementById(leftNavArray[i]))){
				document.getElementById(leftNavArray[i]).className = "leftNavHilite";
				break;
			}
			if (URL.indexOf("liv") != -1){
				document.getElementById("reco").className = "leftNavHilite";
				break;
			}
		}
	}
}

function pastIssues () {
	var URL = window.location.href;
	if (document.getElementById && (URL.indexOf('spring2006') == -1)) {
		if (document.getElementById("previousIssue")) {
			document.getElementById("previousIssue").style.display = "block";
		}
		if (document.getElementById("previousBack")) {
			document.getElementById("previousBack").style.display = "block";
		}
	}
}

function emailFriend() {
	window.open('emailFriend.html', '', 'height=530,width=550,scrollbars=0,locationbar=0,statusbar=0,menubar=0,left=10,top=10');
}
function linkAlertJS(url) {
	if (confirm('You have just clicked on a link that will take you from the Boston Scientific website to another site.\n\nBoston Scientific does not review or monitor the content on the linked site and is not responsible for any communication or transactions you might have with them. Your use of the linked site is subject to the terms and conditions, including the privacy policy, of the linked site.')) {
		location.href=url;	
	}
} 
function popWin(path,h,w) {
	var attrib = "menubar,scrollbars,locationbar=no,statusbar=no,left=20,top=20,height=" + h + ",width=" + w;
	window.open(path,'',attrib);
} 
function openStream(num) {
	var url = "http://reflectweb.reflectsystems.com/getContent.aspx?Action=Factory&FileName=guidant/frame.htm&WCID=" + num;
	var xpos=(screen.width-423)/2;
	var ypos=(screen.height-266)/2;
	window.open(url,"","width=423,height=266,screenX=0,screenY=0,top=" + ypos + ",left=" + xpos);
}
function popGlos(page,anch){
	window.open(page + '_g.htm#' + anch,'','menubar,scrollbars=yes,locationbar=no,statusbar=no,left=20,top=20,height=300,width=500');
}
