var counter=1;
function moveR(){
if(counter>=max){
counter=0;
}
counter++;
makeAjahCAll();
}
function moveL(){
if(counter==1){
counter=max+1;
}
counter--;
makeAjahCAll();
}
function makeAjahCAll(){
AIcons=function(_1){
dojo.html.setOpacity(document.getElementById("icons"),0);
fadeInCallbackCenter=function(){
dojo.html.setOpacity(document.getElementById("icons"),100);
};
dojo.lfx.html.fadeIn("icons",500,null,fadeInCallbackCenter).play();
};
afterCall=function(_2){
off("icons");
document.getElementById("icons").innerHTML=_2.responseText;
on("icons");
};
makeAJAHRequest("POST","/SBB_AJAX","AJAX=1&PG="+counter,document.getElementById("icons"),AIcons);
}
var currentTabInGrp=new Array();
for(i=0;i<10;i++){
currentTabInGrp[i]=0;
}
function hMHovOn(_3){
document.getElementById(_3).style.background="#fff url(http://img.shopping.com/jfe/bb/whatsHot/bgWhOn.gif ) no-repeat left top";
}
function hotStuffOff(){
document.getElementById("hMktMsg").style.display="none";
for(i=0;i<10;i++){
document.getElementById("hotProd"+i).style.display="none";
if((("hMain"+i)=="hMain0")||(("hMain"+i)=="hMain1")||(("hMain"+i)=="hMain2")||(("hMain"+i)=="hMain3")||(("hMain"+i)=="hMain4")){
document.getElementById("hMain"+i).style.background="#fff url(http://img.shopping.com/jfe/bb/whatsHot/bgWhLeftOff.gif ) repeat-y right top";
}else{
document.getElementById("hMain"+i).style.background="#fff url(http://img.shopping.com/jfe/bb/whatsHot/bgWhRtOff.gif ) repeat-y left top";
}
}
}
function showMarketingMsg(){
if(!currentMktMsg){
hotStuffOff();
dojo.html.setOpacity(document.getElementById("hMktMsg"),0);
on("hMktMsg");
dojo.lfx.html.fadeIn("hMktMsg",350,350,null).play();
currentMktMsg=true;
callbackWaiting=false;
lastMainLoad=null;
nextToShow=-1;
nextToShowInner=-1;
}
}
var currentMktMsg=true;
var callbackWaiting=false;
var lastMainLoad;
var nextToShow=-1;
var nextToShowInner=-1;
var whatsHotDelay=200;
var currentDivWHOn=null;
function hideAllWHBorders(){
for(i=0;i<10;i++){
if((("hMain"+i)=="hMain0")||(("hMain"+i)=="hMain1")||(("hMain"+i)=="hMain2")||(("hMain"+i)=="hMain3")||(("hMain"+i)=="hMain4")){
document.getElementById("hMain"+i).style.background="#fff url(http://img.shopping.com/jfe/bb/whatsHot/bgWhLeftOff.gif ) repeat-y right top";
}else{
document.getElementById("hMain"+i).style.background="#fff url(http://img.shopping.com/jfe/bb/whatsHot/bgWhRtOff.gif ) repeat-y left top";
}
}
}
function bigImageMouseOver(_4,_5){
hMHovOn("hMain"+eval(_4));
if(lastMainLoad!=_4+","+currentTabInGrp[_4]){
nextToShow=_4;
setTimeout("doBigImageMouseOver(\""+_4+"\", \""+_5+"\")",whatsHotDelay);
}
}
function bigImageMouseOut(_6){
if(lastMainLoad!=_6+","+currentTabInGrp[_6]){
lastMainLoad=null;
nextToShow=-1;
hideAllWHBorders();
if(currentDivWHOn!=null){
hMHovOn("hMain"+eval(currentDivWHOn));
}
}
}
function doBigImageMouseOver(_7,_8){
if(lastMainLoad!=_7+","+currentTabInGrp[_7]&&nextToShow==_7){
dojo.io.bind({url:"/ajaxWhatsHotBottomBB",content:{whatsHotGrp:_7,whatsHotGrpProds:_8},load:function(_9,_a,_b){
currentBIDivWHOn=null;
currentDivWHOn=_7;
dojo.byId("hotBtmTbl"+_7).innerHTML=_a;
if(debugAJAX){
var _c="/ajaxWhatsHotBottomBB?whatsHotGrp="+_7+"&whatsHotGrpProds="+_8;
dojo.byId("hotBtmTbl"+_7).innerHTML="<div class=\"debugAJAXBox\"><div class=\"debugAJAXPath\">AJAX content: <a class=\"debugAJAXAnchor\" href=\""+_c+"\">"+_c+"</a></div><br />"+dojo.byId("hotBtmTbl"+_7).innerHTML+"</div>";
}
hBtmItemsOff(_7);
hotBtmItemsOn(_7,currentTabInGrp[_7]);
currentMktMsg=false;
},mimetype:"text/plain"});
hotStuffOff();
on("hotProd"+_7);
document.getElementById("hotProd"+_7).style.background="transparent url(http://img.shopping.com/jfe/home/t5_paneTop_bg.gif) repeat-x left top";
dojo.html.setOpacity(document.getElementById("hotProd"+_7),0);
hMHovOn("hMain"+eval(_7));
fadeInCallbackCenter=function(){
dojo.html.setOpacity(document.getElementById("hotProd"+_7),100);
};
dojo.lfx.html.fadeIn("hotProd"+_7,250,250,fadeInCallbackCenter).play();
lastMainLoad=_7+","+currentTabInGrp[_7];
}
}
function hBtmItemsOff(_d){
for(j=0;j<5;j++){
dojo.byId("hBtmGrp"+_d+"Prod"+j).style.background="transparent";
dojo.byId("hNumGrp"+_d+"Prod"+j).style.color="#999";
}
}
function hotBtmItemsOn(_e,_f){
document.getElementById("hBtmGrp"+_e+"Prod"+_f).style.background="transparent url(http://img.shopping.com/jfe/home/t5_tabActive.gif ) no-repeat left top";
document.getElementById("hNumGrp"+_e+"Prod"+_f).style.color="#333";
}
var lastBottomTabLoad;
var currentBIDivWHOn=null;
function smallInnerImageMouseOver(_10,_11,_12){
hotBtmItemsOn(_10,_11);
if(lastBottomTabLoad!=_10+","+_11+","+_12){
nextToShowInner=_10+","+_11+","+_12;
setTimeout("doSmallInnerImageMouseOver(\""+_10+"\",\""+_11+"\",\""+_12+"\")",whatsHotDelay);
}
}
function doSmallInnerImageMouseOver(_13,_14,_15){
if(lastBottomTabLoad!=_13+","+_14+","+_15&&nextToShowInner==_13+","+_14+","+_15){
dojo.io.bind({url:"/ajaxWhatsHotContentBB",content:{productId:_15,groupIndex:_13,productIndex:_14},load:function(_16,_17,evt){
currentBIDivWHOn=_14;
dojo.byId("hotUpperItem"+_13).innerHTML=_17;
if(debugAJAX){
var _19="/whatsHotContentBB?productId="+_15+"&groupIndex="+_13+"&productIndex="+_14;
dojo.byId("hotUpperItem"+_13).innerHTML="<div class=\"debugAJAXBox\"><div class=\"debugAJAXPath\">AJAX content: <a class=\"debugAJAXAnchor\" href=\""+_19+"\">"+_19+"</a></div><br />"+dojo.byId("hotUpperItem"+_13).innerHTML+"</div>";
}
dojo.html.setOpacity(document.getElementById("hotUpperItem"+_13),0);
fadeInCallbackCenter=function(){
dojo.html.setOpacity(document.getElementById("hotUpperItem"+_13),100);
};
dojo.lfx.html.fadeIn("hotUpperItem"+_13,250,250,fadeInCallbackCenter).play();
},mimetype:"text/plain"});
hBtmItemsOff(_13);
hotBtmItemsOn(_13,_14);
currentTabInGrp[_13]=_14;
lastBottomTabLoad=_13+","+_14+","+_15;
}
}
function smallInnerImageMouseOut(_1a,_1b,_1c){
if(lastBottomTabLoad!=_1a+","+_1b+","+_1c){
lastBottomTabLoad=null;
nextToShowInner=-1;
hBtmItemsOff(_1a);
if(currentBIDivWHOn!=null){
hotBtmItemsOn(_1a,currentBIDivWHOn);
}else{
hotBtmItemsOn(_1a,0);
}
}
}

