                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                if(!window.__td){window.__MT=100;window.__ti=0;window.__td=[];window.__td.length=window.__MT;window.__noTrace=false;

}








if(typeof(vp)=="undefined")
{
var vp={};
}





if(typeof(vp.widget)=="undefined")
{
vp.widget=function(){};
}

vp.widget._notifications=new Array();
vp.widget._nextNotificationId=0;




var CALLOUT_BALLOON_ARROW_STYLE_NO_ARROW=0;




var CALLOUT_BALLOON_ARROW_STYLE_ARROW_TOP=1;




var CALLOUT_BALLOON_ARROW_STYLE_ARROW_BELOW=2;












vp.widget.showNotification=function $vpfn_gsZvKV7SgJ1RQAACdGdqXw55$29(oMessage,oElement,arrowStyle,iLeftOffset,iTopOffset,iWidth,iTimeout,iNotificationId,bRequireIFrame,iArrowPadding)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var oNotification;
if(iNotificationId!==null&&!isNaN(iNotificationId))
{
oNotification=vp.widget._notifications[iNotificationId];
oNotification.message=oMessage;
}
else
{
oNotification=new vp.widget.CalloutBalloon(oMessage);
oNotification.id=vp.widget._nextNotificationId;
vp.widget._notifications[vp.widget._nextNotificationId]=oNotification;
vp.widget._nextNotificationId++;
}

if(oElement)
{
var oRect=vp.ui.getRect(oElement);
if(iLeftOffset&&iLeftOffset!==null)
{
oNotification.arrowX=oRect.left+iLeftOffset;
}
else
{
oNotification.arrowX=oRect.left+3;
}

if(arrowStyle==CALLOUT_BALLOON_ARROW_STYLE_ARROW_TOP)
{
oNotification.arrowY=oRect.top+oRect.height;
}
else
{
oNotification.arrowY=oRect.top;
}
}
else
{
oNotification.arrowX=iLeftOffset;
oNotification.arrowY=0;
}


oNotification.arrowStyle=arrowStyle;
if(iArrowPadding>0)
{
oNotification.arrowPadding=iArrowPadding;
}

if(iTopOffset&&iTopOffset!==null)
{
oNotification.arrowY+=iTopOffset;
}

oNotification.width=iWidth;

if(iTimeout&&iTimeout!==null)
{
oNotification.autoHideTimeout=iTimeout;
}

if(bRequireIFrame)
{
oNotification.requiresIFrame=true;
}

if(!isNaN(iNotificationId))
{
oNotification.refresh();
}
else
{
oNotification.show();
}

return oNotification;
};





vp.widget.getNotification=function $vpfn_QVt_2nh2M2_uNTffAWkKiA138$28(iNotificationId)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
return vp.widget._notifications[iNotificationId];
};





vp.widget.CalloutBalloon=function $vpfn_nHS9kP4RI6DrAeRS$oj7IQ147$27(sMessage)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}



var me=this;




this.id=0;




this.message="";




this.arrowStyle=CALLOUT_BALLOON_ARROW_STYLE_NO_ARROW;




this.arrowX=400;




this.arrowY=50;




this.width=null;





this.autoHideTimeout=0;




this.isVisible=false;




this.requiresIFrame=false;




var element=null;




var elementIFrame=null;




var autoCenterHorizontally=false;




var autoCenterVertically=false;




this.arrowPadding=20;




var rowIndex=0;

var arrowRow=new Array();

var contentTextCell=null;

var iShowCount=-1;




this.show=function $vpfn_jn5mCTpvDePjtPLeN23iSw239$16()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(!element)
{
init();
}

if(!me.visible)
{
_show();
}
else
{
this.refresh();
}


iShowCount++;
if(this.autoHideTimeout>0)
{
var fnHide=function $vpfn_Lmi9kka21oHnPlwNFBcm8g259$25()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(this.index!=iShowCount)
{
return;
}
me.hide();
}
.getClosure(
{
index:iShowCount
}
);
setTimeout(fnHide,this.autoHideTimeout);
}
};




