                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                if(!window.__td){window.__MT=100;window.__ti=0;window.__td=[];window.__td.length=window.__MT;window.__noTrace=false;}var changeHandlers=[];
function registerForNotification(newHandler)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
changeHandlers[changeHandlers.length]=newHandler;
}registerForNotification._vpfn='$vpfn_qzOytItYcNdKxt2MTqZ5pg2$0';



function selectTab(tabElement)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
while(tabElement)
{
if(tabElement.getAttribute('tab-content-id'))
{
var tab=vp.controls.Tab.get(tabElement.getAttribute('tab-content-id'));
if(tab)
{
tab.setSelected(true);
return;
}
}

tabElement=tabElement.parentNode;
}
}selectTab._vpfn='$vpfn_ED4eUgfMWMYIIjHQPAp9Ew9$0';

function setAllGenericPfidDependentTabs(pfid)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var tabsToSelect=$('.active-pfid-dependent-tab-header-'+pfid);

for(var i=0;i<tabsToSelect.length;i++)
{
selectTab(tabsToSelect[i]);
}
}setAllGenericPfidDependentTabs._vpfn='$vpfn_11rAlCxfS$FvaEEPCqhS8Q27$0';

function ensureActivePfidIsValid(validPfids)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(!validPfids.contains(currentActivePfid))
{
switchActivePfid(validPfids[0]);
}
}ensureActivePfidIsValid._vpfn='$vpfn_xuS1UQSrOldgv40CiG5yHw37$0';

function SetPricingTab(pfid)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var tabElement=vp.ui.get('pricing-tab-'+pfid);

selectTab(tabElement);
}SetPricingTab._vpfn='$vpfn_GAgGOokZ_apug9QwUgvqZw45$0';

function switchSpecificElementDisplay(elementName,pfid,display)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(document.getElementById(elementName+pfid))
{
document.getElementById(elementName+pfid).style.display=display;
}
}switchSpecificElementDisplay._vpfn='$vpfn_WY8yyqkakqkRbuTx7Xc1Vw52$0';

function switchSpecificElementCheck(elementName,pfid,checked)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}

if(vp&&vp.ppso&&checked)
{
vp.ppso.SelectSizeChanged(pfid);
}

if(document.getElementById(elementName+pfid))
{
document.getElementById(elementName+pfid).checked=checked;
}
}switchSpecificElementCheck._vpfn='$vpfn_68CtbLh1_pCl7X_qmen0ag60$0';

function switchSpecificElementSource(elementName,pfid,source)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(document.getElementById(elementName+pfid))
{
document.getElementById(elementName+pfid).src=source;
}
}switchSpecificElementSource._vpfn='$vpfn_p64HEcNob7mRBkQYiM0grQ74$0';

function switchForSmallBusinessCreditCard()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(currentActivePfid==632)
{
vp.clientsidetabbingtabstrip.selectTab('tdpersonal',['tdbusiness','tdpersonal','tdcompare']);
vp.clientsidetabbingtabstrip.ccc('ccc',1,3);
}
else
{
vp.clientsidetabbingtabstrip.selectTab('tdbusiness',['tdbusiness','tdpersonal','tdcompare']);
vp.clientsidetabbingtabstrip.ccc('ccc',0,3);
}
document.getElementById('ccc_tab_'+(currentActivePfid-632)).style.display='none';
document.getElementById('ccc_tab_'+(newActivePfid-632)).style.display='block';
}switchForSmallBusinessCreditCard._vpfn='$vpfn_j4$8AhqeyZwla9pTcMy7LQ82$0';


function switchSpecificElementClass(elementName,pfid,classToAdd,classToRemove)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(classToRemove==undefined){
if(document.getElementById(elementName+pfid)){
document.getElementById(elementName+pfid).className=classToAdd;
}
}
else{
if(document.getElementById(elementName+pfid)){
vp.ui.addClass(elementName+pfid,classToAdd);
vp.ui.removeClass(elementName+pfid,classToRemove);
}
}
}switchSpecificElementClass._vpfn='$vpfn_fpHp60wgByZ_ggv26ySdlg99$0';

