//! The following comment appears in the "standard" version of this file 
//! ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//!
//!    Amazon.com Navigation JavaScript
//!    ----------------------------------------------------------
//!    Copyright (c) Amazon.com 2007.  All Rights Reserved.
//!    Not to be reused without permission.
//!
//!    $DateTime: 2007/11/30 21:27:29 $
//!::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */
n2RunThisWhen(
n2sRTWTBS,
function() {
goShopAllExpanded = new N2SimplePopover();
goN2Events.registerFeature('shopAllExpanded','goShopAllExpanded','n2MouseOverHotspot','n2MouseOutHotspot');
goN2Events.setFeatureDelays('shopAllExpanded', 0, 10, 15);
goShopAllExpanded.preConfigureNTier(null, 'shopAllExpanded','null','shopAllExpandedChild');
goShopAllExpanded.initialize('goShopAllExpandedPopUp','goShopAllExpanded',null,null,'below',0,0,'none');
goShopAllExpanded.configureAnimation(0, 0, null, null);
goShopAllExpanded.configureTabTitle(true);
goShopAllExpanded.setCallback(
'afterShow',
function() {
if(window.gIsSubnavDisplayed && gIsSubnavDisplayed == 1) {
shiftImage('navSASwapPanel','0','-76','navSAButton');
} else {
shiftImage('navSASwapPanel','0','-76','navSAButtonNoSubnav');
}
goN2U.setClass('navSASwapPanel','navSAButtonPanelInactive');
return 1;
});
goShopAllExpanded.setCallback(
'beforeHide',
function() {
if (window.gIsSubnavDisplayed && gIsSubnavDisplayed == 1) {
goN2U.setClass('navSASwapPanel','navSAButtonPanel');
shiftImage('navSASwapPanel','0','0','navSAButton');
} else {
goN2U.setClass('navSASwapPanel','navSAButtonNoSubnavPanel');
shiftImage('navSASwapPanel','0','0','navSAButtonNoSubnav')
}
return 1;
});
goShopAllExpandedChild = new N2SimplePopover();
goN2Events.registerFeature('shopAllExpandedChild','goShopAllExpandedChild','n2MouseOverHotspot','n2MouseOutHotspot');
goN2Events.setFeatureDelays('shopAllExpandedChild', 0, 5, 0);
goShopAllExpandedChild.preConfigureNTier(1, 'shopAllExpandedChild','shopAllExpanded',null);
goShopAllExpandedChild.initialize('goShopAllExpandedChildPopUp','goShopAllExpandedChild',null,null,'right',-23,0,'rounded');
goShopAllExpandedChild.configureAnimation(0, 0, null, null);
goShopAllExpandedChild.configureTabTitle();
var gNavExpandedChildClassBeforeShow = null;
goShopAllExpandedChild.setCallback(
'afterShow',
function(oPopover) {
var hotspotID = oPopover.getHotspotID();
var listId = hotspotID + "_tab";
var listIdObj = document.getElementById(listId);
gNavExpandedChildClassBeforeShow = listIdObj.className;
goN2U.setClass(listId,gNavExpandedChildClassBeforeShow + 'Inactive');
return 1;
});
goShopAllExpandedChild.setCallback(
'beforeHide',
function(oPopover) {
var hotspotID = oPopover.getHotspotID();
var listId = hotspotID + "_tab";
goN2U.setClass(listId,gNavExpandedChildClassBeforeShow);
return 1;
}); 
goListsPop = new N2SimplePopover();
goN2Events.registerFeature('listsPop', 'goListsPop', 'n2MouseOverHotspot', 'n2MouseOutHotspot');
goN2Events.setFeatureDelays('listsPop', 0, 0, 0);
goListsPop.initialize('listsPop_pop', 'goListsPop', null, null, 'below', 'r', 0, 'rounded');
goListsPop.configureAnimation(0, 0, null, null);
goListsPop.configureTabTitle();
goListsPop.setCallback(
'afterShow',
function() {
shiftImage('navListSwapPanel','0','-76','navListButton');
goN2U.setClass('navListSwapPanel','navListButtonPanelInactive');
return 1;
});
goListsPop.setCallback(
'beforeHide',
function() {
goN2U.setClass('navListSwapPanel','navListButtonPanel');
shiftImage('navListSwapPanel','0','0','navListButton')
return 1;
}); 
goNavCrossshopPopRight = new N2SimplePopover();
goN2Events.registerFeature('navCrossshopPopRight', 'goNavCrossshopPopRight', 'n2MouseOverHotspot', 'n2MouseOutHotspot');
goN2Events.setFeatureDelays('navCrossshopPop', 0, 0, 0);
goNavCrossshopPopRight.initialize('navCrossshopPopRight_pop', 'goNavCrossshopPopRight', null, null, 'below', 0, 0, 'rounded');
goNavCrossshopPopRight.configureAnimation(0, 0, null, null);
goNavCrossshopPopRight.configureTabTitle();
goNavCrossshopPopRight.setCallback(
'afterShow',
function(popObj) {
var hotspotID = popObj.getHotspotID();
goN2U.getElement(hotspotID+'_tab').className = 'navCrossshopOpen';
return 1;
});
goNavCrossshopPopRight.setCallback(
'beforeHide',
function(popObj) {
var hotspotID = popObj.getHotspotID();
goN2U.getElement(hotspotID+'_tab').className = '';
return 1;
});
goNavCrossshopPopLeft = new N2SimplePopover();
goN2Events.registerFeature('navCrossshopPopLeft', 'goNavCrossshopPopLeft', 'n2MouseOverHotspot', 'n2MouseOutHotspot');
goN2Events.setFeatureDelays('navCrossshopPop', 0, 0, 0);
goNavCrossshopPopLeft.initialize('navCrossshopPopLeft_pop', 'goNavCrossshopPopLeft', null, null, 'below', 'r', 0, 'rounded');
goNavCrossshopPopLeft.configureAnimation(0, 0, null, null);
goNavCrossshopPopLeft.configureTabTitle();
goNavCrossshopPopLeft.setCallback(
'afterShow',
function(popObj) {
var hotspotID = popObj.getHotspotID();
goN2U.getElement(hotspotID+'_tab').className = 'navCrossshopOpen';
return 1;
});
goNavCrossshopPopLeft.setCallback(
'beforeHide',
function(popObj) {
var hotspotID = popObj.getHotspotID();
goN2U.getElement(hotspotID+'_tab').className = '';
return 1;
}); 
},
'Gno Popovers'
);

///////////////////////////////////////新闻切换代码开始/////////////////////////////////////
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
///////////////////////////////////////新闻切换代码结束/////////////////////////////////////