this.hide=function $vpfn_GZ7_IWs_U9ZJvMtJJ9QxaA279$16()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(!element)
{
return;
}

if(me.requiresIFrame&&vp.browser.isIE&&vp.browser.ver==6)
{
showIFrame(contentTextCell,false);
}

element.style.visibility="hidden";
me.visible=false;
};




this.refresh=function $vpfn_O1gwhfxBGP5z28W1Wd6yzg298$19()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
me.hide();
positionMe();
if(contentTextCell.hasChildNodes())
{
while(contentTextCell.childNodes.length>=1)
{
contentTextCell.removeChild(contentTextCell.firstChild);
}
}

contentTextCell.innerHTML=me.message;
me.show();
};






this.setAutoCenter=function $vpfn_7mdP4nurge6O_mAU4faNrw319$25(bHorizontally,bVertically)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.events.remove(window,"resize",autoCenter);
autoCenterHorizontally=bHorizontally;
autoCenterVertically=bVertically;
autoCenter();
vp.events.add(window,"resize",autoCenter);

};




var autoCenter=function $vpfn_KAyyna0PfXhUgTS$Jwr_QA332$21()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var oViewPortSize=vp.ui.getViewportSize();

if(!autoCenterHorizontally&&!autoCenterVertically)
{
return;
}

var oRect=vp.ui.getRect(element);
var delta;
if(autoCenterHorizontally)
{
delta=(oViewPortSize.width-oRect.width)/2-oRect.left;
me.arrowX+=delta;
element.style.left=parseInt(element.style.left)+delta+"px";
}

if(autoCenterVertically)
{
delta=(oViewPortSize.height-oRect.height)/2-oRect.top;
me.arrowY+=delta;
element.style.top=parseInt(element.style.top)+delta+"px";
}

};




var init=function $vpfn__2f$BlrMEMsfRBzW2k31Kg362$15()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(sMessage&&sMessage!==null)
{
me.message=sMessage;
}
element=document.createElement("DIV");
element.className="callout-outer-container";
positionMe();

var oContainerTable=document.createElement("TABLE");
oContainerTable.className="callout-container";
oContainerTable.cellPadding="0";
oContainerTable.cellSpacing="0";


if(me.arrowStyle==CALLOUT_BALLOON_ARROW_STYLE_ARROW_TOP)
{
renderTopRowWithArrow(oContainerTable);
}
else
{
renderTopRow(oContainerTable);
}

renderContentRow(oContainerTable);


if(me.arrowStyle==CALLOUT_BALLOON_ARROW_STYLE_ARROW_BELOW)
{
renderBottomRowWithArrow(oContainerTable);
}
else
{
renderBottomRow(oContainerTable);
}
element.appendChild(oContainerTable);
document.body.appendChild(element);
};




var positionMe=function $vpfn_FG6dHoW3PYEdYkxvuN7P$w405$21()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
element.style.left=me.arrowX-me.arrowPadding+"px";
element.style.top=me.arrowY+"px";
if(me.width&&me.width!==null&&!isNaN(me.width))
{
element.style.width=me.width+"px";
}
};





var renderTopRowWithArrow=function $vpfn_at3FUYdGwdAaMrRjmHXaUw419$32(oContainerTable)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var oRowArrow=oContainerTable.insertRow(rowIndex);
rowIndex++;

var columnIndex=0;

var oCellLeft=oRowArrow.insertCell(columnIndex);
columnIndex++;
var oCellArrowLeft=oRowArrow.insertCell(columnIndex);
columnIndex++;
var oCellArrow=oRowArrow.insertCell(columnIndex);
columnIndex++;
var oCellArrowRight=oRowArrow.insertCell(columnIndex);
columnIndex++;
var oCellRight=oRowArrow.insertCell(columnIndex);
columnIndex++;