function switchSpecificTableRowVisibility(elementName,headerElementName,newActivePfid)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(document.getElementById(elementName+currentActivePfid))
{
document.getElementById(elementName+currentActivePfid).style.display='none';
}

var newRow=document.getElementById(elementName+newActivePfid);
if(newRow)
{
if(vp.browser.isIE)
{
newRow.style.display='inline';
}
else
{
newRow.style.display='table-row';
}
}

var header=document.getElementById(headerElementName);

if(header&&newRow)
{
if(newRow.getElementsByTagName("td").length>1)
{
if(vp.browser.isIE)
{
header.style.display='inline';
}
else
{
header.style.display='table-row';
}
}
else
{
header.style.display='none';
}
}
}switchSpecificTableRowVisibility._vpfn='$vpfn_UyiGkgAW1EusYHfOCkighA114$0';

function switchActivePfid(newActivePfid,bIsSizeTab){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}

if(!currentActivePfid||newActivePfid!=currentActivePfid){

switchSpecificElementDisplay('designMethod_',currentActivePfid,'none');
switchSpecificElementDisplay('designMethod_',newActivePfid,'block');

switchSpecificElementCheck('selectSize_',currentActivePfid,false);
switchSpecificElementCheck('selectSize_',newActivePfid,true);

switchSpecificElementSource('left_image_tab_',currentActivePfid,'/vp/images/nns/pricinggrid/grid_tab_inactive_left.gif');
switchSpecificElementSource('left_image_tab_',newActivePfid,'/vp/images/nns/pricinggrid/grid_tab_active_left.gif');

switchSpecificElementSource('right_image_tab_',currentActivePfid,'/vp/images/nns/pricinggrid/grid_tab_inactive_right.gif');
switchSpecificElementSource('right_image_tab_',newActivePfid,'/vp/images/nns/pricinggrid/grid_tab_active_right.gif');

switchSpecificElementClass('top_tab_',currentActivePfid,'grid-tab-inactive','grid-tab-active');
switchSpecificElementClass('top_tab_',newActivePfid,'grid-tab-active','grid-tab-inactive');

switchSpecificElementClass('top_left_tab_',currentActivePfid,'grid-top-left-inactive','grid-top-left-active');
switchSpecificElementClass('top_left_tab_',newActivePfid,'grid-top-left-active','grid-top-left-inactive');

switchSpecificElementClass('top_right_tab_',currentActivePfid,'grid-top-right-inactive','grid-top-right-active');
switchSpecificElementClass('top_right_tab_',newActivePfid,'grid-top-right-active','grid-top-right-inactive');

switchSpecificElementClass('left_tab_',currentActivePfid,'grid-tab-inactive','grid-tab-active');
switchSpecificElementClass('left_tab_',newActivePfid,'grid-tab-active','grid-tab-inactive');

switchSpecificElementClass('right_tab_',currentActivePfid,'grid-tab-inactive','grid-tab-active');
switchSpecificElementClass('right_tab_',newActivePfid,'grid-tab-active','grid-tab-inactive');

switchSpecificElementClass('tab_',currentActivePfid,'grid-tab-content-inactive');
switchSpecificElementClass('tab_',newActivePfid,'grid-tab-content-active');

switchSpecificElementDisplay('pricing_table_',currentActivePfid,'none');
switchSpecificElementDisplay('pricing_table_',newActivePfid,'block');

switchSpecificElementDisplay('al_text_',currentActivePfid,'none');
switchSpecificElementDisplay('al_text_',newActivePfid,'block');

switchSpecificElementDisplay('ccc_tc_',currentActivePfid,'none');
switchSpecificElementDisplay('ccc_tc_',newActivePfid,'block');

if(document.getElementById('ccc_tab_'+(currentActivePfid-632)))
{
switchForSmallBusinessCreditCard();
}

switchSpecificElementClass('bot_right_tab_',currentActivePfid,'grid-bot-inactive','grid-bot-active');
switchSpecificElementClass('bot_right_tab_',newActivePfid,'grid-bot-active','grid-bot-inactive');

switchSpecificElementClass('bot_left_tab_',currentActivePfid,'grid-bot-inactive','grid-bot-active');
switchSpecificElementClass('bot_left_tab_',newActivePfid,'grid-bot-active','grid-bot-inactive');

switchSpecificElementDisplay('additional_options_',currentActivePfid,'none');
switchSpecificElementDisplay('additional_options_',newActivePfid,'block');

switchSpecificElementDisplay('divProductMarquee_',currentActivePfid,'none');
switchSpecificElementDisplay('divProductMarquee_',newActivePfid,'block');

switchSpecificElementDisplay('divAdditionalSpecs_',currentActivePfid,'none');
switchSpecificElementDisplay('divAdditionalSpecs_',newActivePfid,'block');

switchSpecificElementDisplay('ArtWorkSpecs_',currentActivePfid,'none');
switchSpecificElementDisplay('ArtWorkSpecs_',newActivePfid,'block');

switchSpecificTableRowVisibility('productSizeRow_','productSizeHeaderRow',newActivePfid);

switchSpecificTableRowVisibility('productSizeRow1_','productSizeHeaderRow1',newActivePfid);

switchSpecificTableRowVisibility('productSizeRow2_','productSizeHeaderRow',newActivePfid);

switchSpecificTableRowVisibility('productSizeRow3_','productSizeHeaderRow1',newActivePfid);

switchSpecificElementDisplay('overlayProductContainer_',currentActivePfid,'none');
switchSpecificElementDisplay('overlayProductContainer_',newActivePfid,'block');

switchSpecificElementDisplay('spanSizeHeader_',currentActivePfid,'none');
switchSpecificElementDisplay('spanSizeHeader_',newActivePfid,'block');

switchSpecificElementDisplay('divOtherInfo_',currentActivePfid,'none');
switchSpecificElementDisplay('divOtherInfo_',newActivePfid,'block');

switchSpecificElementDisplay('tblDocumentSpecsTable_',currentActivePfid,'none');
switchSpecificElementDisplay('tblDocumentSpecsTable_',newActivePfid,'block');

var ran_number=Math.round(Math.random()*10000);

if(document.getElementById('toggleSpotLight'))
{
document.getElementById('toggleSpotLight').src='/vp/spot.aspx?Log=1&vsref=toggle_action&pf_id='+newActivePfid+'&xref=pp_toggleaction_'+newActivePfid+'&rand='+ran_number;
}

var i;
for(i=0;i<changeHandlers.length;i++)
{
changeHandlers[i](newActivePfid,currentActivePfid);
}
currentActivePfid=newActivePfid;

if(!bIsSizeTab)
{
SetPricingTab(newActivePfid);
}
}

