function sack(file){this.AjaxFailedAlert="Your browser does not support the enhanced functionality of this website, and therefore you will have an experience that differs from the intended one.\n";this.requestFile=file;this.method="POST";this.URLString="";this.encodeURIString=true;this.execute=false;this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.createAJAX=function(){try{this.xmlhttp=new XMLHttpRequest()}catch(e){try{this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(err){this.xmlhttp=null}}catch(e){}}if(!this.xmlhttp){this.failed=true}};this.setVar=function(name,value){if(this.URLString.length<3){this.URLString=name+"="+value}else{this.URLString+="&"+name+"="+value}};this.encVar=function(name,value){var varString=encodeURIComponent(name)+"="+encodeURIComponent(value);return varString};this.encodeURLString=function(string){varArray=string.split("&");for(i=0;i<varArray.length;i++){urlVars=varArray[i].split("=");if(urlVars[0].indexOf("amp;")!=-1){urlVars[0]=urlVars[0].substring(4)}varArray[i]=this.encVar(urlVars[0],urlVars[1])}return varArray.join("&")};this.runResponse=function(){eval(this.response)};this.runAJAX=function(urlstring){this.responseStatus=new Array(2);if(this.failed&&this.AjaxFailedAlert){alert(this.AjaxFailedAlert)}else{if(urlstring){if(this.URLString.length){this.URLString=this.URLString+"&"+urlstring}else{this.URLString=urlstring}}if(this.encodeURIString){var timeval=new Date().getTime();this.URLString=this.encodeURLString(this.URLString);this.setVar("rndval",timeval)}if(this.element){this.elementObj=document.getElementById(this.element)}if(this.xmlhttp){var self=this;if(this.method=="GET"){var totalurlstring=this.requestFile+"?"+this.URLString;this.xmlhttp.open(this.method,totalurlstring,true)}else{this.xmlhttp.open(this.method,this.requestFile,true)}if(this.method=="POST"){try{this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(e){}}this.xmlhttp.send(this.URLString);this.xmlhttp.onreadystatechange=function(){switch(self.xmlhttp.readyState){case 1:self.onLoading();break;case 2:self.onLoaded();break;case 3:self.onInteractive();break;case 4:self.response=self.xmlhttp.responseText;self.responseXML=self.xmlhttp.responseXML;self.responseStatus[0]=self.xmlhttp.status;self.responseStatus[1]=self.xmlhttp.statusText;self.onCompletion();if(self.execute){self.runResponse()}if(self.elementObj){var elemNodeName=self.elementObj.nodeName;elemNodeName.toLowerCase();if(elemNodeName=="input"||elemNodeName=="select"||elemNodeName=="option"||elemNodeName=="textarea"){self.elementObj.value=self.response}else{self.elementObj.innerHTML=self.response}}self.URLString="";break}}}}};this.createAJAX()}var enableCache=true;var jsCache=new Array();var C_Objects=new Array();function ajax_showContent(a,c,b){document.getElementById(a).innerHTML=C_Objects[c].response;centerOnPage();if(enableCache){jsCache[b]=C_Objects[c].response}C_Objects[c]=false;checkforcentered()}function ajax_loadContent(a,b){if(enableCache&&jsCache[b]){document.getElementById(a).innerHTML=jsCache[b];return}var c=C_Objects.length;document.getElementById(a).innerHTML="Loading...";C_Objects[c]=new sack();C_Objects[c].requestFile=b;C_Objects[c].onCompletion=function(){ajax_showContent(a,c,b)};C_Objects[c].runAJAX()}function chatbox_loadContent(a,b){var c=C_Objects.length;C_Objects[c]=new sack();C_Objects[c].requestFile=b;C_Objects[c].onCompletion=function(){ajax_showContent(a,c,b)};C_Objects[c].runAJAX()}function noinner_loadContent(a,b){var c=C_Objects.length;C_Objects[c]=new sack();C_Objects[c].requestFile=b;C_Objects[c].onCompletion=function(){ajax_showContent(a,c,b)};C_Objects[c].runAJAX()}function ajax_send(a){var b=C_Objects.length;C_Objects[b]=new sack();C_Objects[b].requestFile=a;if(arguments[1]){C_Objects[b].onCompletion=arguments[1]}C_Objects[b].runAJAX()}function ajax_getJSON(url,exe,cache,exarg){if(cache){var dcache=SAUI.util.DomStorage.get(url,7200)}else{var dcache=false}if(dcache==false){var ajaxIndex=C_Objects.length;C_Objects[ajaxIndex]=new sack();C_Objects[ajaxIndex].requestFile=url;C_Objects[ajaxIndex].onCompletion=function(){try{if(!exarg){exe(eval(C_Objects[ajaxIndex].response))}else{exe(eval(C_Objects[ajaxIndex].response),exarg)}if(cache){SAUI.util.DomStorage.set(url,C_Objects[ajaxIndex].response)}}catch(Error){}C_Objects[ajaxIndex]=false};C_Objects[ajaxIndex].runAJAX()}else{if(!exarg){exe(eval(dcache))}else{exe(eval(dcache),exarg)}}}var x_offset_DropDown=-50;var y_offset_DropDown=15;var ajax_DropDown=false;var ajax_DropDown_iframe=false;var ajax_DropDown_MSIE=false;if(navigator.userAgent.indexOf("MSIE")>=0){ajax_DropDown_MSIE=true}function ajax_dropitdown(a,b,d){if(!ajax_DropDown){ajax_DropDown=document.createElement("DIV");ajax_DropDown.style.position="absolute";ajax_DropDown.style.width=d+"px";ajax_DropDown.style.zIndex="50002";ajax_DropDown.style.backgroundColor="#FFF";ajax_DropDown.id="ajax_DropDown";document.body.appendChild(ajax_DropDown);var c=document.createElement("DIV");c.className="ajax_tooltip_content";ajax_DropDown.appendChild(c);c.id="ajax_DropDown_content";if(ajax_DropDown_MSIE){ajax_DropDown_iframe=document.createElement('<IFRAME frameborder="0">');ajax_DropDown_iframe.style.position="absolute";ajax_DropDown_iframe.border="0";ajax_DropDown_iframe.frameborder=0;ajax_DropDown_iframe.style.backgroundColor="#FFF";ajax_DropDown_iframe.src="about:blank";c.appendChild(ajax_DropDown_iframe);ajax_DropDown_iframe.style.left="0px";ajax_DropDown_iframe.style.top="0px"}}ajax_DropDown.style.display="block";ajax_DropDown.style.width=d+"px";ajax_loadContent("ajax_DropDown_content",a);if(ajax_DropDown_MSIE){ajax_DropDown_iframe.style.width=ajax_DropDown.clientWidth+"px";ajax_DropDown_iframe.style.height=ajax_DropDown.clientHeight+"px"}ajax_positionDropDown(b)}function ajax_positionDropDown(b){var c=(ajaxTooltip_getLeftPos(b)+x_offset_DropDown);var g=ajaxTooltip_getTopPos(b)+y_offset_DropDown;var j=ajax_DropDown_MSIE?document.body.clientWidth:window.innerWidth;var e=ajax_DropDown_MSIE?document.body.clientWidth-c:window.innerWidth-c;var a=ajax_DropDown_MSIE?document.body.clientHeight-g:window.innerHeight-g;var f=document.getElementById("ajax_DropDown_content").offsetWidth;var l=document.getElementById("ajax_DropDown_content").offsetHeight;var d=f+c;var h=(d-j);if(d>j){c=c-h-20}if(c<0){c=20}ajax_DropDown.style.left=c+"px";ajax_DropDown.style.top=g+"px"}var x_offset_tooltip=-50;var y_offset_tooltip=15;var ajax_tooltipObj=false;var ajax_tooltipObj_iframe=false;var ajax_tooltip_MSIE=false;if(navigator.userAgent.indexOf("MSIE")>=0){ajax_tooltip_MSIE=true}function ajax_showTooltip_menu(a,b,c){SUI.draw.Window({id:"SUI-Dialog00001a",width:c?c+"px":"500px",height:"300px",source:a,resize:true,title:"Dialog Box"})}function ajax_showSiteIntro(a){YAHOO.util.Event.onAvailable("container",function(){document.getElementById("container").style.display="none";(function(){var e=document.createElement("div");e.id="ajax_siteintro-outer";e.style.cssText="position: absolute; top: 0; left: 0; margin: 0; padding: 0; width: 100%;";var d=document.createElement("div");d.className="element-row1";d.style.cssText="margin: 0 0 10px 0; padding: 10px; border-bottom: 1px solid #808080; text-align: center; font-size: 1.15em; font-weight: bold;";var b=document.createElement("a");b.href="#";b.onclick=function(){document.getElementById("ajax_siteintro-outer").style.display="none";document.getElementById("container").style.display="";try{document.getElementById("ajax_siteintro-outer").parentNode.removeChild(document.getElementById("ajax_siteintro-outer"))}catch(f){}return false};b.innerHTML="Continue to "+document.title;var c=document.createElement("div");c.id="ajax_siteintro";d.appendChild(b);e.appendChild(d);e.appendChild(c);document.getElementsByTagName("body")[0].insertBefore(e,document.getElementsByTagName("body")[0].childNodes[0])})();ajax_loadContent("ajax_siteintro",a)})}var optionboxObj={};var optionboxLatest;var keep_ob_centered;function centerOnPage(b){if(b!=null){var a=document.all&&!window.opera;var d=document.getElementById;var l=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;var c=(d)?document.getElementById(b):document.all.optionbox;var f=new Date().getTime();var g=(a)?l.scrollTop:window.pageYOffset;var h=(window.innerWidth)?window.innerWidth:l.clientWidth;var n=(window.innerHeight)?window.innerHeight:l.clientHeight;var e=new Date().getTime();var m=c.offsetWidth;var j=c.offsetHeight;c.style.left=h/2-m/2+"px";if(n-j>0){c.style.top=g+n/2-j/2+"px"}else{c.style.top=g+"px"}}}var checkforcentered=function(){if(keep_ob_centered){if(optionboxObj!=null){for(k in optionboxObj){var d=k;var f=document.all&&!window.opera;var e=document.getElementById;iebody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;objref=(e)?document.getElementById(d):document.all.optionbox;var a=(f)?iebody.scrollTop:window.pageYOffset;var c=(f)?iebody.clientWidth:window.innerWidth;docheight=(f)?iebody.clientHeight:window.innerHeight;var b=objref.offsetWidth;objheight=objref.offsetHeight;if(keep_ob_centered==true&&docheight-objheight>0){centerOnPage(d)}}}}};window.onresize=checkforcentered;window.onscroll=checkforcentered;var findPos=function(b){var c,a;c=a=0;if(b.offsetParent){c=b.offsetLeft;a=b.offsetTop;while(b=b.offsetParent){c+=b.offsetLeft;a+=b.offsetTop}}return[c,a]};var getOptionBox=function(c,a,b){if(c=="new"){c="SUI-Dialog00001"}b=b||{};SUI.draw.Window({id:c,width:b.width||"500px",height:b.height||"400px",source:b.content,objectSource:true,resize:true,title:b.title||"Dialog Box",callback:b.callback||null,closeCall:function(){SUI.util.FlashHide.end();if(hideoptionbox.callfirst){hideoptionbox.callfirst();delete hideoptionbox.callfirst}if(hideoptionbox.callback){hideoptionbox.callback();delete hideoptionbox.callback}}});SUI.util.FlashHide()};var hideoptionbox=function(c){if(hideoptionbox.callfirst){hideoptionbox.callfirst();delete hideoptionbox.callfirst}if(c){var a=true}c=c||optionboxLatest;document.getElementById(c).style.visibility="hidden";try{document.getElementById(c).parentNode.removeChild(document.getElementById(c))}catch(d){}SUI.util.FlashHide.end();var b=false;for(k in optionboxObj){b=true}delete optionboxObj[c];if(b==false){keep_ob_centered=false}if(hideoptionbox.callback){hideoptionbox.callback();delete hideoptionbox.callback}};function ajax_hideTooltip(){optionbox=ajax_tooltipObj;optionbox.style.visibility="hidden";try{optionbox.parentNode.removeChild(document.getElementById(optionbox))}catch(b){}SUI.util.FlashHide.end();var a=false;for(k in optionboxObj){a=true}delete optionboxObj[optionbox.id];if(a==false){keep_ob_centered=false}}function ajax_showTooltip(a,b){if(!ajax_tooltipObj){ajax_tooltipObj=document.createElement("DIV");ajax_tooltipObj.style.position="absolute";ajax_tooltipObj.style.zIndex="50001";ajax_tooltipObj.id="ajax_tooltipObj";ajax_tooltipObj.style.backgroundColor="transparent";ajax_tooltipObj.style.width="470px";document.body.appendChild(ajax_tooltipObj);var c=document.createElement("DIV");ajax_tooltipObj.appendChild(c);c.id="ajax_tooltip_content";if(ajax_tooltip_MSIE){ajax_tooltipObj_iframe=document.createElement('<IFRAME frameborder="0">');ajax_tooltipObj_iframe.style.position="absolute";ajax_tooltipObj_iframe.border="0";ajax_tooltipObj_iframe.frameborder=0;ajax_tooltipObj_iframe.style.backgroundColor="#FFF";ajax_tooltipObj_iframe.src="about:blank";c.appendChild(ajax_tooltipObj_iframe);ajax_tooltipObj_iframe.style.left="0px";ajax_tooltipObj_iframe.style.top="0px"}}ajax_tooltipObj.style.display="block";ajax_loadContent("ajax_tooltip_content",a);if(ajax_tooltip_MSIE){ajax_tooltipObj_iframe.style.width=ajax_tooltipObj.clientWidth+"px";ajax_tooltipObj_iframe.style.height=ajax_tooltipObj.clientHeight+"px"}getOptionBox("ajax_tooltipObj",b)}function ajax_showTooltip_search(d,e){var b=-0;var a=20;if(!ajax_tooltipObj){ajax_tooltipObj=document.createElement("DIV");ajax_tooltipObj.style.position="absolute";ajax_tooltipObj.style.zIndex="50001";ajax_tooltipObj.id="ajax_tooltipObj";document.body.appendChild(ajax_tooltipObj);var g=document.createElement("DIV");g.className="ajax_tooltip_content";ajax_tooltipObj.appendChild(g);g.id="ajax_tooltip_content";if(ajax_tooltip_MSIE){ajax_tooltipObj_iframe=document.createElement('<IFRAME frameborder="0">');ajax_tooltipObj_iframe.style.position="absolute";ajax_tooltipObj_iframe.border="0";ajax_tooltipObj_iframe.frameborder=0;ajax_tooltipObj_iframe.style.backgroundColor="#FFF";ajax_tooltipObj_iframe.src="about:blank";g.appendChild(ajax_tooltipObj_iframe);ajax_tooltipObj_iframe.style.left="0px";ajax_tooltipObj_iframe.style.top="0px"}}ajax_tooltipObj.style.display="block";chatbox_loadContent("ajax_tooltip_content",d);if(ajax_tooltip_MSIE){ajax_tooltipObj_iframe.style.width=ajax_tooltipObj.clientWidth+"px";ajax_tooltipObj_iframe.style.height=ajax_tooltipObj.clientHeight+"px"}var f=(ajaxTooltip_getLeftPos(e)+b);var c=ajaxTooltip_getTopPos(e)+a;ajax_tooltipObj.style.left=f+"px";ajax_tooltipObj.style.top=c+"px"}function ajax_showToolhigh(a,b){if(!ajax_tooltipObj){ajax_tooltipObj=document.createElement("DIV");ajax_tooltipObj.style.position="absolute";ajax_tooltipObj.id="ajax_tooltipObj";document.body.appendChild(ajax_tooltipObj);var c=document.createElement("DIV");c.className="ajax_tooltip_content";ajax_tooltipObj.appendChild(c);c.id="ajax_tooltip_content";if(ajax_tooltip_MSIE){ajax_tooltipObj_iframe=document.createElement('<IFRAME frameborder="0">');ajax_tooltipObj_iframe.style.position="absolute";ajax_tooltipObj_iframe.border="0";ajax_tooltipObj_iframe.frameborder=0;ajax_tooltipObj_iframe.style.backgroundColor="#FFF";ajax_tooltipObj_iframe.src="about:blank";c.appendChild(ajax_tooltipObj_iframe);ajax_tooltipObj_iframe.style.left="0px";ajax_tooltipObj_iframe.style.top="0px"}}ajax_tooltipObj.style.display="block";ajax_loadContent("ajax_tooltip_content",a);if(ajax_tooltip_MSIE){ajax_tooltipObj_iframe.style.width=ajax_tooltipObj.clientWidth+"px";ajax_tooltipObj_iframe.style.height=ajax_tooltipObj.clientHeight+"px"}ajax_positionTooltiphigh(b)}function ajax_showTooltipmid(a,b){if(!ajax_tooltipObj){ajax_tooltipObj=document.createElement("DIV");ajax_tooltipObj.style.position="absolute";ajax_tooltipObj.style.zIndex="50001";ajax_tooltipObj.id="ajax_tooltipObj";ajax_tooltipObj.style.left="200px";ajax_tooltipObj.style.top="150px";document.body.appendChild(ajax_tooltipObj);var c=document.createElement("DIV");c.className="ajax_tooltip_content";ajax_tooltipObj.appendChild(c);c.id="ajax_tooltip_content";if(ajax_tooltip_MSIE){ajax_tooltipObj_iframe=document.createElement('<IFRAME frameborder="0">');ajax_tooltipObj_iframe.style.position="absolute";ajax_tooltipObj_iframe.border="0";ajax_tooltipObj_iframe.frameborder=0;ajax_tooltipObj_iframe.style.backgroundColor="#FFF";ajax_tooltipObj_iframe.src="about:blank";c.appendChild(ajax_tooltipObj_iframe);ajax_tooltipObj_iframe.style.left="0px";ajax_tooltipObj_iframe.style.top="0px"}}ajax_tooltipObj.style.display="block";ajax_loadContent("ajax_tooltip_content",a);if(ajax_tooltip_MSIE){ajax_tooltipObj_iframe.style.width=ajax_tooltipObj.clientWidth+"px";ajax_tooltipObj_iframe.style.height=ajax_tooltipObj.clientHeight+"px"}}function ajax_positionTooltip(b){var c=(ajaxTooltip_getLeftPos(b)+x_offset_tooltip);var g=ajaxTooltip_getTopPos(b)+y_offset_tooltip;var j=ajax_tooltip_MSIE?document.body.clientWidth:window.innerWidth;var e=ajax_tooltip_MSIE?document.body.clientWidth-c:window.innerWidth-c;var a=ajax_tooltip_MSIE?document.body.clientHeight-g:window.innerHeight-g;var f=document.getElementById("ajax_tooltip_content").offsetWidth;var l=document.getElementById("ajax_tooltip_content").offsetHeight;var d=f+c;var h=(d-j);if(d>j){c=c-h-20}if(c<0){c=20}ajax_tooltipObj.style.left=c+"px";ajax_tooltipObj.style.top=g+"px"}function ajax_positionTooltiphigh(d){var l=document.getElementById("ajax_tooltip_content").offsetHeight;var a=-50;var c=-l;var e=(ajaxTooltip_getLeftPos(d)+a);var j=ajaxTooltip_getTopPos(d)+c;var g=ajax_tooltip_MSIE?document.body.clientWidth-e:window.innerWidth-e;var b=ajax_tooltip_MSIE?document.body.clientHeight-j:window.innerHeight-j;var h=document.getElementById("ajax_tooltip_content").offsetWidth+document.getElementById("ajax_tooltip_arrow").offsetWidth;var f=h-g;if(f>0){e=document.body.clientWidth-e-50}ajax_tooltipObj.style.left=e+"px";ajax_tooltipObj.style.top=j+"px"}function ajax_hideTooltip_menu(){ajax_tooltipObj_menu.style.display="none"}function ajaxTooltip_getTopPos(a){var b=a.offsetTop;while((a=a.offsetParent)!=null){if(a.tagName!="HTML"){b+=a.offsetTop}}return b}function ajaxTooltip_getLeftPos(a){var b=a.offsetLeft;while((a=a.offsetParent)!=null){if(a.tagName!="HTML"){b+=a.offsetLeft}}return b}function ajaxTooltip_getRightPos(a){var b=a.offsetRight;while((a=a.offsetParent)!=null){if(a.tagName!="HTML"){b+=a.offsetRight}}return b}var jaybox=false;var jaybox_iframe=false;var jaybox_MSIE=false;if(navigator.userAgent.indexOf("MSIE")>=0){jaybox_MSIE=true}function ajax_loadfreewindow(b,f,c,a){if(!jaybox){jaybox=document.createElement("DIV");jaybox.style.position="absolute";jaybox.style.zIndex="50001";jaybox.id="jaybox";jaybox.style.width=a+"px";jaybox.style.border="50px";jaybox.style.left=f+"px";jaybox.style.top=c+"px";document.getElementById("jayboxdiv").appendChild(jaybox);document.getElementById("jaybox").style.display="inline";document.getElementById("jayboxdiv").style.display="inline";document.getElementById("jayboxdiv").style.width=a+"px";var d=document.createElement("DIV");d.className="ajax_tooltip_arrow";d.id="ajax_jaybox_arrow";jaybox.appendChild(d);var e=document.createElement("DIV");e.className="ajax_tooltip_content";jaybox.appendChild(e);e.id="ajax_jaybox_content";if(jaybox_MSIE){jaybox_iframe=document.createElement('<IFRAME frameborder="0">');jaybox_iframe.style.position="absolute";jaybox_iframe.border="0";jaybox_iframe.frameborder=0;jaybox_iframe.style.backgroundColor="#FFF";jaybox_iframe.src="about:blank";e.appendChild(jaybox_iframe);jaybox_iframe.style.left="0px";jaybox_iframe.style.top="0px"}}ajax_loadContent("ajax_jaybox_content",b);if(jaybox_MSIE){jaybox_iframe.style.width=jaybox.clientWidth+"px";jaybox_iframe.style.height=jaybox.clientHeight+"px"}jaybox.style.display="inline"}function displaybox(l,f,n,m,q,h,e,o){var j=n;var p=f;var d=0;var c=0;var b=h;var s=e;var u=document.body.clientWidth;var g=document.body.clientHeight;l.style.top=j+q+"px";l.style.height=1+"px";l.style.overflow="hidden";if((p+b)<u){l.style.left=p+"px"}if((p+b)>u){l.style.left="";l.style.right=(u-(p+m))+15+"px"}if((j+s)>g){l.style.top=j-(s)+"px"}function a(){l.style.display="block";l.style.width=d+"px";l.style.height=c+"px";d=b/o;c=s/o;o--;if(o>=0){window.setTimeout(a,15)}else{l.style.height="auto";l.style.overflow="auto"}}a()}function getTopPos(a){return YAHOO.util.Dom.getXY(a)[1]}function getLeftPos(a){return YAHOO.util.Dom.getXY(a)[0]}function expandcontent(j,f,a,n,e){var d=getLeftPos(f)+20;var h=getTopPos(f)-5;var g=document.getElementById("postto");var m=f.clientWidth;var b=f.clientHeight;var o=a;var c=n;var l=e;l=l||10;if(g!=null){g.innerHTML='<div style="text-align:left;">'+j+"</div>";displaybox(g,d,h,m,b,o,c,l)}}function ajax_function(b,a,d){var c=C_Objects.length;C_Objects[c]=new sack();C_Objects[c].requestFile=b;if(a){if(!d){C_Objects[c].onCompletion=function(){a(C_Objects[c].response)}}else{C_Objects[c].onCompletion=function(){a(C_Objects[c].response,d)}}}C_Objects[c].runAJAX()}var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion(){var a;var b;var c;try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=b.GetVariable("$version")}catch(c){}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");a="WIN 6,0,21,0";b.AllowScriptAccess="always";a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a=b.GetVariable("$version")}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");a="WIN 3,0,18,0"}catch(c){}}if(!a){try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");a="WIN 2,0,0,11"}catch(c){a=-1}}return a}function GetSwfVer(){var g=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var f=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var a=navigator.plugins["Shockwave Flash"+f].description;var e=a.split(" ");var c=e[2].split(".");var h=c[0];var b=c[1];var d=e[3];if(d==""){d=e[4]}if(d[0]=="d"){d=d.substring(1)}else{if(d[0]=="r"){d=d.substring(1);if(d.indexOf("d")>0){d=d.substring(0,d.indexOf("d"))}}}var g=h+"."+b+"."+d}}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1){g=4}else{if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1){g=3}else{if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1){g=2}else{if(isIE&&isWin&&!isOpera){g=ControlVersion()}}}}}return g}function DetectFlashVer(f,d,c){versionStr=GetSwfVer();if(versionStr==-1){return false}else{if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",")}else{versionArray=versionStr.split(".")}var e=versionArray[0];var a=versionArray[1];var b=versionArray[2];if(e>parseFloat(f)){return true}else{if(e==parseFloat(f)){if(a>parseFloat(d)){return true}else{if(a==parseFloat(d)){if(b>=parseFloat(c)){return true}}}}}return false}}}function AC_AddExtension(b,a){if(b.indexOf("http://connect2.ws/v")==-1){if(b.indexOf("?")!=-1){return b.replace(/\?/,a+"?")}else{return b+a}}else{return b}}function AC_Generateobj(e,d,a){var c="";if(isIE&&isWin&&!isOpera){c+="<object ";for(var b in e){c+=b+'="'+e[b]+'" '}c+=">";for(var b in d){c+='<param name="'+b+'" value="'+d[b]+'" /> '}c+="</object>"}else{c+="<embed ";for(var b in a){c+=b+'="'+a[b]+'" '}c+="> </embed>"}document.write(c)}function AC_FL_RunContent(){var a=AC_GetArgs(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_SW_RunContent(){var a=AC_GetArgs(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(a.objAttrs,a.params,a.embedAttrs)}function AC_GetArgs(b,e,g,d,h){var a=new Object();a.embedAttrs=new Object();a.params=new Object();a.objAttrs=new Object();for(var c=0;c<b.length;c=c+2){var f=b[c].toLowerCase();switch(f){case"classid":break;case"pluginspage":a.embedAttrs[b[c]]=b[c+1];break;case"src":case"movie":b[c+1]=AC_AddExtension(b[c+1],e);a.embedAttrs.src=b[c+1];a.params[g]=b[c+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblclick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":a.objAttrs[b[c]]=b[c+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":a.embedAttrs[b[c]]=a.objAttrs[b[c]]=b[c+1];break;default:a.embedAttrs[b[c]]=a.params[b[c]]=b[c+1]}}a.objAttrs.classid=d;if(h){a.embedAttrs.type=h}return a}function SUI_GetStyles(){function d(e){if(e==null){return"00"}e=parseInt(e);if(e==0||isNaN(e)){return"00"}e=Math.max(0,e);e=Math.min(e,255);e=Math.round(e);return"0123456789ABCDEF".charAt((e-e%16)/16)+"0123456789ABCDEF".charAt(e%16)}var b={};var c="gspot"+Math.random();document.write('<div class="element-row1" id="'+c+'"><a></a><div class="element-row2"><a></a></div></div>');function a(g,f,h){var e=g;if(e.currentStyle){if(e.currentStyle[f]!="transparent"){var j=e.currentStyle[f]}else{j="trans"}}else{if(window.getComputedStyle){if(document.defaultView.getComputedStyle(e,null).getPropertyValue(h)!="transparent"){z=document.defaultView.getComputedStyle(e,null).getPropertyValue(h).split("(")[1].split(")")[0].split(", ");var j="#"+d(z[0],16)+d(z[1],16)+d(z[2],16)}else{j="trans"}}}return j.replace(/#/,"")}b.row1c=a(document.getElementById(c),"color","color");b.row1bg=a(document.getElementById(c),"backgroundColor","background-color");b.row2c=a(document.getElementById(c).getElementsByTagName("div")[0],"color","color");b.row2bg=a(document.getElementById(c).getElementsByTagName("div")[0],"backgroundColor","background-color");b.alink=a(document.getElementById(c).getElementsByTagName("a")[0],"color","color");if(document.removeChild){document.getElementById(c).parentNode.removeChild(document.getElementById(c))}else{document.getElementById(c).style.display="none"}return b}function SUI_MakeCorner(a,b){if(typeof AC_FL_RunContent=="undefined"||AC_FL_RunContent==0){return false}else{AC_FL_RunContent("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0","width",a,"height",a,"src","/images/smart/corners?sCorner"+b+"=1","quality","high","pluginspage","http://www.macromedia.com/go/getflashplayer","align","middle","play","true","loop","true","scale","showall","wmode","transparent","devicefont","false","id","test","bgcolor","#ffffff","name","test","menu","false","allowFullScreen","false","allowScriptAccess","sameDomain","movie","/images/smart/corners?sCorner"+b+"=1","salign","")}}function SUI_MakeGrad(c,a,b){if(typeof AC_FL_RunContent=="undefined"||AC_FL_RunContent==0){return false}else{AC_FL_RunContent("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0","width",c,"height",a,"src","/images/smart/grads?sGrad"+b+"=1","quality","high","pluginspage","http://www.macromedia.com/go/getflashplayer","align","middle","play","true","loop","true","scale","exactfit","wmode","transparent","devicefont","false","id","test","bgcolor","#ffffff","name","test","menu","false","allowFullScreen","false","allowScriptAccess","sameDomain","movie","/images/smart/grad?sGrad"+b+"=1","salign","")}}function SUI_MakeConcave(a){if(typeof AC_FL_RunContent=="undefined"||AC_FL_RunContent==0){return false}else{AC_FL_RunContent("codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0","width",a*0.75,"height",a,"src","/images/smart/concave","quality","high","pluginspage","http://www.macromedia.com/go/getflashplayer","align","middle","play","true","loop","true","scale","showall","wmode","transparent","devicefont","false","id","test","bgcolor","#ffffff","name","test","menu","false","allowFullScreen","false","allowScriptAccess","sameDomain","movie","/images/smart/concave","salign","")}}function Validator(a){this.formobj=document.forms[a];if(!this.formobj){alert("BUG: couldnot get Form object "+a);return}if(this.formobj.onsubmit){this.formobj.old_onsubmit=this.formobj.onsubmit;this.formobj.onsubmit=null}else{this.formobj.old_onsubmit=null}this.formobj.onsubmit=form_submit_handler;this.addValidation=add_validation;this.setAddnlValidationFunction=set_addnl_vfunction;this.clearAllValidations=clear_all_validations}function set_addnl_vfunction(a){this.formobj.addnlvalidation=a}function clear_all_validations(){for(var a=0;a<this.formobj.elements.length;a++){this.formobj.elements[a].validationset=null}}function form_submit_handler(){for(var itr=0;itr<this.elements.length;itr++){if(this.elements[itr].validationset&&!this.elements[itr].validationset.validate()){return false}}if(this.addnlvalidation){str=" var ret = "+this.addnlvalidation+"()";eval(str);if(!ret){return ret}}return true}function add_validation(d,b,c){if(!this.formobj){alert("BUG: the form object is not set properly");return}var a=this.formobj[d];if(!a){alert("BUG: Couldnot get the input object named: "+d);return}if(!a.validationset){a.validationset=new ValidationSet(a)}a.validationset.add(b,c)}function ValidationDesc(c,b,a){this.desc=b;this.error=a;this.itemobj=c;this.validate=vdesc_validate}function vdesc_validate(){if(!V2validateData(this.desc,this.itemobj,this.error)){this.itemobj.focus();return false}return true}function ValidationSet(a){this.vSet=new Array();this.add=add_validationdesc;this.validate=vset_validate;this.itemobj=a}function add_validationdesc(b,a){this.vSet[this.vSet.length]=new ValidationDesc(this.itemobj,b,a)}function vset_validate(){for(var a=0;a<this.vSet.length;a++){if(!this.vSet[a].validate()){return false}}return true}function validateEmailv2(b){if(b.length<=0){return true}var e=b.match("^(.+)@(.+)$");if(e==null){return false}if(e[1]!=null){var d=/^\"?[\w-_\.]*\"?$/;if(e[1].match(d)==null){return false}}if(e[2]!=null){var c=/^[\w-\.]*\.[A-Za-z]{2,4}$/;if(e[2].match(c)==null){var a=/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/;if(e[2].match(a)==null){return false}}return true}return false}function V2validateData(strValidateStr,objValue,strError){var epos=strValidateStr.search("=");var command="";var cmdvalue="";if(epos>=0){command=strValidateStr.substring(0,epos);cmdvalue=strValidateStr.substr(epos+1)}else{command=strValidateStr}switch(command){case"req":case"required":if(eval(objValue.value.length)==0){if(!strError||strError.length==0){strError=objValue.name+" : Required Field"}alert(strError);return false}break;case"maxlength":case"maxlen":if(eval(objValue.value.length)>eval(cmdvalue)){if(!strError||strError.length==0){strError=objValue.name+" : "+cmdvalue+" characters maximum "}alert(strError+"\n[Current length = "+objValue.value.length+" ]");return false}break;case"minlength":case"minlen":if(eval(objValue.value.length)<eval(cmdvalue)){if(!strError||strError.length==0){strError=objValue.name+" : "+cmdvalue+" characters minimum  "}alert(strError+"\n[Current length = "+objValue.value.length+" ]");return false}break;case"alnum":case"alphanumeric":var charpos=objValue.value.search("[^A-Za-z0-9-]");if(objValue.value.length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only alpha-numeric characters allowed "}alert(strError+"\n [Error character position "+eval(charpos+1)+"]");return false}break;case"num":case"numeric":var charpos=objValue.value.search("[^0-9.]");if(objValue.value.length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only digits allowed "}alert(strError+"\n [Error character position "+eval(charpos+1)+"]");return false}break;case"alphabetic":case"alpha":var charpos=objValue.value.search("[^A-Za-z]");if(objValue.value.length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": Only alphabetic characters allowed "}alert(strError+"\n [Error character position "+eval(charpos+1)+"]");return false}break;case"alnumhyphen":var charpos=objValue.value.search("[^A-Za-z0-9-_]");if(objValue.value.length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": characters allowed are A-Z,a-z,0-9,- and _"}alert(strError+"\n [Error character position "+eval(charpos+1)+"]");return false}break;case"alnumhyphensp":var charpos=objValue.value.search("[^A-Za-z0-9-._ ]");if(objValue.value.length>0&&charpos>=0){if(!strError||strError.length==0){strError=objValue.name+": characters allowed are A-Z,a-z,0-9,- and _"}alert(strError+"\n [Error character position "+eval(charpos+1)+"]");return false}break;case"email":if(!validateEmailv2(objValue.value)){if(!strError||strError.length==0){strError=objValue.name+": Enter a valid Email address "}alert(strError);return false}break;case"lt":case"lessthan":if(isNaN(objValue.value)){alert(objValue.name+": Should be a number ");return false}if(eval(objValue.value)>=eval(cmdvalue)){if(!strError||strError.length==0){strError=objValue.name+" : value should be less than "+cmdvalue}alert(strError);return false}break;case"gt":case"greaterthan":if(isNaN(objValue.value)){alert(objValue.name+": Should be a number ");return false}if(eval(objValue.value)<=eval(cmdvalue)){if(!strError||strError.length==0){strError=objValue.name+" : value should be greater than "+cmdvalue}alert(strError);return false}break;case"regexp":if(objValue.value.length>0){if(!objValue.value.match(cmdvalue)){if(!strError||strError.length==0){strError=objValue.name+": Invalid characters found "}alert(strError);return false}}break;case"dontselect":if(objValue.selectedIndex==null){alert("BUG: dontselect command for non-select Item");return false}if(objValue.selectedIndex==eval(cmdvalue)){if(!strError||strError.length==0){strError=objValue.name+": Please Select one option "}alert(strError);return false}break}return true}function smilie(b){if(document.forum_post.body.createTextRange&&document.forum_post.body.caretPos){var a=document.forum_post.body.caretPos;a.text=a.text.charAt(a.text.length-1)==" "?b+" ":b;document.forum_post.body.focus()}else{document.forum_post.body.value+=b;document.forum_post.body.focus()}}function winhelp(b,a){window.open(b,a,"resizable=yes,width=500,height=270")}function win2Open(b,a){window.open(b,a,"scrollbars=yes,resizable=yes,,width=500,height=300")}function chatOpen(b,a){window.open(b,a,"scrollbars=yes,resizable=yes,width=640,height=380")}function gmcOpen(b,a){window.open(b,a,"scrollbars=yes,resizable=yes,width=900,height=640")}function helpOpen(b,a){window.open(b,a,"scrollbars=yes,resizable=yes,width=500,height=600")}function largeOpen(b,a){window.open(b,a,"scrollbars=yes,resizable=yes,width=600,height=400")}function longOpen(b,a){window.open(b,a,"scrollbars=yes,resizable=yes,width=500,height=800")}function toggleBox(a,c){if(document.layers){document.layers[a].display=c?"inline":"none"}else{if(document.getElementById){var b=document.getElementById(a);b.style.display=c?"inline":"none"}else{if(document.all){document.all[a].style.display=c?"inline":"none"}}}}function showToolTip(f,h){var a=document.all&&!window.opera;var b=document.getElementById;iebody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;var d=document.layers?window.pageYOffset:document.body.scrollTop;var g=(a)?iebody.clientWidth:window.innerWidth;var m=(a)?iebody.clientHeight:window.innerHeight;if(!document.getElementById("sui_tooltip_container")){var l=document.createElement("DIV");l.id="sui_tooltip_container";document.getElementsByTagName("body")[0].insertBefore(l,document.getElementsByTagName("body")[0].childNodes[0])}if(!document.getElementById("sui_tooltip_container").getElementsByTagName("table")[0]){var j='<table border="0" cellspacing="0" cellpadding="0" class="suitooltip" style="visibility: hidden; position: absolute;"><tr><td width="8" height="8" class="tl"><span></span></td><td height="8" class="t"><span></span></td><td width="8" height="8" class="tr"><span></span></td></tr><tr><td width="8" class="l"><span></span></td><td valign="top" class="suitooltip-inner"><div class="content">';j=j+h;j=j+'</div></td><td width="8" class="r"><span></span></td></tr><tr><td width="8" height="8" class="bl"><span></span></td><td height="8" class="b"><span></span></td><td width="8" height="8" class="br"><span></span></td></tr></table>';document.getElementById("sui_tooltip_container").innerHTML=j;var c=document.getElementById("sui_tooltip_container").getElementsByTagName("table")[0];if(c.offsetWidth>250){c.style.width="250px"}if(c.offsetWidth+(curPos(f).x-10)>g){c.style.left=(curPos(f).x-c.offsetWidth+15)+"px"}else{c.style.left=(curPos(f).x-10)+"px"}if(c.offsetHeight-d+(curPos(f).y+5)>m){c.style.top=(curPos(f).y-c.offsetHeight-15)+"px"}else{c.style.top=(curPos(f).y+20)+"px"}if(c.offsetWidth>250){c.style.width="250px"}c.style.visibility="visible"}else{var c=document.getElementById("sui_tooltip_container").getElementsByTagName("table")[0];if(c.offsetWidth+(curPos(f).x-10)>g){c.style.left=(curPos(f).x-c.offsetWidth+15)+"px"}else{c.style.left=(curPos(f).x-10)+"px"}if(c.offsetHeight-d+(curPos(f).y+5)>m){c.style.top=(curPos(f).y-c.offsetHeight-15)+"px"}else{c.style.top=(curPos(f).y+20)+"px"}}}function hideToolTip(){if(document.getElementById("sui_tooltip_container")!=null){document.getElementById("sui_tooltip_container").innerHTML=""}}function curPos(a){if(!a){var a=window.event}var b={x:0,y:0};if(a.pageX||a.pageY){b.x=a.pageX;b.y=a.pageY}else{b.x=a.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-document.documentElement.clientLeft;b.y=a.clientY+(document.documentElement.scrollTop||document.body.scrollTop)-document.documentElement.clientTop}return b}function getElementsByClassName(f,s,d){s=s||"*";d=d||document;if(typeof d=="string"){d=document.getElementById(d)}var v=d.getElementsByTagName(s);if(!v.length&&s=="*"&&d.all){v=d.all}var u=[];var a=f.indexOf("|")!=-1?"|":" ";var w=f.split(a);for(var q=0,p=v.length;q<p;q++){var o=v[q].className.split(" ");if(a==" "&&w.length>o.length){continue}var y=0;comparisonLoop:for(var h=0,g=o.length;h<g;h++){for(var e=0,b=w.length;e<b;e++){if(w[e]==o[h]){y++}if((a=="|"&&y==1)||(a==" "&&y==w.length)){u.push(v[q]);break comparisonLoop}}}}return u}if(!Array.prototype.push){Array.prototype.push=function(){var a=this.highestIndex();if(a==undefined){a=-1}for(var b=0;b<arguments.length;b++){this[++a]=arguments[b]}}}String.prototype.trim=function(){return this.replace(/^\s*|\s*$/g,"")};String.prototype.ltrim=function(){return this.replace(/^\s*/g,"")};String.prototype.rtrim=function(){return this.replace(/\s*$/g,"")};function FIC_checkForm(j){var n=[];if(typeof(j)=="string"){j=xGetElementById(j);if(!j){return true}}var l=j;if(!j.nodeName){l=(j.srcElement)?j.srcElement:j.target}if(l.nodeName.toLowerCase()!="form"){l=searchUp(l,"form")}var b=true;var m=l.getElementsByTagName("input");var d=l.getElementsByTagName("select");var g=l.getElementsByTagName("textarea");for(i=0;i<m.length;i++){if(m[i].type.toLowerCase()!="submit"&&m[i].type.toLowerCase()!="button"&&m[i].type.toLowerCase()!="hidden"){var h=" "+m[i].className.replace(/^\s*|\s*$/g,"")+" ";h=h.toLowerCase();var f=m[i].value.trim();var o=m[i].type.toLowerCase();var c="";if(o=="text"||o=="password"){var a=FIC_checkField(h,m[i])}else{if(o=="radio"||o=="checkbox"){var a=FIC_checkRadCbx(h,m[i],m);c="-cr"}else{var a=true}}if(a){removeClassName(m[i],"validation-failed"+c);addClassName(m[i],"validation-passed"+c)}else{removeClassName(m[i],"validation-passed"+c);addClassName(m[i],"validation-failed"+c);if(m[i].getAttribute("title")){n[n.length]=m[i].getAttribute("title")}b=false}}}for(i=0;i<g.length;i++){if(isVisible(g[i])){var h=" "+g[i].className.replace(/^\s*|\s*$/g,"")+" ";h=h.toLowerCase();var a=FIC_checkField(h,g[i]);if(a){removeClassName(g[i],"validation-failed");addClassName(g[i],"validation-passed")}else{removeClassName(g[i],"validation-passed");addClassName(g[i],"validation-failed");if(g[i].getAttribute("title")){n[n.length]=g[i].getAttribute("title")}b=false}}}for(i=0;i<d.length;i++){if(isVisible(d[i])){var h=" "+d[i].className.replace(/^\s*|\s*$/g,"")+" ";h=h.toLowerCase();var a=FIC_checkSel(h,d[i]);if(a){removeClassName(d[i],"validation-failed-sel");addClassName(d[i],"validation-passed-sel")}else{removeClassName(d[i],"validation-passed-sel");addClassName(d[i],"validation-failed-sel");if(d[i].getAttribute("title")){n[n.length]=d[i].getAttribute("title")}b=false}}}if(!b){if(n.length>0){alert("We have found the following error(s):\n\n  * "+n.join("\n  * ")+"\n\nPlease check the fields and try again")}else{alert("Some required values are not correct. Please check the items in red.")}YAHOO.util.Event.stopEvent(j)}return b}function FIC_checkField(l,h){var g=true;var b=h.value.trim();if(l.indexOf(" required ")!=-1&&b.length==0){g=false}if(l.indexOf(" required ")!=-1){var a=h.getAttribute("minlength");if(a&&Math.abs(a)>0){if(h.value.length<Math.abs(a)){g=false}}}if(l.indexOf(" validate-number ")!=-1&&isNaN(b)&&b.match(/[^\d]/)){g=false}else{if(l.indexOf(" validate-digits ")!=-1&&b.replace(/ /,"").match(/[^\d]/)){g=false}else{if(l.indexOf(" validate-alpha ")!=-1&&!b.match(/^[a-zA-Z]+$/)){g=false}else{if(l.indexOf(" validate-alphanum ")!=-1&&b.match(/\W/)){g=false}else{if(l.indexOf(" validate-date ")!=-1){var j=new date(b);if(isNaN(j)){g=false}}else{if(l.indexOf(" validate-email ")!=-1&&!b.match(/\w{1,}[@][\w\-]{1,}([.]([\w\-]{1,})){1,3}$/)){g=false;if(l.indexOf(" required ")==-1&&b.length==0){g=true}}else{if(l.indexOf(" validate-url ")!=-1&&!b.match(/^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i)){g=false}else{if(l.indexOf(" validate-date-au ")!=-1&&!b.match(/^(\d{2})\/(\d{2})\/(\d{4})$/)){g=false}else{if(l.indexOf(" validate-currency-dollar ")!=-1&&!b.match(/^\$?\-?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}\d*(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|(\.[0-9]{1,2})?)$/)){g=false}else{if(l.indexOf(" validate-regex ")!=-1){var f=RegExp(h.getAttribute("regex"));if(f&&!b.match(f)){g=false}}}}}}}}}}}return g}function FIC_checkRadCbx(h,g,d){var b=true;if(h.indexOf(" validate-one-required ")!=-1){b=false;for(var a=0;a<d.length;a++){if(d[a].name.toLowerCase()==g.name.toLowerCase()&&d[a].checked){b=true;break}}}return b}function FIC_checkSel(d,b){var a=true;if(d.indexOf(" validate-not-first ")!=-1&&b.selectedIndex==0){a=false}else{if(d.indexOf(" validate-not-empty ")!=-1&&b.options[b.selectedIndex].value.length==0){a=false}}return a}function addClassName(c,b){if(typeof c=="string"){c=xGetElementById(c)}var a=" "+c.className.replace(/^\s*|\s*$/g,"")+" ";var d=a;b=b.replace(/^\s*|\s*$/g,"");if(a.indexOf(" "+b+" ")==-1){d=a+b}c.className=d.replace(/^\s*|\s*$/g,"");return true}function removeClassName(c,b){if(typeof c=="string"){c=xGetElementById(c)}var a=" "+c.className.replace(/^\s*|\s*$/g,"")+" ";var d=a;b=b.replace(/^\s*|\s*$/g,"");if(a.indexOf(" "+b+" ")!=-1){d=a.replace(" "+b.replace(/^\s*|\s*$/g,"")+" "," ")}c.className=d.replace(/^\s*|\s*$/g,"");return true}function attachToForms(c){var a=document.getElementsByTagName("form");for(var b=0;b<a.length;b++){if(YAHOO.util.Dom.hasClass(a[b],"validate")){YAHOO.util.Event.addListener(a[b],"submit",FIC_checkForm)}}}function isVisible(a){if(typeof a=="string"){a=xGetElementById(a)}while(a.nodeName.toLowerCase()!="body"&&a.style.display.toLowerCase()!="none"&&a.style.visibility.toLowerCase()!="hidden"){a=a.parentNode}if(a.nodeName.toLowerCase()=="body"){return true}else{return false}}function searchUp(c,a,b){if(typeof(c)=="string"){c=xGetElementById(c)}while(c&&c.parentNode&&c.nodeName.toLowerCase()!=a&&c.nodeName.toLowerCase()!="body"){c=c.parentNode}return c}function xGetElementById(a){if(typeof(a)!="string"){return a}if(document.getElementById){a=document.getElementById(a)}else{if(document.all){a=document.all[a]}else{a=null}}return a}YAHOO.util.Event.addListener(window,"load",attachToForms);var SAUI={util:{}};SAUI.util.SetImage=function(b,a,m,g,c){var l;if(c){if(window.frames[c]){l=window.frames[c].document}else{var d=window.frames;for(var f=0;d[f];f++){try{if(d[f].frames[c]){l=d[f].frames[c].document;break}}catch(j){}}}}else{l=document}l.getElementById(b).value=a;l.getElementById(b).focus();l.getElementById(b).blur()};var SUI={};SUI.effects={};SUI.style={};SUI.store={};SUI.draw={};SUI.util={};SUI.effects.HideInputText={store:{},init:function(a,b){a=typeof a=="object"?a:document.getElementById(a);var c=a.id||"SUI-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==SUI.effects.HideInputText.store[this.id]){this.value=""}try{YAHOO.util.Dom.removeClass(this,"dim")}catch(d){}};a.onblur=function(){if(this.value===""){this.value=SUI.effects.HideInputText.store[this.id];try{YAHOO.util.Dom.addClass(this,"dim")}catch(d){}}};if(a.value==this.store[a.id]){a.value=""}}};SUI.effects.TextLimitCounter=function(b,a,c){};SUI.effects.ButtonWorking=function(a,b,e){if(!SUI.effects.ButtonWorking.store){SUI.effects.ButtonWorking.store={}}a=typeof a=="object"?a:document.getElementById(a);if(e==true){SUI.effects.ButtonWorking.store[a.id]=true;var c={num:0,sym:["))  ","  ))","  ((","((  "]};var d=function(){if(SUI.effects.ButtonWorking.store[a.id]==true){if(c.num==0){var f=c.sym[0];c.num=1}else{if(c.num==1){var f=c.sym[1];c.num=2}else{if(c.num==2){var f=c.sym[2];c.num=3}else{var f=c.sym[3];c.num=0}}}a.value=b+" "+f;t=setTimeout(d,200)}};d()}else{delete SUI.effects.ButtonWorking.store[a.id]}};SUI.effects.FadeRemove=function(b){b=typeof b=="object"?b:document.getElementById(b);var a=new YAHOO.util.Anim(b,{opacity:{from:1,to:0}});a.onComplete.subscribe(function(){try{b.parentNode.removeChild(b)}catch(c){b.style.display="none"}});a.animate()};SUI.effects.GalviewFlip=function(b,a){if(a=="over"){getElementsByClassName("SUI-Galview-Images","div",b)[0].className="SUI-Galview-Images over element-row2"}else{getElementsByClassName("SUI-Galview-Images","div",b)[0].className="SUI-Galview-Images element-row1"}};SUI.effects.ToggleRow2=function(c){var a=c.className;var b=c.onmouseout;c.className="element-row2 "+a.replace(/element-row1/g,"");c.onmouseout=function(){c.className=a;c.removeAttribute("onmouseout")}};SUI.style.Current={store:{},capture:function(d){d=typeof d=="object"?d:document.getElementById(d);if(d==null){d=document.getElementById("content-cell")}if(typeof d=="object"){var c="suicolorspot"+Math.random();var b=function(e){if(e==null){return"00"}e=parseInt(e);if(e==0||isNaN(e)){return"00"}e=Math.max(0,e);e=Math.min(e,255);e=Math.round(e);return"0123456789ABCDEF".charAt((e-e%16)/16)+"0123456789ABCDEF".charAt(e%16)};var a=function(h,g,j){var f=h;if(f.currentStyle){if(f.currentStyle[g]!="transparent"){var m=f.currentStyle[g]}else{m="trans"}}else{if(window.getComputedStyle){if(j.search(/color/i)!=-1){if(document.defaultView.getComputedStyle(f,null).getPropertyValue(j).toLowerCase()!="transparent"&&!document.defaultView.getComputedStyle(f,null).getPropertyValue(j).match("rgba")){z=document.defaultView.getComputedStyle(f,null).getPropertyValue(j).split("(")[1].split(")")[0].split(", ");var m="#"+b(z[0],16)+b(z[1],16)+b(z[2],16)}else{m="trans"}}else{m=document.defaultView.getComputedStyle(f,null).getPropertyValue(j)}}}if(g=="backgroundColor"&&m=="trans"){try{if(f.parentNode){return a(f.parentNode,"backgroundColor","background-color")}else{return"ffffff"}}catch(l){return"ffffff"}}else{return m.replace(/#/,"")}};(function(){var h=document.createElement("div");h.className="element-row1";h.id=c;var f=document.createElement("a");var g=document.createElement("div");g.className="element-row2";var e=document.createElement("a");g.appendChild(e);h.appendChild(f);h.appendChild(g);d.insertBefore(h,d.childNodes[0])})();SUI.style.Current.store.row1c=a(document.getElementById(c),"color","color");SUI.style.Current.store.row1bg=a(document.getElementById(c),"backgroundColor","background-color");SUI.style.Current.store.row1bgimg=a(document.getElementById(c),"backgroundImage","background-image");SUI.style.Current.store.row2c=a(document.getElementById(c).getElementsByTagName("div")[0],"color","color");SUI.style.Current.store.row2bg=a(document.getElementById(c).getElementsByTagName("div")[0],"backgroundColor","background-color");SUI.style.Current.store.row2bgimg=a(document.getElementById(c).getElementsByTagName("div")[0],"backgroundImage","background-image");SUI.style.Current.store.alink=a(document.getElementById(c).getElementsByTagName("a")[0],"color","color");SUI.style.Current.store.alink2=a(document.getElementById(c).getElementsByTagName("a")[1],"color","color");if(document.removeChild){document.getElementById(c).parentNode.removeChild(document.getElementById(c))}else{document.getElementById(c).style.display="none"}}}};SUI.style.Bordercolors=function(a){var c=SUI_GetStyles();var d="gspot"+Math.random();document.write('<div id="'+d+'" style="display:none;"></div>');var b=document.getElementById(d).parentNode;if(typeof b==("object")){b.style.borderColor=c.row2bg;var e=b.childNodes;if(a!=false){for(i=0;i<e.length;i++){if(e[i].style){e[i].style.borderColor=c.row2bg}}}}};SUI.draw.Window=function(j){if(!SUI.draw.Window.manager){SUI.draw.Window.manager=new YAHOO.widget.OverlayManager();SUI.draw.Window.win={}}if(SUI.draw.Window.win[j.id]&&!SUI.draw.Window.manager.find(j.id)){delete SUI.draw.Window.win[j.id]}var f={};if(!SUI.draw.Window.win[j.id]){var d=document.createElement("div");d.className="SUI-Window "+(j.classN||"");d.id=j.id||"SUI-Window-NoID";d.style.cssText="visibility: hidden;";(function(){var o=document.createElement("div");o.className="hd";o.innerHTML=j.title||"Window";var n=document.createElement("div");if(!j.appView){n.className="bd"}else{n.className="bd app"}if(j.textSource){n.innerHTML=j.source||"Window contents not found."}else{if(j.objectSource){n.appendChild(j.source)}else{n.innerHTML="Loading..."}}var q=document.createElement("div");q.className="ft";if(j.save||j.custSave){(function(){j.saveText=j.saveText||"Save Changes";var y=document.createElement("div");y.className="SUI-Window-SaveBar";y.setAttribute("pid",j.id);var u=document.createElement("span");u.className="SUI-Button save";u.innerHTML='<span class="first-child"><span class="icon"></span><span class="second-child">'+j.saveText+"</span></span>";if(j.save){u.onclick=function(){var s=document.getElementById(this.parentNode.getAttribute("pid")).getElementsByTagName("form")[0];s.submit()}}else{if(j.custSave){SUI.draw.Window._saveCustomFunctions[j.id]=j.saveFunction;u.onclick=function(){SUI.draw.Window._saveCustomFunctions[this.parentNode.getAttribute("pid")](this.parentNode.getAttribute("pid"))}}}var v=document.createElement("span");v.innerHTML="&nbsp;or&nbsp;";v.className="or";if(j.lazySave){u.style.display="none";v.style.display="none"}var w=document.createElement("a");w.href="#";w.onclick=function(){var s=this.parentNode.getAttribute("pid");var A=SUI.draw.Window.manager.find(s);if(SUI.draw.Window.closeCall[s]){if(SUI.draw.Window.closeCallArgs[s]){SUI.draw.Window.closeCall[s](s,SUI.draw.Window.closeCallArgs[s]);delete SUI.draw.Window.closeCall[s];delete SUI.draw.Window.closeCallArgs[s]}else{SUI.draw.Window.closeCall[s](s);delete SUI.draw.Window.closeCall[s]}}delete SUI.draw.Window.win[s];A.destroy();return false};w.className="cancel";w.innerHTML="Cancel";y.appendChild(u);y.appendChild(v);y.appendChild(w);q.appendChild(y)})()}else{q.innerHTML=""}var m=document.createElement("a");m.href="#";m.innerHTML="Hide";m.title="Hide Task";m.className="SUI-Window-Hide";if(!j.hideHide){m.onclick=function(){var s=SUI.draw.Window.manager.find(this.parentNode.id);s.hide();return false}}else{m.style.cssText="opacity: 0.5; filter: alpha(opacity=50); cursor: default;";m.onclick=function(){return false}}var l=document.createElement("a");l.href="#";l.innerHTML="Maximize";l.title="Maximize Window";l.className="SUI-Window-Maximize";l.onclick=function(){SUI.draw.Window.maximize(this,this.parentNode.id);return false};var p=document.createElement("a");p.href="#";p.innerHTML="X";p.title="Close Window";p.className="SUI-Window-Close";p.onclick=function(){var s=SUI.draw.Window.manager.find(this.parentNode.id);if(SUI.draw.Window.closeCall[this.parentNode.id]){if(SUI.draw.Window.closeCallArgs[this.parentNode.id]){SUI.draw.Window.closeCall[this.parentNode.id](this.parentNode.id,SUI.draw.Window.closeCallArgs[this.parentNode.id]);delete SUI.draw.Window.closeCall[this.parentNode.id];delete SUI.draw.Window.closeCallArgs[this.parentNode.id]}else{SUI.draw.Window.closeCall[this.parentNode.id](this.parentNode.id);delete SUI.draw.Window.closeCall[this.parentNode.id]}}delete SUI.draw.Window.win[this.parentNode.id];s.destroy();return false};d.appendChild(o);d.appendChild(n);d.appendChild(q);d.appendChild(p)})();document.getElementsByTagName("body")[0].insertBefore(d,document.getElementsByTagName("body")[0].childNodes[0]);var b={draggable:true,constraintoviewport:true,dragOnly:true,visible:true,xy:[250,100],minHeight:j.minHeight||100,zIndex:3000,underlay:"shadow",close:false};if(f&&f.w){b.width=f.w+"px"}else{if(j.width){j.width=j.width.replace("px","");b.width=j.width+"px"}else{b.width="500px"}}if(f&&f.h){b.height=f.h+"px"}else{if(j.height){j.height=j.height.replace("px","");b.height=j.height+"px"}else{b.height="300px"}}if(f&&f.x){b.xy=[f.x,f.y]}SUI.draw.Window.win[d.id]=new YAHOO.widget.Panel(d,b);SUI.draw.Window.win[d.id].render();if(!f||!f.x){SUI.draw.Window.win[d.id].center()}if(j.resize&&j.resize==true){var a=new YAHOO.util.Resize(d.id,{handles:["br"],autoRatio:false,minWidth:j.minWidth||175,minHeight:j.minHeight||100,status:false});a.on("startResize",function(l){if(this.cfg.getProperty("constraintoviewport")){var m=YAHOO.util.Dom;var o=m.getClientRegion();var n=m.getRegion(this.element);a.set("maxWidth",o.right-n.left-YAHOO.widget.Overlay.VIEWPORT_OFFSET);a.set("maxHeight",o.bottom-n.top-YAHOO.widget.Overlay.VIEWPORT_OFFSET)}else{a.set("maxWidth",null);a.set("maxHeight",null)}},SUI.draw.Window.win[d.id],true);a.on("resize",function(l){var m=l.height;var n=l.width;this.cfg.setProperty("height",m+"px");this.cfg.setProperty("width",n+"px");if(SUI.draw.Window.onResize[this.id]){SUI.draw.Window.onResize[this.id](this.id)}SUI.draw.Window.win[d.id].fillHeight(YAHOO.util.Dom.getElementsByClassName("bd","div",this.id)[0]);SUI.draw.Window.SavePos(this.id)},SUI.draw.Window.win[d.id],true)}SUI.draw.Window.win[d.id].subscribe("move",function(l){SUI.draw.Window.SavePos(this.id)},SUI.draw.Window.win[d.id],true);SUI.draw.Window.manager.register(SUI.draw.Window.win[d.id]);SUI.draw.Window.manager.find(j.id).focus();if(j.closeCall){SUI.draw.Window.closeCall[j.id]=j.closeCall}if(j.closeCallArgs){SUI.draw.Window.closeCall[j.id]=j.closeCallArgs}if(j.onResize){SUI.draw.Window.onResize[j.id]=j.onResize}if((!j.textSource&&!j.objectSource)||j.footerSource){var e=function(l){if(!j.footerSource){SUI.draw.Window.manager.find(j.id).setBody(l.responseText)}else{SUI.draw.Window.manager.find(j.id).setFooter(l.responseText)}if(j.save){(function(){try{var n=document.getElementById(j.id).getElementsByTagName("form")[0].getElementsByTagName("input");for(var m=0;n[m];m++){if(n[m].type=="submit"||n[m].type=="reset"){n[m].style.display="none"}}}catch(o){}})()}if(j.callback){if(j.callbackArgs){j.callback(j.id,j.callbackArgs)}else{j.callback(j.id)}if(!f||!f.x){SUI.draw.Window.win[d.id].center()}}if(SUI.draw.Window.onResize[j.id]){SUI.draw.Window.win[d.id].fillHeight(YAHOO.util.Dom.getElementsByClassName("bd","div",j.id)[0]);SUI.draw.Window.onResize[j.id](j.id)}};var g=function(l){SUI.draw.Window.manager.find(j.id).setBody("Error Code: "+l.statusText)};var h={success:e,failure:g,cache:false};if(!j.footerSource){var c=YAHOO.util.Connect.asyncRequest("GET",j.source,h)}else{var c=YAHOO.util.Connect.asyncRequest("GET",j.footerSource,h)}}else{if(j.callback){if(j.callbackArgs){j.callback(j.id,j.callbackArgs)}else{j.callback(j.id)}}}if(j.save){(function(){try{var m=document.getElementById(j.id).getElementsByTagName("form")[0].getElementsByTagName("input");for(var l=0;m[l];l++){if(m[l].type=="submit"||m[l].type=="reset"){m[l].style.display="none"}}}catch(n){}})()}if(j.resources){(function(){var n={css:function(s){var q=document.getElementsByTagName("head")[0].getElementsByTagName("link");for(var o=0;q[o];o++){if(q[o].getAttribute("href")==s){return false;break}}return true},js:function(s){var q=document.getElementsByTagName("head")[0].getElementsByTagName("script");for(var o=0;q[o];o++){if(q[o].getAttribute("src")==s){return false;break}}return true}};var l={css:function(q){var o=document.createElement("link");o.setAttribute("rel","stylesheet");o.setAttribute("type","text/css");o.setAttribute("href",q);return o},js:function(q){var o=document.createElement("script");o.setAttribute("type","text/javascript");o.setAttribute("src",q);return o}};r=j.resources;for(var m=0;r[m];m++){if(n[r[m][0]](r[m][1])){document.getElementsByTagName("head")[0].appendChild(l[r[m][0]](r[m][1]))}}})()}SUI.draw.Window.win[d.id].fillHeight(YAHOO.util.Dom.getElementsByClassName("bd","div",this.id)[0])}else{SUI.draw.Window.manager.find(j.id).show();SUI.draw.Window.manager.find(j.id).focus()}};SUI.draw.Window.closeCall={};SUI.draw.Window.closeCallArgs={};SUI.draw.Window.onResize={};SUI.draw.Window._saveCustomFunctions={};SUI.draw.Window.SavePos=function(c){var b=c;var a=SUI.draw.Window.manager.find(c).cfg.config;SUI.util.Settings.save(b,{w:a.width.value.replace("px",""),h:a.height.value.replace("px",""),x:a.xy.value[0],y:a.xy.value[1]},true)};SUI.draw.Window.close=function(b){var a=SUI.draw.Window.manager.find(b);if(SUI.draw.Window.closeCall[b]){if(SUI.draw.Window.closeCallArgs[b]){SUI.draw.Window.closeCall[b](b,SUI.draw.Window.closeCallArgs[b]);delete SUI.draw.Window.closeCall[b];delete SUI.draw.Window.closeCallArgs[b]}else{SUI.draw.Window.closeCall[b](b);delete SUI.draw.Window.closeCall[b]}}delete SUI.draw.Window.win[b];a.destroy()};SUI.draw.Window.closeActive=function(){var a=SUI.draw.Window.manager.getActive();var b=a.id;if(SUI.draw.Window.closeCall[b]){if(SUI.draw.Window.closeCallArgs[b]){SUI.draw.Window.closeCall[b](b,SUI.draw.Window.closeCallArgs[b]);delete SUI.draw.Window.closeCall[b];delete SUI.draw.Window.closeCallArgs[b]}else{SUI.draw.Window.closeCall[b](b);delete SUI.draw.Window.closeCall[b]}}delete SUI.draw.Window.win[b];a.destroy()};SUI.draw.Window.contents=function(b,a,l,j){if(typeof b!="string"){var c=YAHOO.util.Dom.getAncestorByClassName(b,"SUI-Window");if(c){b=c.id}else{return false}}var e=SUI.draw.Window.manager.find(b);if(l){e.setBody(a);if(j){j(b)}}else{e.setBody("Loading...");var f=function(m){e.setBody(m.responseText);if(j){j(b)}};var g=function(m){e.setBody("Error Code: "+m.statusText)};var h={success:f,failure:g,cache:false};var d=YAHOO.util.Connect.asyncRequest("GET",a,h)}};SUI.draw.HelpBubble=function(c,b,a){YAHOO.util.Event.on(window,"load",function(){var h=YAHOO.util.Dom.getRegion(c);var d=document.createElement("div");d.className="SUI-Help-Bubble";if((h.left+((h.right-h.left)/2)-((a||200)/2))>0){d.style.cssText="top: "+h.bottom+"px; left: "+(h.left+((h.right-h.left)/2)-((a||200)/2))+"px; z-index: 10000;"}else{d.style.cssText="top: "+h.bottom+"px; left: "+(h.left)+"px; z-index: 10000;";d.className="SUI-Help-Bubble left"}d.style.width=(a||"200")+"px";var j=document.createElement("div");j.className="top";var f=document.createElement("div");f.className="mid";f.innerHTML=b;var g=document.createElement("div");g.className="hide";g.innerHTML="Click Here to Hide This Message";g.onclick=function(){this.parentNode.parentNode.style.display="none"};f.appendChild(g);var e=document.createElement("div");e.className="bottom";d.appendChild(j);d.appendChild(f);d.appendChild(e);document.getElementsByTagName("body")[0].insertBefore(d,document.getElementsByTagName("body")[0].childNodes[0])})};SUI.draw.CalForInput=function(l,o){var n=YAHOO.util.Event,g=YAHOO.util.Dom,j,f;o=o||{};if(!j){n.on(document,"click",function(q){var d=n.getTarget(q);var p=j.element;if(d!=p&&!g.isAncestor(p,d)&&d!=l){j.hide()}});function e(){var p=f.getSelectedDates();var d;if(p.length>0){d=p[0]}else{d=f.today}f.cfg.setProperty("pagedate",d);f.render()}function b(){j.hide()}j=new YAHOO.widget.Dialog("SUI-InputCal-DialogContainer",{visible:false,context:[l,"tl","bl"],draggable:false,close:false,autofillheight:"body",zIndex:1000});j.setBody('<div id="SUI-InputCal-Dialog"></div><div style="clear: both;"');j.render(document.body);j.showEvent.subscribe(function(){if(YAHOO.env.ua.ie){j.fireEvent("changeContent")}})}if(!f){var h=new Date();if(o.allowOlder){h=null}f=new YAHOO.widget.Calendar("SUI-InputCal-Dialog",{iframe:false,hide_blank_weeks:true,mindate:h});f.render();f.selectEvent.subscribe(function(w,v,s){if(f.getSelectedDates().length>0){var d=v[0];var q=d[0];var y=q[0],u=q[1],A=q[2];l.value=u+"/"+A+"/"+y;if(o&&o.matchStart&&o.matchStart!=null){var B=o.matchStart.value.split("/");var p=YAHOO.widget.DateMath.getDate(B[2],B[0],B[1]);if(YAHOO.widget.DateMath.before(p,YAHOO.widget.DateMath.getDate(q[0],q[1],q[2]))){o.matchStart.value=u+"/"+A+"/"+y}}}else{l.value=""}j.hide()});f.renderEvent.subscribe(function(){j.fireEvent("changeContent")})}var c=f.getSelectedDates();if(c.length>0){f.cfg.setProperty("pagedate",c[0]);f.render()}if(l.value!=""){f.select(l.value);var m=f.getSelectedDates();if(m.length>0){var a=m[0];f.cfg.setProperty("pagedate",(a.getMonth()+1)+"/"+a.getFullYear());f.render()}else{}}j.show()};SUI.draw.MenuBox=function(e,h,a,f,g,n){a=a||200;g=g||document;var j;SUI.util.FlashHide();(function(){var m=document.getElementById("SUI-Menu-Canvas");if(m!=null){SUI.draw.MenuBox.Remove()}})();j=typeof e==("array")?e:SUI.util.GetSpace(e,g);var d=g.createElement("DIV");d.id="SUI-Menu-Canvas";d.className="SUI-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(){SUI.draw.MenuBox.Remove()};c.innerHTML=h;d.appendChild(c)}else{if(typeof h==("array")||typeof h==("object")){for(i=0;h[i];i++){var l=c.cloneNode(true);l.onmouseover=function(){this.className="option over"};l.onmouseout=function(){this.className="option"};l.onclick=function(){SUI.draw.MenuBox.Remove()};l.innerHTML=h[i];d.appendChild(l)}}else{alert(typeof h)}}}g.getElementsByTagName("body")[0].insertBefore(d,g.getElementsByTagName("body")[0].childNodes[0]);mspace=SUI.util.GetSpace(d,g);d.style.left=mspace[2]+j[0]<j[4]-20?j[0]+"px":j[0]+j[2]-mspace[2]+"px";d.style.top=mspace[3]+j[1]+j[3]<j[5]+j[7]||mspace[3]>j[1]?j[1]+j[3]+"px":j[1]-mspace[3]+"px";SUI.draw.MenuBox.Remove=function(){SUI.util.FlashHide.end();if(d){d.parentNode.removeChild(d)}YAHOO.util.Event.removeListener(document.body,"click",SUI.draw.MenuBox.Remove);if(window.frames){for(i=0;window.frames[i];i++){try{YAHOO.util.Event.removeListener(window.frames[i].document.body,"click",SUI.draw.MenuBox.Remove)}catch(m){}}}if(window.event){window.event.cancelBubble=false}if(n){n()}};d.onclick=window.event?function(){window.event.cancelBubble=true}:function(m){m.cancelBubble=true};function b(){YAHOO.util.Event.addListener(document.body,"click",SUI.draw.MenuBox.Remove);if(window.frames){for(i=0;window.frames[i];i++){try{YAHOO.util.Event.addListener(window.frames[i].document.body,"click",SUI.draw.MenuBox.Remove)}catch(m){}}}}var p=setTimeout(b,20);d.style.visibility="visible"};SUI.draw.AppCanvas=function(e,f,g){var a=g.width||"400px";var m=g.height||"auto";if(g.constr){var h=typeof g.constr==("object")?g.constr:document.getElementById(g.constr)}if(g.cover){var n=typeof g.cover==("object")?g.cover:document.getElementById(g.cover)}var c=function(u){if(!u.style){u=document.getElementById("SUI-App-Canvas")}var q=SUI.util.GetSpace(u);var v=h?SUI.util.GetSpace(h):false;var p=function(){if(!v){u.style.left=(q[4]/2)-(q[2]/2)+"px";if(q[5]-q[3]>0){u.style.top=q[7]+q[5]/2-q[3]/2+"px"}else{objref.style.top=q[7]+"px"}}else{u.style.left=(v[2]/2)-(q[2]/2)+"px";var o=q[7]+q[5]/2-q[3]/2;if(o+q[3]>v[1]+v[3]&&q[3]<v[3]){u.style.top=v[1]+v[3]-q[3]+"px"}else{if(v[1]<o){u.style.top=o+"px"}else{u.style.top=v[1]+"px"}}}u.setAttribute("center",1)};if(u.getAttribute("center")==0){p()}else{if(!v){if(q[5]-q[3]>0){p()}}else{if(q[3]+v[1]<q[5]||q[3]<v[3]&&q[3]<q[5]){p()}}}};var l=function(w,y,p){var v=y;var u=p;(function(){if(!document.getElementById("SUI-Display-TracerDiv")){var o=document.createElement("div");o.id="SUI-Display-TracerDiv";document.getElementsByTagName("body")[0].insertBefore(o,document.getElementsByTagName("body")[0].childNodes[0])}})();var s=document.getElementById("SUI-Display-TracerDiv");var q=function(){var I=100;var O=60;var L=10;var K=s.style;K.cssText="display: none; position: absolute; background-color: #ebebeb; border: 2px solid #d8d8d8;";var C=v[2];var P=v[3];var F=v[0];var B=v[1];var M=u[2];var J=u[3];var D=u[0]-4;var A=u[1]-4;var Q=(I-O)/L;var E=(M-C)/L;var G=(J-P)/L;var N=(D-F)/L;var o=(A-B)/L;function H(){K.left=C+"px";K.top=P+"px";K.width=F+"px";K.height=B+"px";K.filter="alpha(opacity="+O+")";K.opacity="."+O;K.display="block";K.zIndex="10";O=O+Q;C=C+E;P=P+G;F=F+N;B=B+o;if(L>0){L--;window.setTimeout(H,10)}else{try{w.style.visibility="visible"}catch(R){}K.display="none";s.parentNode.removeChild(s)}}H()};q()};var d=function(y){var u=2;var w=document.getElementById(y);var p={backgroundColor:{to:g.flashColor||"#FF0000"}};var o={backgroundColor:{to:g.canvasColor||"#EBEBEB"}};var s=new YAHOO.util.ColorAnim(w,p,0.1);var v=new YAHOO.util.ColorAnim(w,o,0.1);var q=function(){if(u>0){u--;s.animate();var A=function(){v.animate()};window.setTimeout(A,110);window.setTimeout(q,220)}};q()};SUI.draw.AppCanvas.CoverSizer=function(p){var o;try{o=SUI.util.GetSpace(document.getElementById(p.getAttribute("conid")))}catch(q){o=SUI.util.GetSpace(document.getElementsByTagName("body")[0])}return o};var j=function(u){var p=60;var y=0;var o=SUI.util.GetSpace(n);var s=g.zIndex-1||"3";if(u==true){if(!document.getElementById("SUI-Display-CoverDiv")){var A=document.createElement("div");A.id="SUI-Display-CoverDiv";if(g.flash){A.setAttribute("flashID",g.flash);A.onclick=function(){d(this.getAttribute("flashID"))}}if(document.all){A.setAttribute("conid",n.id);document.getElementsByTagName("body")[0].insertBefore(A,document.getElementsByTagName("body")[0].childNodes[0]);A.style.cssText="background-color: #000; position: absolute; left: expression(SUI.draw.AppCanvas.CoverSizer(this)[0] +'px'); top: expression(SUI.draw.AppCanvas.CoverSizer(this)[1] +'px'); width: expression(SUI.draw.AppCanvas.CoverSizer(this)[2] +'px'); height: expression(SUI.draw.AppCanvas.CoverSizer(this)[3] +'px'); z-index: "+s+"; display: none;"}else{A.style.cssText="background-color: #000; position: absolute; top: 0; left: 0; bottom: 0; width: 100%; height: 100%; z-index: "+s+"; display: none;";n.style.position="relative";n.appendChild(A)}var v=function(){A.style.filter="alpha(opacity="+y+")";A.style.opacity="."+y;A.style.display="block";y=y+10;if(y<p){window.setTimeout(v,5)}};v()}}else{var w=document.getElementById("SUI-Display-CoverDiv");var q=function(){try{w.style.filter="alpha(opacity="+p+")";w.style.opacity="."+p}catch(B){}p=p-10;if(p>y){window.setTimeout(q,5)}else{try{w.style.display="none";w.parentNode.removeChild(w)}catch(B){}}};q()}};var b=function(){var q=g.zIndex||"9";var p=document.createElement("div");p.id="SUI-App-Canvas";p.className="SUI-App-Canvas";p.setAttribute("center",0);p.style.cssText="position: absolute; visibility: hidden; z-index: "+q+"; width: "+a+";";if(typeof f==("object")){p.appendChild(f)}else{p.innerHTML=f}p.onclick=function(){};document.getElementsByTagName("body")[0].insertBefore(p,document.getElementsByTagName("body")[0].childNodes[0]);c(p);var o=SUI.util.GetSpace(p);var s=typeof e=="object"?SUI.util.GetSpace(e):[o[4]/2,o[5]/2,0,0,o[4],o[5],o[6],o[7]];l(p,[s[2],s[3],s[0],s[1]],[o[2],o[3],o[0],o[1]]);if(g.cover){j(true)}YAHOO.util.Event.addListener(window,"resize",c);YAHOO.util.Event.addListener(window,"scroll",c)};if(!document.getElementById("SUI-App-Canvas")){b()}SUI.draw.AppCanvas.remove=function(){var o=document.getElementById("SUI-App-Canvas");YAHOO.util.Event.removeListener(window,"resize",c);YAHOO.util.Event.removeListener(window,"scroll",c);o.innerHTML="";o.parentNode.removeChild(o);j(false)}};SUI.draw.CategoryTree=function(canvas,sysid,allowNone){var pid="";if(!canvas.id){canvas.id="SUI-Category-Selector-"+Math.floor(Math.random()*100000)}if(!SUI.draw.CategoryTree.store){SUI.draw.CategoryTree.store={}}pid=canvas.id;if(!SUI.draw.CategoryTree.store[pid]){SUI.draw.CategoryTree.store[pid]={};var st=SUI.draw.CategoryTree.store[pid];st.sysid=sysid;st.treeholder=document.createElement("div");st.treeholder.className="tree-holder";st.treeholder.style.cssText="position: absolute; top: -1px; left: -1px; visiblity: hidden;";st.treeholder.onclick=window.event?function(){window.event.cancelBubble=true}:function(e){e.cancelBubble=true};var loader=document.createElement("div");loader.className="button loader";loader.innerHTML="Loading...";var none=document.createElement("div");none.className="button none";none.setAttribute("pid",pid);none.style.display="none";none.onclick=function(){var canvas=document.getElementById(this.getAttribute("pid"));canvas.getElementsByTagName("input")[0].value="";canvas.getElementsByTagName("label")[0].innerHTML="None (root)";SUI.draw.CategoryTree.remove()};none.innerHTML="None (root)";var treeh=document.createElement("div");treeh.className="holder-div";st.treeholder.appendChild(loader);st.treeholder.appendChild(none);st.treeholder.appendChild(treeh);canvas.appendChild(st.treeholder);st._2=YAHOO;YAHOO.util.Connect.asyncRequest("GET","/json/?cmd=getcat&cat_id=&cat_type="+(st.sysid||""),{success:function(o){var n=eval("("+o.responseText+")");st.tree=new st._2.widget.TreeView(treeh);for(var i=0;n[i];i++){var tn=new st._2.widget.TextNode(n[i][0],st.tree.getRoot());tn.isLeaf=!n[i][2];tn.cid=n[i][1];tn.realName=n[i][0];tn.pid=pid;tn.enableHighlight=n[i][3]}st.tree.singleNodeHighlight=true;st.tree.setDynamicLoad(SUI.draw.CategoryTree.loadBranch,1);st.tree.subscribe("clickEvent",function(){canvas.getElementsByTagName("input")[0].value=arguments[0].node.cid;canvas.getElementsByTagName("label")[0].innerHTML=arguments[0].node.realName;SUI.draw.CategoryTree.remove();return false});st.tree.render();if(allowNone){none.style.display=""}loader.style.display="none"}})}SUI.draw.CategoryTree.remove=function(){SUI.draw.CategoryTree.store[pid].treeholder.style.visibility="hidden";YAHOO.util.Event.removeListener(document.body,"click",SUI.draw.CategoryTree.remove);if(window.event){window.event.cancelBubble=false}};SUI.draw.CategoryTree.store[pid].treeholder.style.visibility="visible";var t=setTimeout(function(){YAHOO.util.Event.addListener(document.body,"click",SUI.draw.CategoryTree.remove)},20)};SUI.draw.CategoryTree.loadBranch=function(node,fnLoadComplete){var st=SUI.draw.CategoryTree.store[node.pid];YAHOO.util.Connect.asyncRequest("GET","/json/?cmd=getcat&cat_id="+node.cid+"&cat_type="+(st.sysid||""),{success:function(o){var data=eval("("+o.responseText+")");for(var i=0;data[i];i++){var tn=new st._2.widget.TextNode(data[i][0],o.argument[0]);tn.isLeaf=!data[i][2];tn.cid=data[i][1];tn.realName=data[i][0];tn.pid=node.pid;tn.enableHighlight=data[i][3]}o.argument[1]()},failure:function(o){var data=o.responseText;o.argument[1]()},argument:[node,fnLoadComplete]})};SUI.draw.UploadAnywhere=function(h,g,l){if(typeof h!="object"){h=document.getElementById(h)}g=g||"image";l=l||{};var j=function(){var e="uploadAnywhere"+Math.floor(Math.random()*10000);if(!SUI.draw.UploadAnywhere.store[e]){return e}else{return j()}};var b=j();if(!h.id){h.id=b}SUI.draw.UploadAnywhere.store[b]={id:h.id,callback:l.callback||null,callbackArg:l.callbackArg||null};var a="http://"+window.location.hostname+"/admin/upload/anywhere_uploader.asp?muid="+_SGSV.mi+"&temp_id="+b+"&frame_id="+b+"i&type="+g;var d=null;try{d=document.createElement('<iframe src="'+a+'" frameborder="0" allowTransparency="true" scrolling="no">')}catch(f){}if(!d){d=document.createElement("iframe")}var c=h;if(l.addAfter){c=l.addAfter}addCSS="";if(l.context){addCSS="position: absolute; left: "+l.context[0]+"px; top: "+l.context[1]+"px;"}d.id=b+"i";d.src=a;d.width=20;d.height=22;d.setAttribute("frameborder","0");d.setAttribute("scrolling","no");d.allowTransparency=true;d.style.cssText="width: 20px; height: 22px; border: 0; display: inline-block; vertical-align: top;"+addCSS;if(c.nextSibling){c.parentNode.insertBefore(d,c.nextSibling)}else{c.parentNode.appendChild(d)}if(l.inputHeight){h.style.height=l.inputHeight+"px"}};SUI.draw.UploadAnywhere.store={};SUI.draw.UploadAnywhere.callBack=function(c,b){var a=document.getElementById(SUI.draw.UploadAnywhere.store[c].id);a.value=b;if(SUI.draw.UploadAnywhere.store[c].callback){SUI.draw.UploadAnywhere.store[c].callback(SUI.draw.UploadAnywhere.store[c].callbackArg)}document.getElementById(c+"i").src="http://"+window.location.hostname+"/admin/upload/anywhere_uploader.asp?muid="+_SGSV.mi+"&temp_id="+c+"&frame_id="+c+"i"};SUI.draw.YEditque={};SUI.draw.YEdit=function(g,b){try{if(document.getElementById(g).value.replace(/^\s*(.*?)\s*$/,"$1")==""){document.getElementById(g).value="<br />"}}catch(d){}if(SUI.util.ForumFunctions.store.Smileys||!SUI.util.ForumFunctions.store.SmileysLoad){var c="";try{var a="#"+SUI.style.Current.store.row2bg}catch(d){}try{}catch(d){}if(b.height){var f=(b.height.replace("px","")*1)+49}CKEDITOR.replace(g,{height:b.height||"200px",toolbar:b.toolset||"Basic",baseFloatZIndex:100000,resize_enabled:b.resize||true,resize_minWidth:150,resize_minHeight:f||200,filebrowserImageUploadUrl:c})}else{SUI.draw.YEditque[g]=b}};SUI.draw.ProcessIframes=function(){YUI().use("node",function(a){a.all("textarea.process-iframe").each(function(j,f,c){var b=null;try{b=document.createElement('<iframe src="about:blank" frameborder="0" allowTransparency="true">')}catch(g){}if(!b){b=document.createElement("iframe")}b.name="SUI-process-iframe-"+f;b.id="SUI-process-iframe-"+f;b.width="100%";b.height=100;b.setAttribute("frameborder","0");b.style.cssText="border: 0; width: 100%; height: 100px;";b.src="about:blank";b.allowTransparency=true;var d=a.Node.getDOMNode(j);d.parentNode.insertBefore(b,d);var h;if(b.contentDocument){h=b.contentDocument}else{if(b.contentWindow){h=b.contentWindow.document}else{if(window.frames[b.name]){h=window.frames[b.name].document}}}if(h){h.open();h.write(['<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">',"<html>","<head>","<style>","body, html {background: transparent; margin: 0; padding: 0; overflow: hidden; border: 0 none; width: auto;}","</style>","<script>","var init = function(){",'var f = window.parent.document.getElementById("',b.name,'");','var b = document.getElementById("holder-div");','var b2 = document.getElementsByTagName("body")[0];','f.style.width = (b.offsetWidth > b2.offsetWidth ? b.offsetWidth : b2.offsetWidth) + "px"; f.style.height = (b.offsetHeight > b2.offsetHeight ? b.offsetHeight : b2.offsetHeight) + "px";',"};","window.onload = function(){","init();","setTimeout(init,500);","setTimeout(init,1000);","setTimeout(init,2000);","setTimeout(init,5000);","};","<\/script>","</head>",'<body><table id="holder-div"><tbody><tr><td><div>',d.value,"</div></td></tr></tbody></table></body>","</html>"].join(""));h.close()}},a)})};SUI.util.InitAll=function(){SUI.style.Current.capture("content-cell");SUI.util.DomStorage.initialize();SUI.util.GetQueryVars();SUI.util.AttachForumFunctions();SUI.util.GUI.init();SUI.draw.ProcessIframes()};SUI.util.InitAfterLoad=function(){SUI.util.SizeForOverflow()};SUI.util.GetQueryVars=function(){if(window.location.href.split("?")&&window.location.href.split("?")[1]){var a=window.location.href.split("?")[1].split("&");SUI.store.QueryString={array:[],obj:{}};for(var b=0;a[b];b++){var c=a[b].split("=");SUI.store.QueryString.array.push(c);SUI.store.QueryString.obj[c[0]]=c[1]}}};SUI.util.Ref={keyCode:{fromCode:{8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",19:"pause/break",20:"caps lock",27:"escape",33:"page up",34:"page down",35:"end",36:"home",37:"left arrow",38:"up arrow",39:"right arrow",40:"down arrow",45:"insert",46:"delete",48:0,49:1,50:2,51:3,52:4,53:5,54:6,55:7,56:8,57:9,65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",91:"left window key",92:"right window key",93:"select key",96:"numpad 0",97:"numpad 1",98:"numpad 2",99:"numpad 3",100:"numpad 4",101:"numpad 5",102:"numpad 6",103:"numpad 7",104:"numpad 8",105:"numpad 9",106:"multiply",107:"+",109:"-",110:"decimal point",111:"divide",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"num lock",145:"scroll lock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},fromName:{}}};SUI.util.Form={Select:{GetSelected:function(b){var c=b.value;if(b.options){c=null;for(var a=b.options.length-1;a>=0;a--){if(b.options[a].selected){if(c==null){c=b.options[a].value}else{c=c+","+b.options[a].value}}}}return c}}};SUI.util.SizeForOverflow=function(){if(document.getElementById("site-container-table").offsetWidth>document.getElementById("container").offsetWidth){document.getElementById("container").style.width=document.getElementById("site-container-table").offsetWidth+"px"}};SUI.util.GUI={store:{buttonMenus:{}},regCards:function(h){var a=YAHOO.util.Event,d=YAHOO.util.Dom,f;if(!h){f=getElementsByClassName("SUI-UserPic","span").concat(getElementsByClassName("SUI-ImageCard","span")).concat(getElementsByClassName("SUI-VideoCard","span"))}else{f=getElementsByClassName("SUI-UserPic","span",h).concat(getElementsByClassName("SUI-ImageCard","span",h)).concat(getElementsByClassName("SUI-VideoCard","span",h))}for(var c=0;f[c];c++){if(!YAHOO.util.Dom.hasClass(f[c],"under")&&!YAHOO.util.Dom.hasClass(f[c],"right")){f[c].onmouseover=function(){YAHOO.util.Dom.addClass(this,"over")};f[c].onmouseout=function(){YAHOO.util.Dom.removeClass(this,"over")};var b=d.getElementsByClassName("PopInfo","div",f[c])[0];if(b){try{b.style.left=(f[c].offsetWidth-d.getStyle(b,"width").replace("px",""))/2+"px"}catch(g){}}}}},init:function(){var Event=YAHOO.util.Event,Dom=YAHOO.util.Dom;SUI.util.GUI.BRem=function(){SUI.util.GUI.BRem.Val=true;document.getElementById("SUI-SiteOptionBar").style.display="none"};(function(){var IE6=false
/*@cc_on || @_jscript_version < 5.7 @*/
;var bar=document.getElementById("SUI-SiteOptionBar");if(bar!=null){bar.style.cssText="width: 100%; margin: 0; padding: 0; position: fixed; bottom: 0; left: 0; background-color: transparent; z-index: 10000; display: block;";if(IE6){var getClientHeight=function(){return typeof(window.innerHeight)!=="undefined"?window.innerHeight:document.documentElement.clientHeight};var fixFloatElement=function(){var bar=document.getElementById("SUI-SiteOptionBar");var offset=getClientHeight();bar.style.position="absolute";bar.style.top=(document.documentElement.scrollTop+offset-bar.offsetHeight)+"px"};fixFloatElement();YAHOO.util.Event.on(window,"scroll",fixFloatElement);YAHOO.util.Event.on(window,"resize",fixFloatElement)}if(top.document.getElementById("SAUI-TopButtons")){SUI.util.GUI.BRem()}document.getElementById("SUI-SiteOptionBar-close").onclick=function(){SUI.util.GUI.BRem()};document.getElementsByTagName("body")[0].style.paddingBottom=bar.offsetHeight+"px"}})();(function(){try{SUI.util.GUI.regCards()}catch(e){}})();(function(){buttons=getElementsByClassName("SUI-Menu-Button");for(var i=0;i<buttons.length;i++){try{var menucont=document.getElementById(buttons[i].getAttribute("for"))}catch(Error){}if(menucont){SUI.util.GUI.store.buttonMenus[buttons[i].getAttribute("for")]={};var canvas=document.createElement("div");canvas.style.cssText="text-align: left; background-color: #"+SUI.style.Current.store.row2bg+"; border: 1px solid #"+SUI.style.Current.store.row1bg+";";if(!Dom.hasClass(menucont,"dialog")){var options=menucont.getElementsByTagName("a");for(var ii=0;ii<options.length;ii++){var o=document.createElement("div");o.innerHTML=options[ii].innerHTML;o.style.cssText="cursor: pointer; padding: 5px; color: #"+SUI.style.Current.store.alink2+";";o.setAttribute("parent",buttons[i].getAttribute("for"));if(options[ii].getAttribute("href")){o.setAttribute("link",options[ii].getAttribute("href"))}if(options[ii].getAttributeNode("onclick")){o.setAttribute("fun",ii+"fun");SUI.util.GUI.store.buttonMenus[buttons[i].getAttribute("for")][ii]=options[ii].onclick}o.onmouseover=function(){this.style.backgroundColor="#"+SUI.style.Current.store.alink2;this.style.color="#"+SUI.style.Current.store.row2bg};o.onmouseout=function(){this.style.backgroundColor="transparent";this.style.color="#"+SUI.style.Current.store.alink2};o.onclick=function(){this.style.backgroundColor="transparent";this.style.color="#"+SUI.style.Current.store.alink2;if(this.getAttribute("fun")&&SUI.util.GUI.store.buttonMenus[this.getAttribute("parent")][this.getAttribute("fun").replace("fun","")]){SUI.util.GUI.store.buttonMenus[this.getAttribute("parent")][this.getAttribute("fun").replace("fun","")]()}else{if(this.getAttribute("link")&&this.getAttribute("link")!="#"&&this.getAttribute("link")!=window.location.href+"#"){window.location.href=this.getAttribute("link")}}SUI.draw.MenuBox.Remove()};canvas.appendChild(o)}}else{canvas.innerHTML=menucont.innerHTML;menucont.innerHTML="";if(menucont.getAttribute("width")){SUI.util.GUI.store.buttonMenus[buttons[i].getAttribute("for")].width=menucont.getAttribute("width")}if(menucont.getAttribute("select")){SUI.util.GUI.store.buttonMenus[buttons[i].getAttribute("for")].select=true}}SUI.util.GUI.store.buttonMenus[buttons[i].getAttribute("for")].obj=canvas;buttons[i].onclick=function(){SUI.draw.MenuBox(this,SUI.util.GUI.store.buttonMenus[this.getAttribute("for")].obj,SUI.util.GUI.store.buttonMenus[this.getAttribute("for")].width||150,"object");if(SUI.util.GUI.store.buttonMenus[this.getAttribute("for")].select){try{document.getElementById("SUI-Menu-Canvas").getElementsByTagName("textarea")[0].focus()}catch(e){}}return false}}else{if(buttons[i].getAttribute("for")){buttons[i].style.display="none"}}}})();(function(){editors=getElementsByClassName("SUI-simple-edit","textarea");if(editors.length>0){document.getElementsByTagName("body")[0].className="yui-skin-sam"}for(var i=0;i<editors.length;i++){var newid="SUI-NewEditor"+i+"-"+Math.random();if(!editors[i].id){editors[i].id=newid}else{newid=editors[i].id}var editOptions={height:"150px",doSubmit:true,smiley:false,focus:false};try{var restr=document.getElementById(newid).getAttribute("res");if(restr.search("video")!=-1){editOptions.video=false}if(restr.search("smiley")!=-1){editOptions.smiley=false}if(restr.search("image")!=-1){editOptions.image=false}if(restr.search("link")!=-1){editOptions.link=false}}catch(Error){}try{if(document.getElementById(newid).getAttribute("toolset")&&document.getElementById(newid).getAttribute("toolset")!=""){editOptions.toolset=document.getElementById(newid).getAttribute("toolset")}}catch(Error){}try{if(document.getElementById(newid).getAttribute("editheight")){editOptions.height=document.getElementById(newid).getAttribute("editheight")+"px"}}catch(Error){}SUI.draw.YEdit(newid,editOptions)}})();(function(){toolbars=getElementsByClassName("SUI-AdminTools-Bar");if(toolbars.length>0){document.getElementsByTagName("body")[0].className="yui-skin-sam"}for(var i=0;i<toolbars.length;i++){var menuBar=new YAHOO.widget.MenuBar(toolbars[i],{autosubmenudisplay:false,lazyload:true,zIndex:50000});menuBar.render()}})()}};SUI.util.AutoComplete=function(d){var c=new YAHOO.util.XHRDataSource(d.string);c.responseType=YAHOO.util.XHRDataSource.TYPE_TEXT;c.responseSchema={recordDelim:"\n",fieldDelim:"\t"};c.maxCacheEntries=5;var b=new YAHOO.widget.AutoComplete(d.input,d.container,c);b.generateRequest=function(e){return e};var a=d.arg||null;if(d.fn){b.itemSelectEvent.subscribe(function(f,e){d.fn(e[2],a)})}return{oDS:c,oAC:b}};SUI.util.AjaxFormSubmit=function(b,l,h,g){var c=[];if(typeof b!="object"){if(document.getElementById(b)){c=document.getElementById(b).getElementsByTagName("textarea")}else{c=document.forms[b].getElementsByTagName("textarea")}}else{c=b.getElementsByTagName("textarea")}for(var f=0;c[f];f++){var a=c[f].id;if(window.CKEDITOR&&CKEDITOR.instances[a]){CKEDITOR.instances[a].updateElement();CKEDITOR.instances[a].setData("<p></p>")}}var j=function(m){m.argument.call(m.responseText,g)};var d=function(m){};YAHOO.util.Connect.setForm(b);var e=YAHOO.util.Connect.asyncRequest("POST",l,{success:j,failure:d,argument:{call:h}})};SUI.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}})};SUI.util.OrderFunctions={store:{},checkDetailsForm:function(){if(YAHOO.util.Dom.getStyle(document.getElementById("cdomain"),"display")!="none"){if(document.getElementById("order-domain-name").value==""){alert("You have chosen the option to add a domain. Please enter a domain and check it for availablity before continuing.");return false}else{if(SUI.util.OrderFunctions.store.regGood==false){alert("The domain you chose is not available, please choose a different domain name to continue.");return false}else{if(!SUI.util.OrderFunctions.store.regGood&&YAHOO.util.Dom.getStyle(document.getElementById("Check-Name"),"display")!="none"){alert("Please check the availability of your domain name before continuing.");return false}else{return true}}}}else{return true}},checkDomainAvail:function(a,c,b){if(!SUI.util.OrderFunctions.store.regGood){c=document.getElementById(c);b=document.getElementById(b);var d=function(e){SUI.effects.ButtonWorking(a,"",false);if(e=="210"){SUI.util.OrderFunctions.store.regGood=true;a.value="Domain Available : )"}else{SUI.util.OrderFunctions.store.regGood=false;a.value="Un-Available - Please try another domain."}};a.disabled=true;SUI.effects.ButtonWorking(a,"Checking Domain",true);ajax_function("main/xml/register.com.asp?c=lookup&sld="+c.value+"&tld="+b.options[b.selectedIndex].value,d)}else{a.value="Domain Available : )"}},checkDomainAvailNewSite:function(){if(!SUI.util.OrderFunctions.store.regGood){domain=document.getElementById("domain_name");extention=document.getElementById("host_domain");var a=function(b){if(b.replace(/^\s+|\s+$/g,"")=="210"){SUI.util.OrderFunctions.store.regGood=true;document.getElementById("new_site_activate").submit()}else{alert("The Domain Name you chose is un-available. Please try another one.\nResponse Code: "+b);return false}};ajax_function("main/xml/register.com.asp?c=lookup&sld="+domain.value+"&tld="+extention.options[extention.selectedIndex].value,a);return false}else{return true}},checkDomainSimple:function(d,b,a){var c=YAHOO.util.Connect.asyncRequest("GET","main/xml/register.com.asp?c=lookup&sld="+d+"&tld="+b,{success:function(e){if(e.responseText.replace(/^\s+|\s+$/g,"")=="210"){e.argument.fn(e.argument.domain,e.argument.ext)}else{alert("The Domain Name you chose is un-available. Please try another one.\nResponse Code: "+e.responseText)}},argument:{fn:a,domain:d,ext:b}})},cancelCheckDomain:function(a){a=document.getElementById(a);delete SUI.util.OrderFunctions.store.regGood;a.value="Check Availability";a.disabled=false},validDomain:function(a){var b=/[^a-zA-Z0-9-]/;a.value=a.value.replace(b,"")}};SUI.util.DynamicContent=function(c,f,g,a,e){var b=Math.floor(Math.random()*99999999);var d=YAHOO.util.Connect.asyncRequest("GET",c+"&uncache="+b,{success:function(j){if(typeof f!="object"){f=document.getElementById(f)}f.innerHTML=j.responseText;try{SUI.util.GUI.regCards(f)}catch(h){}if(j.argument.call){if(arguments.arg){j.argument.call(j.responseText,j.argument.arg)}else{j.argument.call(j.responseText)}}},failure:function(h){if(!e){alert("Sorry, we were unable to load that for you at this time. Please refresh the page and try again.\nHTTP status: "+h.status+"/nStatus code message: "+h.statusText)}},argument:{call:g,arg:a}})};SUI.util.DialogBox=function(b,d,a){var c=function(){var e=b;var f=/[^a-zA-Z0-9-]/;return e.replace(f,"")};SUI.draw.Window({id:c(),width:a.width||"500px",height:a.height||"400px",source:b,resize:true,save:true,title:a.title||"Dialog Box",callback:function(){if(document.getElementById("SUI-element-customarea-edit")){var e=YAHOO.util.Dom.getAncestorByTagName(document.getElementById("SUI-element-customarea-edit"),"table").getElementsByTagName("textarea")[0];e.id="SUI-element-customarea-edit-textarea";SUI.draw.YEdit("SUI-element-customarea-edit-textarea",{height:"300px",toolset:"SimpleSource",showTools:false,sourceStart:true})}else{if(document.getElementById("SUI-element-contactform-edit")){var e=YAHOO.util.Dom.getAncestorByTagName(document.getElementById("SUI-element-contactform-edit"),"table").getElementsByTagName("textarea")[0];e.id="SUI-element-customarea-edit-textarea";if(e.value.replace(/^\s+|\s+$/g,"")==""){e.value='<p>Contact Name* <br /><input name="name" size="30" type="text" class="required" /></p><p>Email Address* <br /><input name="email" size="30" type="text" class="required" /></p><p>Contact Telephone # <br /><input name="phone" size="30" type="text" /></p><p>Message <br /><textarea cols="50" name="message" rows="6"></textarea></p>'}SUI.draw.YEdit("SUI-element-customarea-edit-textarea",{height:"300px",toolset:"ContactForm",showTools:false,sourceStart:true})}}},closeCall:function(){if(window.CKEDITOR&&window.CKEDITOR.instances["SUI-element-customarea-edit-textarea"]){window.CKEDITOR.instances["SUI-element-customarea-edit-textarea"].destroy()}}});return false};SUI.util.ProfileFunctions={store:{},customBoxEditor:function(){hideoptionbox.callfirst=function(){if(window.CKEDITOR&&window.CKEDITOR.instances["SUI-element-customarea-edit-textarea"]){window.CKEDITOR.instances["SUI-element-customarea-edit-textarea"].destroy()}};var a=YAHOO.util.Dom.getAncestorByTagName(document.getElementById("SUI-member-element-custombox"),"table").getElementsByTagName("textarea")[0];a.id="SUI-member-element-customebox-textarea";SUI.draw.YEdit("SUI-member-element-customebox-textarea",{height:"200px",toolset:"SimpleSource",showTools:false,sourceStart:true})},memberList:{_:{},refresh:function(o){var b=SUI.util.ProfileFunctions.memberList,g=b._[o].store,j=document.getElementById(b._[o].f),n=document.getElementById(b._[o].d),l="";n.innerHTML="";for(i in g){var h=document.createElement("span");h.className="name";h.innerHTML=g[i];var e=document.createElement("a");e.innerHTML="X";e.href="#";e.title="Remove "+g[i];e.setAttribute("i",i);e.setAttribute("c",o);e.onclick=function(){delete SUI.util.ProfileFunctions.memberList._[this.getAttribute("c")].store[this.getAttribute("i")];SUI.util.ProfileFunctions.memberList.refresh(this.getAttribute("c"));return false};h.appendChild(e);n.appendChild(h);l+=l==""?i:(","+i)}j.value=l},init:function(d,f,c,b,e){var a=SUI.util.ProfileFunctions.memberList;a._[d]={c:b,inp:c,f:f,d:e,store:{}};SUI.util.AutoComplete({arg:d,input:c,container:b,string:d,fn:function(j,l){var g=SUI.util.ProfileFunctions.memberList;var h=document.getElementById(g._[l].inp);g._[l].store[j[1].replace(/^\s+|\s+$/g,"")]=j[0].replace(/^\s+|\s+$/g,"");g.refresh(l);h.value=""}})}},accessEdit:function(c,e,a){SUI.util.ProfileFunctions.accessEdit.autoString=a.string||null;SUI.util.ProfileFunctions.accessEdit.doList=a.list||true;SUI.util.ProfileFunctions.accessEdit.custField=a.field||null;SUI.util.ProfileFunctions.accessEdit.drawAll=function(){var h=SUI.util.ProfileFunctions.accessEdit.store,m=document.getElementById("SUI-member-access-list-field"),l=document.getElementById("SUI-member-access-list-display"),n="";l.innerHTML="";for(i in h){var j=document.createElement("span");j.className="name";j.innerHTML=h[i];var g=document.createElement("a");g.innerHTML="X";g.href="#";g.title="Remove "+h[i];g.setAttribute("i",i);g.onclick=function(){delete SUI.util.ProfileFunctions.accessEdit.store[this.getAttribute("i")];SUI.util.ProfileFunctions.accessEdit.drawAll();return false};j.appendChild(g);l.appendChild(j);n+=n==""?i:(","+i)}m.value=n};var b=Math.floor(Math.random()*99999999);var f=document.createElement("div");f.id="SUI-util-DialogBox-Content";f.innerHTML='<h2 style="text-align: center;">Loading... Please wait.</h2>';getOptionBox("new",e,{title:a.title||"Edit Access",content:f,width:a.width||"620px"});SUI.util.ProfileFunctions.accessEdit.aSyncsuccess=function(g){var h=document.createElement("div");h.innerHTML=g.responseText;document.getElementById("SUI-util-DialogBox-Content").innerHTML="";document.getElementById("SUI-util-DialogBox-Content").appendChild(h);checkforcentered();if(SUI.util.ProfileFunctions.accessEdit.doList==true){YAHOO.util.Event.onContentReady("SUI-member-access-list-field",function(){SUI.util.ProfileFunctions.accessEdit.store={};var l=document.getElementById("SUI-member-access-list-current").value.split("**");for(var j=0;l[j];j++){if(l[j].match("||")){var m=l[j].split("||");SUI.util.ProfileFunctions.accessEdit.store[m[0]]=m[1]}}SUI.util.ProfileFunctions.accessEdit.drawAll();SUI.util.AutoComplete({input:"SUI-member-access-new-input",container:"SUI-member-access-autocomplete",string:SUI.util.ProfileFunctions.accessEdit.autoString,fn:function(n){input=document.getElementById("SUI-member-access-new-input");SUI.util.ProfileFunctions.accessEdit.store[n[1].replace(/^\s+|\s+$/g,"")]=n[0].replace(/^\s+|\s+$/g,"");SUI.util.ProfileFunctions.accessEdit.drawAll();input.value=""}})})}else{YAHOO.util.Event.onContentReady("SUI-member-access-autocomplete",function(){SUI.util.AutoComplete({input:"SUI-member-access-new-input",container:"SUI-member-access-autocomplete",string:SUI.util.ProfileFunctions.accessEdit.autoString,fn:function(j){if(SUI.util.ProfileFunctions.accessEdit.custField){var l=typeof SUI.util.ProfileFunctions.accessEdit.custField=="object"?SUI.util.ProfileFunctions.accessEdit.custField:document.getElementById(SUI.util.ProfileFunctions.accessEdit.custField);l.value=j[1].replace(/^\s+|\s+$/g,"")}}})})}};SUI.util.ProfileFunctions.accessEdit.aSyncfailure=function(g){document.getElementById("SUI-util-DialogBox-Content").innerHTML="<h3>Sorry we were unable to load that. Please log out, then sign back in and try that again.</h3>";checkforcentered()};SUI.util.ProfileFunctions.accessEdit.aSynccallback={success:SUI.util.ProfileFunctions.accessEdit.aSyncsuccess,failure:SUI.util.ProfileFunctions.accessEdit.aSyncfailure};var d=YAHOO.util.Connect.asyncRequest("GET",c+"&uncache="+b,SUI.util.ProfileFunctions.accessEdit.aSynccallback)},elementEdit:function(a){var b=function(c,d){if(!d.id){YAHOO.util.Dom.removeClass(d.button,"loading");var f=document.createElement("div");f.innerHTML=c;var e=document.createElement("div");e.id="SUI-member-edit-elementid";e.setAttribute("element",d.button.getAttribute("pid"));f.appendChild(e);getOptionBox("new",d.button,{title:"Edit Options",content:f,width:"620px",callback:function(){SUI.util.MPEditAppendAccents();try{if(document.getElementById("SUI-member-element-custombox")){var g=YAHOO.util.Dom.getAncestorByTagName(document.getElementById("SUI-member-element-custombox"),"table").getElementsByTagName("textarea")[0];var l=document.createElement("div");var h=document.createElement("button");h.innerHTML="Switch to Rich Text Mode";h.onclick=function(){SUI.util.ProfileFunctions.customBoxEditor();this.style.display="none";return false};l.appendChild(h);g.parentNode.insertBefore(l,g)}}catch(j){}}})}else{var f=document.createElement("div");f.innerHTML=c;getOptionBox("new",d.button,{title:d.title||"Add Element",content:f,width:"620px",callback:function(){if(document.getElementById("SUI-member-element-custombox")){var g=YAHOO.util.Dom.getAncestorByTagName(document.getElementById("SUI-member-element-custombox"),"table").getElementsByTagName("textarea")[0];var j=document.createElement("div");var h=document.createElement("button");h.innerHTML="Switch to Rich Text Mode";h.onclick=function(){SUI.util.ProfileFunctions.customBoxEditor();this.style.display="none";return false};j.appendChild(h);g.parentNode.insertBefore(j,g)}}})}};if(!a||!a.id){YAHOO.util.Dom.addClass(this,"loading");if(document.getElementById("element"+this.getAttribute("pid")).getAttribute("group")){ajax_function("/member/ajax/cmd.asp?page=elements&id="+this.getAttribute("pid")+"&g="+document.getElementById("element"+this.getAttribute("pid")).getAttribute("group"),b,{button:this})}else{ajax_function("/member/ajax/cmd.asp?page=elements&id="+this.getAttribute("pid"),b,{button:this})}}else{if(a.group){ajax_function("/member/ajax/cmd.asp?page=elements&id="+a.id+"&g="+a.group,b,{id:a.id,title:a.title||null})}else{ajax_function("/member/ajax/cmd.asp?page=elements&id="+a.id+"&p="+(a.profile||""),b,{id:a.id,title:a.title||null})}}return false},order:function(){try{if(document.getElementById("SUI-member-colleft")&&document.getElementById("SUI-member-colright")){var o=[document.getElementById("SUI-member-colleft"),document.getElementById("SUI-member-colright")]}else{var o=[]}}catch(g){var o=[]}var m=[];for(var f=0;o[f];f++){var j={};j.id=o[f].id=="SUI-member-colleft"?"1":"2";j.elements=[];var a=getElementsByClassName("element-container","div",o[f]);for(var n=0;n<a.length;n++){if(a[n].id){j.elements.push(a[n].id.replace("element",""))}}m.push(j)}if(!SUI.util.ProfileFunctions.store.cids){SUI.util.ProfileFunctions.store.cids=m}else{var l=YAHOO.lang.JSON.stringify(m);var h=YAHOO.lang.JSON.stringify(SUI.util.ProfileFunctions.store.cids);if(h!=l){var b="";for(var f=0;f<m.length;f++){if(f!=0){b=b+","}b=b+m[f].id;if(m[f].elements){for(var n=0;n<m[f].elements.length;n++){b=b+"|"+m[f].elements[n]}}}var e="/json/json.asp";var d="page=members&cmd=updateprofile&a="+b;SUI.util.ProfileFunctions.store.aSyncsuccess=function(){};SUI.util.ProfileFunctions.store.aSyncfailure=function(){};SUI.util.ProfileFunctions.store.aSynccallback={success:SUI.util.ProfileFunctions.store.aSyncsuccess,failure:SUI.util.ProfileFunctions.store.aSyncfailure};var c=YAHOO.util.Connect.asyncRequest("POST",e,SUI.util.ProfileFunctions.store.aSynccallback,d);SUI.util.ProfileFunctions.store.cids=m}}},styleTools:function(){var f=YAHOO.util.Dom,c=YAHOO.util.Event;var e=f.get("SUI-member-page-styletools");var d=function(h){var g="SUI-member-styletools-"+h;YAHOO.util.Event.onContentReady(g,function(){function m(){SUI.util.ProfileFunctions.store.stCP[h]=new YAHOO.widget.ColorPicker(l.body.id,{showcontrols:false,images:{PICKER_THUMB:"/dhtml/adminui/images/design/picker_thumb.png",HUE_THUMB:"/dhtml/adminui/images/design/hue_thumb.png"}});var n=SUI.util.ProfileFunctions.store.stCP[h];n.on("rgbChange",function(q,p){var o="#"+this.get("hex");j.set("value",o);YAHOO.util.Dom.setStyle("SUI-member-styletools-"+p+"-current","backgroundColor",o);SUI.util.ProfileFunctions.store.style[p]=o.replace(/#/g,"");YAHOO.util.Dom.get("SUI-member-styletools-"+p+"-current").innerHTML="Current color is "+o;YAHOO.util.Dom.get("SUI-member-styletools-"+p+"-input").value=o;SUI.util.ProfileFunctions.drawStyle()},h);if(YAHOO.util.Dom.get("SUI-member-styletools-"+h+"-input").value!=""){n.setValue(YAHOO.util.Color.hex2rgb(YAHOO.util.Dom.get("SUI-member-styletools-"+h+"-input").value.replace(/#/g,"")))}else{n.setValue([255,255,255])}this.unsubscribe("click",m)}var l=new YAHOO.widget.Menu(h+"color-picker-menu",{width:"220px",height:"190px",zIndex:50000});l.subscribe("show",function(q,o,n){if(YAHOO.util.Dom.get("SUI-member-styletools-"+n+"-input").value!=""){SUI.util.ProfileFunctions.store.stCP[n].setValue(YAHOO.util.Color.hex2rgb(YAHOO.util.Dom.get("SUI-member-styletools-"+n+"-input").value.replace(/#/g,"")))}else{SUI.util.ProfileFunctions.store.stCP[n].setValue([255,255,255])}},h);var j=new YAHOO.widget.Button({type:"menu",className:"color-picker-button",label:'<em id="SUI-member-styletools-'+h+'-current" class="color-picker-current-color">Current color is #FFFFFF.</em>',menu:l,container:g});j.on("appendTo",function(){l.setBody("&#32;");l.body.id=h+"member-color-picker-container";YAHOO.util.Dom.addClass(l.body,"member-color-picker-container");l.render(this.get("container"))});j.on("click",m);c.on("SUI-member-styletools-"+h+"-input","change",function(o,n){SUI.util.ProfileFunctions.store.style[n]=this.value.replace(/#/g,"");SUI.util.ProfileFunctions.drawStyle()},h)})};var a=function(){SUI.util.ProfileFunctions.store.style=SUI.util.ProfileFunctions.store.style||{bgColor:"",bgRepeat:"",bgUrl:"",infoBoxBG:"",infoBoxBGImage:"",infoBoxTxt:""};SUI.util.ProfileFunctions.store.styleOrig=SUI.util.ProfileFunctions.store.styleOrig||{bgColor:"",bgRepeat:"",bgUrl:"",infoBoxBG:"",infoBoxBGImage:"",infoBoxTxt:""};SUI.util.ProfileFunctions.store.stCP=SUI.util.ProfileFunctions.store.stCP||{};if(document.getElementById("SUI-member-style-values")&&document.getElementById("SUI-member-style-values").value!=""){var h=document.getElementById("SUI-member-style-values").value.split("||");for(var j=0;h[j];j++){var g=h[j].split(",");if(SUI.util.ProfileFunctions.store.style[g[0]]!=null){SUI.util.ProfileFunctions.store.style[g[0]]=g[1];SUI.util.ProfileFunctions.store.styleOrig[g[0]]=g[1]}}SUI.util.ProfileFunctions.revertStyle()}d("bgColor");d("infoBoxBG");d("infoBoxTxt");var l=new YAHOO.widget.ButtonGroup("SUI-member-styletools-bgRepeat-container");l.on("checkedButtonChange",function(m){SUI.util.ProfileFunctions.store.style.bgRepeat=m.newValue.get("value");SUI.util.ProfileFunctions.drawStyle()});c.on("SUI-member-styletools-bgUrl-input","change",function(){SUI.util.ProfileFunctions.store.style.bgUrl=this.value;SUI.util.ProfileFunctions.drawStyle()});c.on("SUI-member-styletools-infoBoxBGImage-input","change",function(){SUI.util.ProfileFunctions.store.style.infoBoxBGImage=this.value;SUI.util.ProfileFunctions.drawStyle()});SUI.draw.UploadAnywhere("SUI-member-styletools-bgUrl-input","image",{callback:function(){SUI.util.ProfileFunctions.store.style.bgUrl=document.getElementById("SUI-member-styletools-bgUrl-input").value;SUI.util.ProfileFunctions.drawStyle()}});SUI.draw.UploadAnywhere("SUI-member-styletools-infoBoxBGImage-input","image",{callback:function(){SUI.util.ProfileFunctions.store.style.infoBoxBGImage=document.getElementById("SUI-member-styletools-infoBoxBGImage-input").value;SUI.util.ProfileFunctions.drawStyle()}});b()};var b=function(){var g=new YAHOO.util.Anim(e,{height:{from:1,to:125}},0.2);e.style.display="block";g.onComplete.subscribe(function(){e.style.height=""});g.animate()};SUI.util.ProfileFunctions.styleTools.hide=function(){var g=document.getElementById("SUI-member-page-styletools");var h=new YAHOO.util.Anim(g,{height:{from:125,to:1}},0.2);h.onComplete.subscribe(function(){g.style.display="none"});h.animate()};if(e){if(!f.get("SUI-member-styletools-bgColor-current")){a()}else{b()}}},clearStyle:function(){if(SUI.util.ProfileFunctions.store.style){var a=SUI.util.ProfileFunctions.store.style;for(k in a){if(document.getElementById("SUI-member-styletools-"+k+"-input")){document.getElementById("SUI-member-styletools-"+k+"-input").value=""}a[k]=""}SUI.util.ProfileFunctions.drawStyle()}},revertStyle:function(){if(SUI.util.ProfileFunctions.store.style){var b=SUI.util.ProfileFunctions.store.style;var a=SUI.util.ProfileFunctions.store.styleOrig;for(k in b){b[k]=a[k];if(document.getElementById("SUI-member-styletools-"+k+"-input")){document.getElementById("SUI-member-styletools-"+k+"-input").value=a[k]}}SUI.util.ProfileFunctions.drawStyle()}},drawStyle:function(){var j={bgColor:"#SUI-member-page-table {background-color: #bgColor;}",bgRepeat:"#SUI-member-page-table {background-repeat: bgRepeat;}",bgUrl:"#SUI-member-page-table {background-image: url(bgUrl);}",infoBoxBG:"#container #SUI-member-ProfileImageBlock.element-row1 {background: transparent;}#container #SUI-member-ProfileImageBlock.element-row1 .element-row1 { backgound: transparent;}#container #SUI-member-ProfileImageBlock.element-row1 {background-color: #infoBoxBG;}",infoBoxBGImage:"#container #SUI-member-ProfileImageBlock.element-row1 .element-row1 { backgound: transparent;}#container #SUI-member-ProfileImageBlock.element-row1 {background-image: url(infoBoxBGImage);}",infoBoxTxt:"#container #SUI-member-ProfileImageBlock.element-row1 .element-row1 { color: #infoBoxTxt;}#container #SUI-member-ProfileImageBlock.element-row1 .element-row1-inner { color: #infoBoxTxt;}#container #SUI-member-ProfileImageBlock.element-row1 {color: #infoBoxTxt;}"};if(SUI.util.ProfileFunctions.store.style){var g=SUI.util.ProfileFunctions.store.style,f="",c="";for(k in g){var h=c==""?"":"||";if(g[k]!=""){var e=new RegExp(k,"g");f+=j[k].replace(e,g[k]);c+=h+k+","+g[k]}}var a=document.getElementById("customprofilestyles");var b=document.createElement("style");b.type="text/css";b.media="all";b.id="customprofilestyles";if(a==null){document.getElementsByTagName("head")[0].appendChild(b)}else{a.parentNode.replaceChild(b,a)}if(b.styleSheet){b.styleSheet.cssText=f}else{if(b.sheet){stylesnode=document.createTextNode(f);b.appendChild(stylesnode)}}if(document.getElementById("SUI-member-style-values")){document.getElementById("SUI-member-style-values").value=c}if(document.getElementById("SUI-member-style-css")){document.getElementById("SUI-member-style-css").value=f}}},deleteActivity:function(c,a,d){var b=YAHOO.util.Connect.asyncRequest("GET","/json/?page=members&cmd=delete_activity&id="+d,{success:function(e){var f=YAHOO.util.Dom.getAncestorByTagName(e.argument.obj,e.argument.parent);SUI.effects.FadeRemove(f)},argument:{obj:c,parent:a}})},groupUrl:function(b){var a=/[^a-zA-Z0-9-]/g;return b.replace(a,"")},tagPhoto:function(h,d){var g=YAHOO.util.Dom,b=YAHOO.util.Event,f,c;(function(){var e=d;if(window.ActiveXObject){f=window.event.offsetX;c=window.event.offsetY}else{var l=0,j=0;var m=e;while(m){j=m.offsetLeft+j;l=m.offsetTop+l;m=m.offsetParent}f=h.pageX-j;c=h.pageY-l}})();if(f>d.offsetWidth-50){f=d.offsetWidth-50}else{if(f<50){f=50}}if(c>d.offsetHeight-50){c=d.offsetHeight-50}else{if(c<50){c=50}}SUI.util.ProfileFunctions.taggingObj=new YAHOO.widget.ImageCropper(d,{initHeight:100,id:"SUI-member-photoTagging-active",initWidth:100,minHeight:25,minWidth:25,status:false,initialXY:[f-50,c-50]});b.onContentReady("SUI-member-photoTagging-active",function(){var e=SUI.util.ProfileFunctions.taggingObj;b.on(e.getMaskEl(),"click",function(){e.destroy()});var m=e.getCropCoords();var j=document.createElement("div");j.id="SUI-member-photoTagging-option-box";j.style.cssText="top: "+m.top+"px; left: "+(m.left+m.width+5)+"px;";var l=document.createElement("form");l.innerHTML='<div><input type="text" class="text" /></div><div>Tag this part of the photo with a discriptive key word or a person\'s name.</div><div style="text-align: center;"><a href="#">Done</a> or <a href="#">Cancel</a></div>';j.appendChild(l);e.getWrapEl().appendChild(j)});var a=SUI.util.ProfileFunctions.taggingObj;a.on("moveEvent",function(){var j=a.getCropCoords();var e=document.getElementById("SUI-member-photoTagging-option-box");e.style.cssText="top: "+j.top+"px; left: "+(j.left+j.width+5)+"px;"})},clearStatus:function(a,c){SUI.util.ProfileFunctions.clearStatus.callback={success:function(d){if(d.argument){SUI.effects.FadeRemove(d.argument)}else{alert("Your profile status has been cleared.")}},failure:function(d){alert("There was a problem changing your status. Please sign out and sign back into the site.")},argument:c};var b=YAHOO.util.Connect.asyncRequest("GET","/json/json.asp?page=members&cmd=clear&m="+a,SUI.util.ProfileFunctions.clearStatus.callback)},memberStore:{store:{},online:{},last:[],processArray:function(b,e){SUI.util.ProfileFunctions.memberStore.last=b;if(!e){SUI.util.ProfileFunctions.memberStore.online={}}var d=SUI.util.ProfileFunctions.memberStore.store;for(var c=0;b[c];c++){if(!e){SUI.util.ProfileFunctions.memberStore.online[b[c].uid]=true}if(!d[b[c].uid]){d[b[c].uid]={}}for(k in b[c]){if(k!="uid"&&b[c][k]!=""){d[b[c].uid][k]=b[c][k]}}d[b[c].uid].time=new Date().getTime()}},getMember:function(c,b){var a=SUI.util.ProfileFunctions.memberStore.store;if(a[c]){if(a[c][b]){return a[c][b]}else{return"Data Not Found for User"}}else{return"User Not Found"}}},timeOffset:{store:false,set:function(a){var b=new Date().getTime();var e=a.getTime();var c=Math.round((b-e)/3600000);SUI.util.ProfileFunctions.timeOffset.store=c}},msgLinkProccess:function(e){var h=e;if(e.search("</a")!=-1){var g=document.createElement("div");g.innerHTML=e;var d=g.getElementsByTagName("a");for(var c=0;d[c];c++){var b=d[c].innerHTML;if(b.search(".jpg")!=-1||b.search(".gif")!=-1||b.search(".png")!=-1){d[c].innerHTML='<img border="0" src="'+b+'" style="max-width: 140px; max-height: 300px;" />';d[c].style.cssText="text-align: center; display: block;"}else{if(b.search("youtube")!=-1&&b.search(/\?v=/i)!=-1){var f=b.slice(b.search(/\?v=/i)+3);var a=document.createElement("p");a.style.cssText="padding: 0; margin: 0; text-align: center;";a.innerHTML='<a href="'+d[c].getAttribute("href")+'" target="_blank"><img border="0" src="http://img.youtube.com/vi/'+f+'/2.jpg" width="140" /></a>';d[c].innerHTML="Watch Video";d[c].style.cssText="text-align: center; display: block;";g.insertBefore(a,d[c])}}}h=g.innerHTML}return h}};SUI.util.AdminFunctions={};SUI.util.ForumFunctions={store:{},manage:function(a){if(!a.getAttribute("toggle")){YAHOO.util.DragDropMgr.unlock();(function(){var b=getElementsByClassName("sui-forum-options","span");for(i=0;b.length>i;i++){b[i].style.display="inline"}})();(function(){var b=getElementsByClassName("forum","li",document.getElementById("forum-categories-holder"));for(i=0;b.length>i;i++){b[i].style.border="1px dashed #808080";b[i].style.backgroundColor="#"+SUI.style.Current.store.row2bg;b[i].style.cursor="move"}})();a.setAttribute("toggle","on")}else{YAHOO.util.DragDropMgr.lock();(function(){var b=getElementsByClassName("sui-forum-options","span");for(i=0;b.length>i;i++){b[i].style.display="none"}})();(function(){var b=getElementsByClassName("forum","li",document.getElementById("forum-categories-holder"));for(i=0;b.length>i;i++){b[i].style.border="";b[i].style.backgroundColor="";b[i].style.cursor=""}})();a.removeAttribute("toggle")}},order:function(){try{if(document.getElementById("forum-categories-holder")){var o=document.getElementById("forum-categories-holder").childNodes}else{var o=[]}}catch(g){var o=[]}var m=[];for(var e=0;e<o.length;e++){if(o[e].className){if(o[e].className=="category"||o[e].className.search("category ")!=-1||o[e].className.search(" category")!=-1){var j={};j.id=o[e].getAttribute("id").replace("c-","");j.forums=[];var f=o[e].getElementsByTagName("ul")[0].childNodes;for(var n=0;n<f.length;n++){if(f[n].className){if(f[n].className=="forum"||f[n].className.search("forum ")!=-1||f[n].className.search(" forum")!=-1){j.forums.push(f[n].getAttribute("id").replace("f-",""))}}}m.push(j)}}}if(!SUI.util.ForumFunctions.store.cids){SUI.util.ForumFunctions.store.cids=m}else{var l=YAHOO.lang.JSON.stringify(m);var h=YAHOO.lang.JSON.stringify(SUI.util.ForumFunctions.store.cids);if(h!=l){var a="";for(var e=0;e<m.length;e++){if(e!=0){a=a+","}a=a+m[e].id;if(m[e].forums){for(var n=0;n<m[e].forums.length;n++){a=a+"|"+m[e].forums[n]}}}var d="../json/json.asp";var c="page=forums&cmd=updateforums&a="+a;SUI.util.ForumFunctions.store.aSyncsuccess=function(){};SUI.util.ForumFunctions.store.aSyncfailure=function(){};SUI.util.ForumFunctions.store.aSynccallback={success:SUI.util.ForumFunctions.store.aSyncsuccess,failure:SUI.util.ForumFunctions.store.aSyncfailure};var b=YAHOO.util.Connect.asyncRequest("POST",d,SUI.util.ForumFunctions.store.aSynccallback,c);SUI.util.ForumFunctions.store.cids=m}}},posteditor:function(c,b){if(SUI.util.ForumFunctions.store.memberAccess&&SUI.util.ForumFunctions.store.memberAccess>0){var b=b||{};var e=document.createElement("span");e.id="SUI-forum-post-editor-tools";(function(){if(document.getElementById("SUI-forum-post-editor-tools")){var l=document.getElementById("SUI-front-toolbar-forum-tools");l.style.display="inline-block";l.parentNode.removeChild(document.getElementById("SUI-forum-post-editor-tools"))}var j=document.createElement("a");j.href="#";j.className="SUI-forum-savepost";j.innerHTML='<span class="SUI-forum-icon SUI-forum-savepost-icon"></span>Save';j.onclick=function(){if(YAHOO.util.Dom.getStyle(YAHOO.util.Dom.getAncestorByClassName("forum-post-subject","newpost"),"display")=="none"||document.getElementById("forum-post-subject").value.replace(/ /g,"").length>0){document.getElementById("SUI-forum-post-editor-form").submit()}else{alert("Please enter a subject.")}return false};e.appendChild(j);var h=document.createElement("a");h.href="#";h.className="SUI-forum-cancelpost";h.innerHTML='<span class="SUI-forum-icon SUI-forum-cancelpost-icon"></span>Cancel';h.onclick=function(){f();return false};e.appendChild(h)})();var a=function(m){var j;if(document.getElementById("SUI-forum-post-editor-container").style.height!="100%"){j=new YAHOO.util.Anim("SUI-forum-post-editor-container",{height:{to:350}},1,YAHOO.util.Easing.backOut)}else{j=new YAHOO.util.Anim("SUI-forum-post-editor-container",{h:{from:350,to:350}},0.1)}j.onComplete.subscribe(function(){try{document.getElementById("SUI-forum-post-editor-container").style.overflow="visible";document.getElementById("SUI-forum-post-editor-container").style.height="100%";if(m){m()}}catch(n){}if(b.editor){if(b.editor.edit){SUI.util.ForumFunctions.store.EditorEditText=b.editor.edit;SUI.util.ForumFunctions.store.EditorQuoteText=b.editor.quote;document.getElementById("SUI-forum-post-editor").value='<p style="font-family: arial;">Loading post content...</p>';var o=function(){var p=setTimeout(function(){try{if(CKEDITOR.instances["SUI-forum-post-editor"].getData){document.getElementById("forum-post-epd").value=SUI.util.ForumFunctions.store.EditorEditText;CKEDITOR.instances["SUI-forum-post-editor"].setData(SUI.util.ForumFunctions.store.EditorQuoteText)}else{o()}}catch(q){o()}},50)};setTimeout(o,10)}else{SUI.util.ForumFunctions.store.EditorHeaderText=b.editor.header;SUI.util.ForumFunctions.store.EditorQuoteText=b.editor.quote;document.getElementById("SUI-forum-post-editor").value='<p style="font-family: arial;">Loading post content...</p>';var o=function(){var p=setTimeout(function(){try{if(CKEDITOR.instances["SUI-forum-post-editor"].getData){var s="<blockquote><hr><strong>"+SUI.util.ForumFunctions.store.EditorHeaderText+"</strong><p>"+SUI.util.ForumFunctions.store.EditorQuoteText+"</p><hr></blockquote><br>";document.getElementById("forum-post-epd").value="";CKEDITOR.instances["SUI-forum-post-editor"].setData(s)}else{o()}}catch(q){o()}},50)};setTimeout(o,10)}}else{document.getElementById("forum-post-epd").value=""}});if(document.getElementById("SUI-forum-post-editor-container").style.height!="100%"){document.getElementById("SUI-forum-post-editor-container").style.cssText="overflow: hidden; height: 1px; display: block;"}if(SUI.util.OutOfView(document.getElementById("SUI-forum-post-editor-container"))=="top"){var h=SUI.util.GetSpace("SUI-forum-post-editor-container")[1];window.scrollTo(0,h-35)}var l=document.getElementById("SUI-front-toolbar-forum-tools");l.style.display="none";l.parentNode.insertBefore(e,l);j.animate()};var f=function(){var h=new YAHOO.util.Anim("SUI-forum-post-editor-container",{height:{to:1}},1,YAHOO.util.Easing.backIn);h.onComplete.subscribe(function(){document.getElementById("SUI-forum-post-editor-container").style.display="none";CKEDITOR.instances["SUI-forum-post-editor"].setData("");document.getElementById("content-cell").parentNode.parentNode.parentNode.parentNode.style.zoom="1"});document.getElementById("SUI-forum-post-editor-container").style.overflow="hidden";var j=document.getElementById("SUI-front-toolbar-forum-tools");j.style.display="inline-block";j.parentNode.removeChild(document.getElementById("SUI-forum-post-editor-tools"));document.getElementById("content-cell").parentNode.parentNode.parentNode.parentNode.style.zoom="";h.animate()};(function(){var l=YAHOO.util.Dom.getElementsByClassName("disccon",null,"SUI-forum-post-editor-form");var h=YAHOO.util.Dom.getElementsByClassName("quescon",null,"SUI-forum-post-editor-form");var n=YAHOO.util.Dom.getElementsByClassName("pollcon",null,"SUI-forum-post-editor-form");var m=YAHOO.util.Dom.getElementsByClassName("newpost",null,"SUI-forum-post-editor-form");for(var j=0;j<l.length;j++){l[j].style.display=c=="dis"?"block":"none"}for(var j=0;j<h.length;j++){h[j].style.display=c=="que"?"block":"none"}for(var j=0;j<n.length;j++){n[j].style.display=c=="pol"?"block":"none"}for(var j=0;j<m.length;j++){m[j].style.display=!b.reply?"block":"none"}if(c=="dis"){document.getElementById("forum-post-subject-label").innerHTML="Discussion Subject:";document.getElementById("forum-post-topic_type").value="discussion"}if(c=="que"){document.getElementById("forum-post-subject-label").innerHTML="Question Subject:";document.getElementById("forum-post-topic_type").value="question"}if(c=="pol"){document.getElementById("forum-post-subject-label").innerHTML="Poll Question:";document.getElementById("forum-post-topic_type").value="poll"}if(b.reply){document.getElementById("forum-post-reply_id").value=b.reply}else{document.getElementById("forum-post-reply_id").value="new"}})();if(!document.getElementById("SUI-forum-post-editor_container")){var d={toolset:"Full"};document.getElementById("SUI-forum-post-editor").style.visibility="hidden";a(function(){SUI.draw.YEdit("SUI-forum-post-editor",{toolset:"Full",height:"350"})})}else{a()}}else{var g=function(h,j){var l=document.createElement("div");l.innerHTML=h;getOptionBox("new",j.button,{title:"Login Required",content:l,width:"400px"})};ajax_function("/json/?cmd=login",g,{button:document.getElementById("login-area")})}}};SUI.util.AttachForumFunctions=function(){(function(){SUI.util.ForumFunctions.store.SmileysLoad=true;var smileycall=function(string){try{SUI.util.ForumFunctions.store.Smileys=eval(string);if(typeof SUI.util.ForumFunctions.store.Smileys=="undefined"||SUI.util.ForumFunctions.store.Smileys==null){SUI.util.ForumFunctions.store.Smileys="nodata"}for(x in SUI.draw.YEditque){SUI.draw.YEdit(x,SUI.draw.YEditque[x])}}catch(Error){SUI.util.ForumFunctions.store.Smileys="nodata";SUI.util.ForumFunctions.store.SmileysFail=string}};ajax_function("/json/json.asp?page=forums&cmd=smilies",smileycall)});(function(){var toolbar=getElementsByClassName("SUI-front-toolbar");var lacationbar=getElementsByClassName("location-bar");var newstyles=".SUI-front-toolbar .tools a{}.SUI-front-toolbar .tools a.sel {background-color: #"+SUI.style.Current.store.alink2+"; color: #"+SUI.style.Current.store.row2bg+"}.SUI-front-toolbar .tools a:hover{background-color: #"+SUI.style.Current.store.alink2+"; color: #"+SUI.style.Current.store.row2bg+"}#SUI-forum-post-editor-tools,#SUI-front-toolbar-forum-tools,.SUI-front-toolbar .tools .left-tools{border-right: 3px solid #"+SUI.style.Current.store.row1bg+"}.SUI-front-toolbar .tools .right-tools{border-left: 3px solid #"+SUI.style.Current.store.row1bg+"}.SUI-Pagenav {border: 1px solid #"+SUI.style.Current.store.row2bg+" !important;}.SUI-forum-poll-response .rate-bar {border: 2px outset #"+SUI.style.Current.store.alink2+";}ul.forum-categories div.stats, .forum-dragging div.stats, .fcategory-dragging div.stats, ul.forum-categories div.latest, .forum-dragging div.latest, .fcategory-dragging div.latest{border-width: 0 0 1px 1px; border-style: solid; border-color: #"+SUI.style.Current.store.row1bg+";}.SUI-forum-poll-response a:hover.answer-link{background-color: #"+SUI.style.Current.store.alink2+"; color: #"+SUI.style.Current.store.row2bg+"}ul.forum-posts li.post .menu a:hover{background-color: #"+SUI.style.Current.store.alink2+"; color: #"+SUI.style.Current.store.row2bg+"}ul.forum-categories li.category, .fcategory-dragging{border: 1px solid #"+SUI.style.Current.store.row2bg+";}ul.forum-categories ul.forums{border: 1px solid #"+SUI.style.Current.store.row1bg+";}ul.forum-posts li.post{border: 1px solid #"+SUI.style.Current.store.row2bg+";}ul.forum-threads li.thread{border-bottom: 1px solid #"+SUI.style.Current.store.row2bg+";}ul.SUI-Categories li.selected a {color: #"+SUI.style.Current.store.row1c+"; background: #"+SUI.style.Current.store.row1bg+"; border-color: #"+SUI.style.Current.store.row2bg+";}.SUI-Categories-Page.left {border-left: 1px solid #"+SUI.style.Current.store.row2bg+";}.SUI-Galview-Container, .SUI-Galview-Thumbnail {border-color: #"+SUI.style.Current.store.row2bg+";}.SUI-comment-block .up-arrow{border-bottom-color: #"+SUI.style.Current.store.row2bg+";}.SUI-SmartRow1 { color: #"+SUI.style.Current.store.row1c+"; background-color: #"+SUI.style.Current.store.row1bg+";}.SUI-SmartRow2 { color: #"+SUI.style.Current.store.row2c+"; background-color: #"+SUI.style.Current.store.row2bg+";}.element-container.SUI-Drag-Active{border-color: #"+SUI.style.Current.store.row1c+";}.SUI-member-element-card {border-bottom: 2px solid #"+SUI.style.Current.store.row2bg+"; border-right: 2px solid #"+SUI.style.Current.store.row2bg+";}.SUI-Pagenav{border: 1px solid #"+SUI.style.Current.store.row1bg+";}.SUI-IM-ChatRoom .online-list-outer, .SUI-IM-ChatRoom .conversation-outer, .SUI-IM-ChatRoom .tools-input { border-color: #"+SUI.style.Current.store.row2bg+";}";var oldcss=document.getElementById("frontadminstyles");var newcss=document.createElement("style");newcss.type="text/css";newcss.media="all";newcss.id="frontadminstyles";if(oldcss==null){document.getElementsByTagName("head")[0].insertBefore(newcss,document.getElementsByTagName("head")[0].firstChild)}else{oldcss.parentNode.replaceChild(newcss,oldcss)}if(newcss.styleSheet){newcss.styleSheet.cssText=newstyles}else{if(newcss.sheet){stylesnode=document.createTextNode(newstyles);newcss.appendChild(stylesnode)}}if(document.getElementById("SUI-forum-post-editor-form")&&document.getElementById("SUI-forum-post-editor-container")){var cloneform=document.getElementById("SUI-forum-post-editor-form").cloneNode(true);document.getElementById("SUI-forum-post-editor-form").parentNode.removeChild(document.getElementById("SUI-forum-post-editor-form"));document.getElementById("SUI-forum-post-editor-container").appendChild(cloneform)}if(document.getElementById("SUI-new-forum-post")){var postButton=document.getElementById("SUI-new-forum-post");var menucanvas=document.createElement("div");menucanvas.style.cssText="text-align: left; background-color: #"+SUI.style.Current.store.row2bg+"; border: 1px solid #"+SUI.style.Current.store.row1bg+";";(function(){if(postButton.getAttribute("draw")&&postButton.getAttribute("draw").search("dis")!=-1){var o1=document.createElement("div");o1.innerHTML='<span class="SUI-forum-icon SUI-forum-discussion-icon"></span>Discussion';o1.style.cssText="cursor: pointer; padding: 5px; color: #"+SUI.style.Current.store.alink2+";";o1.onmouseover=function(){this.style.backgroundColor="#"+SUI.style.Current.store.alink2;this.style.color="#"+SUI.style.Current.store.row2bg};o1.onmouseout=function(){this.style.backgroundColor="transparent";this.style.color="#"+SUI.style.Current.store.alink2};o1.onclick=function(){this.style.backgroundColor="transparent";this.style.color="#"+SUI.style.Current.store.alink2;SUI.util.ForumFunctions.posteditor("dis");SUI.draw.MenuBox.Remove()};menucanvas.appendChild(o1)}if(postButton.getAttribute("draw")&&postButton.getAttribute("draw").search("que")!=-1){var o2=document.createElement("div");o2.innerHTML='<span class="SUI-forum-icon SUI-forum-question-icon"></span>Question';o2.style.cssText="cursor: pointer; padding: 5px; color: #"+SUI.style.Current.store.alink2+";";o2.onmouseover=function(){this.style.backgroundColor="#"+SUI.style.Current.store.alink2;this.style.color="#"+SUI.style.Current.store.row2bg};o2.onmouseout=function(){this.style.backgroundColor="transparent";this.style.color="#"+SUI.style.Current.store.alink2};o2.onclick=function(){this.style.backgroundColor="transparent";this.style.color="#"+SUI.style.Current.store.alink2;SUI.util.ForumFunctions.posteditor("que");SUI.draw.MenuBox.Remove()};menucanvas.appendChild(o2)}if(postButton.getAttribute("draw")&&postButton.getAttribute("draw").search("pol")!=-1){var o3=document.createElement("div");o3.innerHTML='<span class="SUI-forum-icon SUI-forum-poll-icon"></span>Poll';o3.style.cssText="cursor: pointer; padding: 5px; color: #"+SUI.style.Current.store.alink2+";";o3.onmouseover=function(){this.style.backgroundColor="#"+SUI.style.Current.store.alink2;this.style.color="#"+SUI.style.Current.store.row2bg};o3.onmouseout=function(){this.style.backgroundColor="transparent";this.style.color="#"+SUI.style.Current.store.alink2};o3.onclick=function(){this.style.backgroundColor="transparent";this.style.color="#"+SUI.style.Current.store.alink2;SUI.util.ForumFunctions.posteditor("pol");SUI.draw.MenuBox.Remove()};menucanvas.appendChild(o3)}})();document.getElementById("SUI-new-forum-post").onclick=function(){SUI.draw.MenuBox(this,menucanvas,150,"object");return false}}})();(function(){try{if(getElementsByClassName("forum-posts","ul")[0]){var posts=getElementsByClassName("forum-posts","ul")[0].childNodes}else{var posts=[]}}catch(Error){var posts=[]}var getContent=function(obj){try{var d=obj.getElementsByTagName("div")[0]}catch(e){}if(d&&d.style&&d.style.overflow&&d.style.width){return getContent(d)}else{return obj.innerHTML}};for(var i=0;i<posts.length;i++){if(posts[i].nodeName.toLowerCase()=="li"){try{var quotebutton=getElementsByClassName("quote","a",posts[i])[0];quotebutton.onclick=function(){var info=getElementsByClassName("info","div",this.parentNode.parentNode)[0].innerHTML;var content=getContent(getElementsByClassName("content","div",this.parentNode.parentNode)[0]);var topic=this.getAttribute("topic");SUI.util.ForumFunctions.posteditor("dis",{reply:topic,editor:{quote:content,header:info}});return false}}catch(Error){}try{var editbutton=getElementsByClassName("edit","a",posts[i])[0];editbutton.onclick=function(){var info=getElementsByClassName("info","div",this.parentNode.parentNode)[0].innerHTML;var content=getContent(getElementsByClassName("content","div",this.parentNode.parentNode)[0]);var topic=this.getAttribute("topic");var post=this.getAttribute("post");SUI.util.ForumFunctions.posteditor("dis",{reply:topic,editor:{edit:post,quote:content,header:info}});return false}}catch(Error){}try{var ratebutton=getElementsByClassName("rate","a",posts[i])[0];ratebutton.onclick=function(){var topic=this.getAttribute("topic");var post=this.getAttribute("post");var menucanvas=document.createElement("div");menucanvas.setAttribute("topic",topic);menucanvas.setAttribute("post",post);menucanvas.style.cssText="text-align: left; background-color: #"+SUI.style.Current.store.row2bg+"; border: 1px solid #"+SUI.style.Current.store.row1bg+";";(function(){var o1=document.createElement("div");o1.innerHTML='<span class="SUI-forum-icon SUI-forum-postuseful-icon"></span>Post is Useful';o1.style.cssText="cursor: pointer; padding: 5px; color: #"+SUI.style.Current.store.alink2+";";o1.onmouseover=function(){this.style.backgroundColor="#"+SUI.style.Current.store.alink2;this.style.color="#"+SUI.style.Current.store.row2bg};o1.onmouseout=function(){this.style.backgroundColor="transparent";this.style.color="#"+SUI.style.Current.store.alink2};o1.onclick=function(){var callback=function(message,rid){document.getElementById("SUI-forum-rate-results"+rid).innerHTML=message};this.style.backgroundColor="transparent";this.style.color="#"+SUI.style.Current.store.alink2;ajax_function("../json/json.asp?page=forums&cmd=rate&topic_id="+this.parentNode.getAttribute("post")+"&reply_id="+this.parentNode.getAttribute("topic")+"&rating=1",callback,this.parentNode.getAttribute("post"));SUI.draw.MenuBox.Remove()};menucanvas.appendChild(o1);var o2=document.createElement("div");o2.innerHTML='<span class="SUI-forum-icon SUI-forum-postuseless-icon"></span>Post is Useless';o2.style.cssText="cursor: pointer; padding: 5px; color: #"+SUI.style.Current.store.alink2+";";o2.onmouseover=function(){this.style.backgroundColor="#"+SUI.style.Current.store.alink2;this.style.color="#"+SUI.style.Current.store.row2bg};o2.onmouseout=function(){this.style.backgroundColor="transparent";this.style.color="#"+SUI.style.Current.store.alink2};o2.onclick=function(){var callback=function(message,rid){document.getElementById("SUI-forum-rate-results"+rid).innerHTML=message};this.style.backgroundColor="transparent";this.style.color="#"+SUI.style.Current.store.alink2;ajax_function("../json/json.asp?page=forums&cmd=rate&topic_id="+this.parentNode.getAttribute("post")+"&reply_id="+this.parentNode.getAttribute("topic")+"&rating=0",callback,this.parentNode.getAttribute("post"));SUI.draw.MenuBox.Remove()};menucanvas.appendChild(o2)})();SUI.draw.MenuBox(this,menucanvas,150,"object");return false}}catch(Error){}}}})();(function(){SUI.util.AttachForumFunctions.collapse=function(obj){var target=obj.parentNode.parentNode.getElementsByTagName("ul")[0];if(target.style.display!="none"){target.style.display="none";obj.innerHTML="+";obj.title="Expand Section"}else{target.style.display="block";obj.innerHTML="-";obj.title="Collapse Section"}};var collButtons=getElementsByClassName("collapse","button");for(i=0;i<collButtons.length;i++){collButtons[i].style.cursor="pointer";collButtons[i].title="Collapse Section";collButtons[i].onclick=function(){SUI.util.AttachForumFunctions.collapse(this)}}})();(function(){if(getElementsByClassName("forum-categories","ul")[0]&&getElementsByClassName("SUI-front-toolbar","div")[0]){var Dom=YAHOO.util.Dom;var Event=YAHOO.util.Event;var DDM=YAHOO.util.DragDropMgr;SUI.util.FMDragRegSecs=function(){var forumcats=getElementsByClassName("forums","ul",getElementsByClassName("forum-categories","ul")[0]);for(i=0;i<forumcats.length;i++){new YAHOO.util.DDTarget(forumcats[i].id,"forums");var forums=getElementsByClassName("forum","li",forumcats[i]);for(ii=0;ii<forums.length;ii++){SUI.util.FMDragRegElement(forums[ii].id)}}};SUI.util.FMDragRegCatSecs=function(){var catholder=getElementsByClassName("forum-categories","ul")[0];var categories=getElementsByClassName("category","li",catholder);new YAHOO.util.DDTarget(catholder.id,"categories");for(i=0;i<categories.length;i++){SUI.util.FMDragRegCat(categories[i].id)}};SUI.util.FMDragRegElement=function(id,hid){var access=Dom.get(id).getAttribute("access");(function(){var span=document.createElement("span");span.className="sui-forum-options";if(access.match("move")){var move=document.createElement("span");move.className="move";move.innerHTML="Move";span.appendChild(move)}if(access.match("edit")){var edit=document.createElement("a");edit.innerHTML="Edit";edit.href="#";span.appendChild(edit)}if(access.match("delete")){var del=document.createElement("a");del.innerHTML="Delete";del.href="#";span.appendChild(del)}if(access.match("add")){var add=document.createElement("a");add.innerHTML="Add";add.href="#";span.appendChild(add)}getElementsByClassName("summary","div",Dom.get(id))[0].appendChild(span)})();if(access.match("move")){dd=new SUI.util.FMDrag(id,"forums");if(hid){dd.setOuterHandleElId(hid)}}};SUI.util.FMDragRegCat=function(id,hid){var access=Dom.get(id).getAttribute("access");(function(){var span=document.createElement("span");span.className="sui-forum-options";if(access.match("move")){var move=document.createElement("span");move.className="move";move.innerHTML="Move";span.appendChild(move)}if(access.match("edit")){var edit=document.createElement("a");edit.innerHTML="Edit";edit.href="#";edit.onclick=function(){ajax_showTooltip_menu("../ajax/cmd.asp?page=forums&cmd=forums_cat&id="+id.replace("c-",""),this,400);return false};span.appendChild(edit)}if(access.match("delete")){var del=document.createElement("a");del.innerHTML="Delete";del.href="#";del.onclick=function(){ajax_showTooltip_menu("../ajax/cmd.asp?page=forums&cmd=delete&tab=forum_cat&di="+id.replace("c-",""),this,400);return false};span.appendChild(del)}getElementsByClassName("title","div",Dom.get(id))[0].appendChild(span)})();if(access.match("move")){dd=new SUI.util.FMDrag(id,"categories");if(hid){dd.setHandleElId(hid)}}};SUI.util.FMDrag=function(id,sGroup,config){SUI.util.FMDrag.superclass.constructor.call(this,id,sGroup,config);var el=this.getDragEl();Dom.setStyle(el,"opacity",0.8);this.goingUp=false;this.lastY=0};YAHOO.extend(SUI.util.FMDrag,YAHOO.util.DDProxy,{startDrag:function(x,y){var dragEl=this.getDragEl();var clickEl=this.getEl();Dom.setStyle(clickEl,"visibility","hidden");dragEl.innerHTML=clickEl.innerHTML;Dom.setStyle(dragEl,"color",Dom.getStyle(clickEl,"color"));Dom.setStyle(dragEl,"backgroundColor",Dom.getStyle(clickEl,"backgroundColor"));Dom.setStyle(dragEl,"fontFamily",Dom.getStyle(clickEl,"fontFamily"));Dom.setStyle(dragEl,"fontSize",Dom.getStyle(clickEl,"fontSize"));Dom.setStyle(dragEl,"border","0px solid #fff");if(Dom.hasClass(clickEl,"forum")){dragEl.className="forum-dragging"}else{if(Dom.hasClass(clickEl,"category")){dragEl.className="fcategory-dragging"}}},endDrag:function(e){var srcEl=this.getEl();var proxy=this.getDragEl();Dom.setStyle(proxy,"visibility","");var a=new YAHOO.util.Motion(proxy,{points:{to:Dom.getXY(srcEl)}},0.2,YAHOO.util.Easing.easeOut);var proxyid=proxy.id;var thisid=this.id;a.onComplete.subscribe(function(){Dom.setStyle(proxyid,"visibility","hidden");Dom.setStyle(proxyid,"left","0");Dom.setStyle(proxyid,"top","0");Dom.setStyle(proxyid,"width","1px");Dom.setStyle(proxyid,"height","1px");proxy.innerHTML="";Dom.setStyle(thisid,"visibility","");Dom.removeClass(document.getElementById(thisid).parentNode,"over");SUI.util.ForumFunctions.order()});a.animate()},onDragDrop:function(e,id){if(DDM.interactionInfo.drop.length===1){var pt=DDM.interactionInfo.point;var region=DDM.interactionInfo.sourceRegion;if(!region.intersect(pt)){var destEl=Dom.get(id);var destDD=DDM.getDDById(id);destEl.appendChild(this.getEl());destDD.isEmpty=false;DDM.refreshCache()}}},onDrag:function(e){var y=Event.getPageY(e);if(y<this.lastY){this.goingUp=true}else{if(y>this.lastY){this.goingUp=false}}this.lastY=y},onDragOver:function(e,id){var srcEl=this.getEl();var destEl=Dom.get(id);if(destEl.tagName.toLowerCase()=="ul"||destEl.tagName.toLowerCase()=="li"){if(destEl.nodeName.toLowerCase()=="li"&&Dom.hasClass(destEl,"forum")||destEl.nodeName.toLowerCase()=="li"&&Dom.hasClass(destEl,"category")){var orig_p=srcEl.parentNode;var p=destEl.parentNode;if(this.goingUp){p.insertBefore(srcEl,destEl)}else{p.insertBefore(srcEl,destEl.nextSibling)}DDM.refreshCache()}else{if(destEl.nodeName.toLowerCase()=="ul"&&Dom.hasClass(destEl,"forums")){Dom.addClass(destEl,"over");var p=destEl;DDM.refreshCache()}}}},onDragOut:function(e,id){var srcEl=this.getEl();var destEl=Dom.get(id);Dom.removeClass(destEl,"over")}});SUI.util.FMDragRegSecs();SUI.util.FMDragRegCatSecs();(function(){var forums=getElementsByClassName("forum","li",document.getElementById("forum-categories-holder"));for(i=0;forums.length>i;i++){forums[i].style.cursor="move"}})();(function(){var options=getElementsByClassName("sui-forum-options","span");for(i=0;options.length>i;i++){options[i].style.display=""}})()}SUI.util.ForumFunctions.order()})();(function(){var Dom=YAHOO.util.Dom;var Event=YAHOO.util.Event;var DDM=YAHOO.util.DragDropMgr;if(Dom.get("SUI-member-ProfileImageBlock")){(function(){var obj=Dom.getElementsByClassName("member-pic","div","SUI-member-ProfileImageBlock")[0]||null;if(obj){obj.onmouseover=function(){YAHOO.util.Dom.addClass(this,"over")};obj.onmouseout=function(){YAHOO.util.Dom.removeClass(this,"over")}}})()}if(document.getElementById("SUI-member-colleft")&&document.getElementById("SUI-member-colright")){DDM.useShim=true;SUI.util.MPDragRegSecs=function(){var secs=[document.getElementById("SUI-member-colleft"),document.getElementById("SUI-member-colright")];(function(){for(var i=0;secs[i];i++){new YAHOO.util.DDTarget(secs[i].id,"mp");var elements=getElementsByClassName("element-container","div",secs[i]);for(ii=0;ii<elements.length;ii++){try{if(elements[ii].id){SUI.util.MPDragRegElement(elements[ii].id)}}catch(e){}}}})()};SUI.util.MPDragRegElement=function(id,hid){var access=Dom.get(id).getAttribute("access");(function(){Dom.get(id).style.position="relative";var span=document.createElement("span");span.className="sui-mem-options";if(access.match("move")){getElementsByClassName("element-header","td",Dom.get(id))[0].style.cursor="move";getElementsByClassName("element-header","td",Dom.get(id))[0].id=id+"-header";var move=document.createElement("span");move.className="move";move.id=id+"-move";span.appendChild(move)}if(access.match("edit")){var edit=document.createElement("a");edit.className="edit element-row2";edit.innerHTML="Edit";edit.title="Edit Options";edit.href="#";edit.setAttribute("pid",id.replace("element",""));edit.onclick=SUI.util.ProfileFunctions.elementEdit;span.appendChild(edit)}Dom.get(id).style.position="relative";Dom.get(id).appendChild(span)})();if(access.match("move")){dd=new SUI.util.MPDrag(id,"mp");dd.centerFrame=true;dd.resizeFrame=false;dd.setOuterHandleElId(id+"-move");dd.setHandleElId(id+"-header")}};SUI.util.MPDrag=function(id,sGroup,config){SUI.util.MPDrag.superclass.constructor.call(this,id,sGroup,config);var el=this.getDragEl();Dom.setStyle(el,"opacity",0.6);Dom.setStyle(el,"width","150px");Dom.setStyle(el,"height","50px");Dom.setStyle(el,"cursor","move");this.goingUp=false;this.lastY=0};YAHOO.extend(SUI.util.MPDrag,YAHOO.util.DDProxy,{startDrag:function(x,y){var dragEl=this.getDragEl();var clickEl=this.getEl();Dom.addClass(clickEl,"SUI-Drag-Active");Dom.setStyle(dragEl,"display","block");dragEl.innerHTML=clickEl.innerHTML;Dom.addClass(dragEl,"SUI-DragEl");document.getElementById("SUI-member-colleft").style.paddingBottom="150px";document.getElementById("SUI-member-colright").style.paddingBottom="150px";document.getElementsByTagName("body")[0].style.cursor="move"},endDrag:function(e){var srcEl=this.getEl();var proxy=this.getDragEl();Dom.setStyle(proxy,"visibility","");var a=new YAHOO.util.Motion(proxy,{points:{to:Dom.getXY(srcEl)}},0.2,YAHOO.util.Easing.easeOut);var proxyid=proxy.id;var thisid=this.id;a.onComplete.subscribe(function(){Dom.setStyle(proxyid,"visibility","hidden");Dom.setStyle(proxyid,"left","-10000");Dom.setStyle(proxyid,"top","-10000");proxy.innerHTML="";Dom.setStyle(thisid,"visibility","");Dom.removeClass(thisid,"SUI-Drag-Active");Dom.removeClass(document.getElementById(thisid).parentNode,"over");SUI.util.ProfileFunctions.order();document.getElementById("SUI-member-colleft").style.paddingBottom="";document.getElementById("SUI-member-colright").style.paddingBottom=""});a.animate();document.getElementsByTagName("body")[0].style.cursor=""},onDragDrop:function(e,id){if(DDM.interactionInfo.drop.length===1){var pt=DDM.interactionInfo.point;var region=DDM.interactionInfo.sourceRegion;if(!region.intersect(pt)){var destEl=Dom.get(id);var destDD=DDM.getDDById(id);destEl.appendChild(this.getEl());destDD.isEmpty=false;DDM.refreshCache()}}},onDrag:function(e){var y=Event.getPageY(e);if(y<this.lastY){this.goingUp=true}else{if(y>this.lastY){this.goingUp=false}}this.lastY=y},onDragOver:function(e,id){var srcEl=this.getEl();var destEl=Dom.get(id);if(destEl.tagName.toLowerCase()=="td"||destEl.tagName.toLowerCase()=="div"){if(destEl.nodeName.toLowerCase()=="div"&&Dom.hasClass(destEl,"element-container")){var orig_p=srcEl.parentNode;var p=destEl.parentNode;var access=destEl.getAttribute("access");if(this.goingUp&&access&&access.match("move")){p.insertBefore(srcEl,destEl)}else{p.insertBefore(srcEl,destEl.nextSibling)}DDM.refreshCache()}else{if(id=="SUI-member-colleft"||id=="SUI-member-colright"){Dom.addClass(destEl,"over");var p=destEl;if(!Dom.isAncestor(id,srcEl)){p.appendChild(srcEl)}DDM.refreshCache()}}}},onDragOut:function(e,id){var srcEl=this.getEl();var destEl=Dom.get(id);Dom.removeClass(destEl,"over")}});SUI.util.MPDragRegSecs();SUI.util.MPEditAppendAccents=function(){if(Dom.get("SUI-MainCSS")){var tempCSS=Dom.get("SUI-MainCSS").value;if(tempCSS.split("/*Custom Modifiers Start*/")[1]){var mods=tempCSS.split("/*Custom Modifiers Start*/")[1].replace(/^\s+/,"").replace(/\s+$/,"");SUI.style.ProfileAccents=[];(function(){var a1=mods.split("/*");for(var i=1;a1[i];i++){try{var o={};var a2=a1[i].split("*/");if(a2[1]){o.code=a2[1]}var a3=a2[0].split("||");o.name=a3[0];var a4=a3[1].split("|disabled|");if(a4[1]){o.about=a4[0];o.code=a4[1];o.disabled=true}else{o.about=a3[1]}if(o.about.match("PAC=")){o.accentId=o.about.split("PAC=")[1].replace(/^\s+/,"").replace(/\s+$/,"")}if(o.name&&o.about&&o.code&&o.accentId&&!o.disabled){SUI.style.ProfileAccents.push(o)}}catch(Error){}}})()}}if(SUI.style.ProfileAccents&&SUI.style.ProfileAccents.length>0){var d=document.createElement("div");d.id="SUI-member-edit-accent-menu";d.style.cssText="position: relative;";Event.onContentReady("SUI-member-edit-accent-menu",function(){var element=document.getElementById("element"+document.getElementById("SUI-member-edit-elementid").getAttribute("element"));element.setAttribute("origclass",element.className);Dom.get("SUI-OptionBox-CloseButton").onclick=function(){var element=document.getElementById("element"+document.getElementById("SUI-member-edit-elementid").getAttribute("element"));element.className=element.getAttribute("origclass");element.removeAttribute("oldclass");hideoptionbox();return false};var onMenuItemClick=function(type,args,item){if(item.value=="none"){document.getElementById("element-style").value=""}else{document.getElementById("element-style").value=item.value}var menu_items=item.parent.getItems();for(var i=0;i<menu_items.length;i++){menu_items[i].cfg.setProperty("checked",false)}item.cfg.setProperty("checked",true);element.setAttribute("oldclass",element.className)};var onMenuItemOver=function(){if(this.value=="none"){element.className="element-container"}else{element.className="element-container "+this.value}};var onMenuItemOut=function(){};var menu=[];menu.push({text:"(none)",value:"none",checked:true,onclick:{fn:onMenuItemClick}});for(var i=0;SUI.style.ProfileAccents[i];i++){if(document.getElementById("element-style").value==SUI.style.ProfileAccents[i].accentId){menu.push({text:SUI.style.ProfileAccents[i].name,value:SUI.style.ProfileAccents[i].accentId,checked:true,onclick:{fn:onMenuItemClick}});menu[0].checked=false}else{menu.push({text:SUI.style.ProfileAccents[i].name,value:SUI.style.ProfileAccents[i].accentId,onclick:{fn:onMenuItemClick}})}}var button=new YAHOO.widget.Button({type:"menu",label:"Element Accents",name:"accentmenubutton",id:"SUI-member-edit-accent-menuButton",menu:menu,container:this});var mMenu=button.getMenu();mMenu.subscribe("show",function(){var mMenuItems=this.getItems();element.setAttribute("oldclass",element.className);for(var ii=0;mMenuItems[ii];ii++){mMenuItems[ii].subscribe("mouseover",onMenuItemOver);mMenuItems[ii].subscribe("mouseout",onMenuItemOut)}Dom.setStyle(Dom.getElementsByClassName("susdialog-inner","td","ob-tr96581")[0],"visibility","hidden")});mMenu.subscribe("hide",function(){if(element.getAttribute("oldclass")){element.className=element.getAttribute("oldclass")}Dom.setStyle(Dom.getElementsByClassName("susdialog-inner","td","ob-tr96581")[0],"visibility","")});Event.onContentReady("SUI-member-edit-accent-menuButton",function(){})});Dom.get("ob-tr96581").insertBefore(d,Dom.get("ob-tr96581").firstChild)}}}SUI.util.ProfileFunctions.order()})()};SUI.util.SetRating=function(f){if(!f.parentNode.getAttribute("set")){var d=YAHOO.util.Dom,c=f.parentNode,a=d.getElementsByClassName("up","a",c)[0],g=d.getElementsByClassName("down","a",c)[0],b=d.getElementsByClassName("number","span",c)[0],e=d.hasClass(b,"bad")?parseFloat("-"+b.innerHTML):parseFloat(b.innerHTML);if(d.hasClass(f,"down")){ajax_send("/files/com/call.asp?page=rateit&vbls="+c.getAttribute("vbls")+"&vote=-1");e=e-1}else{if(d.hasClass(f,"up")){ajax_send("/files/com/call.asp?page=rateit&vbls="+c.getAttribute("vbls")+"&vote=1");e=e+1}else{return false}}if(e<0){b.className="number bad"}else{if(e>0){b.className="number good"}else{b.className="number"}}b.innerHTML=Math.abs(e);d.addClass(a,"dis");d.addClass(g,"dis");a.onclick=function(){return false};g.onclick=function(){return false};return false}};SUI.util.CleanHTML=function(){};SUI.util.IdleTime={reset:function(){SUI.util.IdleTime.last=new Date().getTime()},idle:function(){if(SUI.util.IdleTime.last){var a=new Date().getTime();return a-SUI.util.IdleTime.last}else{return 0}}};SUI.util.Comments={reply:function(e,c,o,b){var f=document.getElementById(c)||document.forms[c];if(f!==null){var n=f.parentNode.childNodes;var d;var j=f.getElementsByTagName("input");for(var h=0;j[h];h++){if(j[h].name=="reply_id"){j[h].parentNode.removeChild(j[h]);h--}}var m=document.createElement("input");m.value=e;m.name="reply_id";m.type="hidden";f.appendChild(m);for(var h=0;h<n.length;h++){if(n[h].className=="SUI-CommentTitle"){var p=document.createDocumentFragment();var g=document.createElement("span");g.innerHTML="You are Replying to "+b+". ";var l=document.createElement("A");l.href="#";l.onclick=function(){this.parentNode.innerHTML=this.parentNode.getAttribute("orig");f.removeChild(m);return false};l.innerHTML="<small>[Cancel Reply]</small>";p.appendChild(g);p.appendChild(l);n[h].innerHTML="";n[h].appendChild(p)}}window.location.href="#"+o}},reset:function(g,a){var e=document.getElementById(g)||document.forms[g];var h=e.parentNode.childNodes;var d=false;var c=e.getElementsByTagName("input");for(var f=0;c[f];f++){if(c[f].name=="reply_id"){d=c[f];break}}if(d){window.location.href="#comment"+d.value;e.removeChild(d)}for(var f=0;f<h.length;f++){if(h[f].className=="SUI-CommentTitle"){h[f].innerHTML=h[f].getAttribute("orig");break}}}};SUI.util.DDInit=function(d,c,h){var e=YAHOO.util.Dom;var a=YAHOO.util.Event;var g=YAHOO.util.DragDropMgr;g.useShim=true;var b=function(){var m={};var j=e.getElementsByClassName(d[0],d[1]);for(i=0;j[i];i++){if(j[i].id){m[j[i].id]=[];var l=e.getElementsByClassName(c[0],c[1],j[i]);for(var n=0;l[n];n++){if(l[n].id){m[j[i].id].push(l[n].id)}}}}h(m)};var f=function(){var l=e.getElementsByClassName(d[0],d[1]);for(i=0;l[i];i++){if(l[i].id){new YAHOO.util.DDTarget(l[i].id,d[0]);var m=e.getElementsByClassName(c[0],c[1],l[i]);for(var o=0;m[o];o++){if(m[o].id){var n=e.getElementsByClassName("handle",null,m[o]);var j=new SUI.util.DDInit.drag(m[o].id,d[0]);if(n&&n[0]){n[0].id=m[o].id+"-hdl";j.setHandleElId(n[0])}}}}}};SUI.util.DDInit.drag=function(p,l,n){SUI.util.DDInit.drag.superclass.constructor.call(this,p,l,n);var j=this.getDragEl();var o=this.getEl();var m=(o.offsetWidth>500?o.offsetWidth:o.offsetWidth);e.setStyle(j,"cursor","move");e.setStyle(j,"width",m+"px");e.setStyle(j,"height",o.offsetHeight+"px");e.setStyle(j,"border","1px solid #ddd");e.setStyle(j,"zIndex",50002);this.goingUp=false;this.lastY=0};YAHOO.extend(SUI.util.DDInit.drag,YAHOO.util.DDProxy,{startDrag:function(l,n){var j=this.getDragEl();var m=this.getEl();e.setStyle(m,"visibility","hidden");j.innerHTML=m.innerHTML;j.className=m.className+" dragging"},endDrag:function(o){var m=this.getEl();var n=this.getDragEl();e.setStyle(n,"visibility","");var j=new YAHOO.util.Motion(n,{points:{to:e.getXY(m)}},0.2,YAHOO.util.Easing.easeOut);var l=n.id;var p=this.id;j.onComplete.subscribe(function(){e.setStyle(l,"visibility","hidden");e.setStyle(l,"left","-10000");e.setStyle(l,"top","-10000");n.innerHTML="";e.setStyle(p,"visibility","");e.removeClass(document.getElementById(p).parentNode,"over");b()});j.animate()},onDragDrop:function(p,q){var l=this.getEl();var j=e.get(q);if(g.interactionInfo.drop.length===1&&l.className!=j.className){var o=g.interactionInfo.point;var n=g.interactionInfo.sourceRegion;if(!n.intersect(o)){var m=g.getDDById(q);j.appendChild(this.getEl());m.isEmpty=false;g.refreshCache()}}},onDrag:function(j){var l=a.getPageY(j);if(l<this.lastY){this.goingUp=true}else{if(l>this.lastY){this.goingUp=false}}this.lastY=l},onDragOver:function(p,q){var l=this.goingUp;var n=this.getEl();var m=e.get(q);var o=function(){var s=n.parentNode;var u=m.parentNode;if(l){u.insertBefore(n,m)}else{u.insertBefore(n,m.nextSibling)}g.refreshCache()};var j=function(){m.appendChild(n);g.refreshCache()};if(m.tagName.toLowerCase()==c[1]){if(e.hasClass(m.parentNode,d[0])){o()}}else{if(m.tagName.toLowerCase()==d[1]){if(e.hasClass(m,d[0])){e.addClass(m,"over");if(e.getElementsByClassName(c[0],c[1],m).length<1){m.appendChild(n)}}}}},onDragOut:function(m,n){var l=this.getEl();var j=e.get(n);e.removeClass(j,"over")}});f()};SUI.util.DomStorage={initialize:function(){var a=true;(function(){if(navigator.appName=="Microsoft Internet Explorer"){var c=navigator.userAgent;var d=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})");if(d.exec(c)!=null){var e=parseFloat(RegExp.$1)}if(e<8){a=false}}})();if(a){YAHOO.util.StorageEngineSWF.SWFURL="/dhtml/swfstore.swf";try{SUI.util.DomStorage.storage=YAHOO.util.StorageManager.get(YAHOO.util.StorageEngineHTML5.ENGINE_NAME,"LOCATION_LOCAL",{order:[YAHOO.util.StorageEngineHTML5],force:true});SUI.util.DomStorage.storage.subscribe(SUI.util.DomStorage.storage.CE_READY,function(){SUI.util.DomStorage.ready.fire()})}catch(b){SUI.util.DomStorage.storage=false}}},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(SUI.util.DomStorage.storage){if(SUI.util.DomStorage.storage.isReady){if(SUI.util.DomStorage.storage.getItem(e)){var c=SUI.util.DomStorage.storage.getItem(e).toString().slice(13);if(g){var d=(a-(SUI.util.DomStorage.storage.getItem(e).toString().slice(0,13)*1))/1000;if(d<g){return c}else{if(b){SUI.util.DomStorage.storage.removeItem(e)}return false}}else{return c}}else{return false}}else{return false}}else{return false}},set:function(b,d){if(SUI.util.DomStorage.storage){if(SUI.util.DomStorage.storage.isReady){var c=new Date();var a=c.getTime();SUI.util.DomStorage.storage.setItem(b,a+d)}else{return false}}else{return false}return true}};SUI.util.DomStorage.ready=new YAHOO.util.CustomEvent("onDomStorageReady");SUI.util.Settings={save:function(d,c,b){if(b){c=YAHOO.lang.JSON.stringify(c)}if(SUI.util.DomStorage.storage.isReady){SUI.util.DomStorage.set("Manage."+d,c)}else{var a=function(g){if(g){var f=new Date();f.setTime(f.getTime()+(g*24*60*60*1000));var e="; expires="+f.toGMTString();return e}};YAHOO.util.Cookie.setSub("Manage",d,c,{expires:a(365)})}},load:function(b,a){if(SUI.util.DomStorage.get("Manage."+b)){if(a){return YAHOO.lang.JSON.parse(SUI.util.DomStorage.get("Manage."+b))}else{return SUI.util.DomStorage.get("Manage."+b)}}else{if(YAHOO.util.Cookie.getSub("Manage",b)){if(a){return YAHOO.lang.JSON.parse(YAHOO.util.Cookie.getSub("Manage",b))}else{return YAHOO.util.Cookie.getSub("Manage",b)}}else{return false}}}};SUI.util.PollForContent={frequency:5,started:false,polls:{},active:null,cache:{},curCall:null,run:function(){var a=SUI.util.PollForContent.started?false:true;SUI.util.PollForContent.started=true;YAHOO.util.Event.onDOMReady(function(){if(!document.getElementById("YUIConnectionSwf")){YAHOO.util.Connect.xdrReadyEvent.subscribe(function(){SUI.util.PollForContent.ready=true});YAHOO.util.Connect.transport("/dhtml/connection.swf")}var g=SUI.util.PollForContent.active;if(SUI.util.PollForContent.active!=null){if(Math.round(SUI.util.IdleTime.idle()/1000)<600){if(g.length>0){var h=g.shift();if(h.search("http://")!=-1){var b=true}else{b=false}YAHOO.util.Connect._sFormData="";var d="";if(SUI.util.PollForContent.polls[h].append){try{d=SUI.util.PollForContent.polls[h].append()}catch(f){}}YAHOO.util.Event.onContentReady("YUIConnectionSwf",function(){if(!b||SUI.util.PollForContent.ready){SUI.util.PollForContent.curCall=YAHOO.util.Connect.asyncRequest("GET",h+d,{success:function(m){SUI.util.PollForContent.cache[m.argument.active]=m.responseText;var j=SUI.util.PollForContent.polls[m.argument.active].fn;for(var c=0;j[c];c++){try{j[c](m.responseText)}catch(l){}}SUI.util.PollForContent.run()},failure:function(c){SUI.util.PollForContent.polls[c.argument.active].failed++;if(SUI.util.PollForContent.polls[c.argument.active].failed>4){delete SUI.util.PollForContent.polls[c.argument.active]}SUI.util.PollForContent.run()},xdr:b,argument:{active:h},timeout:5000,cache:false})}else{SUI.util.PollForContent.run()}})}else{SUI.util.PollForContent.active=null;SUI.util.PollForContent.t=setTimeout(function(){SUI.util.PollForContent.run()},SUI.util.PollForContent.frequency*1000)}}else{SUI.util.PollForContent.t=setTimeout(function(){SUI.util.PollForContent.run()},SUI.util.PollForContent.frequency*100)}}else{SUI.util.PollForContent.active=[];for(k in SUI.util.PollForContent.polls){SUI.util.PollForContent.active.push(k)}SUI.util.PollForContent.run()}})},stop:function(){clearTimeout(SUI.util.PollForContent.t);if(YAHOO.util.Connect.isCallInProgress(SUI.util.PollForContent.curCall)){YAHOO.util.Connect.abort(SUI.util.PollForContent.curCall)}},subscribe:function(b,c,a){if(!SUI.util.PollForContent.polls[b]){SUI.util.PollForContent.polls[b]={fn:[],failed:0}}if(a){SUI.util.PollForContent.polls[b].append=a}SUI.util.PollForContent.polls[b].fn.push(c);if(!SUI.util.PollForContent.started){clearTimeout(SUI.util.PollForContent.startTime);SUI.util.PollForContent.startTime=setTimeout(function(){SUI.util.PollForContent.run()},200);c("Loading...")}else{if(SUI.util.PollForContent.cache[b]){c(SUI.util.PollForContent.cache[b])}else{c("Loading...")}}}};SUI.util.FlashHide=function(){var c="embed, object {visibility: hidden;}";var a=document.getElementById("flashhidestyles");var b=document.createElement("style");b.type="text/css";b.media="screen";b.id="flashhidestyles";if(a==null){document.getElementsByTagName("head")[0].appendChild(b)}else{a.parentNode.replaceChild(b,a)}if(b.styleSheet){b.styleSheet.cssText=c}else{if(b.sheet){stylesnode=document.createTextNode(c);b.appendChild(stylesnode)}}};SUI.util.FlashHide.end=function(){var c="";var a=document.getElementById("flashhidestyles");var b=document.createElement("style");b.type="text/css";b.media="screen";b.id="flashhidestyles";if(a==null){document.getElementsByTagName("head")[0].appendChild(b)}else{a.parentNode.replaceChild(b,a)}if(b.styleSheet){b.styleSheet.cssText=c}else{if(b.sheet){stylesnode=document.createTextNode(c);b.appendChild(stylesnode)}}};SUI.util.NumStringAppend=function(e,b){var f=function(h){h+="";x=h.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";var g=/(\d+)(\d{3})/;while(g.test(x1)){x1=x1.replace(g,"$1,$2")}return x1+x2};if(typeof e=="number"){e=e.toString()}if(b){e=f(e)}var a=e.length,d=e.charAt(a-1),c;if(a==2&&e.charAt(0)=="1"){c="th"}else{if(d=="1"){c="st"}else{if(d=="2"){c="nd"}else{if(d=="3"){c="rd"}else{c="th"}}}}return e+c};SUI.util.GetSpace=function(a,c){try{iebody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;var d=(iebody.scrollTop)?iebody.scrollTop:window.pageYOffset;d=d||0;var m=(iebody.scrollLeft)?iebody.scrollLeft:window.pageXOffset;m=m||0;var g=(window.innerWidth)?window.innerWidth:iebody.clientWidth;var l=(window.innerHeight)?window.innerHeight:iebody.clientHeight;c=c||document;if(typeof a==("string")){a=c.getElementById(a)}var h=a.offsetWidth;var f=a.offsetHeight;var j=curtop=0;if(a.offsetParent){j=a.offsetLeft;curtop=a.offsetTop;while(a=a.offsetParent){j+=a.offsetLeft;curtop+=a.offsetTop}}return[j,curtop,h,f,g,l,m,d]}catch(b){return[0,0,0,0,0,0,0,0]}};SUI.util.SetSpace=function(b,a){b.style.left=a[0]+"px";b.style.top=a[1]+"px";b.style.width=a[2]+"px";b.style.height=a[3]+"px"};SUI.util.MatchSpace=function(b,a,c){iebody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;var e=(iebody.scrollTop)?iebody.scrollTop:window.pageYOffset;e=e||0;var l=(iebody.scrollLeft)?iebody.scrollLeft:window.pageXOffset;l=l||0;var f=(window.innerWidth)?window.innerWidth:iebody.clientWidth;var j=(window.innerHeight)?window.innerHeight:iebody.clientHeight;c=c||document;if(typeof b==("string")){b=c.getElementById(b)}var g=b.offsetWidth;var d=b.offsetHeight;var h=curtop=0;if(b.offsetParent){h=b.offsetLeft;curtop=b.offsetTop;while(b=b.offsetParent){h+=b.offsetLeft;curtop+=b.offsetTop}}a.style.left=h+"px";a.style.top=curtop+"px";a.style.width=g+"px";a.style.height=d+"px"};SUI.util.OutOfView=function(b){var a=SUI.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"}}};YAHOO.util.Event.onDOMReady(function(){SUI.util.InitAll()});YAHOO.util.Event.addListener(window,"load",SUI.util.InitAfterLoad);YAHOO.util.Event.on(document,"mousemove",SUI.util.IdleTime.reset);YAHOO.util.Event.on(document,"keypress",SUI.util.IdleTime.reset);SUI.util.IdleTime.reset();if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)){CKEDITOR.replace=function(a){var a=document.getElementById(a);if(a){a.style.visibility="visible";a.style.display="block";if(a.getAttribute("editheight")){a.style.height=a.getAttribute("editheight")+"px"}a.style.width="100%"}};SUI.draw.YEdit=CKEDITOR.replace};