oRowArrow.className="callout-arrow-row";
oCellLeft.className="callout-top-left";
oCellArrowLeft.className="callout-arrow-up-left";
oCellArrowLeft.style.width=me.arrowPadding+"px";
oCellArrow.className="callout-arrow-up";
oCellArrowRight.className="callout-arrow-up-right";
oCellRight.className="callout-top-right";

arrowRow["corner-left"]=oCellLeft;
arrowRow["arrow-left"]=oCellArrowLeft;
arrowRow["arrow"]=oCellArrow;
arrowRow["arrow-right"]=oCellArrowRight;
arrowRow["corner-right"]=oCellRight;
};





var renderTopRow=function $vpfn_2sOq_pQfy2RwoJWgMFFEKQ456$23(oContainerTable)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var oRowBorder=oContainerTable.insertRow(rowIndex);
rowIndex++;
var columnIndex=0;
var oCellLeft=oRowBorder.insertCell(columnIndex);
columnIndex++;
var oCellCenter=oRowBorder.insertCell(columnIndex);
columnIndex++;
var oCellRight=oRowBorder.insertCell(columnIndex);
columnIndex++;

oRowBorder.className="callout-border-row";
oCellLeft.className="callout-top-left";
oCellCenter.className="callout-top";
oCellRight.className="callout-top-right";

oCellCenter.innerHTML="&nbsp;";
oCellCenter.colSpan=3;
};





var renderContentRow=function $vpfn_E1tJWcB9pLwIga6lg1E9Nw481$27(oContainerTable)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var oRowContent=oContainerTable.insertRow(rowIndex);
rowIndex++;

var columnIndex=0;
var oCellLeft=oRowContent.insertCell(columnIndex);
columnIndex++;
var oCellCenter=oRowContent.insertCell(columnIndex);
columnIndex++;
var oCellRight=oRowContent.insertCell(columnIndex);
columnIndex++;

oRowContent.className="callout-content-row";
oCellLeft.className="callout-center-left";
oCellCenter.className="callout-center";
oCellRight.className="callout-center-right";

oCellCenter.colSpan=3;

var oTableContent=document.createElement("TABLE");
oTableContent.className="callout-content-table";
var oRowContentInner=oTableContent.insertRow(0);

var oCellText=oRowContentInner.insertCell(0);
var oCellClose=oRowContentInner.insertCell(1);
oCellClose.className="callout-close-container";
oCellText.className="callout-text-container";

if(typeof me.message=="string")
{

oCellText.innerHTML=me.message;
}
else
{
oCellText.appendChild(me.message);
}
contentTextCell=oCellText;

var oImgClose=document.createElement("IMG");
oImgClose.src=vp.ui.imageUrl("/vp/images/nns/common/buttons/close_window.gif");
vp.events.add(oImgClose,"click",me.hide);
oCellClose.appendChild(oImgClose);
oCellCenter.appendChild(oTableContent);
};





var renderBottomRowWithArrow=function $vpfn_MuXKkL8NLwboExV590TMcQ532$35(oContainerTable)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var oRowArrow=oContainerTable.insertRow(rowIndex);
rowIndex++;

var columnIndex=0;

var oCellLeft=oRowArrow.insertCell(columnIndex);
columnIndex++;
var oCellArrowLeft=oRowArrow.insertCell(columnIndex);
columnIndex++;
var oCellArrow=oRowArrow.insertCell(columnIndex);
columnIndex++;
var oCellArrowRight=oRowArrow.insertCell(columnIndex);
columnIndex++;
var oCellRight=oRowArrow.insertCell(columnIndex);
columnIndex++;

oRowArrow.className="callout-arrow-row";
oCellLeft.className="callout-bottom-left";
oCellArrowLeft.className="callout-arrow-bottom-left";
oCellArrowLeft.style.width=me.arrowPadding+"px";
oCellArrow.className="callout-arrow-bottom";
oCellArrowRight.className="callout-arrow-bottom-right";
oCellRight.className="callout-bottom-right";

