var win = null; function popwin(mypage,myname,w,h,scroll) { LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' win = window.open(mypage,myname,settings) } /*********************************************** * 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 menu 1 var menu1 = new Array() menu1[0]='» FREE Beats' menu1[1]='» PRO Producer List' menu1[2]='» All Genres' menu1[3]='» Dirty South' menu1[4]='» Hip Hop' menu1[5]='» Modern R&B' menu1[6]='» R&B/Soul' menu1[7]='» Gangsta' menu1[8]='» Rap' menu1[9]='» NEWEST BEATS' menu1[10]='» MOST PLAYS' menu1[11]='» TOP CHARTS' menu1[12]=' Upload Beats' //Contents for menu 2, and so on var menu2 = new Array() menu2[0]='» JUST JOINED' menu2[1]='» PRODUCERS (alphabetically)' menu2[2]='» PRODUCERS (by popularity)' menu2[3]='» PRODUCERS (by rating)' menu2[4]='» STUDIOS (alphabetically)' menu2[5]='» BEATS (alphabetically)' menu2[6]='» BEATS (by popularity)' menu2[7]='» BEATS (by rating)' //Contents for menu 4, and so on var menu4 = new Array() menu4[0]='» Waves Channel' menu4[1]='» Digidesign Channel' menu4[2]='» Roland Channel' //Contents for menu 5, and so on var menu5 = new Array() menu5[0]='» PHOTOS-Studio' menu5[1]='» PHOTOS-gallery' var menuwidth='200px' //default menu width var menubgcolor='#FFFF99' //menu bgcolor var disappeardelay=100 //menu disappear speed onMouseout (in miliseconds) var hidemenu_onclick="no" //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)