var isDOM=document.getElementById;var isO=isO5=window.opera&&isDOM;var isO6=isO&&window.print;var isO7=isO&&document.readyState;var isO8=isO&&document.createProcessingInstruction&&(new XMLHttpRequest()).getAllResponseHeaders;var isIE=document.all&&document.all.item&&!isO;var isIE5=isIE&&isDOM;var isMZ=isDOM&&(navigator.appName=="Netscape");var ua=navigator.userAgent.toLowerCase();var isSafari=(ua.indexOf("safari")!=-1);var is_gecko=/gecko/i.test(navigator.userAgent);var is_ie=/MSIE/.test(navigator.userAgent);var colorsArr=new Array;colorsArr.ffffff="white";colorsArr.d6eeff="snowy blue";colorsArr["8acbf0"]="azure";colorsArr["2070b3"]="navy blue";colorsArr.c0efac="pale green";colorsArr["85d261"]="light green";colorsArr["42a314"]="green";colorsArr["007d3c"]="dark green";colorsArr.ffec7c="yellow";colorsArr.ffd311="light orange";colorsArr.ffac05="orange";colorsArr.ff0000="crimson";colorsArr["975207"]="bronze";colorsArr.cccccc="light grey";colorsArr["666666"]="grey";var menu=new Array;menu[0]="menuMore";menu[1]="menuLink";menu[2]="menuVideo";menu[3]="menuProfile";menu[4]="menuImage";menu[5]="menuAlbum";var objRange;var Albums=new Array;function format_sel(n,m){var j;var o=document.getElementById(m);var e;var k;switch(n){case"b":e="'''";break;case"u":e="_";break;case"i":e="''";break;case"super":e="^";break;case"sub":e="__";break;case"h1":e="=="}if(isIE){var l=doGetCaretPosition(o);k=document.selection.createRange();j=k.text;var b=document.selection.createRange();b.text=e+j+e;l=l+Number(e.length)+Number(j.length);setCaretPosition(o,l)}else{var a,h,c;var g,f,d;var o=document.getElementById(m);a=o.selectionStart;h=o.selectionEnd;g=o.value.substring(0,a);f=o.value.substring(a,h);d=o.value.substring(h,o.value.length);o.value=g+e+f+e+d;o.selectionStart=a+e.length;o.selectionEnd=h+e.length;o.focus()}return}function insert_list(k,m){var h;var p,j;var b;var o=$(m);if(isIE){var l=doGetCaretPosition(o);b=document.selection.createRange();var n=2;l=l+Number(k.length)+Number(b.text.length)+n;b.text="\n"+k+" "+b.text+"\n"+k+"\n";setCaretPosition(o,l)}else{var a,g,c;var f,e,d;a=o.selectionStart;g=o.selectionEnd;f=o.value.substring(0,a);e=o.value.substring(a,g);d=o.value.substring(g,o.value.length);o.value=f+"\n"+k+" "+e+"\n"+k+" \n"+d;o.selectionStart=f.length+3;o.selectionEnd=f.length+2+e.length+k.length}o.focus();return}function setCaretPosition(c,d){c.focus();if(document.selection){var a=document.selection.createRange();if(c.type=="text"){a.moveStart("character",-c.value.length);a.moveStart("character",d);a.moveEnd("character",0)}else{var b=c.createTextRange();b.collapse(true);b.moveEnd("character",d);b.moveStart("character",d);b.select()}}else{if(c.selectionStart||c.selectionStart=="0"){c.selectionStart=d;c.selectionEnd=d}}}function doGetCaretPosition(b){var c=0;if(document.selection){b.focus();var a=document.selection.createRange();var d=a.duplicate();d.moveToElementText(b);c=-1;while(d.inRange(a)){d.moveStart("character");c++}}else{if(b.selectionStart||b.selectionStart=="0"){c=b.selectionStart}}return(c)}function insertAnchor(k){var g;var m,h;var b;m="[[";m+=$("ML_Link_"+k).value;m+=" "+($("ML_Desc_"+k).value!=""?$("ML_Desc_"+k).value:$("ML_Link_"+k).value);$("ML_Link_"+k).value="http://";$("ML_Desc_"+k).value="";m+="]]";var l=document.getElementById(k);if(isIE){objRange.select();g=document.selection.createRange().text;b=document.selection.createRange();if(b.text==""||b.text==l.value){l.value=l.value+m}else{b.text=m}l.focus()}else{var a,j,c;var f,e,d;a=l.selectionStart;j=l.selectionEnd;f=l.value.substring(0,a);e=l.value.substring(a,j);d=l.value.substring(j,l.value.length);l.value=f+m+d;l.selectionStart=a+m.length;l.selectionEnd=a+m.length}hideDivWiki("menuLink"+k,k);l.focus();return}function insertVideo(b){var e;var a,c;var d;a="[[";a+="Video:"+document.getElementById("MV_"+b).value+"]]";document.getElementById("MV_"+b).value="http://";if(isIE){objRange.select()}insert_tag(a,b);ShowHideDiv("menuVideo"+b,b);return}function insert_table(b){try{if(isIE){var c=document.getElementById(b);c.focus();objRange=document.selection.createRange();objRange.select()}var a;a="{| \n";a+="| Type here contents of first cell in first row \n";a+="| Type here contents of second cell in first row \n";a+="|- \n";a+="| Type here contents of first cell in second row \n";a+="| Type here contents of second cell in second row \n";a+="|}";insert_tag(a,b)}catch(d){}return}function insert_tag(l,j){var g;var b;var k=document.getElementById(j);if(isIE){if(objRange.text==null||objRange.text==""||objRange.text==k.value){k.value=k.value+l}else{k.focus();objRange.text=l}}else{var a,h,c;var f,e,d;a=k.selectionStart;h=k.selectionEnd;f=k.value.substring(0,a);e=k.value.substring(a,h);d=k.value.substring(h,k.value.length);k.value=f+l+d;k.selectionStart=a+l.length;k.selectionEnd=a+l.length}k.focus();return}function hideContactsDiv(a){document.getElementById("ContactsTable_"+a).innerHTML="Please wait...";document.getElementById("Lname_"+a).value="";document.getElementById("Fname_"+a).value="";hideDivWiki("ContactsTable_"+a,a);hideDivWiki("MemberSearch_"+a,a);hideDivWiki("menuProfile"+a,a)}function insert_profile(c,a){if(isIE){var b=document.getElementById(a);b.focus();objRange=document.selection.createRange();objRange.select()}if(document.getElementById("insertasP_"+a).checked){insert_tag("[[Profile:"+c+",P]]",a)}else{insert_tag("[[Profile:"+c+",S]]",a)}hideContactsDiv(a)}function insert_my_profile(a){try{xmlRequest=newXMLobject();xmlRequest.open("GET","/wayn.html?wci=wikieditor&wce=GetMemberKey",true);xmlRequest.onreadystatechange=function(){switch(xmlRequest.readyState){case 4:if(xmlRequest.status!=200){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}try{var d=xmlRequest.responseXML.getElementsByTagName("response").item(0).getAttribute("value")}catch(c){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}insert_profile(d,a)}};xmlRequest.send(null)}catch(b){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return}}function getContacts(a){showDivWiki("ContactsTable_"+a,a);try{xmlRequest=newXMLobject();xmlRequest.open("GET","/wayn.html?wci=wikieditor&wce=GetMemberContacts",true);xmlRequest.onreadystatechange=function(){switch(xmlRequest.readyState){case 4:if(xmlRequest.status!=200){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}try{var c=xmlRequest.responseXML.getElementsByTagName("counter").item(0).getAttribute("value")}catch(h){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}var j;var f;var g;g='<table class="ContactsTable">';for(var d=0;d<c;d++){g+="<tr>";j=xmlRequest.responseXML.getElementsByTagName("contact").item(d).getAttribute("memberkey");f=xmlRequest.responseXML.getElementsByTagName("contact").item(d).getAttribute("name");g+="<td onMouseOver=\"this.className='ContactsTableHover';\" onMouseOut=\"this.className='ContactsTable';\" onClick=\"insert_profile('"+j+"', '"+a+"')\">"+f+"</td>";g+="</tr>"}g+="</table>";document.getElementById("ContactsTable_"+a).innerHTML=g}};xmlRequest.send(null)}catch(b){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return}}function BuildVideoMenu(a){ShowHideDiv("menuVideo"+a,a);document.getElementById("ImageVideo_"+a).innerHTML="Please wait...";if(document.getElementById("menuVideo"+a).style.display=="none"){return}getVideoPlaylistNames(a)}function getVideoPlaylistNames(a){var b=document.getElementById("videoPlaylistSelect_"+a).value;if(b!="empty"){getThumbVideos(a,b)}else{try{xmlRequest=newXMLobject();xmlRequest.open("GET","/wayn.html?wci=wikieditor&wce=GetVideoPlaylistNames",true);xmlRequest.onreadystatechange=function(){switch(xmlRequest.readyState){case 4:if(xmlRequest.status!=200){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}try{var d=xmlRequest.responseXML.getElementsByTagName("counter").item(0).getAttribute("value")}catch(h){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}var k;var f;var g;var j=document.getElementById("videoPlaylistSelect_"+a).options;for(i=j.length-1;i>=0;i--){j[i]=null}for(i=0;i<d;i++){a_id=xmlRequest.responseXML.getElementsByTagName("album").item(i).getAttribute("id");a_name=xmlRequest.responseXML.getElementsByTagName("album").item(i).getAttribute("name");j[j.length]=new Option(a_name,a_id)}if(d>0){getThumbVideos(a,j[0].value)}else{document.getElementById("ImageVideo_"+a).innerHTML="You have no playlist"}}};xmlRequest.send(null)}catch(c){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return}}}function getThumbVideos(a,c,b){if(b==""){b=1}document.getElementById("ImageVideo_"+a).innerHTML="Please wait...";try{xmlRequest=newXMLobject();xmlRequest.open("GET","/wayn.html?wci=wikieditor&wce=GetVideoContenet&f_id="+c+"&px="+b,true);xmlRequest.onreadystatechange=function(){switch(xmlRequest.readyState){case 4:if(xmlRequest.status!=200){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}try{var g=xmlRequest.responseXML.getElementsByTagName("counter").item(0).getAttribute("value");var j=xmlRequest.responseXML.getElementsByTagName("pagecount").item(0).getAttribute("value");var f=xmlRequest.responseXML.getElementsByTagName("pagenum").item(0).getAttribute("value")}catch(h){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}i_table='<table width="100%">\n';if(g>0){for(i=0;i<g;i++){thumb_url=xmlRequest.responseXML.getElementsByTagName("image").item(i).getAttribute("thumb_url");video_key=xmlRequest.responseXML.getElementsByTagName("image").item(i).getAttribute("file_key");if(i%5==0){i_table+="<tr><td class=imageContainer>\n"}i_table+=' <img onClick="insert_video('+video_key+",'"+a+"')\" src='"+thumb_url+'\' width=45 height=30 style="cursor: pointer;">\n';if(i+1%5==0){i_table+="</td><\tr>\n"}}if(j>1){i_table+="<tr><td>";for(i=0;i<j;i++){page=i+1;i_table+="<a href=\"javascript:getThumbVideos('"+a+"', "+c+", "+page+')"';if(page==b){i_table+="class=ModernPagingDisabledGrayGray"}else{if(!b&&i==0){i_table+="class=ModernPagingDisabledGrayGray"}else{i_table+="class=ModernPagingActiveGrayGray"}}i_table+=">"+page+"</a> "}i_table+="</td></tr>"}i_table+="</table>\n"}else{i_table="This album is empty!"}document.getElementById("ImageVideo_"+a).innerHTML=i_table}};xmlRequest.send(null)}catch(d){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return}}function insert_video(b,a){if(isIE){objRange.select()}insert_tag("[[WAYNVideo:"+b+"]]",a);ShowHideDiv("menuVideo"+a,a)}function BuildImageMenu(a){ShowHideDiv("menuImage"+a,a);document.getElementById("ImageTable_"+a).innerHTML="Please wait...";if(document.getElementById("menuImage"+a).style.display=="none"){return}getAlbumsListImg(a)}function getAlbumsListImg(a){var b=document.getElementById("imgAlbumSelect_"+a).value;if(b!="empty"){getImages(a,b,1)}else{try{xmlRequest=newXMLobject();xmlRequest.open("GET","/wayn.html?wci=wikieditor&wce=GetImageAlbums",true);xmlRequest.onreadystatechange=function(){switch(xmlRequest.readyState){case 4:if(xmlRequest.status!=200){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}try{var d=xmlRequest.responseXML.getElementsByTagName("counter").item(0).getAttribute("value")}catch(h){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}var k;var f;var g;var j=document.getElementById("imgAlbumSelect_"+a).options;for(i=j.length-1;i>=0;i--){j[i]=null}for(i=0;i<d;i++){a_id=xmlRequest.responseXML.getElementsByTagName("album").item(i).getAttribute("id");a_name=xmlRequest.responseXML.getElementsByTagName("album").item(i).getAttribute("name");j[j.length]=new Option(a_name,a_id)}if(d>0){getImages(a,j[0].value)}else{document.getElementById("ImageTable_"+a).innerHTML="You have no image albums"}}};xmlRequest.send(null)}catch(c){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return}}}function awaitingApproval(){msgBox("information","Image awaiting approval.",null,null,"Information")}function getImages(a,c,b){if(b==""){b=1}document.getElementById("ImageTable_"+a).innerHTML="Please wait...";try{xmlRequest=newXMLobject();xmlRequest.open("GET","/wayn.html?wci=wikieditor&wce=GetAlbumContent&f_id="+c+"&px="+b,true);xmlRequest.onreadystatechange=function(){switch(xmlRequest.readyState){case 4:if(xmlRequest.status!=200){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}try{var g=xmlRequest.responseXML.getElementsByTagName("counter").item(0).getAttribute("value");var j=xmlRequest.responseXML.getElementsByTagName("pagecount").item(0).getAttribute("value");var f=xmlRequest.responseXML.getElementsByTagName("pagenum").item(0).getAttribute("value")}catch(h){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}i_table='<table align=center border=0 width="100%">\n';if(g>0){for(i=0;i<g;i++){img_key=xmlRequest.responseXML.getElementsByTagName("image").item(i).getAttribute("file_key");img_uid=xmlRequest.responseXML.getElementsByTagName("image").item(i).getAttribute("uid");img_checked=xmlRequest.responseXML.getElementsByTagName("image").item(i).getAttribute("file_checked");img_url=xmlRequest.responseXML.getElementsByTagName("image").item(i).getAttribute("file_url");if(i%5==0){i_table+="<tr><td>\n"}if(img_checked=="Y"){i_table+="<table align=left valign=top width=40 height=36 border=0 cellpadding=0 cellspacing=0><tr><td>";i_table+=' <img onClick="insert_image('+img_key+",'"+a+"')\" src='"+img_url+'\' width=36 height=36 style="cursor: pointer;">\n'}else{i_table+="<table style='display:block;filter:alpha(opacity=100);background-color:#E3F4FF;' align=left valign=top width=40 height=36 border=0 cellpadding=0 cellspacing=0><tr><td>";i_table+='<span style="margin:auto;position:absolute;">';i_table+=" <img src='"+img_url+'\' width=36 height=36 style="position:absolute;display:block;filter:alpha(opacity=40); -moz-opacity:0.4;opacity:0.4;" >\n';i_table+="</span>";i_table+='<div style="margin:auto;position:relative;z-index:1000;cursor:pointer;filter:alpha(opacity=100);">';i_table+=' <img style="filter:alpha(opacity=100);" onclick="awaitingApproval();" src=\''+appproxypath+'wiki/images/stop.gif\' width=36 height=36 title="Image awaiting approval." alt="title="Image awaiting approval." >\n';i_table+="</div>"}i_table+="</td></tr></table>";if(i+1%5==0){i_table+="</td></tr>\n"}}if(j>1){i_table+="<tr><td>";for(i=0;i<j;i++){page=i+1;i_table+="<a href=\"javascript:getImages('"+a+"', "+c+", "+page+')"';if(page==b){i_table+="class=ModernPagingDisabledGrayGray"}else{if(!b&&i==0){i_table+="class=ModernPagingDisabledGrayGray"}else{i_table+="class=ModernPagingActiveGrayGray"}}i_table+=">"+page+"</a> "}i_table+="</td></tr>"}i_table+="</table>\n"}else{i_table="This album is empty!"}document.getElementById("ImageTable_"+a).innerHTML=i_table}};xmlRequest.send(null)}catch(d){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return}}function insert_image(b,a){if(isIE){objRange.select()}insert_tag("[[Image:"+b+"]]",a);ShowHideDiv("menuImage"+a,a)}function BuildAlbumMenu(a){ShowHideDiv("menuAlbum"+a,a);if(document.getElementById("menuAlbum"+a).style.display=="none"){return}getAlbumsListFld(a)}function getAlbumsListFld(a){Albums[a]=new Array;try{xmlRequest=newXMLobject();xmlRequest.open("GET","/wayn.html?wci=wikieditor&wce=GetImageAlbums&wcx=albums",true);xmlRequest.onreadystatechange=function(){switch(xmlRequest.readyState){case 4:if(xmlRequest.status!=200){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}try{var c=xmlRequest.responseXML.getElementsByTagName("counter").item(0).getAttribute("value")}catch(g){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}var j;var d;var f;var h=document.getElementById("fldAlbumSelect_"+a).options;for(i=h.length-1;i>=0;i--){h[i]=null}for(i=0;i<c;i++){a_id=xmlRequest.responseXML.getElementsByTagName("album").item(i).getAttribute("id");a_name=xmlRequest.responseXML.getElementsByTagName("album").item(i).getAttribute("name");a_size=xmlRequest.responseXML.getElementsByTagName("album").item(i).getAttribute("size");a_last=xmlRequest.responseXML.getElementsByTagName("album").item(i).getAttribute("last");a_unchecked=xmlRequest.responseXML.getElementsByTagName("album").item(i).getAttribute("unchecked");h[h.length]=new Option(a_name,a_id);Albums[a][a_id]=new Array;Albums[a][a_id]["name"]=a_name;Albums[a][a_id]["size"]=a_size;Albums[a][a_id]["last"]=a_last;Albums[a][a_id]["unchecked"]=a_unchecked}if(c>0){getAlbum(a,h[0].value);hideDivWiki("AlbumError_"+a,a);showDivWiki("AlbumPreview_"+a,a)}else{hideDivWiki("AlbumPreview_"+a,a);showDivWiki("AlbumError_"+a,a);document.getElementById("AlbumError_"+a).innerHTML="You have no image albums."}}};xmlRequest.send(null)}catch(b){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return}}function getAlbum(a,b){document.getElementById("AlbumSize_"+a).innerHTML=Albums[a][b]["size"];document.getElementById("AlbumLastImg_"+a).src=photoproxypath+"photos/90c90/"+Albums[a][b]["last"]+".jpg";document.getElementById("AlbumPicked_"+a).value=b;if(Albums[a][b]["unchecked"]==Albums[a][b]["size"]){document.getElementById("NotApproved_"+a).innerHTML="Images awaiting approval.";document.getElementById("InsertAlbum").type="hidden"}else{document.getElementById("NotApproved_"+a).innerHTML="";document.getElementById("InsertAlbum").type="button"}}function insert_Album(b){if(isIE){objRange.select()}var a=document.getElementById("AlbumPicked_"+b).value;if(a>0){insert_tag("[[Album:"+a+"]]",b)}ShowHideDiv("menuAlbum"+b,b)}function searchMembers(a){if(document.getElementById("Fname_"+a).value.length<2&&document.getElementById("Lname_"+a).value.length<2){msgBox("warning","Please enter at least 2 characters in each field.",null,null," ");return}hideDivWiki("MemberSearch_"+a,a);document.getElementById("ContactsTable_"+a).innerHTML="Please wait...";showDivWiki("ContactsTable_"+a,a);try{xmlRequest=newXMLobject();query="/wayn.html?wci=wikieditor&wce=NameSearch&sForename=";query+=document.getElementById("Fname_"+a).value;query+="&sSurname=";query+=document.getElementById("Lname_"+a).value;xmlRequest.open("GET",query,true);xmlRequest.onreadystatechange=function(){switch(xmlRequest.readyState){case 4:if(xmlRequest.status!=200){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}try{var c=xmlRequest.responseXML.getElementsByTagName("counter").item(0).getAttribute("value")}catch(h){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return false}var j;var f;var g;g='<table class="ContactsTable">';for(var d=0;d<c;d++){g+="<tr>";j=xmlRequest.responseXML.getElementsByTagName("contact").item(d).getAttribute("memberkey");f=xmlRequest.responseXML.getElementsByTagName("contact").item(d).getAttribute("name");g+="<td onMouseOver=\"this.className='ContactsTableHover';\" onMouseOut=\"this.className='ContactsTable';\" onClick=\"insert_profile('"+j+"', '"+a+"')\">"+f+"</td>";g+="</tr>"}g+="</table>";document.getElementById("ContactsTable_"+a).innerHTML=g;if(c==0){document.getElementById("ContactsTable_"+a).innerHTML="No members found."}}};xmlRequest.send(null)}catch(b){msgBox("error","Sorry, there was an error. Please try again later.",null,null," ");return}}function insert_line(k){var g;var m,h;var b;var l=document.getElementById(k);if(isIE){g=document.selection.createRange().text;l.focus();b=document.selection.createRange();b.text="\n----\n"+b.text}else{var a,j,c;var f,e,d;a=l.selectionStart;j=l.selectionEnd;f=l.value.substring(0,a);e=l.value.substring(a,j);d=l.value.substring(j,l.value.length);l.value=f+"\n----\n"+e+d}l.focus();return}function insert_font(l){var h;var m=this.area;var c;var m=document.getElementById(l);c="[[Font:";c+=document.getElementById("font"+l).value;c+="|"+document.getElementById("colorH"+l).value;c+="|"+document.getElementById("size"+l).value+"]]";if(isIE){objRange.select();var j=document.selection.createRange();h=j.text;m.focus();var b=document.selection.createRange();b.text=c+h+"[[Font]]"}else{var a,k,d;var g,f,e;a=m.selectionStart;k=m.selectionEnd;g=m.value.substring(0,a);f=m.value.substring(a,k);e=m.value.substring(k,m.value.length);m.value=g+c+f+"[[Font]]"+e;m.selectionStart=a+c.length;m.selectionEnd=k+c.length}m.focus();hideDivWiki("menuMore"+l,l);return}function save_font(c){var f;var e;var b;font_name=document.getElementById("font"+c).value;e=document.getElementById("colorH"+c).value;b=document.getElementById("size"+c).value;var g="http://"+host+fileurl+"?"+querystring;var d=g.match(/^(.+(?:\\|\/))([^\\\/]+\.([^\.]+))$/).slice(1);var a=d[1].split("?",1);xmlRequest=newXMLobject();query="/wayn.html?wci=wikieditor&wce=SaveFont";query+="&name="+font_name;query+="&color="+e;query+="&size="+b;query+="&dsr="+a[0];xmlRequest.open("GET",query,true);xmlRequest.send(null)}function mouseover(a){a.className="raised"}function mouseout(a){a.className="button"}function mousedown(a){a.className="pressed"}function mouseup(a){a.className="raised"}function showDivWiki(b,a){try{if(isIE){if(typeof(a)!="undefined"){var c=document.getElementById(a);if(c.style.display!="none"){c.focus()}}objRange=document.selection.createRange()}document.getElementById(b).style.display="block"}catch(d){}}function hideDivWiki(b,a){try{document.getElementById(b).style.display="none"}catch(c){}}function ShowHideDiv(b,a){try{if(isIE){if(typeof(a)!="undefined"){var d=document.getElementById(a);if(d.style.display!="none"){d.focus()}}objRange=document.selection.createRange()}if(document.getElementById(b).style.display=="none"||document.getElementById(b).style.display==""){document.getElementById(b).style.display="block";for(var c=0;c<menu.length;c++){if(b!=menu[c]+a){document.getElementById(menu[c]+a).style.display="none"}}}else{document.getElementById(b).style.display="none"}}catch(f){}}function ClickColor(a,b){document.getElementById("color"+b).value=colorsArr[a.id];document.getElementById("colorH"+b).value=a.id;document.getElementById("Tpreview"+b).style.color="#"+a.id}function changeColor(a,b){document.getElementById("Tpreview"+b).style.color=a.value;document.getElementById("colorH"+b).value=a.value}function changeSize(a,b){document.getElementById("Tpreview"+b).style.fontSize=a.value}function changeFont(a,b){document.getElementById("Tpreview"+b).style.fontFamily=a.value}function clearFont(a){document.getElementById("Tpreview"+a).style.color="#2070b3";document.getElementById("Tpreview"+a).style.fontSize=11;document.getElementById("Tpreview"+a).style.fontFamily="Tahoma";document.getElementById("color"+a).value="navy blue";document.getElementById("size"+a).options[2].selected=true;document.getElementById("font"+a).options[1].selected=true}function insertProfMark(a,b){$("insert_my_prof").className="input";$("insert_friend_prof").className="input";$("insert_member_prof").className="input";$("cancel_insert_prof").className="input";if(b){a.className="inputprofpressed"}};
