//Media Menu
var MEDIAMENU=new Array()
MEDIAMENU[0]='<a href="http://www.darksideproductionz.com/blog/?page_id=115" target="_blank">Music</a>'
MEDIAMENU[1]='<a href="/media/drum_kits/dk_index.php" target="_self">Drum Kits</a>'
MEDIAMENU[2]='<a href="/media/videos/video_index.php" target="_self">My Videos</a>'
MEDIAMENU[3]='<a href="/portfolio/artwork/index.php" target="_self">My Artwork</a>'
MEDIAMENU[4]='<a href="/media/tools/index.php" target="_self">My Tools</a>'
MEDIAMENU[5]='<a href="http://www.darksideproductionz.com/streaming/index.php" target="_self">Live Streaming</a>'


//Links Menu
var LINKSMENU=new Array()
LINKSMENU[0]='<a href="http://www.darksideproductionz.com/rss/rss_feed.php" target="_self">Music News</a>'
LINKSMENU[1]='<a href="/links/links.php" target="_self">Affiliates</a>'
LINKSMENU[2]='<a href="/tips/tips_index.php" target="_self">Tips</a>'
LINKSMENU[3]='<a href="http://www.google.com" target="_blank">Knowledge</a>'
LINKSMENU[4]='<a href="http://delicious.com/dsproductionz" target="_self">Delicious</a>'

//Blog Menu
var BLOGMENU=new Array()
BLOGMENU[0]='<a href="http://www.djdarkside.com/blog/wp-login.php" target="_self">Login</a>'
BLOGMENU[1]='<a href="http://www.djdarkside.com/blog/wp-login.php?action=register" target="_self">Register</a>'

//Company Menu
var COMPANYMENU=new Array()
COMPANYMENU[0]='<a href="/history/history_index.php" target="_self">History</a>'
COMPANYMENU[1]='<a href="/movement.php" target="_self">The Movement</a>'
COMPANYMENU[2]='<a href="/team/team_index.php" target="_self">Darkside Team</a>'

//Portfolio Menu
var PORTFOLIOMENU=new Array()
PORTFOLIOMENU[0]='<a href="http://www.darksideproductionz.com/portfolio/music/index.php" target="_self">Music</a>'
PORTFOLIOMENU[1]='<a href="http://www.darksideproductionz.com/portfolio/video/portfolio_video_index.php" target="_self">Video</a>'
PORTFOLIOMENU[2]='<a href="http://www.darksideproductionz.com/portfolio/web/index.php" target="_self">Web</a>'
PORTFOLIOMENU[3]='<a href="http://www.darksideproductionz.com/portfolio/graphic/index.php" target="_self">Graphic</a>'
PORTFOLIOMENU[4]='<a href="http://www.darksideproductionz.com/portfolio/artwork/index.php" target="_self">Art</a>'
PORTFOLIOMENU[5]='<a href="http://www.darksideproductionz.com/portfolio/random/index.php" target="_self">Random</a>'

//Services Menu
var SERVICESMENU=new Array()
SERVICESMENU[0]='<a href="http://www.darksideproductionz.com/cd_dvd_pricelist.php" target="_self">Price List</a>'
SERVICESMENU[1]='<a href="http://www.darksideproductionz.com/cd_dvd_templates.php" target="_self">Design Templates</a>'
SERVICESMENU[2]='<a href="http://www.darksideproductionz.com/cd_dvd_replication_duplication.php" target="_self">CD & DVD Duplication</a>'
SERVICESMENU[3]='<a href="http://www.darksideproductionz.com/cd_dvd_replication_duplication.php" target="_self">CD & DVD Replication</a>'

//Birthday Menu
var BDAYMENU=new Array()
BDAYMENU[0]='<a href="/birthdays/guy_bday.php" target="_blank">Guyz</a>'
BDAYMENU[1]='<a href="/birthdays/girl_bday.php" target="_blank">Girlz</a>'
		
//Menu Style Settings
var menuwidth='900px' //Default Menu Width
var menubgcolor='#000000' //Menu BG Color
var disappeardelay=320  //Menu Disappear Speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //Hide Menu When User Clicks Within Menu?

/////No further editting recommended...
var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropDOWN1" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

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)<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("dropDOWN1") : dropDOWN1
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)

dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
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