/***********************************************
* Drop Down Menu
***********************************************/

//Contents for menu 1
var menu1=new Array()

menu1[0]='<a href="shop_content.php?coID=16">News</a>'
menu1[1]='<a href="shop_content.php?coID=3000">Fun&More</a>'
menu1[2]='<a href="shop_content.php?coID=17">Raffle</a>'
menu1[3]='<a href="shop_content.php?coID=35">Design Voting</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="shop_content.php?coID=13">Exhibitions</a>'
menu2[1]='<a href="shop_content.php?coID=21">Projects</a>'

var menu3=new Array()
menu3[0]='<a href="shop_content.php?coID=14">Manuals</a>'
menu3[1]='<a href="shop_content.php?coID=22">Messenger</a>'
menu3[2]='<a href="shop_content.php?coID=32">Videos</a>'
		
var menuwidth='20px' //default menu width
var menubgcolor='lightyellow'  //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('<div id="dropmenudiv" style="visibility:hidden;" 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=-500
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("dropmenudiv") : dropmenudiv
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

/***********************************************
* Drop Down Menu
***********************************************/


/***********************************************
* Drop Down Menu2
***********************************************/

//Fashion
var menu10=new Array()
//menu10[0]='<a href="index.php/cat/c24_Xchange-Fashion.html">Xchange-Shirt</a>'
//menu10[0]='<a href="index.php?cat=c1_WM-Special-2006.html">WM Special 2006</a>'
menu10[0]='<a href="index.php/cat/c18_LED-T-Shirts.html">LED T-Shirts</a>'
menu10[1]='<a href="index.php/cat/c7_T-Shirts.html">EL-T-Shirts</a>'
menu10[2]='<a href="index.php/cat/c25_Basic Shirts.html">Basic Line</a>'
menu10[3]='<a href="index.php/cat/c15_Shapes.html">Shapes</a>'	
menu10[4]='<a href="index.php/cat/c8_Caps.html">Caps<br><img src="images/pixel_trans.gif" height="7" width="1"></a>'

//Accessoires
var menu11=new Array()
menu11[0]='<a href="index.php/cat/c17_Message-Belt.html">LED Belt</a>'
menu11[1]='<a href="index.php/cat/c20_PIMP_G_rtelschnalle.html">PIMP Accessoires</a>'
menu11[2]='<a href="product_info.php/info/p39_Messenger.html">Messenger</a>'
menu11[3]='<a href="index.php/cat/c10_Schn-re.html">Strings</a>'
menu11[4]='<a href="index.php/cat/c11_Badges.html">Badges</a>'
menu11[5]='<a href="index.php/cat/c16_EL-Folien.html">EL foils<br><img src="images/pixel_trans.gif" height="7" width="1">'

//Carstyling
var menu12=new Array()
menu12[0]='<a href="index.php/cat/c12_carAttack.html">carAttack</a>'
menu12[1]='<a href="index.php/cat/c13_Innenbeleuchtung.html">Interior lighting<br><img src="images/pixel_trans.gif" height="7" width="1"></a>'

//Promotion
var menu13=new Array()
menu13[0]='<a href="shop_content.php?coID=10">Logos </a>'
menu13[1]='<a href="shop_content.php?coID=18">Badges</a>'
menu13[2]='<a href="shop_content.php?coID=23">Shop Design</a>'
menu13[3]='<a href="index.php/cat/c16_EL-Folien.html">EL foils<br><img src="images/pixel_trans.gif" height="7" width="1"></a>'
//menu13[3]='<a href="index.php/cat/c13_Innenbeleuchtung.html">EL-Foils</a>'

