//<!--

var tooltip1 = "<p>Access numerous article databases provided by CU Libraries.<ul><li>Use the \"<font class='title'>Find it at CU Article Form</font>\" when you have an exact <a href='http://ucblibraries.colorado.edu/how/citation.htm' target='_blank'>citation of article</a> you wish to locate.</li><br><li>If you are researching an interdisciplinary or general topic, try one of the <font class='title'>general databases</font>.</li><br><li>If you are looking for articles on your topic but don't know the database to choose, go to the <font class='title'>database by subject</font> listings. These lists and the descriptions of each database will help you choose where to begin. If you still have questions, <a href='http://ucblibraries.colorado.edu/askus.cfm' target='_blank'>Ask Us</a>.</li></ul>";
var tooltip2 = "<p>Search for any type of periodical: <font class='title'>magazines</font>, <font class='title'>newspapers</font>, <font class='title'>journals</font> and more. CU libraries has both <font class='title'>electronic</font> and <font class='title'>print</font> periodicals.<p><ul><li>If the record says \"Online\" or \"Electronic Resource\", you can find it online. Be sure to note the date range and look for the year you need!</li><br><li>If the record lists \"Per Room\", \"Science Stacks\", etc, it is a print version. Record the call number and visit the appropriate location.  Be sure to note the date range and look for the year you need!</li></ul><p>Remember, if you have an exact <a href='http://ucblibraries.colorado.edu/how/citation.htm' target='_blank'>article citation</a>, you may try using the <a href='http://libnet.colorado.edu/survey/survey.cfm?url=http://libraries.colorado.edu/openurlform?genre=article' target='_blank'>\"Find it at CU Article Form\"</a>.</p>";
var tooltip3 = "<p>With <font class='title'>Chinook</font>, the library catalog, search for:</p><ul><li>book titles</li><li>journal titles</li><li>dissertations</li><li>DVDs</li><li>musical scores</li><li>maps</li><li>government publications</li><li>and more...</li></ul><p>Search for a specific title or author. Or search for a general topic using keywords. For more help go to <a href='http://ucblibraries.colorado.edu/services/Flash/NewChinook_kword.html' target='_blank'>Keyword Search Tips</a> and/or the <a href='http://libraries.colorado.edu/screens/newchinook.html' target='_blank'>Chinook Tutorials</a>!</p>";
var tooltip4 = "With <font class='title'>My Chinook</font> you can:</p><ul><li>see items currently checked out</li><li>see items you requested or put on hold</li><li>set up \"Preferred Searches\"</li><li>see your \"My Reading History\"</li><li>and more...</li></ul>";
var tooltip5 = "";
var tooltip6 = "<p>Search for materials your professor has put on reserve. You may enter the course name or the professor's name. If you have trouble or questions about reserves, visit the online <a href='http://ucblibraries.colorado.edu/reserves/faqstudents.htm' target='_blank'>FAQ</a>.</p>";
var tooltip7 = "";

var tooltip_cap1 = "How to Find Articles";
var tooltip_cap2 = "How to Find Journals";
var tooltip_cap3 = "How to Find Books and Other Materials";
var tooltip_cap4 = "\"My Chinook\" - your Library Account";
var tooltip_cap5 = "";
var tooltip_cap6 = "Materials on Reserve";
var tooltip_cap7 = "";

var newClass;
var URL;
var evnt;

function swapBoxesOver(id,newClass)			//shows the different colored borders
{
	if(id != null)
	{
		if(document.layers)
		{
			document.layers(id).className = newClass;
		}
		else if(document.all)
		{
			document.all(id).className = newClass;
		}
		else if(document.getElementById)
		{
			document.getElementById(id).className = newClass;
		}
	}
	
}

function swapBoxesOut(id,newClass)			// mouseout event - shows the different colored borders
{
	if (id == null) return false;

	if (!document.getElementById) return false;		

	// preventing the flickering effect in IE - moseover/mouseout events over the links within a layer
	// no visible problems in FF, Netscape, Safari...
	// www.quirksmode.com - PPK on JavaScript

		if (window.event) 
		{
			var evnt = window.event; 
			var tg = evnt.srcElement; // the element the mouse moved out of 
		
			if (tg.nodeName != 'div') return;
		
			var reltg =  evnt.toElement; // the element the mouse moved to
			while (reltg != tg && (reltg.nodeName != 'body')) reltg = reltg.parentNode; 
		
			if (reltg == tg) return;
			// Mouseout took place when mouse actually left layer
	
		}
	document.getElementById(id).className = newClass;
}


// Function which does "typing" and switching the news
// ***************************************************

var newsText = new Array();
newsText[0] = "Media Library to be Relocated Within Norlin Library.";
newsText[1] = "Chinook, the Library Catalog, has a Brand New Look.";
newsText[2] = "Business Library to Move to Renovated Building.";
newsText[3] = "Off-Campus Access Available for Windows Vista Users.";

var delay = 50;
var currentChar = 1;
var ii = 0;

function typing()
{
		if(!document.getElementById)
		{
			return false;
		}
		if(!document.getElementById("news"))
		{
			return false;
		}
		if(!document.getElementById("typing_news"))
		{
			return false;
		}
		var updatedNewsElems = document.getElementById("typing_news");
		if(updatedNewsElems)
		{
				var updatedText = newsText[ii].substr(0,currentChar);
				var text = document.createTextNode(updatedText);
				updatedNewsElems.replaceChild(text,updatedNewsElems.childNodes[0]);
				currentChar++;
				if(currentChar > newsText[ii].length)
				{
					currentChar = 1;
					ii++;
					if(ii < newsText.length)
					{
						setTimeout("typing()",1000);
					}
					else
					{
						ii = 0;
						setTimeout("typing()",1000);
					}
				}
				else
				{
					setTimeout("typing()",delay);
				}
		}
}

addLoadEvent(typing);

//-->