function insertquicklinks1() {
   document.getElementById('quicklinks1').innerHTML = "";
   document.getElementById('quicklinks1').innerHTML = "<a href='/athens/index.html'>Athens Info</a><a href='https://gil.uga.edu/cgi-bin/Pwebrecon.cgi?DB=local&PAGE=rbSearch'>Course Reserves Catalog</a><a href='/ebooks/index.html'>E-Books</a><a href='http://www.libs.uga.edu/research'>GALILEO@UGA</a><a href='http://www.libs.uga.edu/gil.html'>GIL-Classic Catalog</a><a href='http://www.libs.uga.edu/gilfind.html'>GIL-Find Catalog</a><a href='http://www.libs.uga.edu/giluc.html'>GIL Universal Catalog</a><a href='/gilfinduc.html'>GIL-Find Universal Catalog</a><a href='/googlescholar.html'>GOOGLE Scholar</a><a href='/ejournals/index.html'>Journal Locator</a><a href='/mediadept/media_catalog.html'>Media Department Catalog</a><a href='/multisearch/index.html'>Multi-Search</a><a href='http://guides.libs.uga.edu/subject-guide/60-Newspapers-at-the-UGA-Libraries'>Newspapers</a><a href='/av/index.html'>Online Audio &amp; Visual Resources </a><a href='http://www.libs.uga.edu/researchcentral/choosing/primary/index.html'>Primary Sources</a><a href='/etd/index.html'>Theses &amp; Dissertations</a>";     }

function insertquicklinks2() {
   document.getElementById('quicklinks2').innerHTML = "";
   document.getElementById('quicklinks2').innerHTML = "<a href='/access_services/borrowing/index.html'>Borrowing &amp; Renewing</a><a href='/ref/instruction/index.html'>Classes &amp; Research Consultations</a><a href='/howdoi/printing.html'>Copying, Printing &amp; Imaging</a><a href='/ref/dl/index.html'>For Distance Learners</a><a href='/faculty/index.html'>For Faculty</a><a href='/graduates/index.html'>For Graduate Students</a><a href='/disabil/disabilities.html'>For Patrons with Disabilities</a><a href='/undergraduates/index.html'>For Undergraduates</a><a href='/visitors/index.html'>For Visitors</a><a href='/access_services/gilexpress.html'>GIL Express Borrowing</a><a href='/ill/index.html'>Interlibrary Loan</a><a href='/myaccount.html'>My Library Account</a><a href='http://www.libs.uga.edu/access_services/services/reporequest.html'>Repository Requests</a><a href='/colldev/order.html'>Suggest a Purchase</a>";
}

function insertquicklinks3() {
   document.getElementById('quicklinks3').innerHTML = "";
   document.getElementById('quicklinks3').innerHTML = "<a href='/libinfo.html'>Libraries Information</a><a href='/collections.html'>Collections & Departments A-Z</a><a href='/media/index.html'>Brown Media Archives</a><a href='http://www.coe.uga.edu/cml/'>Curriculum Materials Library</a><a href='/dlg.html'>Digital Library of Georgia</a><a href='/govdocs/index.html'>Government Documents</a><a href='http://www.libs.uga.edu/hargrett/index.shtml'>Hargrett Library</a><a href='/maproom/index.html'>Map Library</a><a href='/mediadept/index.html'>Media Department</a><a href='http://mlc.uga.edu/'>Miller Learning Center</a><a href='/music/index.html'>Music Collections</a><a href='/russell/'>Russell Library</a><a href='/science/'>Science Library</a><a href='/scl/index.html'>Special Collections</a><a href='http://www.libs.uga.edu/otherlibraries.html'>Other Area Libraries</a><a href='/newbooks.html'>New & Featured Books</a><a href='/colldev/order.html'>Suggest a Purchase</a>";
}

function insertquicklinks4() {
   document.getElementById('quicklinks4').innerHTML = "";
   document.getElementById('quicklinks4').innerHTML = "<a href='/ref/citation.html'>Citation Style Guides</a><a href='/courseclassguides.html'>Course/Class Guides</a><a href='http://dataserv.libs.uga.edu/'>Data Services</a><a href='/citeman/index.html'>EndNote/Refworks</a><a href='http://www.libs.uga.edu/password.html'>GALILEO Password</a><a href='http://guides.libs.uga.edu/subject-guide/57-Genealogy-Research-at-the-UGA-Libraries'>Genealogy Guide</a><a href='http://www.libs.uga.edu/researchcentral/process.html'>How To Do Research</a><a href='http://www.libs.uga.edu/researchcentral/choosing/primary/index.html'>Primary Sources</a><a href='/ref/instruction/index.html'>Research Consultations &amp; Classes</a><a href='http://guides2.galib.uga.edu/subject-guides'>Subject Guides</a><a href='/specialists.html'>Subject Specialists</a><a href='/tutorials/index.html'>Tutorials</a>";
}