setAllGenericPfidDependentTabs(newActivePfid);


$('.toggleable-product-info').css({'display':'none'});
var pfidElements=$('.toggleable-product-info-pfid-'+newActivePfid);
if(pfidElements.length)
{
pfidElements.css({'display':'block'});
}
else
{
$('.toggleable-product-info-pfid-default').css({'display':'block'});
}

try{vp.controls.uploadSelector.selectProduct(newActivePfid);}
catch(error){}
try{vp.controls.largemarquee.switchConstantData(newActivePfid);}
catch(error){}
try{vp.controls.availablesizes.selectPfid(newActivePfid);}
catch(error){}
}switchActivePfid._vpfn='$vpfn__Zu3qxuq_QORxTpp2bSt0Q156$0';

function showMoreQuantities(pfid)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(!pfid)
{
pfid=currentActivePfid;
}
$('#show_more_'+pfid).hide();
var i=5;
var elId='pricing_table_mq_'+pfid+'_'+i;
while(document.getElementById(elId))
{
var rowId='#pricing_table_mq_'+pfid+'_'+i;
$(rowId).show();
i++;
elId='pricing_table_mq_'+pfid+'_'+i;
}
}showMoreQuantities._vpfn='$vpfn_asvz3YLdb7voCr0_FRxC7g284$0';