//Stars
var menu14=new Array()
menu14[0]='<a href="shop_content.php?coID=19">TLC</a>'
menu14[1]='<a href="shop_content.php?coID=27">Stefan Raab</a>'
menu14[2]='<a href="shop_content.php?coID=11">Missy Elliott</a>'
menu14[3]='<a href="shop_content.php?coID=24">David Bowie</a>'
menu14[4]='<a href="shop_content.php?coID=29">Carl Cox<br><img src="images/pixel_trans.gif" height="7" width="1"></a>'

		
var menuwidth2='165px' //default menu width
var menubgcolor2='lightyellow'  //menu bgcolor
var disappeardelay2=100  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick2="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('<div id="dropmenudiv2" style="visibility:hidden;width:'+menuwidth2+';background-color:'+menubgcolor2+'" onMouseover="clearhidemenu2()" onMouseout="dynamichide2(event)"></div>')

function getposOffset2(what, offsettype){
var totaloffset2=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl2=what.offsetParent;
while (parentEl2!=null){
totaloffset2=(offsettype=="left")? totaloffset2+parentEl2.offsetLeft : totaloffset2+parentEl2.offsetTop;
parentEl2=parentEl2.offsetParent;
}
return totaloffset2;
}


function showhide2(obj, e, visible, hidden, menuwidth2){
if (ie4||ns6)
dropmenuobj2.style.left=dropmenuobj2.style.top=-500
if (menuwidth2!=""){
dropmenuobj2.widthobj=dropmenuobj2.style
dropmenuobj2.widthobj.width=menuwidth2
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest2(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge2(obj, whichedge){
var edgeoffset2=0
if (whichedge=="rightedge"){
var windowedge2=ie4 && !window.opera? iecompattest2().scrollLeft+iecompattest2().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj2.contentmeasure=dropmenuobj2.offsetWidth
if (windowedge2-dropmenuobj2.x < dropmenuobj2.contentmeasure)
edgeoffset2=dropmenuobj2.contentmeasure-obj.offsetWidth
}
else{
var topedge2=ie4 && !window.opera? iecompattest2().scrollTop : window.pageYOffset
var windowedge2=ie4 && !window.opera? iecompattest2().scrollTop+iecompattest2().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj2.contentmeasure=dropmenuobj2.offsetHeight
if (windowedge2-dropmenuobj2.y < dropmenuobj2.contentmeasure){ //move up?
edgeoffset2=dropmenuobj2.contentmeasure+obj.offsetHeight
if ((dropmenuobj2.y-topedge2)<dropmenuobj2.contentmeasure) //up no good either?
edgeoffset2=dropmenuobj2.y+obj.offsetHeight-topedge2
}
}
return edgeoffset2
}

function populatemenu2(what){
if (ie4||ns6)
dropmenuobj2.innerHTML=what.join("")
}


function dropdownmenu2(obj, e, menucontents, menuwidth2){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu2()
dropmenuobj2=document.getElementById? document.getElementById("dropmenudiv2") : dropmenudiv2
populatemenu2(menucontents)

if (ie4||ns6){
showhide2(dropmenuobj2.style, e, "visible", "hidden", menuwidth2)
dropmenuobj2.x=getposOffset2(obj, "left")
dropmenuobj2.y=getposOffset2(obj, "top")
dropmenuobj2.style.left=dropmenuobj2.x-clearbrowseredge2(obj, "rightedge")+"px"
dropmenuobj2.style.top=dropmenuobj2.y-clearbrowseredge2(obj, "bottomedge")+obj.offsetHeight + 2 + "px"
}

return clickreturnvalue2()
}

function clickreturnvalue2(){
if (ie4||ns6) return false
else return true
}

function contains_ns62(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide2(e){
if (ie4&&!dropmenuobj2.contains(e.toElement))
delayhidemenu2()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns62(e.currentTarget, e.relatedTarget))
delayhidemenu2()
}

function hidemenu2(e){
if (typeof dropmenuobj2!="undefined"){
if (ie4||ns6)
dropmenuobj2.style.visibility="hidden"
}
}

function delayhidemenu2(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu2()",disappeardelay2)
}

function clearhidemenu2(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

//if (hidemenu_onclick2=="yes")
//document.onclick=hidemenu2

/***********************************************
* Drop Down Menu2
***********************************************/

