$(document).ready(function(){$("#utility .wai a").focus(function(){$(this).parent().removeClass("wai")
}).click(function(){$("h2:eq(0)").attr("tabIndex",-1).focus()
});
$("#nav-primary .login a").click(function(){showDropMenu($("#login-menu"),"login",$(this).offset(),"btn-loginmenu");
return false
});
$("#cta .contact").click(function(){showDropMenu($("#contact-menu"),"cta",$(this).offset(),"btn-contactmenu");
return false
});
$("#btn-applyonlinefor").click(function(){showDropMenu($("#menu-applyonline"),"applyonline",$(this).offset(),"btn-applyonlinefor");
return false
});
$("#btn-mediareleases").click(function(){showDropMenu($("#menu-mediareleases"),"mediareleases",$(this).offset(),"btn-mediareleases");
return false
});
$(document).click(function(W){if(document.getElementById("active-menu")){removeDropMenu()
}});
$("#search-site input[type=text]").focus(function(){if(this.value==="I'm searching for..."){this.value=""
}$(this).toggleClass("focus")
}).blur(function(){if(this.value===""){this.value="I'm searching for..."
}$(this).toggleClass("focus")
});
if(navigator.userAgent.match("iPhone")==="iPhone"){$(".tel > a , a.tel").each(function(W){$(this).attr("href","tel:"+$(this).text())
})
}$("#taskbar .print, a.print").click(function(){window.print();
return false
});
$(window).load(function(){$('a[class*="should-popup"]').each(function(){var b=$(this);
var e=this.className;
var f=/should-popup\S*\w*/;
var i=e.match(f)[0];
var a=false;
var d=new Date();
var j="Westpac"+d.getTime();
var X="no",Z="no",W="no",c="no";
var h=800;
var Y=getScreenDimensions().sHeight-80;
switch(i){case"should-popup":b.attr("target","_blank");
a=true;
break;
case"should-popup-modless":h=600;
Y=800;
break;
case"should-popup-help":h=600;
Y=800;
break;
case"should-popup-basic":h=800;
Y=600;
Z="yes";
break;
case"should-popup-pdf":h=800;
Y=800;
break;
case"should-popup-600":h=600;
Y=600;
Z="yes";
break;
case"should-popup-700":h=700;
Y=600;
Z="yes";
break;
case"should-popup-video":c="yes";
b.attr("target","_blank");
a=true;
break;
case"should-popup-fullscreen":h=getScreenDimensions().sWidth;
Y=getScreenDimensions().sHeight;
break;
default:var g=i.toLowerCase().split("-")[2].split("x");
if(!isNaN(g[0])){if(isNaN(g[1])){h=g[0]
}else{h=g[0];
Y=g[1]
}}break
}if(!a){b.click(function(k){openModless(b.attr("href"),j,h,Y,X,Z,W,c);
k.preventDefault();
return false
})
}b.not(":has(span.wai)").append('<span class="wai"> (Opens in new window)</span>')
})
});
$("#main a.should-target-parent").click(function(X){X.preventDefault();
var W=$(this).attr("href");
sendURLToParent(W)
});
$("#taskbar .pdf").attr("target","_blank");
$("#main a.webcast, a.podcast, #content-primary a.pdf, #content-primary a.html, #main a.flash, #main a.word, #main a.excel").click(function(W){openModless(this.href,"Westpac_recource",800,646,"no","no","no");
return false
}).append('<i class="wai"> (Opens in new window)</i>');
$(".should-init-dbb").click(function(X){var Y=$("head meta[name='westpac:pagename']").attr("content");
var W=document.location;
setCookie("ddbT",Y,1);
setCookie("ddbL",W,1)
});
$(".closebox").click(function(){window.opener=null;
self.close();
return false
});
$(".backtotop > a").click(function(){window.scroll(0,0)
});
$(".section-landing .features ul:last").addClass("last");
$("h2:first,h3:first,h4:first,h5:first,h6:first",".cms-content").addClass("first");
$("h2:last,h3:last,h4:last,h5:last,h6:last",".cms-content").addClass("last");
$(".cms-content table").each(function(){$(this).find("tr:first > *").each(function(W){$(this).addClass("c"+(W+1))
})
});
$(".cms-content table tr").find(":first").addClass("first").end().find(":last").addClass("last").end().hover(function(){$(this).addClass("over")
},function(){$(this).removeClass("over")
});
$(".cms-content table tbody").find("tr:first").addClass("start").end().find("tr:last").addClass("end").end().find("tr:odd").addClass("odd").end().find("tr:even").addClass("even");
$(".cms-content ul.featured li:first").addClass("first");
if(jQuery.browser.msie&&(jQuery.browser.version<7)){$("#product-navigator .category-name").hover(function(){$(this).addClass("over")
},function(){$(this).removeClass("over")
})
}var B=function(){var W=0;
$(this).find(".compare > input").each(function(){if($(this).attr("checked")){W++
}});
$(this).find(".compare-all").each(function(){if(W>1){$(this).attr({alt:"Compare selected",src:"/furniture/ui_imgs/productnavigator_btn_compareselected.png"}).removeClass("disabled").removeAttr("disabled")
}else{$(this).attr({disabled:"disabled",alt:"Compare selected: disabled until at least 2 products are selected",src:"/furniture/ui_imgs/productnavigator_btn_compareselected_disabled.png"}).addClass("disabled")
}})
};
var P=function(W){var X=false;
if($(this).attr("checked")){X=true
}else{X=false
}$(this).parents("form:eq(0)").find("input.select-all").each(function(){if(X){$(this).attr("checked",X)
}else{$(this).removeAttr("checked")
}});
$(this).parents("form:eq(0)").find(".compare > input").each(function(){$(this).attr("checked",X)
});
$(this).parents("form:eq(0)").each(B)
};
var Q=function(X){var W=true;
var Y=0;
$(this).parents("form:eq(0)").find(".compare > input").each(function(){if(!$(this).attr("checked")){W=false
}else{Y++
}});
$(this).parents("form:eq(0)").find("input.select-all").each(function(){if(W){$(this).attr("checked",W)
}else{$(this).removeAttr("checked")
}});
$(this).parents("form:eq(0)").find(".compare-all").each(function(){if(Y>1){$(this).attr({alt:"Compare selected",src:"/furniture/ui_imgs/productnavigator_btn_compareselected.png"}).removeClass("disabled").removeAttr("disabled")
}else{$(this).attr({disabled:"disabled",alt:"Compare selected: disabled until at least 2 products are selected",src:"/furniture/ui_imgs/productnavigator_btn_compareselected_disabled.png"}).addClass("disabled")
}})
};
$("#product-navigator form").each(B);
$("#product-navigator form").each(Q);
$("#product-navigator input.select-all").click(P);
$("#product-navigator .compare > input").click(Q);
$(".product-aggregate form.productAggComp").each(B);
$(".product-aggregate form.productAggComp input.select-all").click(P);
$(".product-aggregate form.productAggComp .compare > input").click(Q);
$(".product-aggregate form.productAggCatComp").each(B);
$(".product-aggregate form.productAggCatComp input.select-all").click(P);
$(".product-aggregate form.productAggCatComp .compare > input").click(Q);
$("#product-navigator li.selected").parents(".category-item").addClass("opened");
if($("#product-navigator li.category-item").length==1){$("#product-navigator li.category-item").addClass("opened")
}if(jQuery.browser.safari){$("#product-navigator .product-category .category-item:not(.opened) form").slideUp(0)
}else{$("#product-navigator .product-category .category-item:not(.opened) form").westpacSlideClose(0).parent().removeClass("opened")
}$("#product-navigator .product-category .category-name").click(function(X){X.preventDefault();
if(jQuery.browser.safari){var W=$(this).parents(".category-item");
var Y=500;
if(W.hasClass("opened")){W.find("form").slideUp(Y,function(){W.removeClass("opened")
});
return false
}if($("#product-navigator .opened").length){$("#product-navigator .opened").find("form").slideUp(Y,function(){$("#product-navigator .opened").removeClass("opened");
W.find("form").slideDown(Y);
W.addClass("opened");
$.scrollTo(W,Y*1.5)
})
}else{W.find("form").slideToggle(Y);
W.toggleClass("opened")
}}else{var W=$(this).parents(".category-item");
var Y=500;
if(W.hasClass("opened")){W.find("form").westpacSlideClose(Y,function(){W.removeClass("opened")
});
return false
}if($("#product-navigator .opened").length){$("#product-navigator .opened").find("form").westpacSlideClose(Y,function(){$("#product-navigator .opened").removeClass("opened");
W.find("form").westpacSlideOpen(Y);
W.addClass("opened");
$.scrollTo(W,Y*1.5)
})
}else{W.find("form").westpacSlideToggle(Y);
W.toggleClass("opened")
}}return false
});
$("#content-index").tabs();
var L=100;
$(".should-toggle-table").each(function(){$(this).addClass("should-toggle-table"+(""+L).substring(1,3));
$(this).text("Hide comparison rates");
L++
});
L=100;
$(".collapsibleTable").each(function(){$(this).addClass("collapsibleTable"+(""+L).substring(1,3));
L++
});
if($(".rates-aggregate").length>0){for(xx=100;
xx<=(L);
xx++){var C=".should-toggle-table"+(""+xx).substring(1,3);
var G=".collapsibleTable"+(""+xx).substring(1,3);
$(C).text("Show comparison rates");
$(G).each(function(W,X){X.style.display="none"
})
}}for(xx=100;
xx<=(L);
xx++){(function(){var W=".should-toggle-table"+(""+xx).substring(1,3);
var X=".collapsibleTable"+(""+xx).substring(1,3);
$(W).each(function(){$(this).click(function(Y){Y.preventDefault();
if($(this).text()=="Hide comparison rates"){$(this).text("Show comparison rates");
$(X).each(function(Z,a){a.style.display="none"
})
}else{$(this).text("Hide comparison rates");
$(X).each(function(Z,a){a.style.display=""
})
}})
})
})()
}if($(".footnotes").length>0&&$(".footnotes li").length>0){var O=$('<a class="should-toggle-footnotes" href="#"></a>').text("Close");
$(O).insertAfter(".footnotes");
$(".should-toggle-footnotes").click(function(){$(this).toggleClass("closed");
$(this).prev(".footnotes").slideToggle("fast");
if($(this).text()=="Open"){$(this).text("Close");
$(this).prev(".footnotes").find("li:eq(0)").queue(function(){$(this).attr("tabIndex",-1);
$(this).focus();
$(this).dequeue()
})
}else{$(this).text("Open")
}return false
})
}if($("#cta").length===0){$("#header-sectional h1").addClass("expanded")
}if($("#cta ul").length===0){$("#cta").addClass("no-buttons")
}if(!$("head meta[name='westpac:dbb']").length){deleteCookie("ddbT");
deleteCookie("ddbL")
}else{var E=getCookie("ddbT");
var H=getCookie("ddbL");
if(E==null||E==""){E="previous page"
}if(H!=null&&H!=""){$("#header-sectional").append('<div id="dbb"><a href="'+H+'">Back to '+E+"</a></div>")
}}if(typeof promosQueue==="object"){try{var I=promosQueue.left.length;
var J=promosQueue.right.length;
var T=$("#content-primary .c1 .promo-primary");
var V=$("#content-primary .c2 .promo-primary");
var A=getCookie("wbc-wt-promos");
if(A!=null){A=createJsonObject(A)
}var N=promosQueue.left[Math.floor(Math.random()*I)];
var D=promosQueue.right[Math.floor(Math.random()*J)];
if(A!=null&&A.slotA){N=promosQueue.left[I-1]
}if(A!=null&&A.slotB){D=promosQueue.right[J-1]
}var F=false;
if(!F&&N.image){var U=N.image.toString().match(/PAIR[\d]{1,}/);
if(U){var S=matchPromoPair(U,promosQueue.right);
if(S){D=S;
F=true
}}}if(!F&&D.image){var R=D.image.toString().match(/PAIR[\d]{1,}/);
if(R){var K=matchPromoPair(R,promosQueue.left);
if(K){N=K;
F=true
}}}setPromo(I,T,N);
setPromo(J,V,D);
if(A!=null){deleteCookie("wbc-wt-promos")
}}catch(M){}}if(typeof promosQueueSectionLanding==="object"){initPromo(promosQueueSectionLanding,"#content-primary .r2 .promo-primary")
}if(typeof promosQueueData==="object"){initPromo(promosQueueData,"#content-primary .row .promo-feature")
}if(typeof promosQueueData==="object"){initPromo(promosQueueData,"#content-secondary .item .sub-feature")
}$("#error-heading").focus();
if(jQuery.browser.msie&&(jQuery.browser.version<8)){$("input").each(function(){var W=$(this).attr("type");
$(this).addClass(W)
})
}$("#wgt-locateus-form #searchInput").addPlaceholder("Enter suburb or postcode");
$("#cta-panel").next().addClass("first");
$("#cta-panel div:last-child").removeClass("with-divider")
});
function matchPromoPair(C,D){for(var E=0;
E<D.length;
E++){var A=D[E];
for(var B in A){if(A[B].indexOf(C)>-1){return A
}}}return null
}function openModless(E,F,C,K,I,J,G,B){var K=K||"800",C=C||"800",F=F||"NewWindow";
var H=H||"no",J=J||"no",G=G||"no",B=B||"no";
var D=getScreenDimensions();
sFeatures="height="+K+"px,width="+C+"px";
sFeatures+=",left="+(D.sX-(C/2))+"px";
sFeatures+=",top="+(D.sY-(K/2))+"px";
sFeatures+=",toolbar="+I;
sFeatures+=",location="+J;
sFeatures+=",menubar="+G;
sFeatures+=",status="+B;
sFeatures+=",resizable=yes,scrollbars=yes,copyhistory=no";
var A=window.open(E,F,sFeatures,true);
A.focus()
}function getScreenDimensions(){var D=screen.availHeight;
var C=screen.availWidth;
var B=C/2;
var A=D/2;
return{sWidth:C,sHeight:D,sX:B,sY:A}
}function showDropMenu(B,A,C,E){$("#psearchSuggest").slideUp(30);
if(document.getElementById("active-menu")){removeDropMenu()
}if(!document.getElementById("active-menu")){var D=B.clone().attr("id","active-menu").addClass(A).css({top:C.top,left:C.left+1});
$(document.body).append(D);
D.slideDown(100).queue(function(){var F=$("#active-menu a");
F.each(function(G){$(this).keydown(function(H){traverseActiveMenu(H,G,E)
})
});
$("#active-menu a:first").append('<i class="wai">. or make another choice with arrow key or return to page with Tab.</i>').focus().addClass("focused hasFocus");
$(this).dequeue()
})
}$("#active-menu").find("ul").mousemove(function(){$("#active-menu a.focused").removeClass("focused")
}).end().mouseout(function(F){if(!$("#active-menu a.focused").length){$("#active-menu a.hasFocus").addClass("focused")
}});
if(jQuery.browser.msie&&(jQuery.browser.version<8)){$("#active-menu a").attr("hideFocus","true")
}}function traverseActiveMenu(B,D,C){var A=$("#active-menu a").length;
switch(B.which){case 9:removeDropMenu();
document.getElementById(C).focus();
B.preventDefault();
return false;
break;
case 40:if(D===(A-1)){}else{$("#active-menu a.focused").removeClass("focused hasFocus");
$("#active-menu a:eq("+(D+1)+")").focus().addClass("focused hasFocus")
}B.preventDefault();
return false;
break;
case 38:if(D===0){removeDropMenu();
document.getElementById(C).focus()
}else{$("#active-menu a.focused").removeClass("focused hasFocus");
$("#active-menu a:eq("+(D-1)+")").focus().addClass("focused hasFocus")
}return false;
break;
case 27:removeDropMenu();
document.getElementById(C).focus();
break;
default:break
}}function removeDropMenu(){$("#active-menu:visible").slideUp(30).queue(function(){$(this).remove()
})
}$(window).unload(function(){});
function setCookie(B,D,F,C){if(F){var A=new Date();
var E=F*24*60*60;
var H=E>0?E:0;
A.setTime(A.getTime()+E*1000);
var G="; expires="+A.toGMTString()+";Max-Age="+H
}else{var G=""
}if(C){document.cookie=B+"="+D+G+";domain="+C+"; path=/"
}else{document.cookie=B+"="+D+G+"; path=/"
}}function getCookie(E){var B=E+"=";
var D=document.cookie.split(";");
for(var A=0;
A<D.length;
A++){var C=D[A];
while(C.charAt(0)==" "){C=C.substring(1,C.length)
}if(C.indexOf(B)==0){return C.substring(B.length,C.length)
}}return null
}function deleteCookie(D){var B=document.domain;
var A=B.split(".");
var C=jQuery.grep(A,function(E){return jQuery.inArray(E,["co","nz","com","au"])==-1
});
jQuery.each(C,function(E){var F=A.slice(E).join(".");
setCookie(D,"",-3,F);
setCookie(D,"",-3,"."+F)
});
setCookie(D,"",-3)
}function setLocalStore(B,C){try{amplify.store(B,C)
}catch(A){setCookie(B,C,360)
}}function getLocalStore(A){try{return amplify.store(A)
}catch(B){return getCookie(A)
}}function initPromo(A,C){if($(C).length>0){var B=A.promo.length;
setPromo(B,$(C),A.promo[Math.floor(Math.random()*B)])
}}function setPromo(H,B,E){if(E){var G=$(B);
G.empty();
var C=$('<img src="'+E.image+'" alt="'+E.alt+'" title="'+E.alt+'" />');
var D=$("<h2>"+E.title+"</h2>");
var A=$('<a href="'+E.link+'" class="'+E.linkclass+'"></a>');
if(E.body==undefined||E.body==""){G.append(C);
if(E.link&&E.link!=""){C.wrap(A)
}}else{if(E.body){if(E.image&&E.image!=""){G.append(C)
}G.append(D);
if(E.link&&E.link!=""){D.wrapInner(A)
}var F=$("<div />").html(E.body).text();
G.append(F)
}}}}function showWindowDialog(html,config){var thisScreen=new screenCenter();
var dialogContent=html;
var dialogShadow=$('<div id="popup-shadow"/>');
var dialog=$('<div id="popup-overlay"/>');
var dialogScroller=$('<div id="popup-overlay-scroller"/>');
var dialogBg=$('<div id="popup-overlay-backing"/>');
var dialogControl=$('<div class="popup-overlay-submit"><div class="group-left"></div><div class="group-right"></div></div>');
var btnPrimary=$('<button type="button" id="btnPrimary" title="OK" class="btn-arrow"></button>').html("<span>OK</span>");
var btnSecondary=$('<button type="button" id="btnSecondary" title="Cancel" class="link-plain"></button>').html("<span>Cancel</span>");
var maxHeight=300;
var heightOffset=180;
if(config&&config.width){dialog.css({width:config.width})
}if(config&&config.height){maxHeight=config.height
}if(config&&config.primaryLabel){btnPrimary.attr("title",config.primaryLabel);
btnPrimary.find("span").html(config.primaryLabel)
}if(config&&config.primaryCallback){btnPrimary.click(function(evt){eval(config.primaryCallback)(evt);
hideWindowDialog()
})
}else{btnPrimary.click(function(){hideWindowDialog()
})
}if(config&&config.primaryStyle){btnPrimary.addClass(config.primaryStyle)
}if(config&&config.secondaryLabel){btnSecondary.attr("title",config.secondaryLabel);
btnSecondary.find("span").html(config.secondaryLabel)
}if(config&&config.secondaryCallback){btnSecondary.click(function(evt){eval(config.secondaryCallback)(evt);
hideWindowDialog()
})
}else{btnSecondary.click(function(){hideWindowDialog()
})
}if(config&&config.secondaryStyle){btnSecondary.addClass(config.secondaryStyle)
}dialogControl.find(".group-right").append(btnPrimary);
if(config&&(config.hideSecondary||config.hideSecondary=="true")){}else{dialogControl.find(".group-left").append(btnSecondary)
}if(config&&(config.hideControl||config.hideControl=="true")){heightOffset=125
}if((Number(thisScreen.wh)-heightOffset)<maxHeight){maxHeight=Number(thisScreen.wh)-heightOffset
}dialogScroller.css({"max-height":maxHeight,height:maxHeight,overflow:"auto"}).attr("tabindex","-1").attr("role","dialog").attr("aria-labelledby","popup-overlay-scroller").attr("aria-live","assertive");
dialogScroller.append(dialogContent);
dialog.append(dialogScroller);
if(config&&(config.hideControl||config.hideControl=="true")){}else{dialog.append(dialogControl)
}var dialogClose=$("<button/>",{"class":"closebox",click:function(){hideWindowDialog()
},blur:function(){dialogScroller.focus()
}}).html("<span>X</span>").attr("title","Close window").attr("aria-label","Close window").appendTo(dialog);
var tabindexLoop=$("<button/>",{"class":"tabindexloop"}).html("<span>X</span>").appendTo(dialog);
if($("#popup-overlay").length==0){$(document.body).append(dialog)
}dialog.css("left",(thisScreen.dw)/2-($("#popup-overlay").width()/2));
if(jQuery.browser.msie){dialogBg.css({position:"absolute",top:0,left:0,width:"100%",height:Number(thisScreen.dh)});
dialog.css({position:"absolute",top:Number(thisScreen.scrollT)+60});
dialogShadow.css({position:"absolute",top:Number(thisScreen.scrollT)+60});
dialog.addBorderRadius({ne:true,sw:true,nw:true});
$(document.body).append(dialogShadow);
dialogShadow.css({left:(thisScreen.dw)/2-($("#popup-overlay").width()/2),height:dialog.outerHeight()});
if(jQuery.browser.version<7){$("#frm-content-primary select").css("visibility","hidden")
}}dialogScroller.focus();
$(document.body).append(dialogBg);
$("#popup-overlay-backing").animate({opacity:0.75},350).click(function(){hideWindowDialog()
});
dialog.keydown(function(e){if(e.keyCode==27){hideWindowDialog()
}})
}function hideWindowDialog(){$("#popup-overlay").remove();
$("#popup-shadow").remove();
$("#popup-overlay-backing").remove();
$("#frm-content-primary select").css("visibility","visible")
}function screenCenter(){this.sw=screen.availWidth;
this.sh=screen.availHeight;
this.scx=Math.floor(this.sw/2);
this.scy=Math.floor(this.sh/2);
this.dw=$(document).width();
this.dh=$(document).height();
this.scrollT=$(window).scrollTop();
this.ww=$(window).width();
this.wh=$(window).height()
}function newEl(E,C,D){var B=document.createElement(E);
if(C!==null&&C!==undefined){for(var A in C){switch(A.toLowerCase()){case"classname"||"class":B.className=C[A];
break;
case"colspan":B.colSpan=C[A];
break;
case"rowspan":B.rowSpan=C[A];
break;
case"htmlfor"||"for":B.htmlFor=C[A];
break;
default:B.setAttribute(A,C[A])
}}}if(typeof D==="string"||typeof D==="object"){$(B).append(D)
}return B
}function sendURLToParent(A){if(window.opener&&!window.opener.closed){window.opener.location=A;
self.close()
}else{window.open(A);
self.close()
}}function applyBTNow(){var A="https://online.westpac.com.au/sso/sps/btsfl/saml11/login?SP_PROVIDER_ID=bt.sv.pvd&TARGET=https%3A%2F%2Fbtsfl.bt.com.au%2Finvestor%2Fsso%2F[application link]%3Baccountid%3D%3Bbanner%3Dpwt%3Blastsignin%3B&PROTOCOL=POST";
document.cookie="boundary="+A+";domain=.westpac.com.au;path=/";
window.location=A
}function getBTReferrer(){refText="&referrer=";
curURL=document.location.href;
refStart=curURL.indexOf(refText);
if(refStart!=-1){return document.referrer
}else{return refText+curURL
}}jQuery.fn.westpacSlideClose=function(B,A){var C=(B)?B:450;
this.css("overflow","hidden").animate({height:0},C,"swing",A);
return this
};
jQuery.fn.westpacSlideOpen=function(D,B){var A=(D)?D:350;
var C=0;
this.children().each(function(){$(this).css("display","block");
C+=$(this).outerHeight(true)
});
this.animate({height:C},A,"swing",B);
return this
};
jQuery.fn.westpacSlideToggle=function(D,B){var A=(D)?D:null;
var C=this;
if($(C).height()>0){$(C).westpacSlideClose(A,B)
}else{$(C).westpacSlideOpen(A,B)
}return this
};
function supportsInputAttr(B){var A=document.createElement("input");
return B in A
}jQuery.fn.addPlaceholder=function(B){if(B!=undefined&&$(this).val()===""){$(this).val(B)
}var A=$(this).attr("value");
$(this).focus(function(){if(this.value===A){this.value=""
}$(this).toggleClass("focus")
}).blur(function(){if(this.value===""){this.value=A
}$(this).toggleClass("focus")
})
};
jQuery.fn.tabs=function(){var A="#content-primary";
var B=this;
this.parent().addClass("tabbed");
this.find("li a").bind("click",function(G,E){var F=$(G.target).attr("href");
$(G.target).parent().addClass("selected").siblings().removeClass("selected");
if($(F).length>-1){$(G.target).parents(".tabbed").find(A).children("div").each(function(){var H=$(this);
if(H.attr("id")===stripHash(F)){H.removeClass("hidden-section").addClass("display-section")
}else{H.removeClass("display-section").addClass("hidden-section")
}});
if($(G.target).parents("ul").find("li:first-child a").attr("href")===F){$(".display-section .col-left").removeClass("expand");
$(".display-section .col-right").removeClass("wai")
}else{$(".display-section .col-left").addClass("expand");
$(".display-section .col-right").addClass("wai")
}}if(E!=false){try{if(NTPT_PGEXTRA){NTPT_PGEXTRA="wbc-widget="
}ntptAddPair("wbc-ev-options",stripHash(F));
ntptEventTag("ev=tabclick")
}catch(D){}setHash(F)
}else{if($("html, body").scrollTop()>0){setTimeout(function(){$("html, body").scrollTop(0)
},100)
}}return false
});
$(".tabbed #content-primary a").click(function(){var D=$(this).attr("href");
if(D.indexOf("#")>-1&&D.indexOf("/")==-1){B.find("li a[href="+D+"]").trigger("click");
return false
}});
var C=$(this).find("li:eq(0) a").attr("href");
if(window.location.hash){C=window.location.hash
}$(this).find("li a[href="+C+"]").trigger("click",[false])
};
jQuery(function(){jQuery.support.borderRadius=false;
jQuery.each(["borderRadius","BorderRadius","MozBorderRadius","WebkitBorderRadius","OBorderRadius","KhtmlBorderRadius"],function(){if(document.body.style[this]!==undefined){jQuery.support.borderRadius=true
}return(!jQuery.support.borderRadius)
})
});
jQuery.fn.addBorderRadius=function(A){if(!$.support.borderRadius&&this.length>0){this.css({display:"block",width:this.width()});
if(typeof (A)==="object"){if(A.ne){this.append('<span class="ne cnr"></span>')
}if(A.nw){this.append('<span class="nw cnr"></span>')
}if(A.se){this.append('<span class="se cnr"></span>')
}if(A.sw){this.append('<span class="sw cnr"></span>')
}}else{this.append('<span class="ne cnr"></span><span class="nw cnr"></span><span class="se cnr"></span><span class="sw cnr"></span>')
}}};
function stripHash(A){if(A){return A.replace(/^#/,"")
}}function setHash(A){A=stripHash(A);
var C,B=$("#"+A);
if(B.length){C=$("<div></div>").css({position:"absolute",visibility:"hidden",top:$(window).scrollTop()+"px"}).attr("id",A).appendTo(document.body);
B.attr("id","")
}document.location.hash=A;
if(B.length){C.remove();
B.attr("id",A)
}}var wbcPage=function(){var A={};
return{getParam:function(B,D){var C=D||",";
if(A[B]){return A[B].join(C)
}},addParam:function(F,E){if(A[F]){var C=A[F];
var H=E.substring(0,E.indexOf("="));
var D=E.substring(E.indexOf("=")+1);
if(H!=""){for(var G=0;
G<C.length;
G++){var B=-1;
if(C[G].indexOf(H)>-1){B=G;
break
}}if(B>-1){if(C[B].indexOf(D)==-1){C[B]+=","+D
}}else{C.push(E)
}}else{if(this.getParam(F).indexOf(E)==-1){A[F].push(E)
}}}else{this.setParam(F,E)
}},setParam:function(B,C){A[B]=new Array(C)
},removeParam:function(B){delete A[B]
}}
}();
window.onbeforeprint=replaceLogosBeforePrint;
window.onafterprint=replaceLogosAferPrint;
function replaceLogosBeforePrint(){if((jQuery.browser.msie)&&(jQuery.browser.version<7)){$("body").addClass("oldIE");
$("#logo-w").attr("src","/furniture/ui_imgs/logo_W_plain_redonwhite.png");
$("body").append('<img id="oldIEPrint" src="/furniture/ui_imgs/logo_westpac_hardcrop.png">')
}}function replaceLogosAferPrint(){if((jQuery.browser.msie)&&(jQuery.browser.version<7)){$("body").removeClass("oldIE");
$("#logo-w").attr("src","/furniture/ui_imgs/logo_W_8b_a.png");
$("#oldIEPrint").remove()
}}function uj_SubmitFormTransferOut(B,A){uj_setCookie("boundary",B,"","/","westpac.com.au");
window.location=A
}function uj_setCookie(A,C,G,F,B,E){var H=new Date();
H.setTime(H.getTime());
if(G){G=G*1000*60*60*24
}var D=new Date(H.getTime()+(G));
document.cookie=A+"="+escape(C)+((G)?";expires="+D.toGMTString():"")+((F)?";path="+F:"")+((B)?";domain="+B:"")+((E)?";secure":"")
}function createJsonObject(data){var jsonObject;
try{jsonObject=eval("("+data+")")
}catch(e){jsonObject=null
}return jsonObject
};
