var getElementsByClassName=function(E,K,C){K=K||"*";C=C||document;var M=C.getElementsByTagName(K);if(!M.length&&K=="*"&&C.all){M=C.all}var L=[];var A=E.indexOf("|")!=-1?"|":" ";var N=E.split(A);for(var J=0,I=M.length;J<I;J++){var H=M[J].className.split(" ");if(A==" "&&N.length>H.length){continue}var O=0;comparisonLoop:for(var G=0,F=H.length;G<F;G++){for(var D=0,B=N.length;D<B;D++){if(N[D]==H[G]){O++}if((A=="|"&&O==1)||(A==" "&&O==N.length)){L.push(M[J]);break comparisonLoop}}}}return L};var suiCommentReply=function(D,B,J,A){var E=document.getElementById(B)||document.forms[B];if(E!==null){var H=E.parentNode.childNodes;var C;var I=document.createElement("INPUT");I.value=D;I.name="reply_id";I.type="hidden";E.appendChild(I);for(i=0;i<H.length;i++){if(H[i].className=="SUI-CommentTitle"){var F=H[i].innerHTML;var K=document.createElement("SPAN");K.innerHTML="You are Replying to "+A+". ";var G=document.createElement("A");G.href="#";G.onclick=function(){this.parentNode.innerHTML=F;E.removeChild(I);return false};G.innerHTML="<small>[Cancel Reply]</small>";K.appendChild(G);H[i].innerHTML="";H[i].appendChild(K)}}window.location.href="#"+J}};var SAUI={};SAUI.effects={},SAUI.draw={},SAUI.util={},SAUI.store={},SAUI.err={};SAUI.err.Errors=[];SAUI.effects.TextLimitCounter=function(A){SAUI.effects.TextLimitCounter.limit=function(B){var F={disSubmit:B.getAttribute("submit")||false,status:B.getAttribute("status")||false,warncolor:B.getAttribute("warncolor")||false,overcolor:B.getAttribute("overcolor")||false};var G=B.getAttribute("maxlength")*1;var D=B.value;if(D.length>G){if(F.disSubmit){document.getElementById(F.disSubmit).disabled=true;document.getElementById(F.disSubmit).setAttribute("title","One or more text fields is over the character limit.")}}else{if(F.disSubmit){document.getElementById(F.disSubmit).disabled=false;document.getElementById(F.disSubmit).removeAttribute("title")}}if(F.status){var E=G-B.value.length;var C=document.getElementById(F.status);C.innerHTML=E;if(F.warncolor&&F.overcolor){if(E<10){if(E<0){C.style.color=F.overcolor}else{C.style.color=F.warncolor}}else{C.style.color=""}}}};A=typeof A==("object")?A:document.getElementById(A);YAHOO.util.Event.addListener(A,"keypress",function(){SAUI.effects.TextLimitCounter.limit(this)});YAHOO.util.Event.addListener(A,"keydown",function(){SAUI.effects.TextLimitCounter.limit(this)});YAHOO.util.Event.addListener(A,"keyup",function(){SAUI.effects.TextLimitCounter.limit(this)});YAHOO.util.Event.addListener(A,"blur",function(){SAUI.effects.TextLimitCounter.limit(this);this.removeAttribute("focused")});YAHOO.util.Event.addListener(A,"focus",function(){this.setAttribute("focused","true");var B=setInterval(function(){if(A.getAttribute("focused")){try{SAUI.effects.TextLimitCounter.limit(A)}catch(C){clearInterval(B)}}else{clearInterval(B)}},200)});YAHOO.util.Event.addListener(A,"paste",function(){SAUI.effects.TextLimitCounter.limit(this)});SAUI.effects.TextLimitCounter.limit(A)};SAUI.effects.HideInputText={store:{},init:function(A,B){A=typeof A=="object"?A:document.getElementById(A);var C=A.id||"SAUI-form-input-text"+Math.random();A.id=C;this.store[A.id]=B||A.value;YAHOO.util.Dom.removeClass(A,"dim");A.onfocus=function(){if(this.value==SAUI.effects.HideInputText.store[this.id]){this.value=""}try{YAHOO.util.Dom.removeClass(this,"dim")}catch(D){}};A.onblur=function(){if(this.value===""){this.value=SAUI.effects.HideInputText.store[this.id];try{YAHOO.util.Dom.addClass(this,"dim")}catch(D){}}};if(A.value==this.store[A.id]){A.value=""}}};SAUI.effects.Truncate=function(B,D,E){var C=B;var A=D;if(C.length>A){C=C.substring(0,A);if(E&&E==true){C=C.replace(/\w+$/,"")}C+="..."}return C};SAUI.draw.TabsZero=function(){obj=document.getElementById("SAUI-Menu-Zero").getElementsByTagName("td");template='<table border="0" cellspacing="0" cellpadding="0" class="SAUI-TabZero"><tr><td width="19" height="19" class="tl"><span class="SAUI-Corner19"></span></td><td height="19" class="t"><span class="SAUI-SideH19"></span></td><td width="19" height="19" class="tr"><span class="SAUI-Corner19"></span></td></tr><tr><td width="19" class="l"><span class="SAUI-SideV19"></span></td><td valign="top" class="SAUI-TabZero-inner">$label$</td><td width="19" class="r"><span class="SAUI-SideV19"></span></td></tr><tr><td width="9" height="9" class="bl"><span class="SAUI-Corner9"></span></td><td height="9" class="b"><span class="SAUI-SideH9"></span></td><td width="9" height="9" class="br"><span class="SAUI-Corner9"></span></td></tr></table>';for(i=0;i<obj.length;i++){if(obj[i].getElementsByTagName("div")[0]){var A=obj[i].getElementsByTagName("div")[0].innerHTML;obj[i].getElementsByTagName("div")[0].innerHTML=template.replace(/\$label\$/g,A);obj[i].getElementsByTagName("div")[0].onmouseover=function(){this.parentNode.className=this.parentNode.className+" over"};obj[i].getElementsByTagName("div")[0].onmouseout=function(){this.parentNode.className=this.parentNode.className.replace(/ over/g,"")}}}};SAUI.draw.TabsOne=function(G){var B='<table border="0" width="100%" cellspacing="0" cellpadding="0" class="SAUI-Menu-One" style="border-color: $color$;"><tr>';var F='<td class="$class$" onclick="$action$" width="$width$" onmouseover="this.className = this.className + \' over\';" onmouseout="this.className= this.className.replace(/ over/g,\'\');">$label$</td>';var E='</tr></table><div style="border-bottom: 2px solid #B5B5B5;"></div>';var H="";var A=document.getElementById("SAUI-Menu-One");if(G==null){var G=getElementsByClassName("sel","td",document.getElementById("SAUI-Menu-Zero"))[0];var I=true}if(G!=null){var C=G.className.replace(/ over/g,"").replace(/ sel/g,"")}if(C&&getElementsByClassName(C,"div",A).length>0){var K=getElementsByClassName(C,"div",A)[0].getElementsByTagName("a");if(K.length>0){for(i=0;i<K.length;i++){var D;if(K[i].getAttribute("href")!==null&&K[i].getAttribute("href")!==""){D="window.location.href='"+K[i].getAttribute("href")+"';"}else{D=K[i].getAttribute("action")}var J=F.replace(/\$action\$/g,D).replace(/\$label\$/g,K[i].innerHTML).replace(/\$width\$/g,(Math.floor(100/K.length)+"%"));if(i===0){if(K.length==1){J=J.replace(/\$class\$/g,"uno")}else{J=J.replace(/\$class\$/g,"first")}}else{if(i<K.length-1){J=J.replace(/\$class\$/g,"middle")}else{J=J.replace(/\$class\$/g,"last")}}H=H+J}if(document.getElementById("SAUI-Menu-OneCont").innerHTML.indexOf(K[0].getAttribute("action"))==-1||document.getElementById("SAUI-Menu-OneCont").innerHTML.indexOf(K[0].innerHTML)==-1){document.getElementById("SAUI-Menu-OneCont").innerHTML=B.replace(/\$color\$/g,G.style.backgroundColor)+H+E}}else{if(I===true||G===null){document.getElementById("SAUI-Menu-OneCont").innerHTML=""}}}};SAUI.draw.MenuBox=function(E,H,A,F,G,K){A=A||200;G=G||document;var I;(function(){var M=document.getElementById("SAUI-Menu-Canvas");if(M!==null){SAUI.draw.MenuBox.Remove()}})();I=typeof E==("array")?E:SAUI.util.GetSpace(E,G);var D=G.createElement("DIV");D.id="SAUI-Menu-Canvas";D.className="SAUI-Menu-Canvas";D.style.cssText="position: absolute; visibility: hidden; z-index: 50002; width: "+A+"px;";var C=G.createElement("DIV");C.className="option";if(F){if(F=="object"){D.appendChild(H)}}else{if(typeof H==("string")){C.onmouseover=function(){this.className="option over"};C.onmouseout=function(){this.className="option"};C.onclick=function(){SAUI.draw.MenuBox.Remove()};C.innerHTML=H;D.appendChild(C)}else{if(typeof H==("array")||typeof H==("object")){for(i=0;H[i];i++){var J=C.cloneNode(true);J.onmouseover=function(){this.className="option over"};J.onmouseout=function(){this.className="option"};J.onclick=function(){SAUI.draw.MenuBox.Remove()};J.innerHTML=H[i];D.appendChild(J)}}else{alert(typeof H)}}}G.getElementsByTagName("body")[0].insertBefore(D,G.getElementsByTagName("body")[0].childNodes[0]);mspace=SAUI.util.GetSpace(D,G);D.style.left=mspace[2]+I[0]<I[4]||I[0]-mspace[2]<5?I[0]+"px":I[0]+I[2]-mspace[2]+"px";D.style.top=mspace[3]+I[1]+I[3]<I[5]+I[7]||mspace[3]>I[1]?I[1]+I[3]+"px":I[1]-mspace[3]+"px";SAUI.draw.MenuBox.Remove=function(){try{if(D){D.parentNode.removeChild(D)}}catch(N){}YAHOO.util.Event.removeListener(document.body,"click",SAUI.draw.MenuBox.Remove);if(window.frames){for(i=0;window.frames[i];i++){try{YAHOO.util.Event.removeListener(window.frames[i].document.body,"click",SAUI.draw.MenuBox.Remove)}catch(M){M=M}}}if(window.event){window.event.cancelBubble=false}if(K){try{K()}catch(N){}}if(SAUI.draw.MenuBox.closeCall){try{SAUI.draw.MenuBox.closeCall()}catch(N){}delete SAUI.draw.MenuBox.closeCall}};window.event?D.onclick=function(){window.event.cancelBubble=true}:D.onclick=function(M){M.cancelBubble=true};function B(){YAHOO.util.Event.addListener(document.body,"click",SAUI.draw.MenuBox.Remove);if(window.frames){for(i=0;window.frames[i];i++){try{YAHOO.util.Event.addListener(window.frames[i].document.body,"click",SAUI.draw.MenuBox.Remove)}catch(M){M=M}}}}var L=setTimeout(B,20);D.style.visibility="visible"};SAUI.draw.AppCanvas=function(E,F,G){var A=G.width||"400px";var K=G.height||"auto";if(G.constr){var H=typeof G.constr==("object")?G.constr:document.getElementById(G.constr)}if(G.cover){var L=typeof G.cover==("object")?G.cover:document.getElementById(G.cover)}var C=function(O){if(!O.style){O=document.getElementById("SAUI-App-Canvas")}var N=SAUI.util.GetSpace(O);var P=H?SAUI.util.GetSpace(H):false;var M=function(){if(!P){O.style.left=(N[4]/2)-(N[2]/2)+"px";if(N[5]-N[3]>0){O.style.top=N[7]+N[5]/2-N[3]/2+"px"}else{objref.style.top=N[7]+"px"}}else{O.style.left=(P[2]/2)-(N[2]/2)+"px";var Q=N[7]+N[5]/2-N[3]/2;if(Q+N[3]>P[1]+P[3]&&N[3]<P[3]){O.style.top=P[1]+P[3]-N[3]+"px"}else{if(P[1]<Q){O.style.top=Q+"px"}else{O.style.top=P[1]+"px"}}}O.setAttribute("center",1)};if(O.getAttribute("center")==0){M()}else{if(!P){if(N[5]-N[3]>0){M()}}else{if(N[3]+P[1]<N[5]||N[3]<P[3]&&N[3]<N[5]){M()}}}};var J=function(R,S,M){var Q=S;var P=M;(function(){if(!document.getElementById("SAUI-Display-TracerDiv")){var T=document.createElement("div");T.id="SAUI-Display-TracerDiv";document.getElementsByTagName("body")[0].insertBefore(T,document.getElementsByTagName("body")[0].childNodes[0])}})();var O=document.getElementById("SAUI-Display-TracerDiv");var N=function(){var c=100;var k=60;var g=10;var e=O.style;e.cssText="display: none; position: absolute; background-color: #ebebeb; border: 2px solid #d8d8d8;";var W=Q[2];var l=Q[3];var Z=Q[0];var V=Q[1];var h=P[2];var d=P[3];var X=P[0]-4;var U=P[1]-4;var m=(c-k)/g;var Y=(h-W)/g;var a=(d-l)/g;var j=(X-Z)/g;var T=(U-V)/g;function b(){e.left=W+"px";e.top=l+"px";e.width=Z+"px";e.height=V+"px";e.filter="alpha(opacity="+k+")";e.opacity="."+k;e.display="block";e.zIndex="10";k=k+m;W=W+Y;l=l+a;Z=Z+j;V=V+T;if(g>0){g--;window.setTimeout(b,10)}else{try{R.style.visibility="visible"}catch(n){}e.display="none";O.parentNode.removeChild(O)}}b()};N()};var D=function(T){var Q=2;var S=document.getElementById(T);var N={backgroundColor:{to:G.flashColor||"#FF0000"}};var M={backgroundColor:{to:G.canvasColor||"#EBEBEB"}};var P=new YAHOO.util.ColorAnim(S,N,0.1);var R=new YAHOO.util.ColorAnim(S,M,0.1);var O=function(){if(Q>0){Q--;P.animate();var U=function(){R.animate()};window.setTimeout(U,110);window.setTimeout(O,220)}};O()};SAUI.draw.AppCanvas.CoverSizer=function(N){var M;try{M=SAUI.util.GetSpace(document.getElementById(N.getAttribute("conid")))}catch(O){M=SAUI.util.GetSpace(document.getElementsByTagName("body")[0])}return M};var I=function(Q){var N=60;var T=0;var M=SAUI.util.GetSpace(L);var P=G.zIndex-1||"3";if(Q==true){if(!document.getElementById("SAUI-Display-CoverDiv")){var U=document.createElement("div");U.id="SAUI-Display-CoverDiv";if(G.flash){U.setAttribute("flashID",G.flash);U.onclick=function(){D(this.getAttribute("flashID"))}}if(document.all){U.setAttribute("conid",L.id);document.getElementsByTagName("body")[0].insertBefore(U,document.getElementsByTagName("body")[0].childNodes[0]);U.style.cssText="background-color: #000; position: absolute; left: expression(SAUI.draw.AppCanvas.CoverSizer(this)[0] +'px'); top: expression(SAUI.draw.AppCanvas.CoverSizer(this)[1] +'px'); width: expression(SAUI.draw.AppCanvas.CoverSizer(this)[2] +'px'); height: expression(SAUI.draw.AppCanvas.CoverSizer(this)[3] +'px'); z-index: "+P+"; display: none;"}else{U.style.cssText="background-color: #000; position: absolute; top: 0; left: 0; bottom: 0; width: 100%; height: 100%; z-index: "+P+"; display: none;";L.style.position="relative";L.appendChild(U)}var R=function(){U.style.filter="alpha(opacity="+T+")";U.style.opacity="."+T;U.style.display="block";T=T+10;if(T<N){window.setTimeout(R,5)}};R()}}else{var S=document.getElementById("SAUI-Display-CoverDiv");var O=function(){try{S.style.filter="alpha(opacity="+N+")";S.style.opacity="."+N}catch(W){}N=N-10;if(N>T){window.setTimeout(O,5)}else{try{S.style.display="none";S.parentNode.removeChild(S)}catch(V){}}};O()}};var B=function(){var O=G.zIndex||"9";var N=document.createElement("div");N.id="SAUI-App-Canvas";N.className="SAUI-App-Canvas";N.setAttribute("center",0);N.style.cssText="position: absolute; visibility: hidden; z-index: "+O+"; width: "+A+";";if(typeof F==("object")){N.appendChild(F)}else{N.innerHTML=F}N.onclick=function(){};document.getElementsByTagName("body")[0].insertBefore(N,document.getElementsByTagName("body")[0].childNodes[0]);C(N);var M=SAUI.util.GetSpace(N);var P=typeof E=="object"?SAUI.util.GetSpace(E):[M[4]/2,M[5]/2,0,0,M[4],M[5],M[6],M[7]];J(N,[P[2],P[3],P[0],P[1]],[M[2],M[3],M[0],M[1]]);if(G.cover){I(true)}YAHOO.util.Event.addListener(window,"resize",C);YAHOO.util.Event.addListener(window,"scroll",C)};if(!document.getElementById("SAUI-App-Canvas")){B()}SAUI.draw.AppCanvas.remove=function(){var M=document.getElementById("SAUI-App-Canvas");YAHOO.util.Event.removeListener(window,"resize",C);YAHOO.util.Event.removeListener(window,"scroll",C);M.innerHTML="";M.parentNode.removeChild(M);I(false)}};SAUI.draw.HelpBox=function(C,E,D){var D=D||{};var B=[{name:"Content",content:"",children:[{name:"Work Area Overview",content:""},{name:"Main Tools",content:"",children:[{name:"Add Element",content:""},{name:"Add Page",content:""},{name:"Navigation",content:""},{name:"Change Layout",content:""},{name:"Manage Page",content:""}]},{name:"Website Options",content:"",children:[{name:"Global Areas",content:""},{name:"Site Intro",content:""},{name:"Favicon",content:""},{name:"Word Filter",content:""}]},{name:"Viewing Options",content:"",children:[{name:"Collaps Elements",content:""},{name:"Turn Off Styles",content:""}]}]}];SAUI.draw.HelpBox.callUrl="json/json.asp?page=help&cmd=content&id=";SAUI.draw.HelpBox.callHelp=true;var A=function(){var F=document.createElement("div");F.style.cssText="background-image: url(dhtml/adminui/images/animatedbar.gif); background-repeat: no-repeat; width: 72px; height: 20px;";return F};(function(){if(!document.getElementById("SAUI-Help-Box-Container")){var G=document.createElement("div");G.id="SAUI-Help-Box-Container";(function(){var I=document.createElement("div");I.className="hd";I.innerHTML='Help & Information <sup title="More features, more help and probably bug fixes are coming soon. Please report any problems in a support ticket.">beta</sup>';var H=document.createElement("div");H.className="bd";H.innerHTML="<p>Loading Content...</p>";var J=document.createElement("div");J.className="ft";G.appendChild(I);G.appendChild(H);G.appendChild(J)})();document.getElementsByTagName("body")[0].appendChild(G);SAUI.draw.HelpBox.panel=new YAHOO.widget.Panel(G,{draggable:true,dragOnly:true,width:D.w||"250px",height:D.h||"400px",autofillheight:"body",constraintoviewport:true,context:[C,"tr","br"],xy:D.xy,zIndex:50002});SAUI.draw.HelpBox.panel.render();SAUI.draw.HelpBox.panel.moveEvent.subscribe(function(){SAUI.util.HelpManager.saveState()});SAUI.draw.HelpBox.panel.hideEvent.subscribe(function(){SAUI.util.HelpManager.deleteState();try{SAUI.util.HelpManager.iHelpQuit()}catch(H){}});var F=new YAHOO.util.Resize(G,{handles:["b"],autoRatio:false,minWidth:250,minHeight:150,status:false});F.on("startResize",function(H){if(this.cfg.getProperty("constraintoviewport")){var I=YAHOO.util.Dom;var K=I.getClientRegion();var J=I.getRegion(this.element);F.set("maxWidth",K.right-J.left-YAHOO.widget.Overlay.VIEWPORT_OFFSET);F.set("maxHeight",K.bottom-J.top-YAHOO.widget.Overlay.VIEWPORT_OFFSET)}else{F.set("maxWidth",null);F.set("maxHeight",null)}},SAUI.draw.HelpBox.panel,true);F.on("resize",function(H){var I=H.height;this.cfg.setProperty("height",I+"px");SAUI.util.HelpManager.saveState()},SAUI.draw.HelpBox.panel,true)}else{SAUI.draw.HelpBox.panel.show()}})();(function(){if(!document.getElementById("SAUI-Help-States")){(function(){var F=document.createElement("div");F.id="SAUI-Help-States";SAUI.draw.HelpBox.tabs=new YAHOO.widget.TabView();SAUI.draw.HelpBox.tabs.addTab(new YAHOO.widget.Tab({label:"Using Help",content:'<div id="SAUI-Help-InfoState"></div>'}));SAUI.draw.HelpBox.tabs.addTab(new YAHOO.widget.Tab({label:'<span id="SAUI-Help-Contents-Tab">Contents</span>',content:'<div id="SAUI-Help-IndexState"></div>',active:true}));SAUI.draw.HelpBox.panel.setBody(F);SAUI.draw.HelpBox.tabs.appendTo(F);document.getElementById("SAUI-Help-IndexState").appendChild(A())})()}})();YAHOO.util.Event.onAvailable("SAUI-Help-Ready-Now",function(){(function(){(function(){if(!SAUI.draw.HelpBox.indexTree){var L=document.getElementById("SAUI-Help-IndexState");L.innerHTML="";L.innerHTML="";var M=function(O){var R=[];for(var Q=0;O[Q];Q++){var P={};if(O[Q].children&&O[Q].children.length>0){P.type="Text";P.label=O[Q].name;P.children=M(O[Q].children)}else{P.type="HTML";P.html='<a href="#" onclick="SAUI.draw.HelpBox(null,\''+O[Q].name+"'); return false;\">"+O[Q].name+"</a>";P.cont=O[Q].content}P.cindex=O[Q].name;R.push(P)}return R};var K=M(SAUI.draw.HelpBox.indexObj);SAUI.draw.HelpBox.indexTree=new YAHOO.widget.TreeView(L,K);SAUI.draw.HelpBox.indexTree.render()}var N=document.getElementById("SAUI-Help-InfoState")})();SAUI.draw.HelpBox.selected=E;SAUI.util.HelpManager.saveState();if(typeof E=="string"&&SAUI.draw.HelpBox.indexTree.getNodeByProperty("cindex",E)!==null){var F=function(K){if(K&&K.getAncestor()){try{K.expand();K.getAncestor().expand();F(K.getAncestor())}catch(L){}}};var I=function(R){R=SAUI.util.HelpManager.contentProcess(R);var U="",L="",O="";var S=SAUI.draw.HelpBox.indexTree.getNodeByProperty("cindex",SAUI.draw.HelpBox.selected);var V=function(W){if(W&&W.getAncestor()){try{if(U==""){U=W.getAncestor().data.cindex+U}else{if(W.getAncestor().data.cindex!=undefined){U=W.getAncestor().data.cindex+" > "+U}}V(W.getAncestor())}catch(X){}}};var M=function(W){if(SAUI.draw.HelpBox.indexTree.getNodeByIndex(W-1)&&SAUI.draw.HelpBox.indexTree.getNodeByIndex(W-1).hasChildren(true)==false){L=SAUI.draw.HelpBox.indexTree.getNodeByIndex(W-1).data.cindex}else{if(SAUI.draw.HelpBox.indexTree.getNodeByIndex(W-1)){M(W-1)}}};var P=function(W){if(SAUI.draw.HelpBox.indexTree.getNodeByIndex(W+1)&&SAUI.draw.HelpBox.indexTree.getNodeByIndex(W+1).hasChildren(true)==false){O=SAUI.draw.HelpBox.indexTree.getNodeByIndex(W+1).data.cindex}else{if(SAUI.draw.HelpBox.indexTree.getNodeByIndex(W+1)){P(W+1)}}};V(S);M(S.index);P(S.index);var K=document.createDocumentFragment();var N=document.createElement("div");N.className="header";N.innerHTML="In: "+U;var Q=document.createElement("div");Q.className="body";if(typeof R=="string"){Q.innerHTML=R}else{Q.appendChild(R)}var T=document.createElement("table");T.className="footer";(function(){T.width="100%";T.cellpadding="0";T.border="0";T.cellspacing="0";var W=document.createElement("tbody");var Z=document.createElement("tr");var Y=document.createElement("td");Y.className="prev";Y.width="50%";if(L!=""){Y.innerHTML='<a href="#" title="Previous: '+L+'" onclick="SAUI.draw.HelpBox(null,\''+L+"'); return false;\">"+SAUI.effects.Truncate(L,11)+"</a>"}var X=document.createElement("td");X.className="next";X.width="50%";if(O!=""){X.innerHTML='<a href="#" title="Next: '+O+'" onclick="SAUI.draw.HelpBox(null,\''+O+"'); return false;\">"+SAUI.effects.Truncate(O,11)+"</a>"}Z.appendChild(Y);Z.appendChild(X);W.appendChild(Z);T.appendChild(W)})();K.appendChild(N);K.appendChild(Q);K.appendChild(T);return K};var G=function(K,M){var L=SAUI.draw.HelpBox.tabs.getTab(0);L.set("label",SAUI.effects.Truncate(K,20));SAUI.draw.HelpBox.tabs.set("activeIndex",0);if(SAUI.draw.HelpBox.callHelp==false){L.set("content",'<div id="SAUI-Help-InfoBody"></div>');document.getElementById("SAUI-Help-InfoBody").appendChild(I(M))}else{L.set("content",'<div id="SAUI-Help-InfoBody"></div>');document.getElementById("SAUI-Help-InfoBody").appendChild(A());(function(){var N=function(O){document.getElementById("SAUI-Help-InfoBody").innerHTML="";document.getElementById("SAUI-Help-InfoBody").appendChild(I(O))};ajax_getJSON(SAUI.draw.HelpBox.callUrl+M,N,SAUI.util.HelpManager.cacheResponse)})()}SAUI.draw.HelpBox.tabs.getTab(1).on("click",function(){try{SAUI.draw.HelpBox.indexTree.getNodeByProperty("cindex",SAUI.draw.HelpBox.selected).focus()}catch(N){}})};var H=SAUI.draw.HelpBox.indexTree.getNodeByProperty("cindex",E);SAUI.draw.HelpBox.indexTree.collapseAll();F(H);try{H.focus()}catch(J){}if(H.hasChildren(true)==false){if(!H.data.cont){G(E,"No Data")}else{G(E,H.data.cont)}}}})()})};SAUI.draw.HelpVideo=function(E){var H=E.title||"Help Video",A=E.url||"",C=E.width||320,I=E.height||240;var B="<html><head><title>"+H+'</title>\n<script type="text/javascript" language="javascript" src="http://www.spruz.com/dhtml/js/FlashLoader.js"><\/script></head><body><script language="javascript">	if (AC_FL_RunContent == 0) {		alert("This page requires AC_RunActiveContent.js.");	} else {		AC_FL_RunContent(			\'codebase\', \'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\',			\'width\', \''+C+"',			'height', '"+I+"',			'src', '"+A+"',			'quality', 'high',			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',			'align', 'middle',			'play', 'true',			'loop', 'true',			'scale', 'showall',			'wmode', 'transparent',			'devicefont', 'false',			'id', 'helpVid',			'bgcolor', '#ffffff',			'name', 'afterwiz',			'menu', 'true',			'allowFullScreen', 'true',			'allowScriptAccess','sameDomain',			'movie', '"+A+"',			'salign', ''			);	}<\/script></body></html>";var D="<html><head><title>"+H+'</title>\n<style>body{padding: 0;margin:0;}</style><body><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+C+'" height="'+I+'" id="helpvid" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+A+'.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />	<embed src="'+A+'.swf" quality="high" bgcolor="#ffffff" width="'+C+'" height="'+I+'" name="helpvid" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></body></html>';var G=function(J,K,L){return L.resizeTo(J,K),L.resizeTo(J*2-((typeof L.innerWidth=="undefined")?L.document.body.clientWidth:L.innerWidth),K*2-((typeof L.innerHeight=="undefined")?L.document.body.clientHeight:L.innerHeight))};var F=window.open("","SAUIHelpWin","status=0,location=0,resizable=0,toolbar=0,menubar=0,scrollbars=0,width="+C+",height="+I);F.document.writeln(D);F.document.close();G(C,I,F)};SAUI.draw.YEdit=function(G,C){var C=C||{};var E=YAHOO.util.Dom,B=YAHOO.util.Event,D;if(C.nowidth){D={height:C.height||"300px",animate:true,dompath:true,ptags:false,markup:"xhtml",toolbar:{titlebar:false,collapse:false,draggable:false,buttonType:"advanced",buttons:[]}}}else{D={height:C.height||"300px",width:C.width||"auto",animate:true,dompath:true,ptags:false,markup:"xhtml",toolbar:{titlebar:false,collapse:false,draggable:false,buttonType:"advanced",buttons:[]}}}if(C.focus!=false){D.focusAtStart=true}if(C.undo||C.full){if(C.undo!=false){D.toolbar.buttons.push({type:"separator"});D.toolbar.buttons.push({group:"undoredo",label:"Undo",buttons:[{type:"push",label:"Undo",value:"undo"},{type:"push",label:"Redo",value:"redo"}]})}}if(C.fontstyle!=false||C.fontstyle==true){D.toolbar.buttons.push({group:"fontstyle",label:"Font Name and Size",buttons:[{type:"select",label:"Arial",value:"fontname",disabled:true,menu:[{text:"Arial",checked:true},{text:"Arial Black"},{text:"Comic Sans MS"},{text:"Courier New"},{text:"Lucida Console"},{text:"Tahoma"},{text:"Times New Roman"},{text:"Trebuchet MS"},{text:"Verdana"}]},{type:"spin",label:"13",value:"fontsize",range:[9,75],disabled:true}]})}if(C.textstyle!=false||C.textstyle==true){(function(){var H={group:"textstyle",label:"Font Style",buttons:[]};if(C.fontbiu!=false||C.fontbiu==true){H.buttons.push({type:"push",label:"Bold CTRL + SHIFT + B",value:"bold"});H.buttons.push({type:"push",label:"Italic CTRL + SHIFT + I",value:"italic"});H.buttons.push({type:"push",label:"Underline CTRL + SHIFT + U",value:"underline"})}if(C.textstylext||C.full){if(C.textstylext!=false){H.buttons.push({type:"separator"});H.buttons.push({type:"push",label:"Subscript",value:"subscript",disabled:true});H.buttons.push({type:"push",label:"Superscript",value:"superscript",disabled:true});H.buttons.push({type:"separator"});H.buttons.push({type:"color",label:"Font Color",value:"forecolor",disabled:true});H.buttons.push({type:"color",label:"Background Color",value:"backcolor",disabled:true})}}if(H.buttons.length>0){D.toolbar.buttons.push({type:"separator"});D.toolbar.buttons.push(H)}})()}if(C.alignment||C.full){if(C.alignment!=false){D.toolbar.buttons.push({type:"separator"});D.toolbar.buttons.push({group:"alignment",label:"Alignment",buttons:[{type:"push",label:"Align Left CTRL + SHIFT + [",value:"justifyleft"},{type:"push",label:"Align Center CTRL + SHIFT + |",value:"justifycenter"},{type:"push",label:"Align Right CTRL + SHIFT + ]",value:"justifyright"},{type:"push",label:"Justify",value:"justifyfull"}]})}}if(C.parastyle||C.full){if(C.parastyle==true){D.toolbar.buttons.push({type:"separator"});D.toolbar.buttons.push({group:"parastyle",label:"Paragraph Style",buttons:[{type:"select",label:"Normal",value:"heading",disabled:true,menu:[{text:"Normal",value:"none",checked:true},{text:"Header 1",value:"h1"},{text:"Header 2",value:"h2"},{text:"Header 3",value:"h3"},{text:"Header 4",value:"h4"},{text:"Header 5",value:"h5"},{text:"Header 6",value:"h6"}]}]})}}if(C.indentlist!=false||C.indentlist==true){(function(){var H={group:"indentlist",buttons:[]};var I={};if(C.indent||C.full){if(C.indent!=false){H.buttons.push({type:"push",label:"Indent",value:"indent",disabled:true});H.buttons.push({type:"push",label:"Outdent",value:"outdent",disabled:true});I.indent=true}}if(C.list!=false||C.list==true){H.buttons.push({type:"push",label:"Create an Unordered List",value:"insertunorderedlist"});H.buttons.push({type:"push",label:"Create an Ordered List",value:"insertorderedlist"});I.list=true}if(I.indent&&!I.list){H.label="Indenting"}if(I.list&&!I.indent){H.label="Lists"}if(I.list&&I.indent){H.label="Indenting and Lists"}if(H.buttons.length>0){D.toolbar.buttons.push({type:"separator"});D.toolbar.buttons.push(H)}})()}if(C.insertitem!=false||C.insertitem==true){(function(){var H={group:"insertitem",label:"Insert Item",buttons:[]};if(C.link!=false||C.link==true){H.buttons.push({type:"push",label:"Create Link (Select the text you wish to turn into a link before clicking this button.)",value:"createlink",disabled:true})}if(C.image!=false||C.image==true){H.buttons.push({type:"push",label:"Insert Image",value:"insertimage"})}if(C.smiley!=false||C.smiley==true){H.buttons.push({type:"push",label:"Insert Smiley",value:"inserticon",id:"SAUI-forum-post-smiley-button",menu:function(){var M=new YAHOO.widget.Overlay("inserticon",{width:"200px",height:"250px",zIndex:C.menuZ||"50002",visible:false,constraintoviewport:true});var L="";try{var I=SAUI.util.YEdit.store.Smileys||null}catch(K){}if(I){for(var J=0;J<I.length;J++){L+='<a href="#"><img src="'+I[J]+'" border="0"></a>'}}else{L="No smileys available."}M.setBody('<div id="'+G+'iconMenu" class="SAUI-editor-iconmenu" style="height: 248px; overflow: auto;">'+L+"</div>");M.beforeShowEvent.subscribe(function(){M.cfg.setProperty("context",[SAUI.draw.YEdit[G].toolbar.getButtonByValue("inserticon").get("element"),"tr","br"])});M.render(document.body);M.element.style.visibility="hidden";return M}()})}if(C.video||C.full){if(C.video!=false){H.buttons.push({type:"push",label:"Insert YouTube Video",value:"insertvideo",id:"SAUI-forum-post-video-button",menu:function(){var J=new YAHOO.widget.Overlay("insertvideo",{width:"300px",zIndex:C.menuZ||"50002",visible:false,constraintoviewport:true});var I=document.createElement("div");I.id=G+"videoMenu";I.style.height="auto";(function(){var K='<form onsubmit="return false;"><p><strong>Paste your YouTube video embed code below.</strong></p><textarea cols="30" rows="5"></textarea><br /><button>Insert Video</button></form>';I.innerHTML=K})();J.setBody(I);J.beforeShowEvent.subscribe(function(){J.cfg.setProperty("context",[SAUI.draw.YEdit[G].toolbar.getButtonByValue("insertvideo").get("element"),"tr","br"])});J.showEvent.subscribe(function(){J.body.getElementsByTagName("textarea")[0].focus()});J.render(document.body);J.element.style.visibility="hidden";return J}()})}}if(C.hr||C.full){if(C.hr!=false){H.buttons.push({type:"push",label:"Insert Horizontal Line",value:"inserthr",id:"SAUI-forum-post-hr-button"})}}if(H.buttons.length>0){D.toolbar.buttons.push({type:"separator"});D.toolbar.buttons.push(H)}})()}if(C.htmledit||C.full){if(C.htmledit!=false){D.toolbar.buttons.push({type:"separator"});D.toolbar.buttons.push({group:"htmledit",label:"HTML",buttons:[{type:"push",label:"Edit HTML Code",value:"editcode",id:"SAUI-forum-post-html-button"}]})}}var F="off";if(C.doSubmit==true){D.handleSubmit=true}SAUI.draw.YEdit[G]=new YAHOO.widget.Editor(G,D);SAUI.draw.YEdit[G].invalidHTML={meta:true,link:true,script:true,iframe:true};SAUI.draw.YEdit[G].textid=G;SAUI.draw.YEdit[G].saveHTML=function(){var H;if(F=="off"){H=this.cleanHTML();H=H.replace(new RegExp(String.fromCharCode(8216),"g"),"'");H=H.replace(new RegExp(String.fromCharCode(8217),"g"),"'");H=H.replace(new RegExp(String.fromCharCode(8220),"g"),'"');H=H.replace(new RegExp(String.fromCharCode(8221),"g"),'"');H=SAUI.util.YEdit.imgsToObj(H);if(!document.all){H=SAUI.util.YEdit.cleanWord(H)}this.get("element").value=H}else{H=this.get("element").value}return H};B.onAvailable(G+"iconMenu",function(){B.on(G+"iconMenu","click",function(J){var H=B.getTarget(J);if(H.tagName.toLowerCase()=="img"){var I=H.getAttribute("src",2);var K=this.toolbar.getButtonByValue("inserticon");K.getMenu().hide();this.toolbar.fireEvent("inserticonClick",{type:"inserticonClick",icon:I})}B.stopEvent(J)},SAUI.draw.YEdit[G],true)});B.onAvailable(G+"videoMenu",function(){B.on(G+"videoMenu","click",function(J){var H=B.getTarget(J);if(H.tagName.toLowerCase()=="button"){var I=H.parentNode.getElementsByTagName("textarea")[0].value;I=SAUI.util.YEdit.objToImg(I);var K=this.toolbar.getButtonByValue("insertvideo");try{K.getMenu().hide()}catch(L){}H.parentNode.getElementsByTagName("textarea")[0].value="";this.execCommand("inserthtml",I)}B.stopEvent(J)},SAUI.draw.YEdit[G],true)});SAUI.draw.YEdit[G].on("toolbarLoaded",function(){SAUI.draw.YEdit[G].toolbar.addListener("createlinkClick",function(I){SAUI.draw.YEdit[G].on("afterExecCommand",function(){try{(function(){if(!document.getElementById("insertlink_saui")){var N=document.createElement("label");var L=document.createElement("strong");L.innerHTML="Site Page: ";N.appendChild(L);var K=document.createElement("select");K.style.cssText="margin-right: 1em;";K.id="insertlink_saui";K.setAttribute("edit",G);var P=document.createElement("option");P.appendChild(document.createTextNode("- Link to An Existing Page on Your Site -"));K.appendChild(P);K.onchange=function(){if(this.options[this.selectedIndex].value){try{var Q=SAUI.util.ContentSections.nv.links[this.options[this.selectedIndex].value];document.getElementById(this.getAttribute("edit")+"_createlink_url").value="/"+Q.url;document.getElementById(this.getAttribute("edit")+"_createlink_title").value=SAUI.util.Url.decode(Q.label).replace(/\+/g," ")}catch(R){}}};var M=SAUI.util.ContentSections;(function(){for(var V=0;M.se.index[V];V++){var T=M.se[M.se.index[V]].index;if(T.length>0){for(var a=0;T[a];a++){var S=M.el[T[a]];if(S.type=="nav"&&S.contents.length>0){var R=document.createElement("optgroup");R.label=S.title;if(S.contents&&S.contents.length>0){for(var Y=0;S.contents[Y];Y++){var X=M.nv.links[S.contents[Y]];var W=document.createElement("option");W.value=S.contents[Y];W.appendChild(document.createTextNode(SAUI.util.Url.decode(X.label).replace(/\+/g," ")));R.appendChild(W);if(X.sub){for(var U=0;X.sub[U];U++){var Q=M.nv.links[X.sub[U]];var Z=document.createElement("option");Z.value=X.sub[U];Z.appendChild(document.createTextNode("- "+SAUI.util.Url.decode(Q.label).replace(/\+/g," ")));R.appendChild(Z)}}}}K.appendChild(R)}}}}if(M.nv.index.length>0){for(var V=0;M.nv.index[V];V++){var S=M.nv[M.nv.index[V]];if(S.type=="nav"&&S.contents.length>0){var R=document.createElement("optgroup");R.label=S.title;if(S.contents&&S.contents.length>0){for(var Y=0;S.contents[Y];Y++){var X=M.nv.links[S.contents[Y]];var W=document.createElement("option");W.value=S.contents[Y];W.appendChild(document.createTextNode(SAUI.util.Url.decode(X.label).replace(/\+/g," ")));R.appendChild(W);if(X.sub){for(var U=0;X.sub[U];U++){var Q=M.nv.links[X.sub[U]];var Z=document.createElement("option");Z.value=X.sub[U];Z.appendChild(document.createTextNode("- "+SAUI.util.Url.decode(Q.label).replace(/\+/g," ")));R.appendChild(Z)}}}}K.appendChild(R)}}}(function(){var l=M.nv.unassigned;if(l.length>0){var d=document.createElement("optgroup");d.label="Unsorted Links";for(var c=0;l[c];c++){var h=M.nv.links[l[c]];var g=document.createElement("option");g.value=l[c];g.appendChild(document.createTextNode(SAUI.util.Url.decode(h.label).replace(/\+/g," ")));d.appendChild(g);if(h.sub){for(var b=0;h.sub[b];b++){var e=M.nv.links[h.sub[b]];var k=document.createElement("option");k.value=h.sub[b];k.appendChild(document.createTextNode("- "+SAUI.util.Url.decode(e.label).replace(/\+/g," ")));d.appendChild(k)}}}K.appendChild(d)}})()})();N.appendChild(K);var O=E.get(G+"_createlink_url");E.insertAfter(N,O.parentNode)}})()}catch(J){}})});SAUI.draw.YEdit[G].toolbar.addListener("insertimageClick",function(I){SAUI.draw.YEdit[G].on("afterExecCommand",function(){try{(function(){if(!document.getElementById("insertimage_browse_btn")){var K=document.createElement("label");K.innerHTML='<strong></strong><a href="#" id="insertimage_browse_btn" style="margin-right: 1em;">Browse Server</a><a href="#" id="insertimage_upload_btn" >Upload Image</a>';var L=E.get(G+"_insertimage_url");E.insertAfter(K,L.parentNode);YAHOO.util.Event.on("insertimage_browse_btn","click",function(M){YAHOO.util.Event.stopEvent(M);ajax_showTooltip_menu("ajax/cmd.asp?page=design&cmd=dir&folder=images&temp_id="+G+"_insertimage_url&title=Browse Server",this,784);return false});YAHOO.util.Event.on("insertimage_upload_btn","click",function(M){YAHOO.util.Event.stopEvent(M);ajax_showTooltip_menu("ajax/cmd.asp?page=design&cmd=upload&folder=Content&temp_id="+G+"_insertimage_url&title=Upload Image",this,527);return false})}})()}catch(J){}})});SAUI.draw.YEdit[G].toolbar.on("inserticonClick",function(J){var I="";this._focusWindow();if(J.icon){I=J.icon}smiley='<img src="'+I+'" border="0">';this.execCommand("inserthtml",smiley)},SAUI.draw.YEdit[G],true);SAUI.draw.YEdit[G].toolbar.on("inserthrClick",function(){this.execCommand("inserthtml","<hr />")},SAUI.draw.YEdit[G],true);SAUI.draw.YEdit[G].toolbar.on("editcodeClick",function(){var I=SAUI.draw.YEdit[G].get("element"),J=SAUI.draw.YEdit[G].get("iframe").get("element");if(F=="on"){F="off";SAUI.draw.YEdit[G].toolbar.set("disabled",false);SAUI.draw.YEdit[G].setEditorHTML(I.value);if(!SAUI.draw.YEdit[G].browser.ie){SAUI.draw.YEdit[G]._setDesignMode("on")}E.removeClass(J,"editor-hidden");E.addClass(I,"editor-hidden");SAUI.draw.YEdit[G].show();SAUI.draw.YEdit[G]._focusWindow()}else{F="on";SAUI.draw.YEdit[G].cleanHTML();E.addClass(J,"editor-hidden");E.removeClass(I,"editor-hidden");SAUI.draw.YEdit[G].toolbar.set("disabled",true);SAUI.draw.YEdit[G].toolbar.getButtonByValue("editcode").set("disabled",false);SAUI.draw.YEdit[G].toolbar.selectButton("editcode");SAUI.draw.YEdit[G].dompath.innerHTML="Editing HTML Code";SAUI.draw.YEdit[G].hide()}},SAUI.draw.YEdit[G],true);SAUI.draw.YEdit[G].on("cleanHTML",function(I){SAUI.draw.YEdit[G].get("element").value=I.html},SAUI.draw.YEdit[G],true);if(document.all){var H=setTimeout(function(){try{var K=SAUI.draw.YEdit[G].toolbar.getElementsByTagName("h3");for(var M=0;K[M];M++){var L=0;var I=K[M].parentNode.getElementsByTagName("li");for(var N=0;I[N];N++){try{L=L+I[N].firstChild.offsetWidth}catch(J){}}K[M].parentNode.getElementsByTagName("ul")[0].style.cssText="min-width: "+(L+6)+"px;";K[M].style.cssText="min-width: "+(L+6)+"px;"}}catch(O){}},50)}});SAUI.draw.YEdit[G].on("afterExecCommand",function(){try{document.getElementById("yui-editor-panel").style.zIndex=C.menuZ||"50002"}catch(H){}});var A=function(){var H=SAUI.draw.YEdit[G].get("editor_wrapper");H.appendChild(SAUI.draw.YEdit[G].get("element"));SAUI.draw.YEdit[G].setStyle("width","100%");SAUI.draw.YEdit[G].setStyle("height","100%");SAUI.draw.YEdit[G].setStyle("visibility","");SAUI.draw.YEdit[G].setStyle("top","");SAUI.draw.YEdit[G].setStyle("left","");SAUI.draw.YEdit[G].setStyle("position","");SAUI.draw.YEdit[G].addClass("editor-hidden")};if(C.callback){SAUI.draw.YEdit[G].on("afterRender",function(){A();var H=SAUI.util.YEdit.preObj(SAUI.draw.YEdit[G].get("element").value);SAUI.draw.YEdit[G].get("element").value=H;SAUI.draw.YEdit[G].setEditorHTML(H);C.callback()},SAUI.draw.YEdit[G],true)}else{SAUI.draw.YEdit[G].on("afterRender",function(){A();var H=SAUI.util.YEdit.preObj(SAUI.draw.YEdit[G].get("element").value);SAUI.draw.YEdit[G].get("element").value=H;SAUI.draw.YEdit[G].setEditorHTML(H)},SAUI.draw.YEdit[G],true)}document.getElementsByTagName("body")[0].className="yui-skin-sam";SAUI.draw.YEdit[G].render()};SAUI.draw.YEditque={};SAUI.draw.YEdit=function(C,A){if(SAUI.util.YEdit.store.Smileys||!SAUI.util.YEdit.store.SmileysLoad){try{if(document.getElementById(C).value.replace(/^\s*(.*?)\s*$/,"$1")==""){document.getElementById(C).value="<br />"}}catch(B){}CKEDITOR.replace(C,{toolbar:A.toolset||"Basic",baseFloatZIndex:100000,filebrowserImageUploadUrl:"/sub_pool/editor_uploader.ASP?au="+_SGSV.ai})}else{SAUI.draw.YEditque[C]=A}};SAUI.util.AddLoadEvent=function(A){var B=window.onload;if(typeof window.onload!="function"){window.onload=A}else{window.onload=function(){if(B){B()}A()}}};SAUI.util.InitAll=function(){SAUI.util.AttachRateFunctions();try{SAUI.util.DomStorage.initialize()}catch(e){}SAUI.util.HelpManager.init();SAUI.util.GetQueryVars();SAUI.util.AttachMaxlengthFunctions();soundManager.debugMode=false;soundManager.url="/dhtml/soundmanager/swf/";(function(){SAUI.util.YEdit.store.SmileysLoad=true;var smileycall=function(string){try{SAUI.util.YEdit.store.Smileys=eval(string);if(typeof SAUI.util.YEdit.store.Smileys=="undefined"||SAUI.util.YEdit.store.Smileys==null){SAUI.util.YEdit.store.Smileys="nodata"}for(x in SAUI.draw.YEditque){SAUI.draw.YEdit(x,SAUI.draw.YEditque[x])}}catch(Error){SAUI.util.YEdit.store.Smileys="nodata";SAUI.util.YEdit.store.SmileysFail=string}};ajax_function("/json/json.asp?page=forums&cmd=smilies",smileycall)})()};SAUI.util.AutoComplete=function(C){var B=new YAHOO.util.XHRDataSource(C.string);B.responseType=YAHOO.util.XHRDataSource.TYPE_TEXT;B.responseSchema={recordDelim:"\n",fieldDelim:"\t"};B.maxCacheEntries=5;var A=new YAHOO.widget.AutoComplete(C.input,C.container,B);A.generateRequest=function(D){return D};if(C.fn){A.itemSelectEvent.subscribe(function(E,D){C.fn(D[2])})}return{oDS:B,oAC:A}};SAUI.util.AttachMaxlengthFunctions=function(){var B=document.getElementsByTagName("textarea");for(var A=0;B[A];A++){if(B[A].getAttribute("maxlength")){SAUI.effects.TextLimitCounter(B[A])}}};SAUI.util.DynamicContent=function(B,D){var A=Math.floor(Math.random()*99999999);var C=YAHOO.util.Connect.asyncRequest("GET",B+"&uncache="+A,{success:function(H){if(typeof D!="object"){D=document.getElementById(D)}D.innerHTML=H.responseText;if(SAUI.util.DynamicContent._onLoad){var E=SAUI.util.DynamicContent._onLoad;for(var F=0;E[F];F++){try{if(E[F].cond(D,E[F].args)){E[F].func(D,E[F].args);if(E[F].runonce){E.splice(F,1);F--}}}catch(G){E.splice(F,1);F--}}}},failure:function(E){alert("Sorry, we were unable to load that for you at this time. Please refresh the page and try again.\nHTTP status: "+E.status+"/nStatus code message: "+E.statusText)}})};SAUI.util.DynamicContent.onLoad=function(C,D,B,A){if(!SAUI.util.DynamicContent._onLoad){SAUI.util.DynamicContent._onLoad=[]}SAUI.util.DynamicContent._onLoad.push({cond:C,func:D,runonce:B,args:A})};SAUI.util.GetQueryVars=function(){if(window.location.href.split("?")&&window.location.href.split("?")[1]){var A=window.location.href.split("?")[1].split("&");SAUI.store.QueryString={array:[],obj:{}};for(var B=0;A[B];B++){var C=A[B].split("=");SAUI.store.QueryString.array.push(C);SAUI.store.QueryString.obj[C[0]]=C[1]}}};SAUI.util.HelpManager={cacheResponse:false,saveState:function(){var A=SAUI.draw.HelpBox.panel.cfg.config;var B={w:A.width.value,h:A.height.value,xy:A.xy.value,s:SAUI.draw.HelpBox.selected};YAHOO.util.Cookie.setSub("HelpMan","state",YAHOO.lang.JSON.stringify(B))},getState:function(){return YAHOO.util.Cookie.getSub("HelpMan","state")},deleteState:function(){YAHOO.util.Cookie.removeSub("HelpMan","state")},saveOpt:function(){var A=function(D){if(D){var C=new Date();C.setTime(C.getTime()+(D*24*60*60*1000));var B="; expires="+C.toGMTString();return B}};YAHOO.util.Cookie.setSub("HelpMan","save",YAHOO.lang.JSON.stringify(SAUI.util.HelpManager.save),{expires:A(365)});SAUI.util.DomStorage.set("HelpMan.save",YAHOO.lang.JSON.stringify(SAUI.util.HelpManager.save))},contentProcess:function(A){var C=YAHOO.util.Dom;var D=document.createElement("div");D.id="SAUI-Help-InfoBody-body";D.innerHTML=A;if(!document.getElementById("SAUI-Help-ShowMeOverlay")){var B=document.createElement("div");B.id="SAUI-Help-ShowMeOverlay";(function(){var F=document.createElement("div");F.className="hd";var E=document.createElement("div");E.className="bd";var G=document.createElement("div");G.className="ft";B.appendChild(F);B.appendChild(E);B.appendChild(G)})();document.getElementsByTagName("body")[0].appendChild(B);SAUI.util.HelpManager.ShowMeOverlay=new YAHOO.widget.Overlay("SAUI-Help-ShowMeOverlay",{visible:false,width:"300px",height:"100px",zIndex:50001,autofillheight:"body",context:["img1","tl","tl",["beforeShow","windowResize"]]});SAUI.util.HelpManager.ShowMeOverlay.render();document.getElementById("SAUI-Help-ShowMeOverlay").onmouseover=function(){SAUI.util.HelpManager.ShowMeOverlay.hide()}}(function(){var F=getElementsByClassName("showme","*",D);for(var E=0;F[E];E++){if(document.getElementById(F[E].getAttribute("for"))){F[E].onmouseover=function(){var G=document.getElementById(this.getAttribute("for"));if(C.getRegion(G)){SAUI.util.HelpManager.ShowMeOverlay.cfg.setProperty("context",[this.getAttribute("for"),"tl","tl",["beforeShow","windowResize"]]);SAUI.util.HelpManager.ShowMeOverlay.cfg.setProperty("width",G.offsetWidth+"px");SAUI.util.HelpManager.ShowMeOverlay.cfg.setProperty("height",G.offsetHeight+"px");SAUI.util.HelpManager.ShowMeOverlay.show()}else{}};F[E].onmouseout=function(){SAUI.util.HelpManager.ShowMeOverlay.hide()}}else{C.removeClass(F[E],"showme")}}})();(function(){var F=D.getElementsByTagName("ol");for(var G=0;F[G];G++){var I=0;var E=F[G].getElementsByTagName("li");for(var H=0;E[H];H++){if(I==0){C.addClass(E[H],"odd");I=1}else{C.addClass(E[H],"even");I=0}}}})();(function(){var H=D.getElementsByTagName("p");for(var F=0;H[F];F++){if(H[F].getAttribute("audio")){var G=H[F].getAttribute("audio");var E=document.createElement("a");E.innerHTML="Play/Pause";E.className="paudio-controls";E.setAttribute("audio",G);E.onclick=function(){if(soundManager.getSoundById(this.getAttribute("audio"))&&soundManager.getSoundById(this.getAttribute("audio")).playState!=0){if(soundManager.getSoundById(this.getAttribute("audio")).paused){soundManager.resume(this.getAttribute("audio"));YAHOO.util.Dom.removeClass(this,"paused")}else{soundManager.pause(this.getAttribute("audio"));YAHOO.util.Dom.addClass(this,"paused")}}else{(function(){soundManager.stopAll();try{soundManager.destroySound(SAUI.util.HelpManager.activeAudio.getAttribute("audio"))}catch(J){}YAHOO.util.Dom.removeClass(SAUI.util.HelpManager.activeAudio,"playing");YAHOO.util.Dom.removeClass(SAUI.util.HelpManager.activeAudio,"paused");delete SAUI.util.HelpManager.activeAudio})();YAHOO.util.Dom.addClass(this,"playing");SAUI.util.HelpManager.activeAudio=this;var I=soundManager.createSound({id:this.getAttribute("audio"),url:this.getAttribute("audio"),onfinish:function(){YAHOO.util.Dom.removeClass(SAUI.util.HelpManager.activeAudio,"playing");YAHOO.util.Dom.removeClass(SAUI.util.HelpManager.activeAudio,"paused");delete SAUI.util.HelpManager.activeAudio},onstop:function(){YAHOO.util.Dom.removeClass(SAUI.util.HelpManager.activeAudio,"playing");YAHOO.util.Dom.removeClass(SAUI.util.HelpManager.activeAudio,"paused");delete SAUI.util.HelpManager.activeAudio}});I.play()}};H[F].insertBefore(E,H[F].firstChild)}}})();(function(){var F=getElementsByClassName("showvid","a",D);for(var E=0;F[E];E++){F[E].onclick=function(){var G=this.getAttribute("size").split("-");SAUI.draw.HelpVideo({width:G[0],height:G[1],title:this.innerHTML,url:this.getAttribute("href").replace(".swf","")});return false}}})();(function(){var E=getElementsByClassName("ihelp","div",D);for(var F=0;E[F];F++){E[F].innerHTML="<div>Interactive Help Available<br />Click Here to Start</div>";E[F].onclick=function(){SAUI.util.HelpManager.iHelp(this.getAttribute("help"),this);return false}}})();(function(){var E=getElementsByClassName("helpref","*",D);for(var F=0;E[F];F++){E[F].title="More help is available for this, click here.";E[F].onclick=function(){SAUI.draw.HelpBox(null,this.getAttribute("help"));return false}}})();(function(){})();return D},init:function(){var F=function(I){try{SAUI.draw.HelpBox.indexObj=I;var G=document.createElement("div");G.id="SAUI-Help-Ready-Now";document.getElementsByTagName("body")[0].appendChild(G)}catch(H){}};ajax_getJSON("json/json.asp?page=help&id=37618",F,SAUI.util.HelpManager.cacheResponse);(function(){var G=function(J){if(J){var I=new Date();I.setTime(I.getTime()+(J*24*60*60*1000));var H="; expires="+I.toGMTString();return H}};if(YAHOO.util.Cookie.getSub("HelpMan","save")){SAUI.util.HelpManager.save=YAHOO.lang.JSON.parse(YAHOO.util.Cookie.getSub("HelpMan","save"))}else{if(SAUI.util.DomStorage.get("HelpMan.save")){SAUI.util.HelpManager.save=YAHOO.lang.JSON.parse(SAUI.util.DomStorage.get("HelpMan.save"))}else{SAUI.util.HelpManager.save={all:true,pp:{}};YAHOO.util.Cookie.setSub("HelpMan","save",YAHOO.lang.JSON.stringify(SAUI.util.HelpManager.save),{expires:G(365)});SAUI.util.DomStorage.set("HelpMan.save",YAHOO.lang.JSON.stringify(SAUI.util.HelpManager.save))}}})();if(SAUI.util.HelpManager.getState()!=null){var E=YAHOO.lang.JSON.parse(SAUI.util.HelpManager.getState());SAUI.draw.HelpBox(null,E.s,E)}if(SAUI.util.HelpManager.firstRun&&SAUI.util.HelpManager.save.all==true&&!SAUI.util.HelpManager.save.pp[SAUI.util.HelpManager.firstRun.name]){var C=function(){SAUI.util.HelpManager.firstRun.run();SAUI.util.HelpManager.save.pp[SAUI.util.HelpManager.firstRun.name]=true;if(document.getElementById("SAUI-Help-Option-Off").checked==true){SAUI.util.HelpManager.save.all=false}SAUI.util.HelpManager.saveOpt();this.hide()};var A=function(){SAUI.util.HelpManager.save.pp[SAUI.util.HelpManager.firstRun.name]=true;if(document.getElementById("SAUI-Help-Option-Off").checked==true){SAUI.util.HelpManager.save.all=false}SAUI.util.HelpManager.saveOpt();this.hide()};var B=document.createElement("div");B.id="SAUI-Help-Box-FirstRun";(function(){var H=document.createElement("div");H.className="hd";H.innerHTML="Help Available";var G=document.createElement("div");G.className="bd";var I=document.createElement("div");I.className="ft";B.appendChild(H);B.appendChild(G);B.appendChild(I)})();document.getElementsByTagName("body")[0].appendChild(B);var D=new YAHOO.widget.SimpleDialog(B,{width:"300px",fixedcenter:true,visible:true,draggable:false,close:true,text:"This section has an introduction "+SAUI.util.HelpManager.firstRun.type+', would you like to watch it now?<form style="margin-top: 5px; font-size: .75em;"><label for="SAUI-Help-Option-Off"><strong>Do not ask me about available help again </strong><input type="checkbox" name="SAUI-Help-Option-Off" id="SAUI-Help-Option-Off" value="true" /></label></form>',icon:YAHOO.widget.SimpleDialog.ICON_HELP,constraintoviewport:true,buttons:[{text:"Yes",handler:C,isDefault:true},{text:"No",handler:A}],zIndex:50002});D.render()}},iHelpDrawDialog:function(G,I,D,B,A){if(!A){var E=function(){this.hide();SAUI.util.HelpManager.iHelpProcessNext()}}else{var E=function(){this.hide();SAUI.util.HelpManager.iHelpQuit()}}if(SAUI.util.HelpManager.iHelpOverlay){SAUI.util.HelpManager.iHelpOverlay.hide()}if(SAUI.util.HelpManager.iHelpOverlayText){SAUI.util.HelpManager.iHelpOverlayText.hide()}if(document.getElementById("SAUI-Help-Box-iHelp-Dialog")){document.getElementById("SAUI-Help-Box-iHelp-Dialog").parentNode.removeChild(document.getElementById("SAUI-Help-Box-iHelp-Dialog"))}var C=document.createElement("div");C.id="SAUI-Help-Box-iHelp-Dialog";(function(){var K=document.createElement("div");K.className="hd";K.innerHTML="Help Available";var J=document.createElement("div");J.className="bd";var L=document.createElement("div");L.className="ft";C.appendChild(K);C.appendChild(J);C.appendChild(L)})();document.getElementsByTagName("body")[0].appendChild(C);SAUI.util.HelpManager.iHelpDrawDialog.dialog=new YAHOO.widget.SimpleDialog(C,{width:"300px",fixedcenter:true,visible:true,draggable:false,close:false,text:I,constraintoviewport:true,buttons:[{text:D,handler:E,isDefault:true}],zIndex:50002});SAUI.util.HelpManager.iHelpDrawDialog.dialog.setHeader(G);SAUI.util.HelpManager.iHelpDrawDialog.dialog.render();if(B!=null){soundManager.stopAll();try{soundManager.destroySound("iHelp")}catch(F){}var H=soundManager.createSound({id:"iHelp",url:B});H.play()}},iHelpDrawOverlay:function(E,F,B){E=typeof E=="object"?E:document.getElementById(E);if(!SAUI.util.HelpManager.iHelpOverlay){var A=document.createElement("div");A.id="SAUI-Help-iHelpOverlay";(function(){var H=document.createElement("div");H.className="hd";var G=document.createElement("div");G.className="bd";var I=document.createElement("div");I.className="ft";A.appendChild(H);A.appendChild(G);A.appendChild(I)})();document.getElementsByTagName("body")[0].appendChild(A);SAUI.util.HelpManager.iHelpOverlay=new YAHOO.widget.Overlay("SAUI-Help-iHelpOverlay",{visible:false,width:"300px",height:"100px",zIndex:50001,autofillheight:"body",effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.15}});A.onclick=function(){SAUI.util.HelpManager.iHelpProcessNext()};A.onmouseover=function(){YAHOO.util.Dom.addClass(this,"over")};A.onmouseout=function(){YAHOO.util.Dom.removeClass(this,"over")};SAUI.util.HelpManager.iHelpOverlay.render()}if(!SAUI.util.HelpManager.iHelpOverlayText){var A=document.createElement("div");A.id="SAUI-Help-iHelpOverlayText";(function(){var H=document.createElement("div");H.className="hd";var G=document.createElement("div");G.className="bd";var I=document.createElement("div");I.className="ft";A.appendChild(H);A.appendChild(G);A.appendChild(I)})();document.getElementsByTagName("body")[0].appendChild(A);SAUI.util.HelpManager.iHelpOverlayText=new YAHOO.widget.Overlay("SAUI-Help-iHelpOverlayText",{visible:false,width:"250px",height:"auto",zIndex:50001,constraintoviewport:true,autofillheight:"body",effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.25}});SAUI.util.HelpManager.iHelpOverlayText.render()}if(YAHOO.util.Dom.getRegion(E)){SAUI.util.HelpManager.iHelpOverlay.cfg.setProperty("context",[E,"tl","tl",["beforeShow","windowResize"]]);SAUI.util.HelpManager.iHelpOverlay.cfg.setProperty("width",E.offsetWidth+"px");SAUI.util.HelpManager.iHelpOverlay.cfg.setProperty("height",E.offsetHeight+"px");SAUI.util.HelpManager.iHelpOverlay.subscribe("show",function(){SAUI.util.HelpManager.iHelpOverlayText.cfg.setProperty("context",["SAUI-Help-iHelpOverlay","tl","bl",["beforeShow","windowResize"]]);SAUI.util.HelpManager.iHelpOverlayText.setBody(arguments[2].text);SAUI.util.HelpManager.iHelpOverlayText.show()},{text:F,audio:B});SAUI.util.HelpManager.iHelpOverlayText.cfg.setProperty("context",["SAUI-Help-iHelpOverlay","tl","bl",["beforeShow","windowResize"]]);SAUI.util.HelpManager.iHelpOverlayText.setBody(F);SAUI.util.HelpManager.iHelpOverlay.show();if(B!=null){soundManager.stopAll();try{soundManager.destroySound("iHelp")}catch(D){}var C=soundManager.createSound({id:"iHelp",url:B});C.play()}}},iHelpQuit:function(){if(SAUI.util.HelpManager.iHelpDrawDialog.dialog){SAUI.util.HelpManager.iHelpDrawDialog.dialog.hide()}if(SAUI.util.HelpManager.iHelpOverlay){SAUI.util.HelpManager.iHelpOverlay.hide()}if(SAUI.util.HelpManager.iHelpOverlayText){SAUI.util.HelpManager.iHelpOverlayText.hide()}delete SAUI.util.HelpManager.iHelp.active;document.getElementById("SAUI-Help-iHelp-inProgresButton").style.display="";document.getElementById("SAUI-Help-iHelp-inProgresButton").removeAttribute("id");document.getElementById("SAUI-Help-iHelp-Controls").parentNode.removeChild(document.getElementById("SAUI-Help-iHelp-Controls"));soundManager.stopAll()},iHelpProcessNext:function(D){var A=SAUI.util.HelpManager.iHelp.active,E;var C=function(G){SAUI.util.HelpManager.iHelpDrawDialog('Interactive Help <span style="color: red;" title="Turn on your sound!">(With Audio)</span>',A[G].text,"Start",A[G].audio||null)};var B=function(H){if(A[0].completeCall){var G={success:function(I){}};YAHOO.util.Connect.asyncRequest("GET",A[0].completeCall+H,G)}SAUI.util.HelpManager.iHelpDrawOverlay(A[H].obj,A[H].text,A[H].audio||null)};var F=function(H){if(A[0].completeCall){var G={success:function(I){}};YAHOO.util.Connect.asyncRequest("GET",A[0].completeCall+H,G)}SAUI.util.HelpManager.iHelpDrawDialog("Finished!",A[H].text,"Okay",A[H].audio||null,true)};if(SAUI.util.HelpManager.iHelp.place==null){E=0;SAUI.util.HelpManager.iHelp.place=0}else{if(!D){E=SAUI.util.HelpManager.iHelp.place+1;SAUI.util.HelpManager.iHelp.place+=1}else{E=SAUI.util.HelpManager.iHelp.place}}if(SAUI.util.HelpManager.iHelpDrawDialog.dialog){SAUI.util.HelpManager.iHelpDrawDialog.dialog.hide()}if(A[E]){if(A[E].obj=="Intro Message"){C(E)}else{if(A[E].obj=="Done Message"){F(E)}else{B(E)}}}else{SAUI.util.HelpManager.iHelpQuit()}},iHelp:function(name,btn){var baseURL="/admin/fun/ihelp/",callback={success:function(o){SAUI.util.HelpManager.iHelp.active=[];SAUI.util.HelpManager.iHelp.place=null;try{SAUI.util.HelpManager.iHelp.active=eval(o.responseText)}catch(e){alert("There was an error reading the help file. If this problem persists please contact support.")}SAUI.util.HelpManager.iHelpProcessNext();btn.id="SAUI-Help-iHelp-inProgresButton";var ctrls=document.createElement("div");ctrls.id="SAUI-Help-iHelp-Controls";ctrls.innerHTML='<div class="title">Interactive Help in Progress</div>';(function(){var repeat=document.createElement("a");repeat.innerHTML="Repeat Step";repeat.title="Repeat Step";repeat.href="#";repeat.className="repeat";repeat.onclick=function(){SAUI.util.HelpManager.iHelpProcessNext(true);return false};ctrls.appendChild(repeat);var next=document.createElement("a");next.innerHTML="Next Step";next.title="Next Step";next.href="#";next.className="next";next.onclick=function(){SAUI.util.HelpManager.iHelpProcessNext();return false};ctrls.appendChild(next);var quit=document.createElement("a");quit.innerHTML="Exit Interactive Help";quit.title="Exit Interactive Help";quit.href="#";quit.className="quit";quit.onclick=function(){SAUI.util.HelpManager.iHelpQuit();return false};ctrls.appendChild(quit)})();btn.style.display="none";btn.parentNode.insertBefore(ctrls,btn)},failure:function(){alert("We were unable to load this at this time. If this problem persists please contact support.")}};YAHOO.util.Connect.asyncRequest("GET",baseURL+name+".js?nocache="+(Math.floor(Math.random()*100000)),callback)}};SAUI.util.SetImage=function(B,A,I,F,C){var H;if(C){if(window.frames[C]){H=window.frames[C].document}else{var D=window.frames;for(var E=0;D[E];E++){try{if(D[E].frames[C]){H=D[E].frames[C].document;break}}catch(G){}}}}else{H=document}H.getElementById(B).value=A;H.getElementById(B).focus();H.getElementById(B).blur()};SAUI.util.YEdit={store:{},objToImg:function(E,B){B=B||{};var G;if(B.align){G=' align="'+B.align+'"'}else{G=""}try{var D=document.createElement("div");D.innerHTML=E;var A=D.getElementsByTagName("embed").length>0?D.getElementsByTagName("embed")[0].getAttribute("width"):D.getElementsByTagName("object")[0].getAttribute("width");var C=D.getElementsByTagName("embed").length>0?D.getElementsByTagName("embed")[0].getAttribute("height"):D.getElementsByTagName("object")[0].getAttribute("height");if(!B.obj){E='<img youtube="true"'+G+' style="width: '+A+"px; height: "+C+'px;" src="http://img.youtube.com/vi/'+E.split("youtube.com/v/")[1].substring(0,11)+'/2.jpg" alt="This will display is a video when you post.">'}else{img=document.createElement("img");img.setAttribute("youtube","true");img.style.cssText="width: "+A+"px; height: "+C+"px;";if(B.align){img.setAttribute("align",B.align)}img.setAttribute("title","This will display is a video when you post.");img.setAttribute("src","http://img.youtube.com/vi/"+E.split("youtube.com/v/")[1].substring(0,11)+"/2.jpg");E=img}return E}catch(F){alert("Sorry, I could not understand that code. Please use valid YouTube video embed code.");return""}},imgsToObj:function(F){var E=document.createElement("div");E.innerHTML=F;var H=E.getElementsByTagName("img");for(var C=0;C<H.length;C++){if(H[C].getAttribute("youtube")){var B=H[C].style.cssText.split("px")[0].split(": ")[1];var D=H[C].style.cssText.split("px")[1].split(": ")[1];var A=H[C].src.split("vi/")[1].split("/2")[0];var G=document.createElement("div");G.setAttribute("youtube","true");G.style.cssText="width: "+B+"px; height: "+D+"px;";if(H[C].align){G.style["float"]=H[C].align;G.setAttribute("align",H[C].align)}else{G.style.display="inline"}G.innerHTML='<object width="'+B+'" height="'+D+'"><param name="movie" value="http://www.youtube.com/v/'+A+'"></param><param name="wmode" value="transparent"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/'+A+'" type="application/x-shockwave-flash" allowfullscreen="true" wmode="transparent" width="'+B+'" height="'+D+'"></embed></object>';H[C].parentNode.replaceChild(G,H[C]);C--}}return E.innerHTML},preObj:function(D){var C=document.createElement("div");C.innerHTML=D;(function(){var H=C.getElementsByTagName("object");for(var G=0;H[G];G++){if(H[G].getAttribute("type")){H[G].removeAttribute("type")}}})();var B=C.getElementsByTagName("div");for(var A=0;A<B.length;A++){try{if(B[A].getAttribute("youtube")){var F=B[A].getAttribute("align");B[A].parentNode.replaceChild(SAUI.util.YEdit.objToImg(B[A].innerHTML,{align:F,obj:true}),B[A]);A--}}catch(E){}}return C.innerHTML},cleanWord:function(E,A,D){var C=false;var B=typeof E=="object"?E.innerHTML:E;B=B.replace(/<o:p>\s*<\/o:p>/g,"");B=B.replace(/<o:p>[\s\S]*?<\/o:p>/g,"&nbsp;");B=B.replace(/\s*mso-[^:]+:[^;"]+;?/gi,"");B=B.replace(/\s*PAGE-BREAK-BEFORE: [^\s;]+;?"/gi,'"');B=B.replace(/\s*tab-stops:[^;"]*;?/gi,"");B=B.replace(/\s*tab-stops:[^"]*/gi,"");if(A){B=B.replace(/\s*face="[^"]*"/gi,"");B=B.replace(/\s*face=[^ >]*/gi,"");B=B.replace(/\s*FONT-FAMILY:[^;"]*;?/gi,"")}B=B.replace(/<STYLE[^>]*>[\s\S]*?<\/STYLE[^>]*>/gi,"");B=B.replace(/<(?:META|LINK)[^>]*>\s*/gi,"");B=B.replace(/<\\?\?xml[^>]*>/gi,"");B=B.replace(/<w:[^>]*>[\s\S]*?<\/w:[^>]*>/gi,"");B=B.replace(/<\/?\w+:[^>]*>/gi,"");B=B.replace(/<\!--[\s\S]*?-->/g,"");return B}};SAUI.util.Url={encode:function(A){return escape(this._utf8_encode(A))},decode:function(A){return this._utf8_decode(unescape(A))},_utf8_encode:function(B){B=B.replace(/\r\n/g,"\n");var A="";for(var D=0;D<B.length;D++){var C=B.charCodeAt(D);if(C<128){A+=String.fromCharCode(C)}else{if((C>127)&&(C<2048)){A+=String.fromCharCode((C>>6)|192);A+=String.fromCharCode((C&63)|128)}else{A+=String.fromCharCode((C>>12)|224);A+=String.fromCharCode(((C>>6)&63)|128);A+=String.fromCharCode((C&63)|128)}}}return A},_utf8_decode:function(A){var B="";var D=0;var F,E,C;F=E=C=0;while(D<A.length){F=A.charCodeAt(D);if(F<128){B+=String.fromCharCode(F);D++}else{if((F>191)&&(F<224)){C=A.charCodeAt(D+1);B+=String.fromCharCode(((F&31)<<6)|(C&63));D+=2}else{C=A.charCodeAt(D+1);c3=A.charCodeAt(D+2);B+=String.fromCharCode(((F&15)<<12)|((C&63)<<6)|(c3&63));D+=3}}}return B}};SAUI.util.GetJSON=function(url,callback,cache,args){if(cache&&cache!=false){var dcache=SAUI.util.DomStorage.get(url,7200)}else{var dcache=false}if(dcache==false){var success=function(o){try{if(!o.argument.arg){o.argument.call(eval(o.responseText))}else{o.argument.call(eval(o.responseText),o.argument.arg)}if(o.argument.cache){SAUI.util.DomStorage.set(o.argument.url,o.responseText)}}catch(Error){if(!o.argument.arg){o.argument.call(o.responseText)}else{o.argument.arg(o.responseText,o.argument.arg)}if(o.argument.cache){SAUI.util.DomStorage.set(o.argument.url,o.responseText)}}};var failure=function(o){};var request=YAHOO.util.Connect.asyncRequest("GET",url,{success:success,failure:failure,argument:{call:callback,arg:args,cache:cache,url:url}})}else{try{if(!args){callback(eval(dcache))}else{callback(eval(dcache),args)}}catch(Error){if(!args){callback(dcache)}else{callback(dcache,args)}}}};SAUI.util.SubmitForm=function(D,F,B){var E=function(H){var G=document.createElement("div");if(H.responseText!=""){G.innerHTML=H.responseText}else{G.innerHTML="No Content"}H.argument.call(G,H.argument.arg)};var A=function(G){};YAHOO.util.Connect.setForm(D);var C=YAHOO.util.Connect.asyncRequest("POST",D.getAttribute("action"),{success:E,failure:A,argument:{call:F,arg:B}})};SAUI.util.StartDownload=function(A){if(document.getElementById("SAUI-Download-Holder-Iframe")){var B=document.getElementById("SAUI-Download-Holder-Iframe")}else{var B=document.createElement("iframe");B.style.cssText="width: 0; height: 0; visibility: hidden; position: absolute; left: -20000px;";B.id="SAUI-Download-Holder-Iframe";document.getElementsByTagName("body")[0].insertBefore(B,document.getElementsByTagName("body")[0].childNodes[0])}B.src=A};SAUI.util.DomStorage={initialize:function(A){this.name=A||"storage";if(document.all){try{this.storage=document.createElement("span");this.storage.style.behavior="url('#default#userData')";document.getElementsByTagName("body")[0].insertBefore(this.storage,document.getElementsByTagName("body")[0].childNodes[0])}catch(B){}}else{if(globalStorage){this.storage=globalStorage[location.hostname]}}},clean:function(A){A=A.replace(/\?/g,"").replace(/\=/g,"").replace(/\&/g,"").replace(new RegExp("/","g"),"");return A},get:function(E,G,B){var F=new Date();var A=F.getTime();if(document.all){E=this.clean(E);try{this.storage.load("storage");if(this.storage.getAttribute(E)){var C=this.storage.getAttribute(E).slice(13);if(G){var D=(A-(this.storage.getAttribute(E).slice(0,13)*1))/1000;if(D<G){return C}else{if(B){this.clear(E)}return false}}else{return C}}else{return false}}catch(H){return false}}else{if(this.storage){if(this.storage[E]&&this.storage[E]!="undefined"){var C=this.storage[E].toString().slice(13);if(G){var D=(A-(this.storage[E].toString().slice(0,13)*1))/1000;if(D<G){return C}else{if(B){this.clear(E)}return false}}else{return C}}else{return false}}else{return false}}},set:function(B,D){var C=new Date();var A=C.getTime();if(document.all){B=this.clean(B);try{this.storage.setAttribute(B,A+D);this.storage.save("storage")}catch(E){return false}}else{if(this.storage){this.storage[B]=A+D}else{return false}}return true},clear:function(A){if(document.all){this.storage.removeAttribute(A);this.storage.save("storage")}else{if(this.storage){this.storage[A]=undefined}else{return false}}return true}};SAUI.util.AttachRateFunctions=function(){var F=getElementsByClassName("SUI-RateBox");var D=[],C=[],B=[],A=[],G=[];for(i=0;F[i];i++){if(!F[i].getAttribute("set")){var E=F[i].childNodes;D[i]=F[i].getAttribute("vbls");for(ii=0;E[ii];ii++){if(E[ii].className=="down"){C[i]=E[ii]}else{if(E[ii].className=="number"){A[i]=E[ii];G[i]=parseFloat(A[i].innerHTML)}else{if(E[ii].className=="number good"){A[i]=E[ii];G[i]=parseFloat(A[i].innerHTML)}else{if(E[ii].className=="number bad"){A[i]=E[ii];G[i]=parseFloat("-"+A[i].innerHTML)}else{if(E[ii].className=="up"){B[i]=E[ii]}}}}}}if(C[i]){C[i].setAttribute("rbn",i);C[i].onclick=function(){ajax_send("files/com/call.asp?page=rateit&vbls="+D[this.getAttribute("rbn")]+"&vote=-1");C[this.getAttribute("rbn")].className=C[this.getAttribute("rbn")].className+" dis";B[this.getAttribute("rbn")].className=B[this.getAttribute("rbn")].className+" dis";if(G[this.getAttribute("rbn")]-1<0){A[this.getAttribute("rbn")].className="number bad"}else{if(G[this.getAttribute("rbn")]-1>0){A[this.getAttribute("rbn")].className="number good"}else{A[this.getAttribute("rbn")].className="number"}}A[this.getAttribute("rbn")].innerHTML=Math.abs(G[this.getAttribute("rbn")]-1);C[this.getAttribute("rbn")].onclick=function(){return false};B[this.getAttribute("rbn")].onclick=function(){return false};return false};B[i].setAttribute("rbn",i);B[i].onclick=function(){ajax_send("files/com/call.asp?page=rateit&vbls="+D[this.getAttribute("rbn")]+"&vote=1");C[this.getAttribute("rbn")].className=C[this.getAttribute("rbn")].className+" dis";B[this.getAttribute("rbn")].className=B[this.getAttribute("rbn")].className+" dis";if(G[this.getAttribute("rbn")]+1<0){A[this.getAttribute("rbn")].className="number bad"}else{if(G[this.getAttribute("rbn")]+1>0){A[this.getAttribute("rbn")].className="number good"}else{A[this.getAttribute("rbn")].className="number"}}A[this.getAttribute("rbn")].innerHTML=Math.abs(G[this.getAttribute("rbn")]+1);C[this.getAttribute("rbn")].onclick=function(){return false};B[this.getAttribute("rbn")].onclick=function(){return false};return false}}F[i].setAttribute("set","true")}}};SAUI.util.PresentForm=function(){var C;var A=function(){var F;var D;var E;for(i=0;C[i];i++){D=C[i].getElementsByTagName("fieldset");E=C[i].getElementsByTagName("label");for(ii=0;D[ii];ii++){D[ii].className=""}for(ii=0;E[ii];ii++){E[ii].className=""}}if(document.getElementById("SAUI-FirstFormHelp")!=null){document.getElementById("SAUI-FirstFormHelp").className=""}};var B=function(D){for(i=0;D[i];i++){if(D[i].className!="button"){D[i].onfocus=function(){A();var E=this.parentNode.parentNode.parentNode;E.className="fieldsetHighlight";this.previousSibling.className="labelHighlight";if(E.getAttribute("audio")&&!E.getAttribute("played")){E.setAttribute("played","true");soundManager.stopAll();(function(){var F=soundManager.createSound({id:"formHelp"+Math.floor(Math.random()*100000),url:E.getAttribute("audio")});F.play()})()}}}}};if(document.getElementsByTagName){C=getElementsByClassName("SAUI-Form","form");for(i=0;C[i];i++){eleInputs=C[i].getElementsByTagName("input");eleTextAreas=C[i].getElementsByTagName("textarea");eleSelects=C[i].getElementsByTagName("select");B(eleInputs);B(eleTextAreas);B(eleSelects)}}};SAUI.util.AddLoadEvent(SAUI.util.PresentForm);SAUI.util.GetSpace=function(B,C){var I=YAHOO.util.Dom.getXY(B);iebody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;var E=(iebody.scrollTop)?iebody.scrollTop:window.pageYOffset;E=E||0;var K=(iebody.scrollLeft)?iebody.scrollLeft:window.pageXOffset;K=K||0;var F=(iebody.clientWidth)?iebody.clientWidth:window.innerWidth;var J=(iebody.clientHeight)?iebody.clientHeight:window.innerHeight;C=C||document;if(typeof B==("string")){B=C.getElementById(B)}var G=B.offsetWidth;var D=B.offsetHeight;var H,A;H=A=0;if(B.offsetParent){H=B.offsetLeft;A=B.offsetTop;while(B=B.offsetParent){H+=B.offsetLeft;A+=B.offsetTop}}if(I!=false){return[I[0],I[1],G,D,F,J,K,E]}else{return[H,A,G,D,F,J,K,E]}};SAUI.util.OutOfView=function(B){var A=SAUI.util.GetSpace(B);if(A[1]>A[7]&&(A[1]+A[3])<(A[5]+A[7])){return false}else{if(A[1]<A[7]){return"top"}else{return"bottom"}}};SAUI.util.KeepFit={pass:{},store:{},reg:function(C,A,B){SAUI.util.KeepFit.store[C]=A;if(B){SAUI.util.KeepFit.pass[C]=B}},unreg:function(A){delete SAUI.util.KeepFit.store[A]},run:function(){for(x in SAUI.util.KeepFit.store){try{var B=document.getElementById(x);for(var A=0;SAUI.util.KeepFit.store[x][A];A++){for(y in SAUI.util.KeepFit.store[x][A]){try{if(SAUI.util.KeepFit.pass[x]){B.style[y]=SAUI.util.KeepFit.store[x][A][y](SAUI.util.KeepFit.pass[x])}else{B.style[y]=SAUI.util.KeepFit.store[x][A][y]()}}catch(C){SAUI.err.Errors.push({type:C.type,message:C.message})}}}}catch(C){SAUI.err.Errors.push({type:C.type,message:C.message})}}}};SAUI.util.RemoveBagage=function(A){local=new Array(0,0);A=A.replace(/(\n\r|\n|\r)/gm," ");A=A.replace(/\s+/g," ");A=A.replace(/"/g,"");for(ii=0;ii<=A.length-1&&local[0]==0;ii++){if(A.charAt(ii)!="/s"){local[0]=ii}}for(ii=A.length-1;ii>=0&&local[1]==0;ii--){if(A.charAt(ii)!="/s"){local[1]=ii}}A=A.slice(local[0]-1,local[1]+1);if(A.indexOf(" ")==0){A=A.slice(1)}if(A.lastIndexOf(" ")==A.length-1){A=A.slice(0,A.length-1)}return A};SAUI.util.StoreCSS=function(D,A){if(A==true){var E=document.getElementById(D).value.split("}")}else{var E=D.split("}")}if(!B){var B=new Array()}else{B.length=0}for(i=0;i<=E.length-1;i++){newrule=E[i].split("{");if(newrule[0].match("/*/")!=null){local=newrule[0].split("*/");for(ii=0;ii<=local.length-2;ii++){comment1=local[ii].split("/*");comment=comment1[1]||"";newc=new Array("comment",comment);B.push(newc)}newrule[0]=local[local.length-1]}if(newrule[1]!=undefined){newrule[0]=SAUI.util.RemoveBagage(newrule[0]);var C=new Array();var F=newrule[1].split(";");for(iii=0;iii<=F.length-1;iii++){newattrib=F[iii].split(":");if(newattrib[1]!=undefined){newattrib[0]=SAUI.util.RemoveBagage(newattrib[0]);newattrib[1]=SAUI.util.RemoveBagage(newattrib[1]);if(newattrib[2]!=undefined){attribp=new Array(newattrib[0],newattrib[1]+":"+newattrib[2]);C.push(attribp)}else{attribp=new Array(newattrib[0],newattrib[1]);C.push(attribp)}}}object=new Array(newrule[0],C);newobj=new Array("object",object);B.push(newobj)}}SAUI.util.StoreCSS.csslocker=B;return B};SAUI.util.GetStyleFor=function(E,G){var A=SAUI.util.StoreCSS.csslocker;var F=G.prefix||"";if(!G.properties){var D="";for(C=0;A[C];C++){if(A[C][1][0]&&A[C][1][0].search(E)!=-1){if(G.selremove){var H="\n"+F+(A[C][1][0].replace(G.selremove,""))+" { "}else{var H="\n"+F+A[C][1][0]+" { "}for(ii=0;A[C][1][1][ii];ii++){if(!G.include){if(!G.exclude||!G.exclude[A[C][1][1][ii][0]]){H+=A[C][1][1][ii][0]+":"+A[C][1][1][ii][1]+"; "}}else{if(G.include[A[C][1][1][ii][0]]){H+=A[C][1][1][ii][0]+":"+A[C][1][1][ii][1]+"; "}}}H+="}";D+=H}}return D}else{var B={};B.index=G.properties.slice();for(var C=0;A[C];C++){if(G.properties.length<1){break}if(A[C][1][0]&&A[C][1][0].search(E)!=-1){for(ii=0;A[C][1][1][ii];ii++){if(G.properties.length<1){break}for(iii=0;G.properties.length>iii;iii++){if(A[C][1][1][ii][0]==G.properties[iii]){B[G.properties[iii]]=A[C][1][1][ii][1];G.properties.splice(iii,1);break}}}}}if(G.properties.length>0){for(C=0;G.properties.length>C;C++){B[G.properties[C]]="inherit"}}return B}};SAUI.util.GetCSSColors=function(E){var H=E.split("color:"),B=[];for(var D=1;H[D];D++){var G=H[D].split(";");if(G[0].search("#")!=-1){var C=G[0].replace(/^\s*/,"").replace(/\s*$/,"").toLowerCase();var A=false;for(var F=0;B[F];F++){if(B[F]==C){A=true}}if(A==false&&C!="transparent"&&C.length<8){B.push(C)}}}return B};SAUI.util.GetCSSImages=function(D){var G=D.split("url("),A=[];for(var C=1;G[C];C++){var F=G[C].split(")");if(F[0].search("#")!=-1){var H=F[0].replace(/^\s*/,"").replace(/\s*$/,"").toLowerCase();var B=false;for(var E=0;A[E];E++){if(A[E]==H){B=true}}if(B==false&&H!="none"){A.push(H)}}}return A};SAUI.util.DrawCSS=function(F,H){var A=F.getElementById("dynamiccss");var E=H;if(A==null){A=F.getElementsByTagName("style")[0]}var C=F.createElement("style");C.type="text/css";C.media="all";C.id="dynamiccss";A.parentNode.replaceChild(C,A);if(C.styleSheet){var B="";for(i=0;i<=E.length-1;i++){if(E[i][0]!="comment"){var D=E[i][1][0];var G="";for(ii=0;ii<=E[i][1][1].length-1;ii++){if(E[i][1][1][ii][0]==""){E[i][1][1].splice(ii,1);ii--}else{G=G+E[i][1][1][ii][0]+": "+E[i][1][1][ii][1]+"; "}}B=B+D+"{"+G+"}"}}C.styleSheet.cssText=B;F.getElementsByTagName("body")[0].style.display="none";F.getElementsByTagName("body")[0].style.display="block"}else{if(C.sheet){var B="";for(i=0;i<=E.length-1;i++){if(E[i][0]!="comment"){var D=E[i][1][0];var G="";for(ii=0;ii<=E[i][1][1].length-1;ii++){if(E[i][1][1][ii][0]==""){E[i][1][1].splice(ii,1);ii--}else{G=G+E[i][1][1][ii][0]+": "+E[i][1][1][ii][1]+"; "}}B=B+D+"{"+G+"}"}}stylesnode=F.createTextNode(B);C.appendChild(stylesnode)}}};SAUI.util.DrawCSSsimple=function(D,C){var A=D.getElementById("dynamiccss");if(A==null){A=D.getElementById("corestaticcss")}var B=D.createElement("style");B.type="text/css";B.media="all";B.id="dynamiccss";A.parentNode.replaceChild(B,A);if(SAUI.util.CSSMode==true||(SAUI.util.DesignTools&&SAUI.util.DesignTools.cssMode==true)){(function(){var G=C.split("url("),H="";for(var E=0;G[E];E++){var F=G[E].split(")");if(F.length<2){H=H+G[E]}else{if(F[0].search("http://")==-1&&F[0]!="none"){H=H+"url("+SAUI.util.ImgPath+"/"+F[0]+")"+F[1]}else{H=H+"url("+F[0]+")"+F[1]}}}C=H})()}if(B.styleSheet){B.styleSheet.cssText=C}else{if(B.appendChild){stylesnode=D.createTextNode(C);B.textContent="";B.appendChild(stylesnode)}}};SAUI.util.DrawCSSsimpleAfter=function(E,C){if(!E.getElementById("dynamiccssAft")){var A=E.getElementById("dynamiccss");if(A==null){A=E.getElementsByTagName("style")[0]}try{var B=E.createElement("style");B.type="text/css";B.media="all";B.id="dynamiccssAft";A.parentNode.insertBefore(B,A.nextSibling)}catch(D){return false}}else{var B=E.getElementById("dynamiccssAft")}(function(){var H=C.split("url("),I="";for(var F=0;H[F];F++){var G=H[F].split(")");if(G.length<2){I=I+H[F]}else{if(G[0].search("http://")==-1&&G[0]!="none"){I=I+"url("+SAUI.util.ImgPath+"/"+G[0]+")"+G[1]}else{I=I+"url("+G[0]+")"+G[1]}}}C=I})();if(B.styleSheet){B.styleSheet.cssText=C}else{if(B.appendChild){B.textContent="";stylesnode=E.createTextNode(C);B.appendChild(stylesnode)}}};SAUI.util.ReplaceValues2=function(A,B){var D=A;for(i=0;i<B.length;i++){var E=B[i].getAttribute("name");var C=new RegExp(E,"g");D=D.replace(C,B[i].value)}D=D.replace(/\$/g,"");return D};SAUI.util.ReplaceValuesOpt=function(B,D,A){var E=B;E=E.replace(/\$/g,"~");for(i=0;(obj=D.getElementsByTagName("input")[i]);i++){var F="~"+obj.getAttribute("name");var C=new RegExp(F,"g");var G="";if(A&&A[obj.getAttribute("name")]){G=A[obj.getAttribute("name")]}else{G=obj.value}if(SAUI.util.ImgPath&&(G.search(".jpg")!=-1||G.search(".gif")!=-1||G.search(".png")!=-1)&&G.search("http://")==-1){E=E.replace(C,SAUI.util.ImgPath+"/"+G)}else{E=E.replace(C,G)}}E=E.replace(/url\(none\)/g,"none");return E};SAUI.util.ArrayLocation=function(C,A,B){if(typeof B==("number")){for(i=0;C[i];i++){if(C[i][B]==A){return i}}}else{for(i=0;C[i];i++){if(C[i]==A){return i}}}return false};SAUI.util.ReadyData=function(F){var B=new Array;var E=new Array;var C=new Array;for(i=0;f=F.getElementsByTagName("select")[i];i++){if(f.getAttribute("name").substr(0,3)=="ui-"){names=f.getAttribute("name").split(",");val=f.options[f.selectedIndex].value;for(ii=0;names[ii];ii++){B.push([names[ii],val])}}else{if(f.getAttribute("name").substr(0,2)=="v-"){val=f.options[f.selectedIndex].value;E.push([f.getAttribute("name"),val])}else{if(f.getAttribute("name").substr(0,3)=="sd-"){val=f.options[f.selectedIndex].value;C.push([f.getAttribute("name"),val]);f.parentNode.removeChild(f)}}}}for(i=0;f=F.getElementsByTagName("input")[i];i++){try{if(f.getAttribute("name").substr(0,2)=="v-"){val=f.value.replace("'","''");E.push([f.getAttribute("name"),val])}else{if(f.getAttribute("name").substr(0,3)=="sd-"){val=f.value.replace("'","''");C.push([f.getAttribute("name"),val]);f.parentNode.removeChild(f)}}}catch(G){}}for(i=0;f=F.getElementsByTagName("div")[i];i++){if(f.getAttribute("name")&&f.getAttribute("name").substr(0,3)=="sd-"){var H;for(ii=0;B[ii];ii++){if(B[ii][0].substr(3)==f.getAttribute("name").substr(3)){H=B[ii][1];break}}if(f.className==H||f.className=="0"){val=f.innerHTML;C.push([f.getAttribute("name"),val])}}}for(i=0;C[i];i++){for(ii=0;E[ii];ii++){var D=new RegExp(E[ii][0],"g");C[i][1]=C[i][1].replace(D,E[ii][1])}var A=document.createElement("input");A.type="hidden";A.name=C[i][0];A.value=C[i][1];F.appendChild(A)}if(SAUI.util.ReadyData.callback){SAUI.util.ReadyData.callback()}};YAHOO.util.Event.onDOMReady(function(){SAUI.util.InitAll()});