﻿var cssmenuids=["cssmenu1"]
var csssubmenuoffset=-1
function createcssmenu2(){
    for(var i=0;i<cssmenuids.length;i++)
    {

    var ultags=document.getElementById(cssmenuids[i]).getElementsByTagName("ul")
        for(var t=0;t<ultags.length;t++)
        {
        ultags[t].style.bottom=ultags[t].parentNode.offsetHeight+csssubmenuoffset+"px"
        var spanref=document.createElement("span")
        spanref.className="arrowdiv"
        spanref.innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;"
        ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref)
        
        ultags[t].parentNode.onmouseover=function()
        {
        
        //this.style.zIndex=100
        //this.getElementsByTagName("ul")[0].style.zIndex=10
        //this.getElementsByTagName("ul")[0].style.display="block"
        this.getElementsByTagName("ul")[0].style.visibility="visible"
        //this.getElementsByTagName("ul")[0].style.zIndex=0
        }
        
        ultags[t].parentNode.onmouseout=function(){
        //this.style.zIndex=0
        //this.getElementsByTagName("ul")[0].style.zIndex=10
        //this.getElementsByTagName("ul")[0].style.display="none"
        this.getElementsByTagName("ul")[0].style.visibility="hidden"
        //this.getElementsByTagName("ul")[0].style.zIndex=100
        }
    }
}
}
if(window.addEventListener)
window.addEventListener("load",createcssmenu2,false)
else if(window.attachEvent)
window.attachEvent("onload",createcssmenu2)


function jsfPIWC(path,wndWidth,wndHeight)
{var wndLeft=(screen.width-wndWidth)/2;var wndTop=(screen.height-wndHeight)/2;win=window.open("PopupImage.aspx?path="+path,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,"+"resizable=no,copyhistory=no,width="+wndWidth+",height="+wndHeight+",top="+wndTop+",left="+wndLeft,true);win.focus();}
function jsfSHM(id)
{if(null!=(o=document.getElementById(id)))
o.style.display=(o.style.display=='none')?'block':'none';try{if(o.style.display=='block'&&o!=null)
{o.style.posTop=e.pageY-100;}}
catch(err){}}
function jsfSH(id)
{if(null!=(o=document.getElementById(id)))
o.style.display=(o.style.display=='none')?'block':'none';try{if(o.style.display=='block')
{o.posTop=(parseInt(o.offsetTop)-parseInt(40));}}
catch(err){}}
function jsfS(id)
{if(null!=(o=document.getElementById(id)))
o.style.display='block';try{if(o.style.display=='block')
{o.posTop=(parseInt(o.offsetTop)-parseInt(40));}}
catch(err){}}
function jsfH(id)
{if(null!=(o=document.getElementById(id)))
o.style.display='none';}
function jsfSMHSM(o,c,id,i)
{o.style.color=c;if(null!=(o=document.getElementById(id)))
o.src=aMHS[i].src;}
function jsfSMHS(o,c,bgc,id,i)
{jsfSMHSS(o,c,bgc);if(null!=(o=document.getElementById(id)))
o.src=aMHS[i].src;}
function jsfSMHSS(o,c,bgc)
{o.style.color=c;o.style.backgroundColor=bgc;}
function jsfSMSS(o,c,bgc,id,i)
{jsfSMSSS(o,c,bgc);if(null!=(o=document.getElementById(id)))
o.src=aMSS[i].src;}
function jsfSMSSS(o,c,bgc)
{o.style.color=c;o.style.backgroundColor=bgc;}
function jsfSTI(idTable,oImg)
{if(null!=(oTable=document.getElementById(idTable)))
oImg.src=oTable.style.display=='none'?aSiteMapImgs[0].src:aSiteMapImgs[1].src}
function jsfSMSA(o,c,bgc)
{o.style.color=c;o.style.backgroundColor=bgc;}
function jsfSMSAI(id,oImg)
{if(null!=(oTr=document.getElementById(id)))
oImg.src=oTr.style.display=='none'?aMSA[0].src:aMSA[1].src}
function jsfACC(idTr)
{document.getElementById(trDP).style.display='block'}
function jsfPopupArticleResponse(aid,rid,wndWidth,wndHeight)
{var wndLeft=(screen.width-wndWidth)/2;var wndTop=(screen.height-wndHeight)/2;win=window.open("PopupArticleResponse.aspx?aid="+aid+"&rid="+rid,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,"+"resizable=no,copyhistory=no,width="+wndWidth+",height="+wndHeight+",top="+wndTop+",left="+wndLeft,true);win.focus();}
function jsfSIS(array,o,i)
{o.src=array[i].src;}
function jsfPopupProduct(id,wndWidth,wndHeight)
{var wndLeft=(screen.width-wndWidth)/2;var wndTop=(screen.height-wndHeight)/2;win=window.open("PopupProduct.aspx?pid="+id,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,"+"resizable=no,copyhistory=no,width="+wndWidth+",height="+wndHeight+",top="+wndTop+",left="+wndLeft,true);win.focus();}
function jsfGo(id,url)
{window.location.href=url;}
function jsfPopupTellFriend(id,wndWidth,wndHeight)
{var wndLeft=(screen.width-wndWidth)/2;var wndTop=(screen.height-wndHeight)/2;win=window.open("PopupTellFriend.aspx","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,"+"resizable=no,copyhistory=no,width="+wndWidth+",height="+wndHeight+",top="+wndTop+",left="+wndLeft,true);win.focus();}