function showMoreQuantitiesNew(auxpfid,pfid)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(!pfid)
{
pfid=currentActivePfid;
}
$('#'+auxpfid+'_pricing_table_'+pfid+' .showMoreLink').each(function $vpfn_VXhSXqi3x6ec21EwkzAeWQ308$72(index,Element){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}$(Element).hide();});
$('#'+auxpfid+'_pricing_table_'+pfid+' .trHighQuantity').each(function $vpfn_VXhSXqi3x6ec21EwkzAeWQ309$74(index,Element){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}$(Element).show();});
}showMoreQuantitiesNew._vpfn='$vpfn_eXUtPSUiHXrRZXa4MwQ_AA302$0';

function showPricingTable(auxpfid,pfid,imageClass,pricingClass,bottomLineClass){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var pricingTableId='#'+auxpfid+'_pricing_table_'+pfid;
var quantityForPriceClass='.'+pricingClass;
var imageCssClass='.'+imageClass;

$(pricingTableId).toggleClass('pricing-table').toggle();
$(quantityForPriceClass).toggle();

var height=$(imageCssClass).height();
var width=$(imageCssClass).width();

if($(pricingTableId).is(':visible')){
$("tr."+bottomLineClass+" td").css({'border-bottom':'none'});
$(imageCssClass).attr('src',vp.ui.imageUrl('/vp/images/b09/common/bullet/arrow_bullet_down_02.gif'));
changeImageSize(imageCssClass,width,height);
}
else{
$("tr."+bottomLineClass+" td").css({'border-bottom':'1px solid #BEC3C5'});
$(imageCssClass).attr('src',vp.ui.imageUrl('/vp/images/b09/common/bullet/arrow_bullet_01.gif'));
changeImageSize(imageCssClass,width,height);
}

resizeDialogContent();
}showPricingTable._vpfn='$vpfn_oknIh0IbpKiNnEVvu8fQ7Q312$0';

function resizeDialogContent(){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
oDialog=vp.dialog.getCurrent();
if(oDialog){
vp.dialog.resizeCurrentToContent(true);
}
}resizeDialogContent._vpfn='$vpfn_vN2dwABQJywtE9Mh3Hs_Lg337$0';

function changeImageSize(elementId,width,height){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
$(elementId).height(width);
$(elementId).width(height);
}changeImageSize._vpfn='$vpfn_H9023yLgRXTIvxQcjWh86g344$0';

function launchPriceCalcPop(cct,pfid)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(!pfid)
{
pfid=currentActivePfid;
}

if(cct)
{
window.open('/vp/manager/customercare_ns/calc/calc_popup_step2.aspx?xnav=ProductPage&product='+pfid,'_BLANK','location=no, toolbar=no, menubar=no, height=600, width=680, scrollbars=yes, resizable=yes');
}
else
{
window.open('/vp/ns/calc/calc_popup_step2.aspx?xnav=ProductPage&product='+pfid,'_BLANK','location=no, toolbar=no, menubar=no, height=600, width=680, scrollbars=yes, resizable=yes');
}
}launchPriceCalcPop._vpfn='$vpfn_lZmf8Qf95QD4DrFTbcuX1w349$0';

function launchMailingCalcPop(cct){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
window.open('/vp/ns/calc/mailing_calc.aspx?','_BLANK','location=no, toolbar=no, menubar=no, height=600, width=600, scrollbars=yes, resizable=yes');

}launchMailingCalcPop._vpfn='$vpfn_ARc0bEFdQn3FIPxzht5xEg366$0';

