var IMGON = "images/BallOn.gif";var IMGOFF = "images/BallOff.gif";var LastCommand=false;var NG=false;var oldIE=false;var oldNN=false;var isDOM = (document.getElementById ? true : false);if (!isDOM){if  (navigator.appVersion.substring(0,1) >= "4"){
if (navigator.appName == "Netscape") {oldNN=true} else oldIE=true;} else NG=true;}
if (NG){alert('Your browser does not support the features needed to run this application. Please upgrade your browser to a newer version of IE  or Netascape');}var isNS6 = ((!document.all && document.getElementById )? true : false);var isIE4 = ((document.all && !isDOM) ? true : false);var agt=navigator.userAgent.toLowerCase();var isOpera = (agt.indexOf("opera") != -1);var isIE5up = ((document.all && isDOM) ? true : false);var isIE = ((document.all) ? true : false);var isNS4 = (document.layers ? true : false);var isDyn = (isDOM || isIE4 || isNS4);var isWebtv = (agt.indexOf("webtv") != -1);var isMac = (agt.indexOf("mac") != -1);var isIEMac =  (isMac && isIE);var isNS4Mac = (isMac && isNS4);if (isNS4){var winFirstWidth = window.innerWidth;
var winFirstHeight = window.innerHeight;
window.captureEvents(Event.RESIZE);
window.onresize = HandleResize;}function HandleResize(){winWidth =  window.innerWidth;
if (winFirstWidth != winWidth){winFirstWidth = winWidth;location.reload();return false;}}function LoadPage(URL,locIn,Name,BoxColor){Name= "&nbsp; " + Name;if (locIn==2){if(isIE4){document.all.RightBox.innerHTML =  Name;document.all.RightBox.style.backgroundColor=BoxColor;}else{if (!isNS4){document.getElementById("RightBox").innerHTML =  Name;document.getElementById("RightBox").style.backgroundColor=BoxColor;}}}else {if(isIE4){document.all.MainBox.innerHTML =  Name;document.all.MainBox.style.backgroundColor=BoxColor;}else{if(!isNS4){document.getElementById("MainBox").innerHTML =  Name;document.getElementById("MainBox").style.backgroundColor=BoxColor;}}}if(isIE){document.frames['bufferFrame'].document.location.replace(URL);CheckLoading(locIn);}else{if (isDOM){document.getElementById("bufferFrame2").src=URL;CheckLoading(locIn);}else if(isNS4){var ALayerWidthSizeConstants=360 ;var BLayerWidthSizeConstants=200 ;if (locIn==2){if (isNS4Mac){BLayerWidthSizeConstants=BLayerWidthSizeConstants -14}var width =  BLayerWidthSizeConstants;var height = document.BEnd.y  - document.BStart.y - 1;document.NsLayer.left=document.BStart.x ;document.NsLayer.top=document.BStart.y +4;}else{if (isNS4Mac) { ALayerWidthSizeConstants=ALayerWidthSizeConstants -14}var width = winFirstWidth - ALayerWidthSizeConstants;var height = document.AEnd.y  - document.AStart.y - 1;document.NsLayer.left=document.AStart.x ;document.NsLayer.top=document.AStart.y +4;}document.NsLayer.clip.right=width; document.NsLayer.clip.bottom=height; document.NsLayer.bgColor = "white"; document.NsLayer.visibility = "visible";  document.NsLayer.load(URL, width);if (isNS4Mac){alert('OK');}}else {alert('Sorry, This site need IE4 or greater, or Netsacepe 4 or greater');}}}var FirstTime=true;var Counter=0;var locHold=0;function CheckLoading(loc){locHold=loc;
if (FirstTime==true){Counter=0;FirstTime=false;}++Counter;if (Counter>30){alert('timeout');
Counter=0;return;}if(isIE){if (document.frames['bufferFrame'].document.body.innerHTML.indexOf('!--HDML-->')<1)
{setTimeout("CheckLoading(locHold)",200);
return;}else{setTimeout("TransferPage(locHold)",50);
FirstTime=true;return;}}if (isDOM){if (window.bufferFrame.document.documentElement.innerHTML.indexOf('!--HDML-->')<1)
{setTimeout("CheckLoading(locHold)",200);
return;}else{setTimeout("TransferPage(locHold)",50);FirstTime=true;return;}}alert('Sorry, This site need IE4 or greater, or Netsacepe 4 or greater');
}function FinishTransfer(){if(isIEMac) {document.frames['bufferFrame'].document.location.replace('empty.htm');}else{document.frames['bufferFrame'].document.body.innerHTML='<b>Please reload page</b>';}
}function TransferPage(locT){if(isIE){if (locT==1){window.document.all["mainContentDiv"].innerHTML=document.frames['bufferFrame'].document.body.innerHTML;}else { window.document.all["rightContentDiv"].innerHTML=document.frames['bufferFrame'].document.body.innerHTML;}setTimeout("FinishTransfer()",500)}else {if (isDOM){if (locT==1){document.getElementById("mainContentDiv").innerHTML =window.bufferFrame.document.body.innerHTML;}else{document.getElementById("rightContentDiv").innerHTML =window.bufferFrame.document.body.innerHTML;}window.bufferFrame.document.body.innerHTML='<b>Please reload page</b>';}else{alert('Error on Transfer Page');}}}function LoadPage2(URL,loc,Name,BoxColor){
if (!isNS4) return false;LoadPage(URL,loc,Name,BoxColor);}function HideM(){if (!LastCommand)return;
if (oldNN){eval('document.layers.' + LastCommand + 'div.visibility = "hide" ');
LastCommand=false;return;}LastCommand.style.cursor='default';LastCommand.style.backgroundColor="#336699";DivCommand=LastCommand.id+"div";if (isDOM){document.getElementById("closebar").style.backgroundColor="#000063";document.getElementById("closebar2").height=0;d = document.getElementById(LastCommand.id+"a");d.style.color ="#FFDA8A";d = document.getElementById(DivCommand);d.style.visibility = "hidden";}if (oldIE){eval(DivCommand +".style.visibility = 'hidden'");eval("document.all." + LastCommand.id + "a.style.color='#FFDA8A';")}LastCommand=false;}function ShowM2(Command){if (!oldNN)return;HideM();eval('document.layers.' + Command + 'div.visibility = "visible" ');LastCommand=Command;}function cleanstart(){document.all.closebar2.height=0;}function ShowM(Command){HideM();
if (oldNN){eval('document.layers.' + Command + 'div.visibility = "visible" ');LastCommand=Command;return;}DivCommand=Command.id+"div";Command.style.cursor = "hand";Command.style.backgroundColor = '#ffc800';if (isDOM){d = document.getElementById(Command.id+"a");d.style.color ="black";document.getElementById("closebar").style.backgroundColor="#9C0000";document.getElementById("closebar2").height=16;d = document.getElementById(DivCommand);d.style.visibility = "visible";}if (oldIE){eval(DivCommand +'.style.visibility = "visible"');eval("document.all." + Command.id + "a.style.color='black';")}LastCommand=Command;return;}function mOvr(src){src.style.cursor = 'hand';if ((!isNS6) && (!isIEMac)){src.style.backgroundColor ='#ffc800';src.children(1).style.color='#000063';src.children(0).src = IMGON;}}function mOut(src){src.style.cursor='default';src.style.backgroundColor="#336699";if ((!isNS6) && (!isIEMac)){src.children(1).style.color='#FFDA8A';src.children(0).src = IMGOFF;}}function mOutX(el,div){if (!oldNN) return;{document[div].document[el + 'a'].bgColor = '#336699';}}function mOvrX(el,div){if (oldNN){document[div].document[el + 'a'].bgColor = '#FF0000';}if (!isNS6) return;d = document.getElementById(el);d.style.backgroundColor='#ffc800';}function m2Ovr(src){HideM();mOvr(src)}function m4Ovr(src){HideM();src.style.cursor = 'hand';if (!isNS6){src.style.backgroundColor ='#ffc800';src.children(0).style.color='#000063';}}function m3Out(src){src.style.cursor='default';src.style.backgroundColor='#336699';
if (!isNS6){src.children(0).style.color='#FFDA8A';}}function TopOut(src){src.style.cursor='default';src.style.backgroundColor='#336699';
if (!isNS6){src.children(0).style.color='#FFDA8A';}}function m4XOvr(src){if (!isNS6) return;name=src.id.slice(0,src.id.length-1);d = document.getElementById(name);d.style.backgroundColor='#ffc800';}function mClk(URL){if (isIE5up){if (window.Remote) Remote.close();}Remote = window.open(URL, 'new');}function mClk2(URL){if (!isNS4) return false;mClk(URL);}function LtOvr(src){src.style.cursor = 'hand';src.style.backgroundColor = 'red';src.style.borderColor ='#000000';src.children(0).style.color='#ffffff';}function LtOut(src){src.style.cursor = 'default';src.style.backgroundColor ='#ddddbb';src.style.borderColor ='#ddddbb';src.children(0).style.color='#000000';}var Remote;function LtClk(URL){if (isIE5up){if (window.Remote) Remote.close();}Remote = window.open(URL, 'new')}function LtClk2(URL){if (!isNS4) return false;LtClk(URL);}function Min5(cmd){if (LoggedIn!=1){alert("You must be logged in to use this feature"); return false;}else{if (CookiesYes!=1){alert("Cookies must be allowed to use this feature \n Log in again and make sure 'Remember me' is checked."); return false;}var DateHold = new Date("December 31, 2006");document.cookie = "Refresh="+cmd+";expires=" + DateHold.toGMTString()}}function dict(){if (isNS4) {txt = document.getSelection();}else {var txthold = document.selection.createRange();txthold.expand("word");txt=txthold.text; txt= txt.substring(0,(txt.indexOf(" ",0))); }if (txt == ''){alert('Highlight a word to lookup!');}else newwin =window.open('http://www.wordsmyth.net/cgi-bin/search.cgi?matchtype=exact&matchent='+escape(txt), 'dictionary','width=670,height=500, resizable=yes, menubar=yes, toolbar=yes, scrollbars=yes'); }function dict2(){if (isNS4){ dict()} else return false;}





















