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(bgWhOn.gif ) no-repeat left top";
}
function hotStuffOff(){
document.getElementById("hMktMsg").style.display="none";
for(var i=0;i<10;i++){
if(document.getElementById("hotProd"+i)){
document.getElementById("hotProd"+i).style.display="none";
}
var _5=document.getElementById("hMain"+i);
if(_5){
if((("hMain"+i)=="hMain0")||(("hMain"+i)=="hMain1")||(("hMain"+i)=="hMain2")||(("hMain"+i)=="hMain3")||(("hMain"+i)=="hMain4")){
_5.style.background="#fff url(bgWhLeftOff.gif ) repeat-y right top";
}else{
_5.style.background="#fff url(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",250,250,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(var i=0;i<10;i++){
var _7=document.getElementById("hMain"+i);
if(_7){
if((("hMain"+i)=="hMain0")||(("hMain"+i)=="hMain1")||(("hMain"+i)=="hMain2")||(("hMain"+i)=="hMain3")||(("hMain"+i)=="hMain4")){
_7.style.background="#fff url(bgWhLeftOff.gif ) repeat-y right top";
}else{
_7.style.background="#fff url(bgWhRtOff.gif ) repeat-y left top";
}
}
}
}
function bigImageMouseOver(_8,_9){
hMHovOn("hMain"+eval(_8));
if(lastMainLoad!=_8+","+currentTabInGrp[_8]){
nextToShow=_8;
if(_9!=null){
setTimeout("doBigImageMouseOver(\""+_8+"\", \""+_9+"\")",whatsHotDelay);
}else{
}
}
}
function bigImageMouseOut(_a){
if(lastMainLoad!=_a+","+currentTabInGrp[_a]){
lastMainLoad=null;
nextToShow=-1;
hideAllWHBorders();
if(currentDivWHOn!=null){
hMHovOn("hMain"+eval(currentDivWHOn));
}
}
}
function doBigImageMouseOver(_b,_c){
if(lastMainLoad!=_b+","+currentTabInGrp[_b]&&nextToShow==_b){
dojo.io.bind({url:"/ajaxWhatsHotBottomBB",content:{whatsHotGrp:_b,whatsHotGrpProds:_c},load:function(_d,_e,_f){
currentBIDivWHOn=null;
currentDivWHOn=_b;
dojo.byId("hotBtmTbl"+_b).innerHTML=_e;
if(debugAJAX){
var _10="/ajaxWhatsHotBottomBB?whatsHotGrp="+_b+"&whatsHotGrpProds="+_c;
dojo.byId("hotBtmTbl"+_b).innerHTML="<div class=\"debugAJAXBox\"><div class=\"debugAJAXPath\">AJAX content: <a class=\"debugAJAXAnchor\" href=\""+_10+"\">"+_10+"</a></div><br />"+dojo.byId("hotBtmTbl"+_b).innerHTML+"</div>";
}
hBtmItemsOff(_b);
hotBtmItemsOn(_b,currentTabInGrp[_b]);
currentMktMsg=false;
},mimetype:"text/plain"});
hotStuffOff();
on("hotProd"+_b);
document.getElementById("hotProd"+_b).style.background="transparent url(t5_paneTop_bg.gif) repeat-x left top";
dojo.html.setOpacity(document.getElementById("hotProd"+_b),0);
hMHovOn("hMain"+eval(_b));
fadeInCallbackCenter=function(){
dojo.html.setOpacity(document.getElementById("hotProd"+_b),100);
};
dojo.lfx.html.fadeIn("hotProd"+_b,250,250,fadeInCallbackCenter).play();
lastMainLoad=_b+","+currentTabInGrp[_b];
}
}
function hBtmItemsOff(_11){
for(j=0;j<5;j++){
dojo.byId("hBtmGrp"+_11+"Prod"+j).style.background="transparent";
dojo.byId("hNumGrp"+_11+"Prod"+j).style.color="#999";
}
}
function hotBtmItemsOn(_12,_13){
document.getElementById("hBtmGrp"+_12+"Prod"+_13).style.background="transparent url(t5_tabActive.gif ) no-repeat left top";
document.getElementById("hNumGrp"+_12+"Prod"+_13).style.color="#333";
}
var lastBottomTabLoad;
var currentBIDivWHOn=null;
function smallInnerImageMouseOver(_14,_15,_16){
hotBtmItemsOn(_14,_15);
if(lastBottomTabLoad!=_14+","+_15+","+_16){
nextToShowInner=_14+","+_15+","+_16;
setTimeout("doSmallInnerImageMouseOver(\""+_14+"\",\""+_15+"\",\""+_16+"\")",whatsHotDelay);
}
}
function doSmallInnerImageMouseOver(_17,_18,_19){
if(lastBottomTabLoad!=_17+","+_18+","+_19&&nextToShowInner==_17+","+_18+","+_19){
dojo.io.bind({url:"/ajaxWhatsHotContentBB",content:{productId:_19,groupIndex:_17,productIndex:_18},load:function(_1a,_1b,evt){
currentBIDivWHOn=_18;
dojo.byId("hotUpperItem"+_17).innerHTML=_1b;
if(debugAJAX){
var _1d="/whatsHotContentBB?productId="+_19+"&groupIndex="+_17+"&productIndex="+_18;
dojo.byId("hotUpperItem"+_17).innerHTML="<div class=\"debugAJAXBox\"><div class=\"debugAJAXPath\">AJAX content: <a class=\"debugAJAXAnchor\" href=\""+_1d+"\">"+_1d+"</a></div><br />"+dojo.byId("hotUpperItem"+_17).innerHTML+"</div>";
}
dojo.html.setOpacity(document.getElementById("hotUpperItem"+_17),0);
fadeInCallbackCenter=function(){
dojo.html.setOpacity(document.getElementById("hotUpperItem"+_17),100);
};
dojo.lfx.html.fadeIn("hotUpperItem"+_17,250,250,fadeInCallbackCenter).play();
},mimetype:"text/plain"});
hBtmItemsOff(_17);
hotBtmItemsOn(_17,_18);
currentTabInGrp[_17]=_18;
lastBottomTabLoad=_17+","+_18+","+_19;
}
}
function smallInnerImageMouseOut(_1e,_1f,_20){
if(lastBottomTabLoad!=_1e+","+_1f+","+_20){
lastBottomTabLoad=null;
nextToShowInner=-1;
hBtmItemsOff(_1e);
if(currentBIDivWHOn!=null){
hotBtmItemsOn(_1e,currentBIDivWHOn);
}else{
hotBtmItemsOn(_1e,0);
}
}
}