arrowRow["corner-left"]=oCellLeft;
arrowRow["arrow-left"]=oCellArrowLeft;
arrowRow["arrow"]=oCellArrow;
arrowRow["arrow-right"]=oCellArrowRight;
arrowRow["corner-right"]=oCellRight;

};





var renderBottomRow=function $vpfn_M3f7qtNz_mlLBrciTSSIBw570$26(oContainerTable)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var oRowBorder=oContainerTable.insertRow(rowIndex);
rowIndex++;
var columnIndex=0;
var oCellLeft=oRowBorder.insertCell(columnIndex);
columnIndex++;
var oCellCenter=oRowBorder.insertCell(columnIndex);
columnIndex++;
var oCellRight=oRowBorder.insertCell(columnIndex);
columnIndex++;

oRowBorder.className="callout-border-row";
oCellCenter.innerHTML="&nbsp;";
oCellCenter.colSpan=3;
oCellLeft.className="callout-bottom-left";
oCellCenter.className="callout-bottom";
oCellRight.className="callout-bottom-right";

};




var _show=function $vpfn_SwAwkptBpHjjnVU4M$ZKeQ594$16()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var oRect=vp.ui.getRect(element);
if(me.arrowStyle!=CALLOUT_BALLOON_ARROW_STYLE_NO_ARROW)
{
var width=oRect.width;






width=width-7-me.arrowPadding-12-7;
arrowRow["arrow-right"].style.width=width+"px";
}

if(me.arrowStyle==CALLOUT_BALLOON_ARROW_STYLE_ARROW_BELOW)
{
var height=element.clientHeight;
element.style.top=oRect.top-height+"px";
}

if(me.requiresIFrame&&vp.browser.isIE&&vp.browser.ver==6)
{
element.style.zIndex=10000;
showIFrame(contentTextCell,true);
}
element.style.visibility="visible";
me.visible=true;
};







var ie6IFrame;
var showIFrame=function $vpfn_rBQZtswIXkFOJZkrtX7XxA632$21(oElement,bShow)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(!ie6IFrame)
{
ie6IFrame=document.createElement("IFRAME");
ie6IFrame.setAttribute("src","");
}

if(!bShow)
{
ie6IFrame.style.visibility="hidden";
}
else
{
ie6IFrame.style.visibility="visible";
}


oElement.style.zIndex=oElement.style.zIndex+1;


var oRect=vp.ui.getRect(oElement);
ie6IFrame.style.position="absolute";
ie6IFrame.style.left=oRect.left-7+"px";
ie6IFrame.style.top=oRect.top-7+"px";
ie6IFrame.style.width=oRect.width+14+"px";
ie6IFrame.style.height=oRect.height+14+"px";
element.parentElement.appendChild(ie6IFrame);
};

};








var activeNotification;
vp.widget.showShippingDelayCalloutBalloon=function $vpfn_YtjybiOojFGSwheNR81T_w672$44(sAnchorId,sBody,iTimeout){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var oNotification=vp.widget.showNotification(
sBody,
document.getElementById(sAnchorId),
CALLOUT_BALLOON_ARROW_STYLE_ARROW_BELOW,
15,
5,
225,
iTimeout,
activeNotification);
activeNotification=oNotification.id;
};

var activeCcNotification;
vp.widget.showCreditCardDeclineCalloutBalloon=function $vpfn_sRAEAyZ3Tuw3CetbE5vA2g686$48(sAnchorId,sBody,iTimeout){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var oNotification=vp.widget.showNotification(
sBody,
document.getElementById(sAnchorId),
CALLOUT_BALLOON_ARROW_STYLE_ARROW_BELOW,
15,
5,
350,
iTimeout,
activeNotification);
activeCcNotification=oNotification.id;
};
