function changeLink(A){if(A!="nullOption"){document.getElementById("useful").action=A;
document.getElementById("useful").submit()
}}function openPopUPRes(C,B,A){msg=window.open(C,"PopUp","width="+B+" ,height="+A+",directories=no,location=no,menubar=no,scrollbars=yes,resizable=yes,status=no,toolbar=no,systemmenu=no");
msg.focus()
}function openPopUPFlash(C,B,A){msg=window.open(C,"PopUp","width="+B+" ,height="+A+",directories=no,location=no,menubar=no,scrollbars=yes,resizable=no,status=no,toolbar=no,systemmenu=no");
msg.focus()
}function openPopUPNoScroll(C,B,A){msg=window.open(C,"PopUp","width="+B+" ,height="+A+",directories=no,location=no,menubar=no,scrollbars=no,resizable=no,status=no,toolbar=no,systemmenu=no");
msg.focus()
}function openPopUP(A){msg=window.open(A,"PopUp","width=616,height=600,directories=no,location=no,menubar=no,scrollbars=yes,resizable=no,status=no,toolbar=no,systemmenu=no");
msg.focus()
}function openPopUPAnnex(A){msg=window.open(A,"PopUp","width=656,height=600,directories=no,location=no,menubar=no,scrollbars=yes,resizable=no,status=no,toolbar=no,systemmenu=no");
msg.focus()
}var jest_flash=0;
if(navigator.mimeTypes&&navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){jest_flash=1
}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("MSIE")>=0&&(navigator.userAgent.indexOf("Windows 95")>=0||navigator.userAgent.indexOf("Windows 98")>=0||navigator.userAgent.indexOf("Windows NT")>=0)){document.write('<SCRIPT LANGUAGE=VBScript> \n on error resume next \n jest_flash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))\n if ( jest_flash <= 0 ) then jest_flash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n if ( jest_flash <= 0 ) then jest_flash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n if ( jest_flash <= 0 ) then jest_flash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n if ( jest_flash <= 0 ) then jest_flash = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")))\n </SCRIPT> \n')
}}function getOffsetTopElement(A){var B={x:0,y:0,h:0,w:0};
B.w=A.offsetWidth;
B.h=A.offsetHeight;
while(A&&A.tagName.toLowerCase()!="body"){B.x+=A.offsetLeft;
B.y+=A.offsetTop;
A=A.offsetParent
}return B
}function prepareForPrint(A){op=window.opera;
if(op){window.onload=window.print
}else{window.print()
}document.getElementById(A).style.height=document.body.scrollHeight
}function showAllCompare(){$$("div.hide_box").each(function(A){A.show();
A.previous("table").down("a").innerHTML='<img src="/b/tp/static/minus.gif" alt=""/> '
})
}function limitText(B,A){B.value=B.value.slice(0,A)
}function writeToLayer(A,B){if(document.all){document.all[A].innerHTML=B
}else{over=document.getElementById(A);
range=document.createRange();
range.setStartBefore(over);
domfrag=range.createContextualFragment(B);
while(over.hasChildNodes()){over.removeChild(over.lastChild)
}over.appendChild(domfrag)
}}var alertVisible=false;
function countLength(D,F,A,G){var B=F.value.length;
if(B>D&&!alertVisible){alertVisible=true;
alert(G);
alertVisible=false;
F.value=F.value.substring(0,D);
B=F.value.length
}var C=D-B;
var E=(C>=0)?C:0;
writeToLayer(A,E)
}function countLengthNoInfo(B,C){var A=C.value.length;
if(A>B){C.value=C.value.substring(0,B);
A=C.value.length
}}var NS=(document.layers)?1:0;
var NS6=(document.getElementById)?1:0;
var IE=(document.all)?1:0;
var isIE=navigator.appVersion.match(/msie/i)?1:0;
var isIE50=navigator.appVersion.match(/msie 5\.0/i)?1:0;
function getLayer(A){if(A==undefined){return undefined
}if(NS){return document[A]
}else{if(NS6){return document.getElementById(A)
}else{if(IE){return document.all[A]
}}}}function getLayerStyle(A){if(name==undefined){return undefined
}if(NS){return A
}else{if(NS6){return A.style
}else{if(IE){return A.style
}}}}function createDivPr(A){var B=document.createElement("DIV");
B.className=A;
getLayerStyle(B).visibility="hidden";
return B
}var prDiv=0;
function processRequest(A,I,D,F){if(!document.appendChild||!document.createElement){return 
}var E=getLayer(A);
if(!prDiv){prDiv=createDivPr("processRequest");
prDiv.style.textAlign="center";
prDiv.style.backgroundColor="white";
prDiv.style.position="absolute";
prDiv.style.zIndex="9";
var B=document.createElement("IMG");
B.src="/b/tp/static/please_wait.gif";
prDiv.appendChild(B);
E.appendChild(prDiv)
}if(E){var H=getOffsetTopElement(E);
var C=(I?I:H.w);
var G=(D>H.h?D:H.h);
showDiv(prDiv,H.x,H.y,C,G);
if(!F==true){E.style.display="none"
}prDiv.parentLayer=E
}}function processRequestOff(B){var A=getLayer(B);
if(prDiv){getLayerStyle(prDiv).visibility="hidden";
if(!B){prDiv.parentLayer.style.display="block"
}showFormElements()
}if(A){A.style.display="block"
}}function showDiv(F,E,D,C,A){var B=getLayerStyle(F);
B.position="absolute";
B.left=E+"px";
B.top=D+"px";
B.width=C+"px";
B.height=A+"px";
setupChilds(F);
B.visibility="visible";
hideFormElements(F)
}function setupChilds(E){if(E.hasChildNodes()){var G=E.offsetHeight/2;
var C=E.childNodes;
for(var D=0;
D<C.length;
D++){var B=C[D];
var A=B.offsetHeight/2;
var F=getLayerStyle(B);
if(F){F.position="relative";
F.top=(G-A)+"px"
}}}}var formElementsOff=Array();
function hideFormElements(B){if(!IE){return 
}showFormElements();
var A=new Array();
var D=0;
A[D++]=document.getElementsByTagName("select");
var C=getOffsetTopElement(B);
formElementsOff=new Array();
m=0;
for(k=0;
k<A.length;
k++){for(i=0;
i<A[k].length;
i++){offsetElement=getOffsetTopElement(A[k][i]);
if(offsetElement.y<C.y+C.h&&offsetElement.y+offsetElement.h>C.y&&offsetElement.x<C.x+C.w&&offsetElement.x+offsetElement.w>C.x){formElementsOff[m++]=A[k][i];
A[k][i].style.visibility="hidden"
}}}}function showFormElements(){if(!IE){return 
}for(k=0;
k<formElementsOff.length;
k++){formElementsOff[k].style.visibility="visible"
}formElementsOff=Array()
}var elementsInfoArray=Array();
function showButton(B,D){var E=elementsInfoArray[B];
var A=elementsInfoArray[D];
if(!A){A=getLayer(D)
}if(getLayerStyle(A).visibility=="visible"){debug("element is visible");
return 
}if(!E){E=getLayer(B);
getLayerStyle(E).position="relative";
elementsInfoArray[B]=E
}var G=E.offsetHeight;
var C=E.scrollTop;
var F=E.scrollHeight;
if(F<=(C+G)){debug("showEl");
getLayerStyle(A).backgroundImage="url(/b/static/button/akceptuje.gif)";
A.removeAttribute("disabled")
}}var debugOn=0;
var debugI=0;
function debug(B){if(!debugOn){return 
}var C="debug";
var A=elementsInfoArray[C];
if(!A){A=getLayer(C);
elementsInfoArray[C]=A
}A.value=debugI+": "+B+"\n"+A.value;
debugI+=1
}var nparam="";
function openCalendar(A){var B=window.open("/b/calendar/ecare_calendar.html","calendar","width=226,height=182,resizable=no,scrollbars=no");
B.focus();
nparam=A
}function topLayerStart(){var B=document.body.getElementsByTagName("select");
if(B){for(var A=0;
A<B.length;
A++){B[A].style.visibility="hidden"
}}}function topLayerStop(){if(document.getElementById("toplayer")){document.getElementById("toplayer").style.display="none"
}var B=document.body.getElementsByTagName("select");
if(B){for(var A=0;
A<B.length;
A++){B[A].style.visibility="visible"
}}}function autoTab(B,A,F,C){var E=F.keyCode;
var D=[0,8,9,16,17,18,37,38,39,40,46];
if(B.value.length>=A&&!containsElement(D,E)){if(document.getElementById(C)){document.getElementById(C).focus()
}}}function containsElement(A,D){var C=false,B=0;
while(!C&&B<A.length){if(A[B]==D){C=true
}else{B++
}}return C
}function openNewWindow(A){wnd=window.open(A,"_blank");
wnd.focus()
}function changeFontSize(A){var B=new Array("service-box","article-box","promotion-box");
if(B.length>0){for(i=0;
i<B.length;
i++){if(document.getElementById(B[i])!=null){changeElemFontSize(B[i],A)
}}}}function changeElemFontSize(D,B){var A=new Array("12px","14px","16px");
if(B<0){B=0
}if(B>2){B=2
}var C=document.getElementById(D);
C.style.fontSize=A[B];
if(B==1){document.getElementById("size1").className="size1";
document.getElementById("size2").className="size2 active";
document.getElementById("size3").className="size3"
}else{if(B==2){document.getElementById("size1").className="size1";
document.getElementById("size2").className="size2";
document.getElementById("size3").className="size3 active"
}else{document.getElementById("size1").className="size1 active";
document.getElementById("size2").className="size2";
document.getElementById("size3").className="size3"
}}setCookieValue("font_size",B)
}function getCookieValue(A){A+="=";
startIndex=document.cookie.indexOf(A);
if(startIndex==-1){return""
}startIndex+=A.length;
if(document.cookie.indexOf(";",startIndex)==-1){endIndex=document.cookie.length
}else{endIndex=document.cookie.indexOf(";",startIndex)
}cookieValue=document.cookie.substring(startIndex,endIndex);
cookieValue=unescape(cookieValue);
return cookieValue
}function setCookieValue(B,A){A=escape(A);
document.cookie=B+"="+A+"; path=/"
}function buttonHideClick(A,B){e=document.getElementById(A);
if(e.style.display=="none"){e.style.display="block";
B.innerHTML='<img src="/b/tp/static/minus.gif" alt=""/> '
}else{e.style.display="none";
B.innerHTML='<img src="/b/tp/static/plus.gif" alt=""/> '
}}function onlySameClick(C,A){for(var D=1;
D<=A;
D++){var E=document.getElementById("propertyTable_"+D);
var F=E.getElementsByTagName("tr");
if(C.checked==true){for(var B=0;
B<F.length;
B++){innerCels=F[B].getElementsByTagName("td");
if(checkCels(innerCels)){F[B].style.display="none"
}}}else{for(var B=0;
B<F.length;
B++){F[B].style.display=""
}}}}function checkCels(B){for(var C=1;
C<B.length;
C++){for(var A=1;
A<B.length;
A++){if(B[C].innerHTML!=B[A].innerHTML){return false
}}}return true
}changed=1;
loaded=0;
function powiadom(A){window.open("/buddy/?qr_page="+A,"","location=0,toolbar=0,status=0,scrollbars=1,resizable=1,width=440,height=470,top=200,left=200")
}function windowDruk(A){window.open(A,"","location=0,toolbar=0,status=0,scrollbars=1,resizable=1,width=600,height=400,top=20,left=20")
}function zwin(){document.getElementById("flashDivPuchar").style.height="200px"
}function rozwin(){document.getElementById("flashDivPuchar").style.height="450px"
}function buynow(){document.tp_cart.buy.value=1;
document.tp_cart.submit()
}var old="";
function checkNumber(A,C){a=A.value;
b="";
l=false;
if(old!=a){for(i=0;
i<a.length;
i++){if(!isNaN(a.substr(i,1))){b+=a.substr(i,1)
}else{l=true
}}var B;
B=navigator.appName;
B=B.toLowerCase();
if(B=="netscape"&&l==true){A.value=b;
if(C==0){A.blur()
}}else{if(B!="netscape"){A.value=b
}}old=b
}}function delItemFromCart(B){var A=document.getElementById("removalIds");
A.options[0]=new Option(B,B,false,true);
return true
}function autosubmit(C){var A=document.getElementById("removalIds");
A.options.length=0;
var B=(document.all)?event.keyCode:C.which;
if(B==13){document.getElementById("btn_przelicz_wartosc").click();
return false
}return true
}function moveToPurchaseClick(){var A=document.getElementById("removalIds");
A.options.length=0;
document.getElementById("btn_zamawiam").click();
return false
}function orderByRelationshipClick(){var A=document.getElementById("removalIds");
A.options.length=0;
var E=document.getElementById("skuidx").value;
var C=document.getElementById("catalogIds");
if((C.value!=null)&&(C.value!="")){var D=document.getElementById(E);
var B=document.getElementById("ilosc");
B.value=D.value
}document.getElementById("btn_przelicz_wartosc").click();
return false
}function updateQty(){var A=document.getElementById(itemId)
}function removeAndAddItemToOrder(H,B,E){var J=document.getElementById(H);
var A=document.getElementById(H+"_sku");
var C=document.getElementById("catalogIds");
C.value=A.value;
var G=document.getElementById("forChangeIds");
G.value=B;
var D=document.getElementById("col_prodID");
D.value=E;
var F=document.getElementById("ilosc");
F.value=J.value;
var I=document.getElementById("removalIds");
I.options.length=0;
document.getElementById("btn_change_color2").click();
return true
}function removeAndAddItemToOrder2(I,B,E){var H=document.getElementById("skuidx");
H.value=I;
var K=document.getElementById(I);
var A=document.getElementById(I+"_sku");
var C=document.getElementById("catalogIds");
C.value=A.value;
var G=document.getElementById("forChangeIds");
G.value=B;
var D=document.getElementById("col_prodID");
D.value=E;
var F=document.getElementById("ilosc");
F.value=K.value;
var J=document.getElementById("removalIds");
J.options.length=0;
document.forms.cartForm.btn_change_colour2.submit();
return false
}function setItemsForChange(B){var A=document.getElementById("forChangeIds");
A.options[A.options.length]=new Option(B,B,false,true);
removeAndAddItemToOrderClick()
}function removeAndAddItemToOrderClick(){document.getElementById("btn_change_color").click();
return false
}function showLoginInfo(C,A){var B=document.getElementById(C);
if(B!=null){B.style.display="block";
if(A){B.style.top=-B.clientHeight+5+"px";
B.style.left=-B.clientWidth+5+"px"
}}}function hideLoginInfo(B){var A=document.getElementById(B);
if(A!=null){A.style.display="none"
}}function showHelp(B){var A=document.getElementById(B);
if(A!=null){A.style.display="block"
}}function hideHelp(B){var A=document.getElementById(B);
if(A!=null){A.style.display="none"
}}function findPosX(A){var B=0;
if(A.offsetParent){while(1){B+=A.offsetLeft;
if(!A.offsetParent){break
}A=A.offsetParent
}}else{if(A.x){B+=A.x
}}return B
}function findPosY(B){var A=0;
if(B.offsetParent){while(1){A+=B.offsetTop;
if(!B.offsetParent){break
}B=B.offsetParent
}}else{if(B.y){A+=B.y
}}return A
}getWindowWidth=function(){var A=0;
if(typeof (window.innerWidth)=="number"){A=window.innerWidth
}else{if(document.documentElement&&(document.documentElement.clientWidth)){A=document.documentElement.clientWidth
}else{if(document.body&&(document.body.clientWidth)){A=document.body.clientWidth
}}}return A
};
getWindowHeight=function(){var A=0;
if(typeof (window.innerHeight)=="number"){A=window.innerHeight
}else{if(document.documentElement&&(document.documentElement.clientHeight)){A=document.documentElement.clientHeight
}else{if(document.body&&(document.body.clientHeight)){A=document.body.clientHeight
}}}return A
};
function showHelpWithPosition(D,F,C,G){var A=document.getElementById(D);
var E=findPosY(A);
var B=findPosX(A);
if(C){B+=C
}if(G){E+=G
}B=B+A.offsetWidth;
document.getElementById(F).style.position="absolute";
document.getElementById(F).style.top=E+"px";
document.getElementById(F).style.left=B+"px";
showHelp(F)
}function showTab(C,B){var A=document.getElementById("tab"+C);
var D=document.getElementById("box"+C);
if(A!=null&&D!=null){document.getElementById("tab"+B).className="";
document.getElementById("box"+B).style.display="none";
B=C;
document.getElementById("tab"+B).className="selected";
document.getElementById("box"+B).style.display="block"
}return B
}function formatTabs(B,A){var D=document.getElementById("tab0");
if(D!=null){D.className="selected";
var C=document.getElementById("box0");
if(C!=null){C.style.display="block"
}}}function setServiceMapColsHeight(){var E=0;
var D=document.getElementById("map-box");
var C=D.childNodes;
if(C!=null){var A=0;
for(var B=0;
B<C.length;
B++){if(C[B].className=="map-col"||C[B].className=="map-col first"){E=E+1;
if(C[B].clientHeight>A){A=C[B].clientHeight
}}}for(var B=1;
B<=E;
B++){document.getElementById("col"+B).style.height=A+"px"
}}}function setHomepageHeight(){var D=document.getElementById("lh2-main-box");
var C=D.childNodes;
if(C!=null){var A=0;
for(var B=0;
B<C.length;
B++){if(C[B].tagName=="DIV"&&C[B].id!=null){if(C[B].clientHeight>A){A=C[B].clientHeight
}}}if(A>0){D.style.overflow="visible";
D.style.height=A+"px"
}}}function headerHubFlashText(A){if(jest_flash){document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="35" id="headerHub" align="top"> \n<param name="allowScriptAccess" value="sameDomain" /> \n<param name="movie" value="/b/tp/flash/customizableFlashText.swf" /> \n<param name="quality" value="high" /> \n<param name="wmode" value="transparent" /> \n<param name="menu" value="false" /> \n<param name="bgcolor" value="#ffffff" /> \n<param name="FlashVars" value="headerText='+A+'&fontSize=30&fontColor=0x353535" /> \n<embed src="/b/tp/flash/customizableFlashText.swf" quality="high" bgcolor="#ffffff" width="500" height="35" wmode="transparent" name="headerHub" align="top" menu="false" FlashVars="headerText='+A+'&fontSize=30&fontColor=0x353535" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" /> \n</object>')
}else{document.writeln(A)
}}function headerHubColorFlashText(D,C,B,A){if(!A){A=35
}if(jest_flash){document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="'+A+'" id="headerHub" align="top"> \n<param name="allowScriptAccess" value="sameDomain" /> \n<param name="movie" value="/b/tp/flash/customizableFlashText.swf" /> \n<param name="quality" value="high" /> \n<param name="wmode" value="transparent" /> \n<param name="menu" value="false" /> \n<param name="bgcolor" value="#ffffff" /> \n<param name="FlashVars" value="headerText='+D+"&fontSize="+C+"&fontColor="+B+'" /> \n<embed src="/b/tp/flash/customizableFlashText.swf" quality="high" bgcolor="#ffffff" width="500" height="'+A+'" wmode="transparent" name="headerHub" align="top" menu="false" FlashVars="headerText='+D+"&fontSize="+C+"&fontColor="+B+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" /> \n</object>')
}else{document.writeln(D)
}}function headerHubColorFlashTextToId(E,D,C,A){var B=document.getElementById(E);
if(B){if(jest_flash){B.innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="35" id="headerHub" align="top"> \n<param name="allowScriptAccess" value="sameDomain" /> \n<param name="movie" value="/b/tp/flash/customizableFlashText.swf" /> \n<param name="quality" value="high" /> \n<param name="wmode" value="transparent" /> \n<param name="menu" value="false" /> \n<param name="bgcolor" value="#ffffff" /> \n<param name="FlashVars" value="headerText='+D+"&fontSize="+C+"&fontColor="+A+'" /> \n<embed src="/b/tp/flash/customizableFlashText.swf" quality="high" bgcolor="#ffffff" width="500" height="35" wmode="transparent" name="headerHub" align="top" menu="false" FlashVars="headerText='+D+"&fontSize="+C+"&fontColor="+A+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" /> \n</object>'
}else{B.innerHTML=D
}}}function disableFields(A){if(!document.getElementById("sameCorr")){return 
}var B=document.getElementById("sameCorr").checked;
document.getElementById("contact").streetCorr.disabled=B;
document.getElementById("contact").postCode1.disabled=B;
document.getElementById("contact").postCode2.disabled=B;
if(B){document.getElementById("contact").streetCorrNo.disabled=true;
document.getElementById("contact").flat.disabled=true;
document.getElementById("contact").streetText.disabled=true;
document.getElementById("contact").streetSelect.disabled=true;
document.getElementById("contact").checkboxStreet.disabled=true;
document.getElementById("contact").streetText.className="form-simple-disabled";
document.getElementById("contact").streetSelect.className="form-simple-disabled";
document.getElementById("contact").home.className="form-street-no-disabled";
document.getElementById("contact").flat.className="form-local-no-disabled";
document.getElementById("contact").postCode1.className="form-post-code1-disabled";
document.getElementById("contact").postCode2.className="form-post-code2-disabled";
if(!A){changeContactFieldsState("enable")
}}else{document.getElementById("contact").postCode1.className="form-post-code1";
document.getElementById("contact").postCode2.className="form-post-code2";
if(!A){changeContactFieldsState("disable");
document.getElementById("contact").checkboxStreet.disabled=true
}else{document.getElementById("contact").streetCorrNo.disabled=false;
document.getElementById("contact").flat.disabled=false;
document.getElementById("contact").home.className="form-street-no";
document.getElementById("contact").flat.className="form-local-no"
}changeCheckboxState()
}}function changeContactFieldsState(D){var C=(D=="disable");
var B=document.getElementById("contact-e-mail");
var A=document.getElementById("contact-pisemnie");
if(B&&A){B.disabled=C;
A.disabled=C
}document.getElementById("email").disabled=C;
document.getElementById("phone").disabled=C;
if(document.getElementById("graphicToken")){document.getElementById("graphicToken").disabled=C
}if(C){document.getElementById("email").style.backgroundColor="#c5c3c5";
document.getElementById("phone").style.backgroundColor="#c5c3c5";
if(document.getElementById("graphicToken")){document.getElementById("graphicToken").style.backgroundColor="#c5c3c5"
}}else{document.getElementById("email").style.backgroundColor="#fff";
document.getElementById("phone").style.backgroundColor="#fff";
if(document.getElementById("graphicToken")){document.getElementById("graphicToken").style.backgroundColor="#fff"
}}if(typeof (document.getElementById("contact").contactPerson)!="undefined"){document.getElementById("contact").contactPerson.disabled=C
}if(typeof (document.getElementById("contact").day)!="undefined"){document.getElementById("contact").day.disabled=C;
document.getElementById("contact").month.disabled=C;
document.getElementById("contact").year.disabled=C
}if(document.getElementById("contactFrom")&&document.getElementById("contactTo")){document.getElementById("contactFrom").disabled=C;
document.getElementById("contactTo").disabled=C;
if(document.getElementById("contactFrom-selectbox-wrapper")&&document.getElementById("contactTo-selectbox-wrapper")){TP.CustomForms.Controls.setSelectState("contactFrom",document.getElementById("contactFrom").value,C);
TP.CustomForms.Controls.setSelectState("contactTo",document.getElementById("contactFrom").value,C)
}}if(typeof (document.getElementById("contact").PIN)!="undefined"){document.getElementById("contact").PIN.disabled=C
}if(document.getElementById("contact").graphicToken){document.getElementById("contact").graphicToken.disabled=C
}if(typeof (document.getElementById("contactData"))!="undefined"){document.getElementById("contactData").className="form-enabled"
}if(typeof (document.getElementById("send"))!="undefined"){document.getElementById("send").className="button-complaints-send"
}}function addMeta(A,B){var C;
C=document.createElement("meta");
C.name=A;
C.content=B;
document.getElementsByTagName("head").item(0).appendChild(C)
}function addToMeta(B,A){B.content=B.content+";"+A
}function addWTMeta(A,B){elems=document.getElementsByTagName("meta");
wasMeta=0;
n_elems=elems.length;
for(i=0;
i<n_elems;
i++){if(elems[i].name==A){wasMeta=1;
addToMeta(elems[i],B)
}}if(wasMeta==0){addMeta(A,B)
}}var lazyScriptsArray=new Array();
function loadScriptsLazy(){for(var A=0;
A<lazyScriptsArray.length;
A++){var B=document.createElement("script");
B.src=lazyScriptsArray[A];
B.type="text/javascript";
document.body.appendChild(B)
}}updateOfferContactForm=function(A){Event.observe(window,"load",function(){new Ajax.Request("/prt/pl/offer_contact_form",{method:"get",parameters:{templateName:A},onSuccess:function(C){document.getElementById("offer-contact-form-box").innerHTML=C.responseText;
try{C.responseText.evalScripts()
}catch(B){}}})
})
};
includeOfferContactForm=function(A){document.write('<script type="text/javascript">/*<![CDATA[*/ var offerContactFormName ="'+A+'";/*]]>*/<\/script>');
document.write('<div id="offer-contact-form-box">&nbsp;</div>');
document.write('<script src="/b/tp/js/ajax/prototype.js" type="text/javascript"><\/script>');
document.write('<script src="/b/tp/js/offer-contact-form.js" type="text/javascript"><\/script>')
};
cutPrefix=function(A){if(A.match("^048")){A=A.replace("048","")
}var B=document.getElementById("phone");
if(B){B.value=A
}};
initLineInfoPopupLinks=function(){var B=$$("a.line-info-button");
var A="";
B.each(function(C){A+="'"+C.id+"':{a:'/slr/gear/services/ajax',p:'toUpdate=check-service-number-popup&toGet=check-service-availibility-box',c:TP.Ajax.popupCallback,pc:'ecare-popup'},"
});
TP.Ajax.ajaxifyLinks(A)
};
initBillingSystemPopupLinks=function(){var B=$$("a.invoice-billing-link");
var A="";
B.each(function(C){A+="'"+C.id+"':{a:'/slr/gear/useraccount/ajax',p:'toUpdate=get-invoice-billing-box&toGet=get-invoice-billing-box',c:TP.Ajax.popupCallback},"
});
TP.Ajax.ajaxifyLinks(A)
};
initGetInvoiceBillingServlet=function(A){window.location=A
};
updateFormUrlParam=function(){var A=$$("input.formUrlParam");
if(A!=undefined&&A.length>0){A[0].value=window.location.pathname+window.location.search
}};
function hideBanner(A){if(document.getElementById("toplayer")){document.getElementById("toplayer").style.display="none"
}setCookieValue(A,"closed")
}var swfobject=function(){var AQ="undefined",Ac="object",AB="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",Ad="application/x-shockwave-flash",AC="SWFObjectExprInst",AW="onreadystatechange",AF=window,Ak=document,Aa=navigator,AA=false,Z=[Am],Af=[],AG=[],AL=[],Ai,AD,AP,AS,AK=false,At=false,Ag,AN,Ah=true,AH=function(){var A=typeof Ak.getElementById!=AQ&&typeof Ak.getElementsByTagName!=AQ&&typeof Ak.createElement!=AQ,E=Aa.userAgent.toLowerCase(),C=Aa.platform.toLowerCase(),H=C?/win/.test(C):/win/.test(E),J=C?/mac/.test(C):/mac/.test(E),G=/webkit/.test(E)?parseFloat(E.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,D=!+"\v1",F=[0,0,0],K=null;
if(typeof Aa.plugins!=AQ&&typeof Aa.plugins[AB]==Ac){K=Aa.plugins[AB].description;
if(K&&!(typeof Aa.mimeTypes!=AQ&&Aa.mimeTypes[Ad]&&!Aa.mimeTypes[Ad].enabledPlugin)){AA=true;
D=false;
K=K.replace(/^.*\s+(\S+\s+\S+$)/,"$1");
F[0]=parseInt(K.replace(/^(.*)\..*$/,"$1"),10);
F[1]=parseInt(K.replace(/^.*\.(.*)\s.*$/,"$1"),10);
F[2]=/[a-zA-Z]/.test(K)?parseInt(K.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0
}}else{if(typeof AF.ActiveXObject!=AQ){try{var I=new ActiveXObject(X);
if(I){K=I.GetVariable("$version");
if(K){D=true;
K=K.split(" ")[1].split(",");
F=[parseInt(K[0],10),parseInt(K[1],10),parseInt(K[2],10)]
}}}catch(B){}}}return{w3:A,pv:F,wk:G,ie:D,win:H,mac:J}
}(),Aj=function(){if(!AH.w3){return 
}if((typeof Ak.readyState!=AQ&&Ak.readyState=="complete")||(typeof Ak.readyState==AQ&&(Ak.getElementsByTagName("body")[0]||Ak.body))){Ao()
}if(!AK){if(typeof Ak.addEventListener!=AQ){Ak.addEventListener("DOMContentLoaded",Ao,false)
}if(AH.ie&&AH.win){Ak.attachEvent(AW,function(){if(Ak.readyState=="complete"){Ak.detachEvent(AW,arguments.callee);
Ao()
}});
if(AF==top){(function(){if(AK){return 
}try{Ak.documentElement.doScroll("left")
}catch(A){setTimeout(arguments.callee,0);
return 
}Ao()
})()
}}if(AH.wk){(function(){if(AK){return 
}if(!/loaded|complete/.test(Ak.readyState)){setTimeout(arguments.callee,0);
return 
}Ao()
})()
}Ab(Ao)
}}();
function Ao(){if(AK){return 
}try{var B=Ak.getElementsByTagName("body")[0].appendChild(AR("span"));
B.parentNode.removeChild(B)
}catch(A){return 
}AK=true;
var D=Z.length;
for(var C=0;
C<D;
C++){Z[C]()
}}function AJ(A){if(AK){A()
}else{Z[Z.length]=A
}}function Ab(A){if(typeof AF.addEventListener!=AQ){AF.addEventListener("load",A,false)
}else{if(typeof Ak.addEventListener!=AQ){Ak.addEventListener("load",A,false)
}else{if(typeof AF.attachEvent!=AQ){Al(AF,"onload",A)
}else{if(typeof AF.onload=="function"){var B=AF.onload;
AF.onload=function(){B();
A()
}
}else{AF.onload=A
}}}}}function Am(){if(AA){Y()
}else{AM()
}}function Y(){var D=Ak.getElementsByTagName("body")[0];
var B=AR(Ac);
B.setAttribute("type",Ad);
var A=D.appendChild(B);
if(A){var C=0;
(function(){if(typeof A.GetVariable!=AQ){var E=A.GetVariable("$version");
if(E){E=E.split(" ")[1].split(",");
AH.pv=[parseInt(E[0],10),parseInt(E[1],10),parseInt(E[2],10)]
}}else{if(C<10){C++;
setTimeout(arguments.callee,10);
return 
}}D.removeChild(B);
A=null;
AM()
})()
}else{AM()
}}function AM(){var G=Af.length;
if(G>0){for(var H=0;
H<G;
H++){var C=Af[H].id;
var L=Af[H].callbackFn;
var A={success:false,id:C};
if(AH.pv[0]>0){var I=Ar(C);
if(I){if(AO(Af[H].swfVersion)&&!(AH.wk&&AH.wk<312)){AX(C,true);
if(L){A.success=true;
A.ref=AU(C);
L(A)
}}else{if(Af[H].expressInstall&&AT()){var E={};
E.data=Af[H].expressInstall;
E.width=I.getAttribute("width")||"0";
E.height=I.getAttribute("height")||"0";
if(I.getAttribute("class")){E.styleclass=I.getAttribute("class")
}if(I.getAttribute("align")){E.align=I.getAttribute("align")
}var F={};
var D=I.getElementsByTagName("param");
var K=D.length;
for(var J=0;
J<K;
J++){if(D[J].getAttribute("name").toLowerCase()!="movie"){F[D[J].getAttribute("name")]=D[J].getAttribute("value")
}}AE(E,F,C,L)
}else{Ae(I);
if(L){L(A)
}}}}}else{AX(C,true);
if(L){var B=AU(C);
if(B&&typeof B.SetVariable!=AQ){A.success=true;
A.ref=B
}L(A)
}}}}}function AU(B){var D=null;
var C=Ar(B);
if(C&&C.nodeName=="OBJECT"){if(typeof C.SetVariable!=AQ){D=C
}else{var A=C.getElementsByTagName(Ac)[0];
if(A){D=A
}}}return D
}function AT(){return !At&&AO("6.0.65")&&(AH.win||AH.mac)&&!(AH.wk&&AH.wk<312)
}function AE(F,D,H,E){At=true;
AP=E||null;
AS={success:false,id:H};
var A=Ar(H);
if(A){if(A.nodeName=="OBJECT"){Ai=An(A);
AD=null
}else{Ai=A;
AD=H
}F.id=AC;
if(typeof F.width==AQ||(!/%$/.test(F.width)&&parseInt(F.width,10)<310)){F.width="310"
}if(typeof F.height==AQ||(!/%$/.test(F.height)&&parseInt(F.height,10)<137)){F.height="137"
}Ak.title=Ak.title.slice(0,47)+" - Flash Player Installation";
var B=AH.ie&&AH.win?"ActiveX":"PlugIn",C="MMredirectURL="+AF.location.toString().replace(/&/g,"%26")+"&MMplayerType="+B+"&MMdoctitle="+Ak.title;
if(typeof D.flashvars!=AQ){D.flashvars+="&"+C
}else{D.flashvars=C
}if(AH.ie&&AH.win&&A.readyState!=4){var G=AR("div");
H+="SWFObjectNew";
G.setAttribute("id",H);
A.parentNode.insertBefore(G,A);
A.style.display="none";
(function(){if(A.readyState==4){A.parentNode.removeChild(A)
}else{setTimeout(arguments.callee,10)
}})()
}AZ(F,D,H)
}}function Ae(A){if(AH.ie&&AH.win&&A.readyState!=4){var B=AR("div");
A.parentNode.insertBefore(B,A);
B.parentNode.replaceChild(An(A),B);
A.style.display="none";
(function(){if(A.readyState==4){A.parentNode.removeChild(A)
}else{setTimeout(arguments.callee,10)
}})()
}else{A.parentNode.replaceChild(An(A),A)
}}function An(B){var D=AR("div");
if(AH.win&&AH.ie){D.innerHTML=B.innerHTML
}else{var E=B.getElementsByTagName(Ac)[0];
if(E){var A=E.childNodes;
if(A){var F=A.length;
for(var C=0;
C<F;
C++){if(!(A[C].nodeType==1&&A[C].nodeName=="PARAM")&&!(A[C].nodeType==8)){D.appendChild(A[C].cloneNode(true))
}}}}}return D
}function AZ(E,G,C){var D,A=Ar(C);
if(AH.wk&&AH.wk<312){return D
}if(A){if(typeof E.id==AQ){E.id=C
}if(AH.ie&&AH.win){var F="";
for(var I in E){if(E[I]!=Object.prototype[I]){if(I.toLowerCase()=="data"){G.movie=E[I]
}else{if(I.toLowerCase()=="styleclass"){F+=' class="'+E[I]+'"'
}else{if(I.toLowerCase()!="classid"){F+=" "+I+'="'+E[I]+'"'
}}}}}var H="";
for(var J in G){if(G[J]!=Object.prototype[J]){H+='<param name="'+J+'" value="'+G[J]+'" />'
}}A.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+F+">"+H+"</object>";
AG[AG.length]=E.id;
D=Ar(E.id)
}else{var B=AR(Ac);
B.setAttribute("type",Ad);
for(var K in E){if(E[K]!=Object.prototype[K]){if(K.toLowerCase()=="styleclass"){B.setAttribute("class",E[K])
}else{if(K.toLowerCase()!="classid"){B.setAttribute(K,E[K])
}}}}for(var L in G){if(G[L]!=Object.prototype[L]&&L.toLowerCase()!="movie"){Ap(B,L,G[L])
}}A.parentNode.replaceChild(B,A);
D=B
}}return D
}function Ap(B,D,C){var A=AR("param");
A.setAttribute("name",D);
A.setAttribute("value",C);
B.appendChild(A)
}function AV(A){var B=Ar(A);
if(B&&B.nodeName=="OBJECT"){if(AH.ie&&AH.win){B.style.display="none";
(function(){if(B.readyState==4){As(A)
}else{setTimeout(arguments.callee,10)
}})()
}else{B.parentNode.removeChild(B)
}}}function As(A){var B=Ar(A);
if(B){for(var C in B){if(typeof B[C]=="function"){B[C]=null
}}B.parentNode.removeChild(B)
}}function Ar(A){var C=null;
try{C=Ak.getElementById(A)
}catch(B){}return C
}function AR(A){return Ak.createElement(A)
}function Al(A,C,B){A.attachEvent(C,B);
AL[AL.length]=[A,C,B]
}function AO(A){var B=AH.pv,C=A.split(".");
C[0]=parseInt(C[0],10);
C[1]=parseInt(C[1],10)||0;
C[2]=parseInt(C[2],10)||0;
return(B[0]>C[0]||(B[0]==C[0]&&B[1]>C[1])||(B[0]==C[0]&&B[1]==C[1]&&B[2]>=C[2]))?true:false
}function AY(B,F,A,C){if(AH.ie&&AH.mac){return 
}var E=Ak.getElementsByTagName("head")[0];
if(!E){return 
}var G=(A&&typeof A=="string")?A:"screen";
if(C){Ag=null;
AN=null
}if(!Ag||AN!=G){var D=AR("style");
D.setAttribute("type","text/css");
D.setAttribute("media",G);
Ag=E.appendChild(D);
if(AH.ie&&AH.win&&typeof Ak.styleSheets!=AQ&&Ak.styleSheets.length>0){Ag=Ak.styleSheets[Ak.styleSheets.length-1]
}AN=G
}if(AH.ie&&AH.win){if(Ag&&typeof Ag.addRule==Ac){Ag.addRule(B,F)
}}else{if(Ag&&typeof Ak.createTextNode!=AQ){Ag.appendChild(Ak.createTextNode(B+" {"+F+"}"))
}}}function AX(A,C){if(!Ah){return 
}var B=C?"visible":"hidden";
if(AK&&Ar(A)){Ar(A).style.visibility=B
}else{AY("#"+A,"visibility:"+B)
}}function AI(B){var A=/[\\\"<>\.;]/;
var C=A.exec(B)!=null;
return C&&typeof encodeURIComponent!=AQ?encodeURIComponent(B):B
}var Aq=function(){if(AH.ie&&AH.win){window.attachEvent("onunload",function(){var A=AL.length;
for(var B=0;
B<A;
B++){AL[B][0].detachEvent(AL[B][1],AL[B][2])
}var D=AG.length;
for(var C=0;
C<D;
C++){AV(AG[C])
}for(var E in AH){AH[E]=null
}AH=null;
for(var F in swfobject){swfobject[F]=null
}swfobject=null
})
}}();
return{registerObject:function(A,E,C,B){if(AH.w3&&A&&E){var D={};
D.id=A;
D.swfVersion=E;
D.expressInstall=C;
D.callbackFn=B;
Af[Af.length]=D;
AX(A,false)
}else{if(B){B({success:false,id:A})
}}},getObjectById:function(A){if(AH.w3){return AU(A)
}},embedSWF:function(K,E,H,F,C,A,B,I,G,J){var D={success:false,id:E};
if(AH.w3&&!(AH.wk&&AH.wk<312)&&K&&E&&H&&F&&C){AX(E,false);
AJ(function(){H+="";
F+="";
var Q={};
if(G&&typeof G===Ac){for(var O in G){Q[O]=G[O]
}}Q.data=K;
Q.width=H;
Q.height=F;
var N={};
if(I&&typeof I===Ac){for(var P in I){N[P]=I[P]
}}if(B&&typeof B===Ac){for(var L in B){if(typeof N.flashvars!=AQ){N.flashvars+="&"+L+"="+B[L]
}else{N.flashvars=L+"="+B[L]
}}}if(AO(C)){var M=AZ(Q,N,E);
if(Q.id==E){AX(E,true)
}D.success=true;
D.ref=M
}else{if(A&&AT()){Q.data=A;
AE(Q,N,E,J);
return 
}else{AX(E,true)
}}if(J){J(D)
}})
}else{if(J){J(D)
}}},switchOffAutoHideShow:function(){Ah=false
},ua:AH,getFlashPlayerVersion:function(){return{major:AH.pv[0],minor:AH.pv[1],release:AH.pv[2]}
},hasFlashPlayerVersion:AO,createSWF:function(A,B,C){if(AH.w3){return AZ(A,B,C)
}else{return undefined
}},showExpressInstall:function(B,A,D,C){if(AH.w3&&AT()){AE(B,A,D,C)
}},removeSWF:function(A){if(AH.w3){AV(A)
}},createCSS:function(B,A,C,D){if(AH.w3){AY(B,A,C,D)
}},addDomLoadEvent:AJ,addLoadEvent:Ab,getQueryParamValue:function(B){var A=Ak.location.search||Ak.location.hash;
if(A){if(/\?/.test(A)){A=A.split("?")[1]
}if(B==null){return AI(A)
}var C=A.split("&");
for(var D=0;
D<C.length;
D++){if(C[D].substring(0,C[D].indexOf("="))==B){return AI(C[D].substring((C[D].indexOf("=")+1)))
}}}return""
},expressInstallCallback:function(){if(At){var A=Ar(AC);
if(A&&Ai){A.parentNode.replaceChild(Ai,A);
if(AD){AX(AD,true);
if(AH.ie&&AH.win){Ai.style.display="block"
}}if(AP){AP(AS)
}}At=false
}}}
}();
checkMaxLength=function(B,A,D){if(B){var C=(window.event)?event.keyCode:D.keyCode;
if(C==8||C==46){return true
}else{if(B.value){return(B.value.length<=A)
}else{return true
}}}else{return true
}};
function initializeRegistraion(A){if(!A){A=0
}setTimeout("TP.Ajax.clickLink('popup-registration')",A*1000)
}function toggleBlockage(J){var G=new String(document.getElementById(J).value);
if(G!=null){var I=G.split("-");
var C=(new Date(I[0],(I[1]-1),I[2])).getTime();
var F=new Date();
var B=F.getTime()+30*1000*60*60*24;
var H=false;
if(typeof $!="undefined"){H=true
}var A=(H&&$$(".suspend-date-wrapper").length>0?$$(".suspend-date-wrapper")[0]:null);
var D=document.getElementById("blockageEnabledCheckbox");
if(C>B){document.getElementById("validateBlockage").value="true";
if(A){A.addClassName("has-info")
}D.style.display="block"
}else{D.style.display="none";
document.getElementById("validateBlockage").value="false";
if(A){A.removeClassName("has-info")
}}var E=(H&&$$("#blockageEnabledCheckbox .error-message").length?$$("#blockageEnabledCheckbox .error-message")[0]:null);
if(E){if(A){A.addClassName("has-error")
}}else{if(A){A.removeClassName("has-error")
}}}}var tradesmanSearchInputClicked=false;
updateTradesmanSearchInputTip=function(B){var A=$("TradesmanSearchFormHandler-postalCode");
if(A!=undefined){if(B&&!tradesmanSearchInputClicked){A.value="";
tradesmanSearchInputClicked=true;
A.setStyle({color:"black"})
}if(!B){A.setStyle({color:"#474747"});
A.value="XX-XXX"
}}};
disablePageScrolling=function(){document.body.style.overflow="hidden"
};
enablePageScrolling=function(){document.body.style.overflow="auto"
};
function hideBanner(A){if(document.getElementById("toplayer")){document.getElementById("toplayer").style.display="none"
}setCookieValue(A,"closed")
}var swfobject=function(){var AQ="undefined",Ac="object",AB="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",Ad="application/x-shockwave-flash",AC="SWFObjectExprInst",AW="onreadystatechange",AF=window,Ak=document,Aa=navigator,AA=false,Z=[Am],Af=[],AG=[],AL=[],Ai,AD,AP,AS,AK=false,At=false,Ag,AN,Ah=true,AH=function(){var A=typeof Ak.getElementById!=AQ&&typeof Ak.getElementsByTagName!=AQ&&typeof Ak.createElement!=AQ,E=Aa.userAgent.toLowerCase(),C=Aa.platform.toLowerCase(),H=C?/win/.test(C):/win/.test(E),J=C?/mac/.test(C):/mac/.test(E),G=/webkit/.test(E)?parseFloat(E.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,D=!+"\v1",F=[0,0,0],K=null;
if(typeof Aa.plugins!=AQ&&typeof Aa.plugins[AB]==Ac){K=Aa.plugins[AB].description;
if(K&&!(typeof Aa.mimeTypes!=AQ&&Aa.mimeTypes[Ad]&&!Aa.mimeTypes[Ad].enabledPlugin)){AA=true;
D=false;
K=K.replace(/^.*\s+(\S+\s+\S+$)/,"$1");
F[0]=parseInt(K.replace(/^(.*)\..*$/,"$1"),10);
F[1]=parseInt(K.replace(/^.*\.(.*)\s.*$/,"$1"),10);
F[2]=/[a-zA-Z]/.test(K)?parseInt(K.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0
}}else{if(typeof AF.ActiveXObject!=AQ){try{var I=new ActiveXObject(X);
if(I){K=I.GetVariable("$version");
if(K){D=true;
K=K.split(" ")[1].split(",");
F=[parseInt(K[0],10),parseInt(K[1],10),parseInt(K[2],10)]
}}}catch(B){}}}return{w3:A,pv:F,wk:G,ie:D,win:H,mac:J}
}(),Aj=function(){if(!AH.w3){return 
}if((typeof Ak.readyState!=AQ&&Ak.readyState=="complete")||(typeof Ak.readyState==AQ&&(Ak.getElementsByTagName("body")[0]||Ak.body))){Ao()
}if(!AK){if(typeof Ak.addEventListener!=AQ){Ak.addEventListener("DOMContentLoaded",Ao,false)
}if(AH.ie&&AH.win){Ak.attachEvent(AW,function(){if(Ak.readyState=="complete"){Ak.detachEvent(AW,arguments.callee);
Ao()
}});
if(AF==top){(function(){if(AK){return 
}try{Ak.documentElement.doScroll("left")
}catch(A){setTimeout(arguments.callee,0);
return 
}Ao()
})()
}}if(AH.wk){(function(){if(AK){return 
}if(!/loaded|complete/.test(Ak.readyState)){setTimeout(arguments.callee,0);
return 
}Ao()
})()
}Ab(Ao)
}}();
function Ao(){if(AK){return 
}try{var B=Ak.getElementsByTagName("body")[0].appendChild(AR("span"));
B.parentNode.removeChild(B)
}catch(A){return 
}AK=true;
var D=Z.length;
for(var C=0;
C<D;
C++){Z[C]()
}}function AJ(A){if(AK){A()
}else{Z[Z.length]=A
}}function Ab(A){if(typeof AF.addEventListener!=AQ){AF.addEventListener("load",A,false)
}else{if(typeof Ak.addEventListener!=AQ){Ak.addEventListener("load",A,false)
}else{if(typeof AF.attachEvent!=AQ){Al(AF,"onload",A)
}else{if(typeof AF.onload=="function"){var B=AF.onload;
AF.onload=function(){B();
A()
}
}else{AF.onload=A
}}}}}function Am(){if(AA){Y()
}else{AM()
}}function Y(){var D=Ak.getElementsByTagName("body")[0];
var B=AR(Ac);
B.setAttribute("type",Ad);
var A=D.appendChild(B);
if(A){var C=0;
(function(){if(typeof A.GetVariable!=AQ){var E=A.GetVariable("$version");
if(E){E=E.split(" ")[1].split(",");
AH.pv=[parseInt(E[0],10),parseInt(E[1],10),parseInt(E[2],10)]
}}else{if(C<10){C++;
setTimeout(arguments.callee,10);
return 
}}D.removeChild(B);
A=null;
AM()
})()
}else{AM()
}}function AM(){var G=Af.length;
if(G>0){for(var H=0;
H<G;
H++){var C=Af[H].id;
var L=Af[H].callbackFn;
var A={success:false,id:C};
if(AH.pv[0]>0){var I=Ar(C);
if(I){if(AO(Af[H].swfVersion)&&!(AH.wk&&AH.wk<312)){AX(C,true);
if(L){A.success=true;
A.ref=AU(C);
L(A)
}}else{if(Af[H].expressInstall&&AT()){var E={};
E.data=Af[H].expressInstall;
E.width=I.getAttribute("width")||"0";
E.height=I.getAttribute("height")||"0";
if(I.getAttribute("class")){E.styleclass=I.getAttribute("class")
}if(I.getAttribute("align")){E.align=I.getAttribute("align")
}var F={};
var D=I.getElementsByTagName("param");
var K=D.length;
for(var J=0;
J<K;
J++){if(D[J].getAttribute("name").toLowerCase()!="movie"){F[D[J].getAttribute("name")]=D[J].getAttribute("value")
}}AE(E,F,C,L)
}else{Ae(I);
if(L){L(A)
}}}}}else{AX(C,true);
if(L){var B=AU(C);
if(B&&typeof B.SetVariable!=AQ){A.success=true;
A.ref=B
}L(A)
}}}}}function AU(B){var D=null;
var C=Ar(B);
if(C&&C.nodeName=="OBJECT"){if(typeof C.SetVariable!=AQ){D=C
}else{var A=C.getElementsByTagName(Ac)[0];
if(A){D=A
}}}return D
}function AT(){return !At&&AO("6.0.65")&&(AH.win||AH.mac)&&!(AH.wk&&AH.wk<312)
}function AE(F,D,H,E){At=true;
AP=E||null;
AS={success:false,id:H};
var A=Ar(H);
if(A){if(A.nodeName=="OBJECT"){Ai=An(A);
AD=null
}else{Ai=A;
AD=H
}F.id=AC;
if(typeof F.width==AQ||(!/%$/.test(F.width)&&parseInt(F.width,10)<310)){F.width="310"
}if(typeof F.height==AQ||(!/%$/.test(F.height)&&parseInt(F.height,10)<137)){F.height="137"
}Ak.title=Ak.title.slice(0,47)+" - Flash Player Installation";
var B=AH.ie&&AH.win?"ActiveX":"PlugIn",C="MMredirectURL="+AF.location.toString().replace(/&/g,"%26")+"&MMplayerType="+B+"&MMdoctitle="+Ak.title;
if(typeof D.flashvars!=AQ){D.flashvars+="&"+C
}else{D.flashvars=C
}if(AH.ie&&AH.win&&A.readyState!=4){var G=AR("div");
H+="SWFObjectNew";
G.setAttribute("id",H);
A.parentNode.insertBefore(G,A);
A.style.display="none";
(function(){if(A.readyState==4){A.parentNode.removeChild(A)
}else{setTimeout(arguments.callee,10)
}})()
}AZ(F,D,H)
}}function Ae(A){if(AH.ie&&AH.win&&A.readyState!=4){var B=AR("div");
A.parentNode.insertBefore(B,A);
B.parentNode.replaceChild(An(A),B);
A.style.display="none";
(function(){if(A.readyState==4){A.parentNode.removeChild(A)
}else{setTimeout(arguments.callee,10)
}})()
}else{A.parentNode.replaceChild(An(A),A)
}}function An(B){var D=AR("div");
if(AH.win&&AH.ie){D.innerHTML=B.innerHTML
}else{var E=B.getElementsByTagName(Ac)[0];
if(E){var A=E.childNodes;
if(A){var F=A.length;
for(var C=0;
C<F;
C++){if(!(A[C].nodeType==1&&A[C].nodeName=="PARAM")&&!(A[C].nodeType==8)){D.appendChild(A[C].cloneNode(true))
}}}}}return D
}function AZ(E,G,C){var D,A=Ar(C);
if(AH.wk&&AH.wk<312){return D
}if(A){if(typeof E.id==AQ){E.id=C
}if(AH.ie&&AH.win){var F="";
for(var I in E){if(E[I]!=Object.prototype[I]){if(I.toLowerCase()=="data"){G.movie=E[I]
}else{if(I.toLowerCase()=="styleclass"){F+=' class="'+E[I]+'"'
}else{if(I.toLowerCase()!="classid"){F+=" "+I+'="'+E[I]+'"'
}}}}}var H="";
for(var J in G){if(G[J]!=Object.prototype[J]){H+='<param name="'+J+'" value="'+G[J]+'" />'
}}A.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+F+">"+H+"</object>";
AG[AG.length]=E.id;
D=Ar(E.id)
}else{var B=AR(Ac);
B.setAttribute("type",Ad);
for(var K in E){if(E[K]!=Object.prototype[K]){if(K.toLowerCase()=="styleclass"){B.setAttribute("class",E[K])
}else{if(K.toLowerCase()!="classid"){B.setAttribute(K,E[K])
}}}}for(var L in G){if(G[L]!=Object.prototype[L]&&L.toLowerCase()!="movie"){Ap(B,L,G[L])
}}A.parentNode.replaceChild(B,A);
D=B
}}return D
}function Ap(B,D,C){var A=AR("param");
A.setAttribute("name",D);
A.setAttribute("value",C);
B.appendChild(A)
}function AV(A){var B=Ar(A);
if(B&&B.nodeName=="OBJECT"){if(AH.ie&&AH.win){B.style.display="none";
(function(){if(B.readyState==4){As(A)
}else{setTimeout(arguments.callee,10)
}})()
}else{B.parentNode.removeChild(B)
}}}function As(A){var B=Ar(A);
if(B){for(var C in B){if(typeof B[C]=="function"){B[C]=null
}}B.parentNode.removeChild(B)
}}function Ar(A){var C=null;
try{C=Ak.getElementById(A)
}catch(B){}return C
}function AR(A){return Ak.createElement(A)
}function Al(A,C,B){A.attachEvent(C,B);
AL[AL.length]=[A,C,B]
}function AO(A){var B=AH.pv,C=A.split(".");
C[0]=parseInt(C[0],10);
C[1]=parseInt(C[1],10)||0;
C[2]=parseInt(C[2],10)||0;
return(B[0]>C[0]||(B[0]==C[0]&&B[1]>C[1])||(B[0]==C[0]&&B[1]==C[1]&&B[2]>=C[2]))?true:false
}function AY(B,F,A,C){if(AH.ie&&AH.mac){return 
}var E=Ak.getElementsByTagName("head")[0];
if(!E){return 
}var G=(A&&typeof A=="string")?A:"screen";
if(C){Ag=null;
AN=null
}if(!Ag||AN!=G){var D=AR("style");
D.setAttribute("type","text/css");
D.setAttribute("media",G);
Ag=E.appendChild(D);
if(AH.ie&&AH.win&&typeof Ak.styleSheets!=AQ&&Ak.styleSheets.length>0){Ag=Ak.styleSheets[Ak.styleSheets.length-1]
}AN=G
}if(AH.ie&&AH.win){if(Ag&&typeof Ag.addRule==Ac){Ag.addRule(B,F)
}}else{if(Ag&&typeof Ak.createTextNode!=AQ){Ag.appendChild(Ak.createTextNode(B+" {"+F+"}"))
}}}function AX(A,C){if(!Ah){return 
}var B=C?"visible":"hidden";
if(AK&&Ar(A)){Ar(A).style.visibility=B
}else{AY("#"+A,"visibility:"+B)
}}function AI(B){var A=/[\\\"<>\.;]/;
var C=A.exec(B)!=null;
return C&&typeof encodeURIComponent!=AQ?encodeURIComponent(B):B
}var Aq=function(){if(AH.ie&&AH.win){window.attachEvent("onunload",function(){var A=AL.length;
for(var B=0;
B<A;
B++){AL[B][0].detachEvent(AL[B][1],AL[B][2])
}var D=AG.length;
for(var C=0;
C<D;
C++){AV(AG[C])
}for(var E in AH){AH[E]=null
}AH=null;
for(var F in swfobject){swfobject[F]=null
}swfobject=null
})
}}();
return{registerObject:function(A,E,C,B){if(AH.w3&&A&&E){var D={};
D.id=A;
D.swfVersion=E;
D.expressInstall=C;
D.callbackFn=B;
Af[Af.length]=D;
AX(A,false)
}else{if(B){B({success:false,id:A})
}}},getObjectById:function(A){if(AH.w3){return AU(A)
}},embedSWF:function(K,E,H,F,C,A,B,I,G,J){var D={success:false,id:E};
if(AH.w3&&!(AH.wk&&AH.wk<312)&&K&&E&&H&&F&&C){AX(E,false);
AJ(function(){H+="";
F+="";
var Q={};
if(G&&typeof G===Ac){for(var O in G){Q[O]=G[O]
}}Q.data=K;
Q.width=H;
Q.height=F;
var N={};
if(I&&typeof I===Ac){for(var P in I){N[P]=I[P]
}}if(B&&typeof B===Ac){for(var L in B){if(typeof N.flashvars!=AQ){N.flashvars+="&"+L+"="+B[L]
}else{N.flashvars=L+"="+B[L]
}}}if(AO(C)){var M=AZ(Q,N,E);
if(Q.id==E){AX(E,true)
}D.success=true;
D.ref=M
}else{if(A&&AT()){Q.data=A;
AE(Q,N,E,J);
return 
}else{AX(E,true)
}}if(J){J(D)
}})
}else{if(J){J(D)
}}},switchOffAutoHideShow:function(){Ah=false
},ua:AH,getFlashPlayerVersion:function(){return{major:AH.pv[0],minor:AH.pv[1],release:AH.pv[2]}
},hasFlashPlayerVersion:AO,createSWF:function(A,B,C){if(AH.w3){return AZ(A,B,C)
}else{return undefined
}},showExpressInstall:function(B,A,D,C){if(AH.w3&&AT()){AE(B,A,D,C)
}},removeSWF:function(A){if(AH.w3){AV(A)
}},createCSS:function(B,A,C,D){if(AH.w3){AY(B,A,C,D)
}},addDomLoadEvent:AJ,addLoadEvent:Ab,getQueryParamValue:function(B){var A=Ak.location.search||Ak.location.hash;
if(A){if(/\?/.test(A)){A=A.split("?")[1]
}if(B==null){return AI(A)
}var C=A.split("&");
for(var D=0;
D<C.length;
D++){if(C[D].substring(0,C[D].indexOf("="))==B){return AI(C[D].substring((C[D].indexOf("=")+1)))
}}}return""
},expressInstallCallback:function(){if(At){var A=Ar(AC);
if(A&&Ai){A.parentNode.replaceChild(Ai,A);
if(AD){AX(AD,true);
if(AH.ie&&AH.win){Ai.style.display="block"
}}if(AP){AP(AS)
}}At=false
}}}
}();
