// Write quick links
function quickLinks(){
	
	document.write ('<form name="form1" class="form">');        
    document.write ('<select name="menu1" id="qlinks" onChange="MM_jumpMenu(\'parent\',this,1)">');
    document.write ('<option selected><label for="qlinks">Library Quick Links</label>'); 
    document.write ('<option>---------------');
    document.write ('<option value="http://library.lanecc.edu">Library catalog');
	document.write ('<option value="http://www.lanecc.edu/library/circ/borrow.htm">Borrowing materials');
	document.write ('<option value="http://www.lanecc.edu/library/find/citing.htm">Cite your sources');
    document.write ('<option value="http://www.lanecc.edu/library/staff/index.htm">Contact us');
	document.write ('<option value="http://www.lanecc.edu/library/reserves/index.htm">Course reserves');
    document.write ('<option value="http://www.lanecc.edu/library/circ/hours.htm">Hours');
    document.write ('<option value="http://www.lanecc.edu/library/circ/illrequest.htm">Interlibrary loan');
	document.write ('<option value="http://www.lanecc.edu/library/lists/newbooks.htm">New books and videos');
	document.write ('<option value="http://library.lanecc.edu/patroninfo">Renew items');
	document.write ('<option value="http://www.lanecc.edu/library/instruction/instructionrequest.htm">Request class instruction');
	document.write ('<option value="http://www.lanecc.edu/library/staff/index.htm">Staff directory');
	document.write ('<option value="http://www.lanecc.edu/library/suggest/index.htm">Suggestions');
	document.write ('<option value="http://library.lanecc.edu/screens/summitcat.html">Summit Borrowing');
	document.write ('<option value="http://www.lanecc.edu/library/find/videodvd.htm">Videos');
    document.write ('</select>&nbsp;');
    document.write ('<input type="button" name="Button1" value="Go" onClick="MM_jumpMenuGo(\'menu1\',\'parent\',1)">&nbsp;&nbsp;');
    document.write ('</form>');
}

//jumpmenu function from original homepage
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_jumpMenuGo(selName,targ,restore){ //v3.0
  var selObj = MM_findObj(selName); if (selObj) MM_jumpMenu(targ,selObj,restore);
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



// Write reference hours
function referenceHours(){
	
	document.write ('<strong>Reference desk hours:</strong><br>Mon-Thurs: 8:45am-5pm<br>Fri: 8:45am-3pm<br>Sat-Sun: Closed'); 
}

function askLibrarian(){      
      document.write (' <iframe style="border: none;" width=190px height=109px  frameborder=0 src="http://www.oregonlibraries.net/presence/lanecc"></iframe><br />We are experiencing technical issues with chat.  If chat does not work for you, please email us. Thank you for your patience. <br />   <a href="http://www.lanecc.edu/library/services/ask.htm#email" target="_blank">Email</a><br />Phone: (541) 463-5355 <br />');
	//  document.write (' <a href="http://www.lanecc.edu/library/services/ask.htm#email"><img src="http://www.lanecc.edu/library/images/email.gif" alt="email" width="40" height="26" border="0"></a> <a href="http://www.lanecc.edu/library/services/ask.htm#email">Email Us</a><br> <img src="http://www.lanecc.edu/library/images/phone.gif" alt="phone" width="40" height="26">Call us  463-5355 <br /><br />Coming Soon: New and Improved 24/7 Chat!');
 }
 
 function addthisbutton(){
	 
document.write ('<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script><div class="addthis_toolbox addthis_default_style"><a class="addthis_button_favorites"></a><a class="addthis_button_email"></a><a class="addthis_button_print"></a><a class="addthis_button_delicious"></a><a class="addthis_button_facebook"></a><span class="addthis_separator">|</span><a href="http://addthis.com/bookmark.php?v=250&amp;username=lanelibrary" class="addthis_button_expanded">More</a></div><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=lanelibrary"></script>');
 }


	/*	Original button	
	document.write (' <script type="text/javascript">var addthis_pub="lanelibrary"; var addthis_test0309=false; var addthis_hover_delay = 499;</script>');
	document.write (' <a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, \'\', \'[URL]\', \'[TITLE]\')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/static/btn/lg-bookmark-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>');
 }*/
