//Contents for romance
var romance=new Array()
romance[0]='<a href="/cgi-bin/search.cgi?category1=FIC027520&free=free" class="small">Anthologies</a>'
romance[1]='<a href="/cgi-bin/search.cgi?category1=FIC027120&free=free" class="small">Paranormal</a>'
romance[2]='<a href="/cgi-bin/search.cgi?category1=FIC027080&free=free" class="small">Short Stories</a>'
romance[3]='<a href="/cgi-bin/search.cgi?category1=FIC027090&free=free" class="small">Time Travel</a>'
romance[4]='<a href="/cgi-bin/search.cgi?category1=FIC027100&free=free" class="small">Western</a>'
var combo_romance=new Array()
combo_romance[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC027520&free=free" class="small">Anthologies</a>'
combo_romance[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC027120&free=free" class="small">Paranormal</a>'
combo_romance[2]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC027080&free=free" class="small">Short Stories</a>'
combo_romance[3]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC027090&free=free" class="small">Time Travel</a>'
combo_romance[4]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC027100&free=free" class="small">Western</a>'
var alacarte_romance=new Array()
alacarte_romance[0]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC027520&free=free" class="small">Anthologies</a>'
alacarte_romance[1]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC027080&free=free" class="small">Short Stories</a>'
alacarte_romance[2]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC027100&free=free" class="small">Western</a>'

//Contents for mystery
var mystery=new Array()
mystery[0]='<a href="/cgi-bin/search.cgi?category1=FIC022510&free=free" class="small">Anthologies</a>'
mystery[1]='<a href="/cgi-bin/search.cgi?category1=FIC022520&free=free" class="small">Historical</a>'
mystery[2]='<a href="/cgi-bin/search.cgi?category1=FIC022031&free=free" class="small">Sherlock Holmes</a>'
mystery[3]='<a href="/cgi-bin/search.cgi?category1=FIC022050&free=free" class="small">Short Stories</a>'
var combo_mystery=new Array()
combo_mystery[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC022510&free=free" class="small">Anthologies</a>'
combo_mystery[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC022520&free=free" class="small">Historical</a>'
combo_mystery[2]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC022031&free=free" class="small">Sherlock Holmes</a>'
combo_mystery[3]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC022050&free=free" class="small">Short Stories</a>'
var alacarte_mystery=new Array()
alacarte_mystery[0]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC022510&free=free" class="small">Anthologies</a>'
alacarte_mystery[1]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC022031&free=free" class="small">Sherlock Holmes</a>'

//Contents for action
var action=new Array()
action[0]='<a href="/cgi-bin/search.cgi?category1=FIC035000&free=free" class="small">Medical</a>'
action[1]='<a href="/cgi-bin/search.cgi?category1=FIC020000&free=free" class="small">Men\'s Adventure</a>'
action[2]='<a href="/cgi-bin/search.cgi?category1=FIC036000&free=free" class="small">Technological</a>'
var combo_action=new Array()
combo_action[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC035000&free=free" class="small">Medical</a>'
combo_action[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC020000&free=free" class="small">Men\'s Adventure</a>'
combo_action[2]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC036000&free=free" class="small">Technological</a>'

//Contents for sci-fi
var scifi=new Array()
scifi[0]='<a href="/cgi-bin/search.cgi?category1=FIC028510&free=free" class="small">Anthologies</a>'
scifi[1]='<a href="/cgi-bin/search.cgi?category=Science Fiction - Star&category1=FIC&free=free" class="small">Star Trek/Star Wars</a>'
var combo_scifi=new Array()
combo_scifi[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC028510&free=free" class="small">Anthologies</a>'
combo_scifi[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category=Science Fiction - Star&category1=FIC&free=free" class="small">Star Trek/Star Wars</a>'

//Contents for religous
var religious=new Array()
religious[0]='<a href="/cgi-bin/search.cgi?category1=FIC026570&free=free" class="small">Anthologies</a>'
religious[1]='<a href="/cgi-bin/search.cgi?category1=FIC042010&free=free" class="small">Classic & Allegory</a>'
religious[2]='<a href="/cgi-bin/search.cgi?category1=FIC026520&free=free" class="small">Fantasy</a>'
religious[3]='<a href="/cgi-bin/search.cgi?category1=FIC042020&free=free" class="small">Futuristic</a>'
religious[4]='<a href="/cgi-bin/search.cgi?category1=FIC046000&free=free" class="small">Jewish</a>'
religious[5]='<a href="/cgi-bin/search.cgi?category1=FIC026560&free=free" class="small">Science Fiction</a>'
religious[6]='<a href="/cgi-bin/search.cgi?category1=FIC042070&free=free" class="small">Western</a>'
var combo_religious=new Array()
combo_religious[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC026570&free=free" class="small">Anthologies</a>'
combo_religious[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC042010&free=free" class="small">Classic & Allegory</a>'
combo_religious[2]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC026520&free=free" class="small">Fantasy</a>'
combo_religious[3]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC042020&free=free" class="small">Futuristic</a>'
combo_religious[4]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC046000&free=free" class="small">Jewish</a>'
combo_religious[5]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC026560&free=free" class="small">Science Fiction</a>'
combo_religious[6]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC042070&free=free" class="small">Western</a>'
var alacarte_religious=new Array()
alacarte_religious[0]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC026570&free=free" class="small">Anthologies</a>'
alacarte_religious[1]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC026520&free=free" class="small">Fantasy</a>'
alacarte_religious[2]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC042020&free=free" class="small">Futuristic</a>'
alacarte_religious[3]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC046000&free=free" class="small">Jewish</a>'
alacarte_religious[4]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC042070&free=free" class="small">Western</a>'

//Contents for young adult
var young=new Array()
young[0]='<a href="/cgi-bin/search.cgi?category1=JUV039&free=free" class="small">Social Issues</a>'
young[0]='<a href="/cgi-bin/search.cgi?category1=JUV013&free=free" class="small">Family</a>'
young[1]='<a href="/cgi-bin/search.cgi?category1=JUV016&free=free" class="small">Historical</a>'
young[2]='<a href="/cgi-bin/search.cgi?category1=JUV018000&free=free" class="small">Horror &amp; Ghost Stories</a>'
young[3]='<a href="/cgi-bin/search.cgi?category1=JUV026000&free=free" class="small">Love &amp; Romance</a>'
young[4]='<a href="/cgi-bin/search.cgi?category1=JUV027000&free=free" class="small">Media Tie-In</a>'
young[5]='<a href="/cgi-bin/search.cgi?category1=JUV028000&free=free" class="small">Mysteries &amp; Detective Stories</a>'
young[6]='<a href="/cgi-bin/search.cgi?category=People&category1=JUV&free=free" class="small">People &amp; Places</a>'
young[7]='<a href="/cgi-bin/search.cgi?category=Others&category1=JUV&free=free" class="small">Other</a>'
var combo_young=new Array()
combo_young[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=JUV013&free=free" class="small">Family</a>'
combo_young[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=JUV016&free=free" class="small">Historical</a>'
combo_young[2]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=JUV018000&free=free" class="small">Horror &amp; Ghost Stories</a>'
combo_young[3]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=JUV026000&free=free" class="small">Love &amp; Romance</a>'
combo_young[4]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=JUV027000&free=free" class="small">Media Tie-In</a>'
combo_young[5]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=JUV028000&free=free" class="small">Mysteries &amp; Detective Stories</a>'
combo_young[6]='<a href="/cgi-bin/combo_search.cgi?format=Book&category=People&category1=JUV&free=free" class="small">People &amp; Places</a>'
combo_young[7]='<a href="/cgi-bin/combo_search.cgi?format=Book&category=Others&category1=JUV&free=free" class="small">Other</a>'
var alacarte_young=new Array()
alacarte_young[0]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=JUV013&free=free" class="small">Family</a>'
alacarte_young[1]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=JUV018000&free=free" class="small">Horror &amp; Ghost Stories</a>'
alacarte_young[2]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=JUV026000&free=free" class="small">Love &amp; Romance</a>'
alacarte_young[3]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=JUV028000&free=free" class="small">Mysteries &amp; Detective Stories</a>'
alacarte_young[4]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category=People&category1=JUV&free=free" class="small">People &amp; Places</a>'
alacarte_young[5]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category=Others&category1=JUV&free=free" class="small">Other</a>'

//Contents for other miscellaneous
var other=new Array()
other[0]='<a href="/cgi-bin/search.cgi?category1=FIC040000&free=free" class="small">Alternative History</a>'
other[1]='<a href="/cgi-bin/search.cgi?category1=FIC041000&free=free" class="small">Biographical</a>'
other[2]='<a href="/cgi-bin/search.cgi?category1=FIC043000&free=free" class="small">Coming of Age</a>'
other[3]='<a href="/cgi-bin/search.cgi?category1=FIC044000&free=free" class="small">Contemporary Women</a>'
other[4]='<a href="/cgi-bin/search.cgi?category1=FIC045000&free=free" class="small">Family Life</a>'
other[5]='<a href="/cgi-bin/search.cgi?category1=FIC037000&free=free" class="small">Political</a>'
other[6]='<a href="/cgi-bin/search.cgi?category1=FIC047000&free=free" class="small">Sea Stories</a>'
other[7]='<a href="/cgi-bin/search.cgi?category1=FIC038000&free=free" class="small">Sports</a>'
other[8]='<a href="/cgi-bin/search.cgi?category1=FIC048000&free=free" class="small">Urban Life</a>'
other[9]='<a href="/cgi-bin/search.cgi?category1=FIC039000&free=free" class="small">Visionary & Metaphysical</a>'
other[10]='<a href="/cgi-bin/search.cgi?category1=FIC-OTHER&free=free" class="small">Other</a>'
var combo_other=new Array()
combo_other[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC040000&free=free" class="small">Alternative History</a>'
combo_other[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC041000&free=free" class="small">Biographical</a>'
combo_other[2]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC043000&free=free" class="small">Coming of Age</a>'
combo_other[3]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC044000&free=free" class="small">Contemporary Women</a>'
combo_other[4]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC045000&free=free" class="small">Family Life</a>'
combo_other[5]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC037000&free=free" class="small">Political</a>'
combo_other[6]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC047000&free=free" class="small">Sea Stories</a>'
combo_other[7]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC038000&free=free" class="small">Sports</a>'
combo_other[8]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC048000&free=free" class="small">Urban Life</a>'
combo_other[9]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC039000&free=free" class="small">Visionary & Metaphysical</a>'
combo_other[10]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=FIC-OTHER&free=free" class="small">Other</a>'
var alacarte_other=new Array()
alacarte_other[0]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC040000&free=free" class="small">Alternative History</a>'
alacarte_other[1]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC041000&free=free" class="small">Biographical</a>'
alacarte_other[2]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC043000&free=free" class="small">Coming of Age</a>'
alacarte_other[3]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC044000&free=free" class="small">Contemporary Women</a>'
alacarte_other[4]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC045000&free=free" class="small">Family Life</a>'
alacarte_other[5]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC047000&free=free" class="small">Sea Stories</a>'
alacarte_other[6]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=FIC-OTHER&free=free" class="small">Other</a>'

//Contents for biography
var biography=new Array()
biography[0]='<a href="/cgi-bin/search.cgi?category1=BIO004&free=free" class="small">Composers &amp; Musicians</a>'
biography[1]='<a href="/cgi-bin/search.cgi?category1=BIO005&free=free" class="small">Entertainment &amp; Performing Arts</a>'
biography[2]='<a href="/cgi-bin/search.cgi?category1=BIO017&free=free" class="small">Medical</a>'
biography[3]='<a href="/cgi-bin/search.cgi?category1=BIO010000&free=free" class="small">Political</a>'
biography[4]='<a href="/cgi-bin/search.cgi?category1=BIO011000&free=free" class="small">Presidents &amp; H.O.S.</a>'
biography[5]='<a href="/cgi-bin/search.cgi?category1=BIO015&free=free" class="small">Scientists</a>'
biography[6]='<a href="/cgi-bin/search.cgi?category=Others&category1=BIO&free=free" class="small">Other</a>'
var combo_biography=new Array()
combo_biography[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=BIO004&free=free" class="small">Composers &amp; Musicians</a>'
combo_biography[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=BIO005&free=free" class="small">Entertainment &amp; Performing Arts</a>'
combo_biography[2]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=BIO017&free=free" class="small">Medical</a>'
combo_biography[3]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=BIO010000&free=free" class="small">Political</a>'
combo_biography[4]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=BIO011000&free=free" class="small">Presidents &amp; H.O.S.</a>'
combo_biography[5]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=BIO015&free=free" class="small">Scientists</a>'
combo_biography[6]='<a href="/cgi-bin/combo_search.cgi?format=Book&category=Others&category1=BIO&free=free" class="small">Other</a>'
var alacarte_biography=new Array()
alacarte_biography[0]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=BIO017&free=free" class="small">Medical</a>'
alacarte_biography[1]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=BIO010000&free=free" class="small">Political</a>'
alacarte_biography[2]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=BIO011000&free=free" class="small">Presidents &amp; H.O.S.</a>'
alacarte_biography[3]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=BIO015&free=free" class="small">Scientists</a>'
alacarte_biography[4]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category=Others&category1=BIO&free=free" class="small">Other</a>'

//Contents for business
var business=new Array()
//business[0]='<a href="/cgi-bin/search.cgi?category=Career&category1=BUS&free=free" class="small">Careers</a>'
//business[1]='<a href="/cgi-bin/search.cgi?category1=BUS047000&free=free" class="small">Negotiating</a>'
//business[2]='<a href="/cgi-bin/search.cgi?category1=BUS058&free=free" class="small">Sales &amp; Selling</a>'
business[0]='<a href="/cgi-bin/search.cgi?category1=BUS088000&free=free" class="small">Time Management</a>'
business[1]='<a href="/cgi-bin/search.cgi?category=Others&category1=BUS&free=free" class="small">Other</a>'
var combo_business=new Array()
//combo_business[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category=Career&category1=BUS&free=free" class="small">Careers</a>'
//combo_business[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=BUS047000&free=free" class="small">Negotiating</a>'
//combo_business[2]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=BUS058&free=free" class="small">Sales &amp; Selling</a>'
combo_business[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=BUS088000&free=free" class="small">Time Management</a>'
combo_business[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category=Others&category1=BUS&free=free" class="small">Other</a>'

//Contents for history
var histories=new Array()
histories[0]='<a href="/cgi-bin/search.cgi?category=Middle&category1=HIS&free=free" class="small">Middle East</a>'
histories[1]='<a href="/cgi-bin/search.cgi?category1=HIS037060&free=free" class="small">U.S. 19th Century</a>'
histories[2]='<a href="/cgi-bin/search.cgi?category1=HIS037080&free=free" class="small">U.S. 21st Century</a>'
histories[3]='<a href="/cgi-bin/search.cgi?category=Others&category1=HIS&free=free" class="small">Other</a>'
var combo_histories=new Array()
combo_histories[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category=Middle&category1=HIS&free=free" class="small">Middle East</a>'
combo_histories[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=HIS037060&free=free" class="small">U.S. 19th Century</a>'
combo_histories[2]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=HIS037080&free=free" class="small">U.S. 21st Century</a>'
combo_histories[3]='<a href="/cgi-bin/combo_search.cgi?format=Book&category=Others&category1=HIS&free=free" class="small">Other</a>'


//Contents for political science
var political=new Array()
political[0]='<a href="/cgi-bin/search.cgi?category1=POL506&free=free" class="small">Conspiracy &amp; Scandal Investigations</a>'
political[1]='<a href="/cgi-bin/search.cgi?category1=POL034&free=free" class="small">Peace</a>'
political[2]='<a href="/cgi-bin/search.cgi?category1=POL504&free=free" class="small">Political History</a>'
political[3]='<a href="/cgi-bin/search.cgi?category1=POL042&free=free" class="small">Political Ideologies</a>'
political[4]='<a href="/cgi-bin/search.cgi?category=Others&category1=POL&free=free" class="small">Other</a>'
var combo_political=new Array()
combo_political[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=POL506&free=free" class="small">Conspiracy &amp; Scandal Investigations</a>'
combo_political[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=POL034&free=free" class="small">Peace</a>'
combo_political[2]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=POL504&free=free" class="small">Political History</a>'
combo_political[3]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=POL042&free=free" class="small">Political Ideologies</a>'
combo_political[4]='<a href="/cgi-bin/combo_search.cgi?format=Book&category=Others&category1=POL&free=free" class="small">Other</a>'
var alacarte_political=new Array()
alacarte_political[0]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=POL506&free=free" class="small">Conspiracy &amp; Scandal Investigations</a>'
alacarte_political[1]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=POL504&free=free" class="small">Political History</a>'
alacarte_political[2]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category=Others&category1=POL&free=free" class="small">Other</a>'

//Contents for psychology
var psychology=new Array()
psychology[0]='<a href="/cgi-bin/search.cgi?category1=PSY008&free=free" class="small">Cognitive Psychology</a>'
psychology[1]='<a href="/cgi-bin/search.cgi?category=Developmental&category1=PSY&free=free" class="small">Developmental</a>'
psychology[2]='<a href="/cgi-bin/search.cgi?category1=PSY013&free=free" class="small">Emotions</a>'
psychology[3]='<a href="/cgi-bin/search.cgi?category1=PSY017&free=free" class="small">Interpersonal Relations</a>'
psychology[4]='<a href="/cgi-bin/search.cgi?category1=PSY036&free=free" class="small">Mental Health</a>'
psychology[5]='<a href="/cgi-bin/search.cgi?category1=PSY018&free=free" class="small">Mental Illness</a>'
psychology[6]='<a href="/cgi-bin/search.cgi?category=Others&category1=PSY&free=free" class="small">Other</a>'
var combo_psychology=new Array()
combo_psychology[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=PSY008&free=free" class="small">Cognitive Psychology</a>'
combo_psychology[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category=Developmental&category1=PSY&free=free" class="small">Developmental</a>'
combo_psychology[2]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=PSY013&free=free" class="small">Emotions</a>'
combo_psychology[3]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=PSY017&free=free" class="small">Interpersonal Relations</a>'
combo_psychology[4]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=PSY036&free=free" class="small">Mental Health</a>'
combo_psychology[5]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=PSY018&free=free" class="small">Mental Illness</a>'
combo_psychology[6]='<a href="/cgi-bin/combo_search.cgi?format=Book&category=Others&category1=PSY&free=free" class="small">Other</a>'
var alacarte_psychology=new Array()
alacarte_psychology[0]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=PSY008&free=free" class="small">Cognitive Psychology</a>'
alacarte_psychology[1]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category=Developmental&category1=PSY&free=free" class="small">Developmental</a>'
alacarte_psychology[2]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=PSY036&free=free" class="small">Mental Health</a>'
alacarte_psychology[3]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category1=PSY018&free=free" class="small">Mental Illness</a>'
alacarte_psychology[4]='<a href="/cgi-bin/alacarte_search.cgi?format=Book&category=Others&category1=PSY&free=free" class="small">Other</a>'

//Contents for self help
var self=new Array()
self[0]='<a href="/cgi-bin/search.cgi?category1=SEL016000&free=free" class="small">Happiness</a>'
self[1]='<a href="/cgi-bin/search.cgi?category1=SEL019000&free=free" class="small">Meditation</a>'
self[2]='<a href="/cgi-bin/search.cgi?category=Others&category1=SEL&free=free" class="small">Other</a>'
var combo_self=new Array()
combo_self[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=SEL016000&free=free" class="small">Happiness</a>'
combo_self[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=SEL019000&free=free" class="small">Meditation</a>'
combo_self[2]='<a href="/cgi-bin/combo_search.cgi?format=Book&category=Others&category1=SEL&free=free" class="small">Other</a>'

//Contents for travel
var travel=new Array()
travel[0]='<a href="/cgi-bin/search.cgi?category1=TRV004&free=free" class="small">Australia &amp; Oceania</a>'
travel[1]='<a href="/cgi-bin/search.cgi?category1=TRV010&free=free" class="small">Essays &amp; Travelogues</a>'
travel[2]='<a href="/cgi-bin/search.cgi?category=Others&category1=TRV&free=free" class="small">Other</a>'
var combo_travel=new Array()
combo_travel[0]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=TRV004&free=free" class="small">Australia &amp; Oceania</a>'
combo_travel[1]='<a href="/cgi-bin/combo_search.cgi?format=Book&category1=TRV010&free=free" class="small">Essays &amp; Travelogues</a>'
combo_travel[2]='<a href="/cgi-bin/combo_search.cgi?format=Book&category=Others&category1=TRV&free=free" class="small">Other</a>'
	
var menuwidth='100px' //default menu width
var menubgcolor='#DDFFFF'  //menu bgcolor #F6F6F6
var disappeardelay=200  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="browsemenudiv" style="visibility:hidden;width:'+menuwidth+'; background: transparent; background-color: #FFFFFF; opacity: .95; filter:alpha(opacity=95);" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype, dropobj){
var totaloffset=(offsettype=="left")? what.offsetLeft-dropobj.offsetWidth-4 : what.offsetTop-what.offsetHeight-4;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
//edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
edgeoffset=dropmenuobj.contentmeasure-(windowedge-dropmenuobj.x-5)
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
//edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight-11
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("browsemenudiv") : browsemenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left", dropmenuobj)
dropmenuobj.y=getposOffset(obj, "top", dropmenuobj)
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu