TimeToggle = 0;

var zindex=0;
var ns4=document.layers
var ns6=document.getElementById&&!document.all
var ie4=document.all
var opr=navigator.userAgent.indexOf("Opera")
var themenuStyle = "";
var themenu = "";
var timeID = 0;
var TTtopsellers = 0;
var TTcomingsoon = 0;
var TTrecentreleases = 0;
var TTtop100 = 0;
var popupx = 112;
var popupy = 45;
var whichone = "";

function sm_TopSellers(e) 
{
hide_Top100(25);
hide_RecentReleases(25);
hide_ComingSoon(25);
TTtopsellers = 0;
whichone = "TopSellers";
curmenuID=ns6? document.getElementById(whichone).id : eval(whichone).id
if (window.theTopSellermenu&&theTopSellermenu.id!=curmenuID)
theTopSellermenuStyle.visibility=ns4?"hide" : "hidden"
theTopSellermenu=ns6? document.getElementById(whichone): eval(whichone)
theTopSellermenuStyle=(ns6||ie4)? theTopSellermenu.style : theTopSellermenu
theTopSellermenuoffsetX=(ie4&&opr==-1)? document.body.scrollLeft : 0
theTopSellermenuoffsetY=(ie4&&opr==-1)? document.body.scrollTop : 0
theTopSellermenuStyle.left=ns6||ns4? e.pageX-e.layerX + popupx: theTopSellermenuoffsetX+event.clientX-event.offsetX + popupx
theTopSellermenuStyle.top=ns6||ns4? e.pageY-e.layerY-popupy : theTopSellermenuoffsetY+event.clientY-event.offsetY-popupy
hiddenconst=(ns6||ie4)? "hidden" : "hide"
if (theTopSellermenuStyle.visibility==hiddenconst){
theTopSellermenuStyle.visibility=(ns6||ie4)? "visible" : "show"
theTopSellermenuStyle.zIndex=zindex++
}
else
//hide_TopSellers(0)
return false
}

function hide_TopSellers(TTtopsellers){
TTtopsellers++;
if( TTtopsellers != 0 ) {
timeID = setTimeout("hide_TopSellers("+TTtopsellers+")",25);
if( TTtopsellers >20) {
clearTimeout(timeID);
TTtopsellers=0;
if ((ie4||ns6)&&window.theTopSellermenu)
theTopSellermenuStyle.visibility="hidden"
else if (ns4)
theTopSellermenu.visibility="hide"
}
}
}

function sm_ComingSoon(e) 
{
hide_Top100(25);
hide_RecentReleases(25);
hide_TopSellers(25);
TTcomingsoon = 0;
whichone = "ComingSoon";
curmenuID=ns6? document.getElementById(whichone).id : eval(whichone).id
if (window.theComingSoonmenu&&theComingSoonmenu.id!=curmenuID)
theComingSoonmenuStyle.visibility=ns4?"hide" : "hidden"
theComingSoonmenu=ns6? document.getElementById(whichone): eval(whichone)
theComingSoonmenuStyle=(ns6||ie4)? theComingSoonmenu.style : theComingSoonmenu
theComingSoonmenuoffsetX=(ie4&&opr==-1)? document.body.scrollLeft : 0
theComingSoonmenuoffsetY=(ie4&&opr==-1)? document.body.scrollTop : 0
theComingSoonmenuStyle.left=ns6||ns4? e.pageX-e.layerX + popupx: theComingSoonmenuoffsetX+event.clientX-event.offsetX + popupx
theComingSoonmenuStyle.top=ns6||ns4? e.pageY-e.layerY-popupy : theComingSoonmenuoffsetY+event.clientY-event.offsetY-popupy
hiddenconst=(ns6||ie4)? "hidden" : "hide"
if (theComingSoonmenuStyle.visibility==hiddenconst){
theComingSoonmenuStyle.visibility=(ns6||ie4)? "visible" : "show"
theComingSoonmenuStyle.zIndex=zindex++
theComingSoonmenuStyle.zIndex=10000;
}
else
//hide_ComingSoon(0)
return false
}

function hide_ComingSoon(TTcomingsoon){
TTcomingsoon++;
if( TTcomingsoon != 0 ) {
timeID = setTimeout("hide_ComingSoon("+TTcomingsoon+")",25);
if( TTcomingsoon >20) {
clearTimeout(timeID);
TTcomingsoon=0;
if ((ie4||ns6)&&window.theComingSoonmenu)
theComingSoonmenuStyle.visibility="hidden"
else if (ns4)
theComingSoonmenu.visibility="hide"
}
}
}


