/*********************************************** * AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for full source code ***********************************************/ //Contents for shareMenu var shareMenu = new Array(); shareMenu[0] = ' Add to del.icio.us'; shareMenu[1] = ' Add to Digg'; shareMenu[2] = ' Add to Furl'; var onclickStr = "window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?t=" + escape(document.title) + "&u=" + encodeURIComponent(window.location.href) + "&ei=UTF-8','popup','width=520px,height=420px,status=0,location=0,resizable=1,scrollbars=1',0);return false;"; shareMenu[3] = ' Add to Yahoo! MyWeb'; shareMenu[4] = ' Add to Facebook'; // Contents for translate menu var translateMenu = new Array(); translateMenu[0] = 'What is this?'; translateMenu[1] = '» English Definitions'; translateMenu[2] = '» English -> Spanish'; translateMenu[3] = '» English -> French'; translateMenu[4] = '» English -> German'; translateMenu[6] = '» English -> Italian'; translateMenu[7] = '» English -> Portuguese'; translateMenu[8] = 'Powered by Ultralingua'; var menuwidth='150px'; //default menu width var menubgcolor='#eee'; //menu bgcolor var disappeardelay=250; //menu disappear speed onMouseout (in miliseconds) var hidemenu_onclick="yes"; //hide menu when user clicks within menu? /////No further editting needed var ie4=document.all; var ns6=document.getElementById&&!document.all; if (ie4||ns6) document.write('
') function getposOffset(what, offsettype){ var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; 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 } 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 if ((dropmenuobj.y-topedge)