//Contents for menu 1
var sito = 'http://www.fashionteen.info/'
var menu1=new Array()
menu1[0]='<a href="' + sito + 'cat/emo-m/">Emo Maschile</a>'
menu1[1]='<a href="' + sito + 'cat/emo-f/">Emo Femminile</a>'
var menu2=new Array()
menu2[0]='<a href="' + sito + 'cat/punk-m/">Punk Maschile</a>'
menu2[1]='<a href="' + sito + 'cat/punk-f/">Punl Femminile</a>'
var menu3=new Array()
menu3[0]='<a href="' + sito + 'cat/alternative-m/">Alternativo Maschile</a>'
menu3[1]='<a href="' + sito + 'cat/alternative-f/">Alternativo Femminile</a>'
var menu4=new Array()
menu4[0]='<a href="' + sito + 'cat/truzzo-m/">Truzzo Maschile</a>'
menu4[1]='<a href="' + sito + 'cat/truzzo-f/">Truzza Femminile</a>'
var menu5=new Array()
menu5[0]='<a href="' + sito + 'cat/metal-m/">Metal Maschile</a>'
menu5[1]='<a href="' + sito + 'cat/metal-f/">Metal Femminile</a>'
var menu6=new Array()
menu6[0]='<a href="' + sito + 'cat/gothic-m/">Gothic Maschile</a>'
menu6[1]='<a href="' + sito + 'cat/gothic-f/">Gothic Femminile</a>'
var menu7=new Array()
menu7[0]='<a href="' + sito + 'smile/emo/">Smile Emo</a>'
menu7[1]='<a href="' + sito + 'smile/punk/">Smile Punk</a>'
menu7[2]='<a href="' + sito + 'smile/metal/">Smile Metal</a>'
var stile1m=new Array()
stile1m[0]='<a href="' + sito + 'emo/m/abbigliamento/">Abbigliamento Emo</a>'
stile1m[1]='<a href="' + sito + 'emo/m/accessori/">Accessori Emo</a>'
stile1m[2]='<a href="' + sito + 'emo/m/capigliature/">Capigliature Emo</a>'
stile1m[3]='<a href="' + sito + 'emo/m/altro/">Altro</a>'
var stile1f=new Array()
stile1f[0]='<a href="' + sito + 'emo/f/abbigliamento/">Abbigliamento Emo</a>'
stile1f[1]='<a href="' + sito + 'emo/f/accessori/">Accessori Emo</a>'
stile1f[2]='<a href="' + sito + 'emo/f/capigliature/">Capigliature Emo</a>'
stile1f[3]='<a href="' + sito + 'emo/f/altro/">Altro</a>'
var stile2m=new Array()
stile2m[0]='<a href="' + sito + 'punk/m/abbigliamento/">Abbigliamento punk</a>'
stile2m[1]='<a href="' + sito + 'punk/m/accessori/">Accessori punk</a>'
stile2m[2]='<a href="' + sito + 'punk/m/capigliature/">Capigliature punk</a>'
stile2m[3]='<a href="' + sito + 'punk/m/altro/">Altro</a>'
var stile2f=new Array()
stile2f[0]='<a href="' + sito + 'punk/f/abbigliamento/">Abbigliamento punk</a>'
stile2f[1]='<a href="' + sito + 'punk/f/accessori/">Accessori punk</a>'
stile2f[2]='<a href="' + sito + 'punk/f/capigliature/">Capigliature punk</a>'
stile2f[3]='<a href="' + sito + 'punk/f/altro/">Altro</a>'
var stile3m=new Array()
stile3m[0]='<a href="' + sito + 'alternative/m/abbigliamento/">Abbigliamento alternative</a>'
stile3m[1]='<a href="' + sito + 'alternative/m/accessori/">Accessori alternative</a>'
stile3m[2]='<a href="' + sito + 'alternative/m/capigliature/">Capigliature alternative</a>'
stile3m[3]='<a href="' + sito + 'alternative/m/altro/">Altro</a>'
var stile3f=new Array()
stile3f[0]='<a href="' + sito + 'alternative/f/abbigliamento/">Abbigliamento alternative</a>'
stile3f[1]='<a href="' + sito + 'alternative/f/accessori/">Accessori alternative</a>'
stile3f[2]='<a href="' + sito + 'alternative/f/capigliature/">Capigliature alternative</a>'
stile3f[3]='<a href="' + sito + 'alternative/f/altro/">Altro</a>'
var stile4m=new Array()
stile4m[0]='<a href="' + sito + 'truzzo/m/abbigliamento/">Abbigliamento truzzo</a>'
stile4m[1]='<a href="' + sito + 'truzzo/m/accessori/">Accessori truzzo</a>'
stile4m[2]='<a href="' + sito + 'truzzo/m/capigliature/">Capigliature truzzo</a>'
stile4m[3]='<a href="' + sito + 'truzzo/m/altro/">Altro</a>'
var stile4f=new Array()
stile4f[0]='<a href="' + sito + 'truzzo/f/abbigliamento/">Abbigliamento truzzo</a>'
stile4f[1]='<a href="' + sito + 'truzzo/f/accessori/">Accessori truzzo</a>'
stile4f[2]='<a href="' + sito + 'truzzo/f/capigliature/">Capigliature truzzo</a>'
stile4f[3]='<a href="' + sito + 'truzzo/f/altro/">Altro</a>'
var stile5m=new Array()
stile5m[0]='<a href="' + sito + 'metal/m/abbigliamento/">Abbigliamento metal</a>'
stile5m[1]='<a href="' + sito + 'metal/m/accessori/">Accessori metal</a>'
stile5m[2]='<a href="' + sito + 'metal/m/capigliature/">Capigliature metal</a>'
stile5m[3]='<a href="' + sito + 'metal/m/altro/">Altro</a>'
var stile5f=new Array()
stile5f[0]='<a href="' + sito + 'metal/f/abbigliamento/">Abbigliamento metal</a>'
stile5f[1]='<a href="' + sito + 'metal/f/accessori/">Accessori metal</a>'
stile5f[2]='<a href="' + sito + 'metal/f/capigliature/">Capigliature metal</a>'
stile5f[3]='<a href="' + sito + 'metal/f/altro/">Altro</a>'
var stile6m=new Array()
stile6m[0]='<a href="' + sito + 'gothic/f/abbigliamento/">Abbigliamento gothic</a>'
stile6m[1]='<a href="' + sito + 'gothic/f/accessori/">Accessori gothic</a>'
stile6m[2]='<a href="' + sito + 'gothic/f/capigliature/">Capigliature gothic</a>'
stile6m[3]='<a href="' + sito + 'gothic/f/altro/">Altro</a>'
var stile6f=new Array()
stile6f[0]='<a href="' + sito + 'gothic/f/abbigliamento/">Abbigliamento gothic</a>'
stile6f[1]='<a href="' + sito + 'gothic/f/accessori/">Accessori gothic</a>'
stile6f[2]='<a href="' + sito + 'gothic/f/capigliature/">Capigliature gothic</a>'
stile6f[3]='<a href="' + sito + 'gothic/f/altro/">Altro</a>'

var menuwidth='150px' //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;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=-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