function launchMailingROICalcPop(){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
window.open('/vp/ns/mailing_services/roicalc.aspx?','_BLANK','location=no, toolbar=no, menubar=no, height=600, width=600, scrollbars=yes, resizable=yes');
}launchMailingROICalcPop._vpfn='$vpfn_0mmWLfE900kZ9KHHqsyMHQ371$0';

function launchPriceCalcPopWithNoPfid(){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(cct)
{
window.open('/vp/manager/customercare_ns/calc/calc_popup_step2.aspx?xnav=ProductPage','_BLANK','location=no, toolbar=no, menubar=no, height=600, width=680, scrollbars=yes, resizable=yes');
}
else
{
window.open('/vp/ns/calc/calc_popup_step2.aspx?xnav=ProductPage','_BLANK','location=no, toolbar=no, menubar=no, height=600, width=680, scrollbars=yes, resizable=yes');
}
}launchPriceCalcPopWithNoPfid._vpfn='$vpfn_mr7IO4S3caDkPOIGhY$YmQ375$0';

function highlightDesignOption(i_option,active){if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var l_arrowImg=null;
for(var i=0;i<i_option.childNodes.length;i++){
var l_child=i_option.childNodes[i];
if(vp.ui.hasClass(l_child,"design-option-selection-arrow")){
l_arrowImg=l_child;
break;
}
}
if(active){
i_option.style.backgroundImage="url(/vp/images/nns/common/background/yellow_box_rollover/gradient_tile.gif)";
if(l_arrowImg){
l_arrowImg.style.backgroundImage="url(/vp/images/nns/common/background/yellow_box_rollover/selection_arrow.gif)";
}
}else{
i_option.style.backgroundImage="none";
if(l_arrowImg){
l_arrowImg.style.backgroundImage="none";
}
}
}highlightDesignOption._vpfn='$vpfn_OmQoVvqcFIOpRv5TYBaUUg386$0';

function highlightDesignOptionRebranded(i_option,active)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
if(active)
{
i_option.className="design-option-highlight";
}
else
{
i_option.className="design-option";
}
}highlightDesignOptionRebranded._vpfn='$vpfn_qtNM05jB_jC0whQcOp$uPA408$0';


function hideQuoteCalc()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var link=document.getElementById("quoteCalcLink");
if(link)
{
link.style.display="none";
}
}hideQuoteCalc._vpfn='$vpfn_pko2QiU7dNemMqh6tnX68g421$0';

function showQuoteCalc()
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var link=document.getElementById("quoteCalcLink");
if(link)
{
link.style.display="block";
}
}showQuoteCalc._vpfn='$vpfn_QhRoPW4XnFw1XR8oX2U7Rw430$0';

function cancelEvent(e)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
vp.events.cancel(e);
}cancelEvent._vpfn='$vpfn_By_2YmicoEKXyk189pfcJA439$0';

var fullBleedTabEnabled={};
function toggleFullBleedTab(pfid)
{if(!window.__noTrace){__td[__ti]=arguments;__ti=__ti>=__MT?0:__ti+1;}
var header=vp.ui.get("fullbleedtab_header");
if(header)
{
var fbTab=vp.controls.Tab.get("fullbleedtab");

if(fullBleedTabEnabled[pfid]===1)
{
header.parentNode.style.display="";
fbTab.setDisabled(false);
}
else if(fullBleedTabEnabled[pfid]===0)
{
header.parentNode.style.display="none";
fbTab.setDisabled(true);

if(fbTab.isSelected())
{
var pdTabs=vp.controls.TabStrip.get("productDetailTabs").getTabs();
for(var i=0;i<pdTabs.length;i++)
{
if(!pdTabs[i].isDisabled())
{
pdTabs[i].setSelected(true);
break;
}
}
}
}
}
}toggleFullBleedTab._vpfn='$vpfn_nlS5e8DIVPwsJL5X47qtdQ445$0';