function insertquicklinks5() {
   document.getElementById('quicklinks5').innerHTML = "";
   document.getElementById('quicklinks5').innerHTML = "<a href='http://www.libs.uga.edu/blog'>Blog</a><a href='/access_services/shelving/floorcallnos.html'>Call Number Directories</a><a href='/collections.html'>Collections &amp; Departments A-Z</a><a href='/directions.html'>Directions, Parking</a><a href='/humres/jobs/index.html'>Employment</a><a href='/researchcentral/working/navigating/floor.html'>Floor Maps</a><a href='/forms.html'>Forms</a><a href='/development/giftshop.html'>Gift Shop</a><a href='/access_services/hours.html'>Hours</a><a href='/admin/index.html'>Libraries Administration</a><a href='/policies/index.html'>Policies</a><a href='/staff_directory/index.html'>Staff Directory</a><a href='/rss/index.html'>Subscribe via RSS</a><a href='/development/making.html'>Support the Libraries/Make a Gift</a>";
}


   
 

function handlequicklinks(evt){
  var evt = (evt) ? evt : ((window.event) ? window.event : "");
  if (evt){
     var elem = getTargetElement(evt);
     if(elem){
        if(elem.id == "quick1"){
           insertquicklinks1();

        }
        if(elem.id != "quick1"){
           document.getElementById("quicklinks1").innerHTML = "";

        }
		
		if(elem.id == "quick2"){
           insertquicklinks2();

        }
        if(elem.id != "quick2"){
           document.getElementById("quicklinks2").innerHTML = "";

        }
		
		 if(elem.id == "quick3"){
           insertquicklinks3();

        }
        if(elem.id != "quick3"){
           document.getElementById("quicklinks3").innerHTML = "";

        }
		 if(elem.id == "quick4"){
           insertquicklinks4();

        }
        if(elem.id != "quick4"){
           document.getElementById("quicklinks4").innerHTML = "";

        }
		 if(elem.id == "quick5"){
           insertquicklinks5();

        }
        if(elem.id != "quick5"){
           document.getElementById("quicklinks5").innerHTML = "";

        }
		
		
		
				
       return true;
     }
  }
}//end handleQuickLinks

function getTargetElement(evt){
  var elem;
  if (evt.target)
     elem = (evt.target.nodeType == 3) ? evt.target.parentNode : evt.target;
  else
     elem = evt.srcElement;
   return elem;
}//end getTargetElement

document.onclick = handlequicklinks;

function SelectServices(){
     if (document.services.listservices.options[document.services.listservices.selectedIndex].value != "none"){ 
             url = document.services.listservices.options[document.services.listservices.selectedIndex].value
             location =url
       }        
}


function SelectAbout(){
     if (document.about.listabout.options[document.about.listabout.selectedIndex].value != "none"){ 
             url = document.about.listabout.options[document.about.listabout.selectedIndex].value
             location =url
       }        
}

function SelectResearch(){
     if (document.research.listresearch.options[document.research.listresearch.selectedIndex].value != "none"){ 
             url = document.research.listresearch.options[document.research.listresearch.selectedIndex].value
             location =url
       }        
}

function SelectResources(){
     if (document.resources.listresources.options[document.resources.listresources.selectedIndex].value != "none"){ 
             url = document.resources.listresources.options[document.resources.listresources.selectedIndex].value
             location =url
       }        
}


function swap_selected(elem){
   if(elem){
      //return if you clicked the selected tab
      if(elem.className == "selected") return;

      var tab_1 = document.getElementById("T1");
      var tab_2 = document.getElementById("T2");
      var tab_3 = document.getElementById("T3");
      var tab_5 = document.getElementById("T5");

      var content_1 = document.getElementById("C1");
      var content_2 = document.getElementById("C2");
      var content_3 = document.getElementById("C3");
      var content_5 = document.getElementById("C5");

      if(elem == tab_1){
         tab_1.className = "selected";
         content_1.style.display = "block";

         tab_2.className = "";
         content_2.style.display = "none";

         tab_3.className = "";
         content_3.style.display = "none";

         tab_5.className = "";
         content_5.style.display = "none";
      }
      else if(elem == tab_2){
         tab_2.className = "selected";
         content_2.style.display = "block";

         tab_1.className = "";
         content_1.style.display = "none";

         tab_3.className = "";
         content_3.style.display = "none";
		 
		 tab_5.className = "";
         content_5.style.display = "none";
      }
      else if(elem == tab_3){
         tab_3.className = "selected";
         content_3.style.display = "block";

         tab_2.className = "";
         content_2.style.display = "none";

         tab_1.className = "";
         content_1.style.display = "none";
		 
		 tab_5.className = "";
         content_5.style.display = "none";
      }
      
	  
	  else if(elem == tab_5){
         tab_5.className = "selected";
         content_5.style.display = "block";

         tab_1.className = "";
         content_1.style.display = "none";
		 
		 tab_2.className = "";
         content_2.style.display = "none";
		 
		 tab_3.className = "";
         content_3.style.display = "none";

        		 
		 }
   }
}











