﻿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};
var UFO={req:["movie","width","height","majorversion","build"],opt:["play","loop","menu","quality","scale","salign","wmode","bgcolor","base","flashvars","devicefont","allowscriptaccess","seamlesstabbing"],optAtt:["id","name","align"],optExc:["swliveconnect"],ximovie:"ufo.swf",xiwidth:"215",xiheight:"138",ua:navigator.userAgent.toLowerCase(),pluginType:"",fv:[0,0],foList:[],create:function(b,a){if(!UFO.uaHas("w3cdom")||UFO.uaHas("ieMac"))return;UFO.getFlashVersion();UFO.foList[a]=UFO.updateFO(b);UFO.createCSS("#"+a,"visibility:hidden;");UFO.domLoad(a)},updateFO:function(a){var b="undefined";if(typeof a.xi!=b&&a.xi=="true"){if(typeof a.ximovie==b)a.ximovie=UFO.ximovie;if(typeof a.xiwidth==b)a.xiwidth=UFO.xiwidth;if(typeof a.xiheight==b)a.xiheight=UFO.xiheight}a.mainCalled=false;return a},domLoad:function(b){var a=null,c=setInterval(function(){if((document.getElementsByTagName("body")[0]!=a||document.body!=a)&&document.getElementById(b)!=a){UFO.main(b);clearInterval(c)}},250);typeof document.addEventListener!="undefined"&&document.addEventListener("DOMContentLoaded",function(){UFO.main(b);clearInterval(c)},a)},main:function(a){var b=UFO.foList[a];if(b.mainCalled)return;UFO.foList[a].mainCalled=true;document.getElementById(a).style.visibility="hidden";if(UFO.hasRequired(a))if(UFO.hasFlashVersion(parseInt(b.majorversion,10),parseInt(b.build,10))){typeof b.setcontainercss!="undefined"&&b.setcontainercss=="true"&&UFO.setContainerCSS(a);UFO.writeSWF(a)}else b.xi=="true"&&UFO.hasFlashVersion(6,65)&&UFO.createDialog(a);document.getElementById(a).style.visibility="visible"},createCSS:function(c,b){var e=document.getElementsByTagName("head")[0],a=UFO.createElement("style");!UFO.uaHas("ieWin")&&a.appendChild(document.createTextNode(c+" {"+b+"}"));a.setAttribute("type","text/css");a.setAttribute("media","screen");e.appendChild(a);if(UFO.uaHas("ieWin")&&document.styleSheets&&document.styleSheets.length>0){var d=document.styleSheets[document.styleSheets.length-1];typeof d.addRule=="object"&&d.addRule(c,b)}},setContainerCSS:function(b){var a=UFO.foList[b],d=/%/.test(a.width)?"":"px",c=/%/.test(a.height)?"":"px";UFO.createCSS("#"+b,"width:"+a.width+d+"; height:"+a.height+c+";");a.width=="100%"&&UFO.createCSS("body","margin-left:0; margin-right:0; padding-left:0; padding-right:0;");if(a.height=="100%"){UFO.createCSS("html","height:100%; overflow:hidden;");UFO.createCSS("body","margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; height:100%;")}},createElement:function(a){return UFO.uaHas("xml")&&typeof document.createElementNS!="undefined"?document.createElementNS("http://www.w3.org/1999/xhtml",a):document.createElement(a)},createObjParam:function(d,c,b){var a=UFO.createElement("param");a.setAttribute("name",c);a.setAttribute("value",b);d.appendChild(a)},uaHas:function(e){var b="undefined",a=UFO.ua;switch(e){case"w3cdom":return typeof document.getElementById!=b&&typeof document.getElementsByTagName!=b&&(typeof document.createElement!=b||typeof document.createElementNS!=b);case"xml":for(var d=document.getElementsByTagName("meta"),f=d.length,c=0;c<f;c++)if(/content-type/i.test(d[c].getAttribute("http-equiv"))&&/xml/i.test(d[c].getAttribute("content")))return true;return false;case"ieMac":return/msie/.test(a)&&!/opera/.test(a)&&/mac/.test(a);case"ieWin":return/msie/.test(a)&&!/opera/.test(a)&&/win/.test(a);case"gecko":return/gecko/.test(a)&&!/applewebkit/.test(a);case"opera":return/opera/.test(a);case"safari":return/applewebkit/.test(a);default:return false}},getFlashVersion:function(){var b="$1",e="undefined",d="Shockwave Flash";if(UFO.fv[0]!=0)return;if(navigator.plugins&&typeof navigator.plugins[d]=="object"){UFO.pluginType="npapi";var a=navigator.plugins[d].description;if(typeof a!=e){a=a.replace(/^.*\s+(\S+\s+\S+$)/,b);var f=parseInt(a.replace(/^(.*)\..*$/,b),10),g=/r/.test(a)?parseInt(a.replace(/^.*r(.*)$/,b),10):0;UFO.fv=[f,g]}}else if(window.ActiveXObject){UFO.pluginType="ax";try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(h){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");UFO.fv=[6,0];c.AllowScriptAccess="always"}catch(h){if(UFO.fv[0]==6)return}try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(h){}}if(typeof c=="object"){var a=c.GetVariable("$version");if(typeof a!=e){a=a.replace(/^\S+\s+(.*)$/,b).split(",");UFO.fv=[parseInt(a[0],10),parseInt(a[2],10)]}}}},hasRequired:function(b){for(var c=UFO.req.length,a=0;a<c;a++)if(typeof UFO.foList[b][UFO.req[a]]=="undefined")return false;return true},hasFlashVersion:function(a,b){return UFO.fv[0]>a||UFO.fv[0]==a&&UFO.fv[1]>=b?true:false},writeSWF:function(l){var h='" height="',f="undefined",b=UFO.foList[l],e=document.getElementById(l);if(UFO.pluginType=="npapi")if(UFO.uaHas("gecko")||UFO.uaHas("xml")){while(e.hasChildNodes())e.removeChild(e.firstChild);var d=UFO.createElement("object");d.setAttribute("type","application/x-shockwave-flash");d.setAttribute("data",b.movie);d.setAttribute("width",b.width);d.setAttribute("height",b.height);for(var g=UFO.optAtt.length,a=0;a<g;a++)typeof b[UFO.optAtt[a]]!=f&&d.setAttribute(UFO.optAtt[a],b[UFO.optAtt[a]]);for(var c=UFO.opt.concat(UFO.optExc),g=c.length,a=0;a<g;a++)typeof b[c[a]]!=f&&UFO.createObjParam(d,c[a],b[c[a]]);e.appendChild(d)}else{for(var k="",c=UFO.opt.concat(UFO.optAtt).concat(UFO.optExc),g=c.length,a=0;a<g;a++)if(typeof b[c[a]]!=f)k+=" "+c[a]+'="'+b[c[a]]+'"';e.innerHTML='<embed type="application/x-shockwave-flash" src="'+b.movie+'" width="'+b.width+h+b.height+'" pluginspage="http://www.macromedia.com/go/getflashplayer"'+k+"></embed>"}else if(UFO.pluginType=="ax"){for(var i="",g=UFO.optAtt.length,a=0;a<g;a++)if(typeof b[UFO.optAtt[a]]!=f)i+=" "+UFO.optAtt[a]+'="'+b[UFO.optAtt[a]]+'"';for(var j="",g=UFO.opt.length,a=0;a<g;a++)if(typeof b[UFO.opt[a]]!=f)j+='<param name="'+UFO.opt[a]+'" value="'+b[UFO.opt[a]]+'" />';var m=window.location.protocol=="https:"?"https:":"http:";e.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+i+' width="'+b.width+h+b.height+'" codebase="'+m+"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+b.majorversion+",0,"+b.build+',0"><param name="movie" value="'+b.movie+'" />'+j+"</object>"}},createDialog:function(m){var e="undefined",d=" - Flash Player Installation",b="xi-dia",f="height:100%; overflow:hidden;",a=UFO.foList[m];UFO.createCSS("html",f);UFO.createCSS("body",f);UFO.createCSS("#xi-con","position:absolute; left:0; top:0; z-index:1000; width:100%; height:100%; background-color:#fff; filter:alpha(opacity:75); opacity:0.75;");UFO.createCSS("#xi-dia","position:absolute; left:50%; top:50%; margin-left: -"+Math.round(parseInt(a.xiwidth,10)/2)+"px; margin-top: -"+Math.round(parseInt(a.xiheight,10)/2)+"px; width:"+a.xiwidth+"px; height:"+a.xiheight+"px;");var n=document.getElementsByTagName("body")[0],c=UFO.createElement("div");c.setAttribute("id","xi-con");var g=UFO.createElement("div");g.setAttribute("id",b);c.appendChild(g);n.appendChild(c);var j=window.location;if(UFO.uaHas("xml")&&UFO.uaHas("safari"))var h=document.getElementsByTagName("title")[0].firstChild.nodeValue=document.getElementsByTagName("title")[0].firstChild.nodeValue.slice(0,47)+d;else var h=document.title=document.title.slice(0,47)+d;var i=UFO.pluginType=="ax"?"ActiveX":"PlugIn",k=typeof a.xiurlcancel!=e?"&xiUrlCancel="+a.xiurlcancel:"",l=typeof a.xiurlfailed!=e?"&xiUrlFailed="+a.xiurlfailed:"";UFO.foList[b]={movie:a.ximovie,width:a.xiwidth,height:a.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+j+"&MMplayerType="+i+"&MMdoctitle="+h+k+l};UFO.writeSWF(b)},expressInstallCallback:function(){var a="height:auto; overflow:auto;",b=document.getElementsByTagName("body")[0],c=document.getElementById("xi-con");b.removeChild(c);UFO.createCSS("body",a);UFO.createCSS("html",a)},cleanupIELeaks:function(){for(var b=document.getElementsByTagName("object"),d=b.length,a=0;a<d;a++){b[a].style.display="none";for(var c in b[a])if(typeof b[a][c]=="function")b[a][c]=null}}};typeof window.attachEvent!="undefined"&&UFO.uaHas("ieWin")&&window.attachEvent("onunload",UFO.cleanupIELeaks);