function sm_RecentReleases(e) 
{
hide_Top100(25);
hide_ComingSoon(25);
hide_TopSellers(25);
TTrecentreleases = 0;
whichone = "RecentReleases";
curmenuID=ns6? document.getElementById(whichone).id : eval(whichone).id
if (window.theRecentReleasesmenu&&theRecentReleasesmenu.id!=curmenuID)
theRecentReleasesmenuStyle.visibility=ns4?"hide" : "hidden"
theRecentReleasesmenu=ns6? document.getElementById(whichone): eval(whichone)
theRecentReleasesmenuStyle=(ns6||ie4)? theRecentReleasesmenu.style : theRecentReleasesmenu
theRecentReleasesmenuoffsetX=(ie4&&opr==-1)? document.body.scrollLeft : 0
theRecentReleasesmenuoffsetY=(ie4&&opr==-1)? document.body.scrollTop : 0
theRecentReleasesmenuStyle.left=ns6||ns4? e.pageX-e.layerX + popupx: theRecentReleasesmenuoffsetX+event.clientX-event.offsetX + popupx
theRecentReleasesmenuStyle.top=ns6||ns4? e.pageY-e.layerY-popupy : theRecentReleasesmenuoffsetY+event.clientY-event.offsetY-popupy
hiddenconst=(ns6||ie4)? "hidden" : "hide"
if (theRecentReleasesmenuStyle.visibility==hiddenconst){
theRecentReleasesmenuStyle.visibility=(ns6||ie4)? "visible" : "show"
theRecentReleasesmenuStyle.zIndex=zindex++
}
else
//hide_RecentReleases(0)
return false
}

function hide_RecentReleases(TTrecentreleases){
TTrecentreleases++;
if(TTrecentreleases != 0 ) {
timeID = setTimeout("hide_RecentReleases("+TTrecentreleases+")",25);
if( TTrecentreleases >20) {
clearTimeout(timeID);
TimeToggle=0;
if ((ie4||ns6)&&window.theRecentReleasesmenu)
theRecentReleasesmenuStyle.visibility="hidden"
else if (ns4)
theRecentReleasesmenu.visibility="hide"
}
}
}


function sm_Top100(e) 
{
hide_RecentReleases(25);
hide_ComingSoon(25);
hide_TopSellers(25);
whichone = "Top100";
TTtop100 = 0;
curmenuID=ns6? document.getElementById(whichone).id : eval(whichone).id
if (window.theTop100menu&&theTop100menu.id!=curmenuID)
theTop100menuStyle.visibility=ns4?"hide" : "hidden"
theTop100menu=ns6? document.getElementById(whichone): eval(whichone)
theTop100menuStyle=(ns6||ie4)? theTop100menu.style : theTop100menu
theTop100menuoffsetX=(ie4&&opr==-1)? document.body.scrollLeft : 0
theTop100menuoffsetY=(ie4&&opr==-1)? document.body.scrollTop : 0
theTop100menuStyle.left=ns6||ns4? e.pageX-e.layerX + popupx: theTop100menuoffsetX+event.clientX-event.offsetX + popupx
theTop100menuStyle.top=ns6||ns4? e.pageY-e.layerY-popupy : theTop100menuoffsetY+event.clientY-event.offsetY-popupy
hiddenconst=(ns6||ie4)? "hidden" : "hide"
if (theTop100menuStyle.visibility==hiddenconst){
theTop100menuStyle.visibility=(ns6||ie4)? "visible" : "show"
theTop100menuStyle.zIndex=zindex++
}
else
//hide_Top100(0)
return false
}

function hide_Top100(TTtop100){
TTtop100++;
if(TTtop100 != 0 ) {
timeID = setTimeout("hide_Top100("+TTtop100+")",25);
if( TTtop100 >20) {
clearTimeout(timeID);
TTtop100=0;
if ((ie4||ns6)&&window.theTop100menu)
theTop100menuStyle.visibility="hidden"
else if (ns4)
theTop100menu.visibility="hide"
}
}
}


function hideallmenus() 
{
clearTimeout(timeID);
}

function clearTimeOuts()
{
clearTimeout(timeID);
}

