function PopUpTermsAndConditions(b){var a="height=500,width=1010,left=10,top=10,directories=0,fullscreen=0,location=0,menubar=0,scrollbars=1,resizable=1,status=0,toolbar=0";if(b!=null)window.open("../TermsAndConditions.aspx","Terms",a);else window.open("../Public/TermsAndConditions.aspx","Terms",a)}function cancelOrder(){var a=confirm("Are you sure you wish to cancel this Order?");return a?true:false}function runSliderTest(){var b=210,a=725;new Control.Slider("sliderHandle","track",{sliderValue:.5,onSlide:function(g){var e=150,f=e*g-e/2,d=b,c=a;d+=f;c-=f;document.getElementById("leftPanel").style.width=d+"px";document.getElementById("rightPanel").style.width=c+"px"}})}var openRow="",openRowObj="",openImgID="",openRow2="",IsCheckbox="";function OpenTable(a,c,b,d){if(IsCheckbox=="")if(a!="")if(a==openRow){toggleRow(openRow,openRow2,"none",openRowObj,openImgID);openRow=""}else{openRow!=""&&toggleRow(openRow,openRow2,"none",openRowObj,openImgID);toggleRow(a,c,"",b,d);openRow=a;openRow2=c;openRowObj=b;openImgID=d}IsCheckbox=""}function toggleRow(g,f,c,a,b){var e="onmouseover",d="onmouseout";object=document.getElementById(g);if(object)object.style.display=c;object2=document.getElementById(f);if(object2)object2.style.display=c;if(c==""){document.getElementById(b).src="/css/images/arrow_down_blue.gif";a.removeAttribute(d);a.removeAttribute(e);a.className="DocumentRowOn"}else{document.getElementById(b).src="/css/images/arrow_right.gif";a.setAttribute(d,"RowMouseOut(this,'"+b+"')");a.setAttribute(e,"RowMouseOver(this,'"+b+"')");a.className="DocumentRow"}}function RowMouseOver(a,b){a.className="DocumentRowOver";document.getElementById(b).src="/css/images/arrow_right_over.gif"}function RowMouseOut(a,b){a.className="DocumentRow";document.getElementById(b).src="/css/images/arrow_right.gif"}function DisplayHelp(d,b){var a="helpText";if(b!=""){var c=findPos(d);document.getElementById(a).style.left=c[0]+120+"px";document.getElementById(a).style.top=c[1]-55+"px";document.getElementById("helpMain").innerHTML=b;document.getElementById(a).style.display="block"}}function DisplayLockerSetupDescription(d,b){var a="helpText";if(b!=""){var c=findPos(d);document.getElementById(a).style.left=c[0]+85+"px";document.getElementById(a).style.top=c[1]-115+"px";document.getElementById("helpMain").innerHTML=b;document.getElementById(a).style.display="block"}}function HideHelp(){document.getElementById("helpText").style.display="none";document.getElementById("helpMain").innerHTML=""}function findPos(a){var b=curtop=0;if(a.offsetParent)do{b+=a.offsetLeft;curtop+=a.offsetTop}while(a=a.offsetParent);return[b,curtop]}window.onload=function(){try{isHomepage&&initSwap()}catch(a){}};function FixFlash(a,b,e,d,c){var f={movie:b,width:e+"px",height:d+"px",flashvars:c,wmode:"transparent",majorversion:"7",build:"40"};UFO.create(f,a)}function PopUp(a){if(a!="")var b="/public/photo.aspx?id="+a,c=window.open(b,"photo","height=500,width=550,left=10,top=10,directories=0,fullscreen=0,location=0,menubar=0,scrollbars=1,resizable=0,status=0,toolbar=0")}function OpenHelpWindow(e){var b=1010,a=620,c,d;if(b==0){b=screen.width-10;c=0}else c=(screen.width-b)/2;if(a==0){a=screen.height-70;d=0}else d=(screen.height-a-35)/2;NewChild=window.open("/Public/Help/Default.aspx?help="+e,"help","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+b+",height="+a+",top="+d+",left="+c);return NewChild}var slideIndex=0,fadeTimer=2,swapTimer=5;function initSwap(){var h="' target='",g="<a href='",f="transparentblock";for(var i=document.getElementById("fadeBox"),a=0;a<slides.length;a++){var b=document.createElement("div");b.id="slide"+a;b.style.display="none";b.style.position="absolute";b.style.opacity="0";if(!/MSIE (\d+\.\d+);/.test(navigator.userAgent))b.style.filter="alpha(opacity:0)";var d=document.createElement("img");d.src=slides[a];d.useMap="#homemap"+a;d.border=0;var e=document.createElement("div");e.className=f;e.id=f+a;e.innerHTML="<p>&nbsp;</p>";var c=document.createElement("div");c.className="bannertext text"+textsizes[a];if(textslides[a]!="")c.innerHTML=g+textlinks[a*2]+h+textlinks[a*2+1]+"'><div class='leftpointer'><img src='/css/images/arrow_black.gif' width='12' height='14' border='0'></div><p>"+textslides[a]+"</p></a>";else c.innerHTML=g+textlinks[a*2]+h+textlinks[a*2+1]+"'><p>&nbsp;</p></a>";i.appendChild(b);b.appendChild(d);b.appendChild(c);slides[a]=b;if(a==0){fade(a,1);slides.length>1&&setTimeout(doSwap,swapTimer*1e3)}}}function doSwap(){var a=slideIndex,b=a+1==slides.length?0:a+1;slideIndex=b;fade(a,0);fade(b,1);setTimeout(doSwap,swapTimer*1e3)}function fade(d,e){var b=slides[d],c,a=parseFloat(b.style.opacity,10);if(e>0){b.style.display="block";a+=.1;if(a>=1)c=true}else{a-=.1;if(a<=0){b.style.display="none";c=true}}b.style.opacity=a;if(!/MSIE (\d+\.\d+);/.test(navigator.userAgent))b.style.filter="alpha(opacity:"+a*100+")";!c&&setTimeout("fade("+d+","+e+")",parseInt(fadeTimer/10,10))}function onOpenPopulate(b,a){return a}function serverReloadComplete(){if(dlTafelTree._selectedNodeId){var a=dlTafelTree.getBranchById(dlTafelTree._selectedNodeId);if(a){dlTafelTree._selectedNodeId=null;var d=a.getWithinOffset()[1],c=1*(a.txt.innerHeight||a.txt.clientHeight||19),b=$("leftPanel"),e=b.innerHeight||b.clientHeight||1e6;if(d+c>e){a.getImgBeforeIcon().img.scrollIntoView(false);b.scrollTop+=2*c}}}}function afterOpenPopulate(){dlTafelTree._setSelectedNodeId&&selectTreeNode(dlTafelTree._selectedNodeId);dlTafelTree._setExpandedNodeId&&expandTreeNode(dlTafelTree._expandedNodeId)}function onDrop(a,c){var d=a.getParent().getId(),b=c.getId();if(d==b)dlTafelTree._cancelClick=true;else{$("HdnMoveMode").value="Folder";$("hidSourceFolderId").value=a.getId();$("hidDestinationFolderId").value=b}return false}function onMouseUp(a){var b=a.struct.nodeType,c=a.getId();fnMouseUp(null,b,c)}function onClick(a){if(!dlTafelTree._cancelClick){$("hidNodeType").value=a.struct.nodeType;$("hidLockerId").value=a.struct.lockerId;$("hidNodeId").value=a.getId();document.forms[0].submit()}dlTafelTree._cancelClick=false}function setSelectedTreeNode(a){if(!selectTreeNode(a)){dlTafelTree._setSelectedNodeId=true;dlTafelTree._selectedNodeId=a}}function setExpandedTreeNode(a){if(!expandTreeNode(a)){dlTafelTree._setExpandedNodeId=true;dlTafelTree._expandedNodeId=a}}function expandTreeNode(b){var a=dlTafelTree.getBranchById(b);if(a&&a._openPopulate){if(!a.isOpened()){a._openPopulate();a.openIt(true)}dlTafelTree._setExpandedNodeId=false;return true}return false}function selectTreeNode(c){var b=dlTafelTree.getBranchById(c);if(b){var a=b.getParent();while(a){a.openIt(true);a=a.getParent()}dlTafelTree._setSelectedNodeId=false;b.select();return true}return false};