// JavaScript Document
function showbox(box) {

	if (box=='catalog') {
		document.getElementById('catalogtab-on').style.display="";  
		document.getElementById('catalogtab-off').style.display="none";  
		document.getElementById('articletab-on').style.display="none";  
		document.getElementById('articletab-off').style.display="";  
		document.getElementById('databasetab-on').style.display="none";  
		document.getElementById('databasetab-off').style.display="";  
		document.getElementById('googletab-on').style.display="none";  
		document.getElementById('googletab-off').style.display="";  
		document.getElementById('catalogboxContainer').style.display="";  
		document.getElementById('articleboxContainer').style.display="none";  
		document.getElementById('databaseboxContainer').style.display="none";
		document.getElementById('googleboxContainer').style.display="none";
	} 
	if (box=='article') {
		document.getElementById('catalogtab-on').style.display="none";  
		document.getElementById('catalogtab-off').style.display="";  
		document.getElementById('articletab-on').style.display="";  
		document.getElementById('articletab-off').style.display="none";  
		document.getElementById('databasetab-on').style.display="none";  
		document.getElementById('databasetab-off').style.display="";  
		document.getElementById('googletab-on').style.display="none";  
		document.getElementById('googletab-off').style.display="";  
		document.getElementById('catalogboxContainer').style.display="none";  
		document.getElementById('articleboxContainer').style.display="";  
		document.getElementById('databaseboxContainer').style.display="none";
		document.getElementById('googleboxContainer').style.display="none";
	}
	if (box=='database') {
		document.getElementById('catalogtab-on').style.display="none";  
		document.getElementById('catalogtab-off').style.display="";  
		document.getElementById('articletab-on').style.display="none";  
		document.getElementById('articletab-off').style.display="";  
		document.getElementById('databasetab-on').style.display="";  
		document.getElementById('databasetab-off').style.display="none";  
		document.getElementById('googletab-on').style.display="none";  
		document.getElementById('googletab-off').style.display="";  
		document.getElementById('catalogboxContainer').style.display="none";  
		document.getElementById('articleboxContainer').style.display="none";  
		document.getElementById('databaseboxContainer').style.display="";
		document.getElementById('googleboxContainer').style.display="none";
	} 
	if (box=='google') {
		document.getElementById('catalogtab-on').style.display="none";  
		document.getElementById('catalogtab-off').style.display="";  
		document.getElementById('articletab-on').style.display="none";  
		document.getElementById('articletab-off').style.display="";  
		document.getElementById('databasetab-on').style.display="none";  
		document.getElementById('databasetab-off').style.display="";  
		document.getElementById('googletab-on').style.display="";  
		document.getElementById('googletab-off').style.display="none";  
		document.getElementById('catalogboxContainer').style.display="none";  
		document.getElementById('articleboxContainer').style.display="none";  
		document.getElementById('databaseboxContainer').style.display="none";
		document.getElementById('googleboxContainer').style.display="";
	} 
}

function showbox1(box, count) {
	if (box=='no-describe') {
		document.getElementById('descriptionbox'+count).style.display="none";  
	} 
	if (box=='describe') {
		document.getElementById('descriptionbox'+count).style.display="";  
	} 
}
function getSelect(s) {
				   return s.options[s.selectedIndex].value
 }
function launchWinList(url){
	
	var newWinList = window.open(url,'subWinList','width=150,height=200,scrollbars=no,toolbar=no,resizable=no,menubar=no,location=no,left=100,top=100,screenX=0,screenY=100');
	
	}
	function launchWin2(url){
	
	var newWin2 = window.open(url,'subWin2','width=600,height=400,scrollbars=yes,toolbar=yes,resizable=yes,menubar=yes,location=yes');
	
	}
<!-- 
//getSearchString(str)  this function concatenates a search string in Encore and scopes it to Salve

	function getSearchString(str){
	
	var url = "http://encore.uri.edu/iii/encore/search/C|S"+str+"|Ff:facetcollections:10:10:Salve%2BRegina%2BUniversity::|Orightresult?lang=eng&suite=def";
	var newWin = window.open(url,'subWin','height=400, width=700, scrollbars=yes,toolbar=yes,resizable=yes,menubar=yes,location=yes');
	}
function getVideoString(str){
	
	var url = "http://encore.uri.edu/iii/encore/search/C%7CS"+str+"%7CFf%3Afacetcollections%3A10%3A10%3ASalve%252BRegina%252BUniversity%3A%3A%7CFf%3Afacetcollections%3A7%3A7%3A*%252BFilms%252B*%252BVideos%252B*%252BDVDs%252B*%3A%3A%7COrightresult?lang=eng&suite=def";
	var newWin = window.open(url,'subWin','height=400, width=700, scrollbars=yes,toolbar=yes,resizable=yes,menubar=yes,location=yes');
	}	
	
<!--
// POPUP
// Set Netscape up to run the "captureMousePosition" function whenever
// the mouse is moved. For Internet Explorer and Netscape 6, you can capture
// the movement a little easier.
if (document.layers) { // Netscape
    document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = captureMousePosition;
} else if (document.all) { // Internet Explorer
    document.onmousemove = captureMousePosition;
} else if (document.getElementById) { // Netcsape 6
    document.onmousemove = captureMousePosition;
}
// Global variables
xMousePos = 0; // Horizontal position of the mouse on the screen
yMousePos = 0; // Vertical position of the mouse on the screen
xMousePosMax = 0; // Width of the page
yMousePosMax = 0; // Height of the page

function captureMousePosition(e) {
    if (document.layers) {
        // When the page scrolls in Netscape, the event's mouse position
        // reflects the absolute position on the screen. innerHight/Width
        // is the position from the top/left of the screen that the user is
        // looking at. pageX/YOffset is the amount that the user has
        // scrolled into the page. So the values will be in relation to
        // each other as the total offsets into the page, no matter if
        // the user has scrolled or not.
        xMousePos = e.pageX;
        yMousePos = e.pageY;
        xMousePosMax = window.innerWidth+window.pageXOffset;
        yMousePosMax = window.innerHeight+window.pageYOffset;
    } else if (document.all) {
        // When the page scrolls in IE, the event's mouse position
        // reflects the position from the top/left of the screen the
        // user is looking at. scrollLeft/Top is the amount the user
        // has scrolled into the page. clientWidth/Height is the height/
        // width of the current page the user is looking at. So, to be
        // consistent with Netscape (above), add the scroll offsets to
        // both so we end up with an absolute value on the page, no
        // matter if the user has scrolled or not.
        xMousePos = window.event.x+document.body.scrollLeft;
        yMousePos = window.event.y+document.body.scrollTop;
        xMousePosMax = document.body.clientWidth+document.body.scrollLeft;
        yMousePosMax = document.body.clientHeight+document.body.scrollTop;
    } else if (document.getElementById) {
        // Netscape 6 behaves the same as Netscape 4 in this regard
        xMousePos = e.pageX;
        yMousePos = e.pageY;
        xMousePosMax = window.innerWidth+window.pageXOffset;
        yMousePosMax = window.innerHeight+window.pageYOffset;
    }
}

function showPopup(item, x, y){
    var note1=document.getElementById('popup'+item);
	note1.style.left=xMousePos+x;
    note1.style.top=yMousePos+y;
    note1.style.visibility='visible';
}

function hidePopup(item){
	var note1=document.getElementById('popup'+item);
	note1.style.visibility='hidden';
}
<!--
// End POPUP