var clientPC=navigator.userAgent.toLowerCase();var is_gecko=((clientPC.indexOf('gecko')!=-1)&&(clientPC.indexOf('spoofer')==-1)&&(clientPC.indexOf('khtml')==-1)&&(clientPC.indexOf('netscape/7.0')==-1));var is_safari=((clientPC.indexOf('AppleWebKit')!=-1)&&(clientPC.indexOf('spoofer')==-1));var is_khtml=(navigator.vendor=='KDE'||(document.childNodes&&!document.all&&!navigator.taintEnabled));if(clientPC.indexOf('opera')!=-1){var is_opera=true;var is_opera_preseven=(window.opera&&!document.childNodes);var is_opera_seven=(window.opera&&document.childNodes);}
var bg;var bg1;var bg2;var bg3;var bg4;var H;var L;var S;var hstr='#';var hdig="0123456789abcdef";contrast=0.08;function m(tc,hoverFlag,navStyle){if(hoverFlag){if(tc.currentStyle){bg=tc.currentStyle.backgroundColor;bg1=tc.currentStyle.borderTopColor;bg2=tc.currentStyle.borderBottomColor;}else if(window.getComputedStyle){var compStyle=window.getComputedStyle(tc,"");bg=compStyle.getPropertyValue("background-color");bg1=compStyle.getPropertyValue("Border-Top-color");bg2=compStyle.getPropertyValue("Border-Bottom-color");}
a=rgb2hls(bg);tc.style.backgroundColor=hls2rgb(a.H,a.L+contrast,a.S);a=rgb2hls(bg1);c=hls2rgb(a.H,a.L+contrast,a.S);tc.style.borderTopColor=c;tc.style.borderLeftColor=c;a=rgb2hls(bg2);c=hls2rgb(a.H,a.L+contrast,a.S);tc.style.borderRightColor=c;tc.style.borderBottomColor=c;tc.style.cursor='pointer';}else{tc.style.backgroundColor=bg;tc.style.borderTopColor=bg1;tc.style.borderLeftColor=bg1;tc.style.borderRightColor=bg2;tc.style.borderBottomColor=bg2;tc.style.cursor='default';}}
function r(tc,hoverFlag,navStyle){if(hoverFlag){for(i=0;i<tc.cells.length;i++){if(tc.currentStyle){bg=tc.cells[i].currentStyle.backgroundColor;bg1=tc.cells[i].currentStyle.borderTopColor;bg2=tc.cells[i].currentStyle.borderBottomColor;}else if(window.getComputedStyle){var compStyle=window.getComputedStyle(tc.cells[i],"");bg=compStyle.getPropertyValue("background-color");bg1=compStyle.getPropertyValue("Border-Top-color");bg2=compStyle.getPropertyValue("Border-Bottom-color");}
a=rgb2hls(bg);tc.cells[i].style.backgroundColor=hls2rgb(a.H-0.5,a.L,a.S);a=rgb2hls(bg1);c=hls2rgb(a.H-0.5,a.L,a.S);tc.cells[i].style.borderTopColor=c;tc.cells[i].style.borderLeftColor=c;a=rgb2hls(bg2);c=hls2rgb(a.H-0.5,a.L,a.S);tc.cells[i].style.borderRightColor=c;tc.cells[i].style.borderBottomColor=c;}
tc.style.cursor='pointer';}else{for(i=0;i<tc.cells.length;i++){tc.cells[i].style.backgroundColor=bg;tc.cells[i].style.borderTopColor=bg1;tc.cells[i].style.borderLeftColor=bg1;tc.cells[i].style.borderRightColor=bg2;tc.cells[i].style.borderBottomColor=bg2;}
tc.style.cursor='default';}}
function selectedmenuhilite(tc,hoverFlag,navStyle){if(hoverFlag){bg=tc.style.backgroundColor;bg1=tc.style.borderTopColor;bg2=tc.style.borderLeftColor;bg3=tc.style.borderRightColor;bg4=tc.style.borderBottomColor;tc.style.backgroundColor='#D1C2E0';tc.style.borderTopColor='#E0D6EB';tc.style.borderLeftColor='#E0D6EB';tc.style.borderRightColor='#C2ADD6';tc.style.borderBottomColor='#C2ADD6';tc.style.cursor='pointer';}else{tc.style.backgroundColor=bg;tc.style.borderTopColor=bg1;tc.style.borderLeftColor=bg2;tc.style.borderRightColor=bg3;tc.style.borderBottomColor=bg4;tc.style.cursor='default';}}
function calhead(tc,hoverFlag,navStyle){if(hoverFlag){bg=tc.style.backgroundColor;bg1=tc.style.borderTopColor;bg2=tc.style.borderLeftColor;bg3=tc.style.borderRightColor;bg4=tc.style.borderBottomColor;tc.style.backgroundColor='#376eeb';tc.style.borderTopColor='#4e7fed';tc.style.borderLeftColor='#4e7fed';tc.style.borderRightColor='#205de9';tc.style.borderBottomColor='#205de9';tc.style.cursor='pointer';}else{tc.style.backgroundColor=bg;tc.style.borderTopColor=bg1;tc.style.borderLeftColor=bg2;tc.style.borderRightColor=bg3;tc.style.borderBottomColor=bg4;tc.style.cursor='default';}}
function submenuhilite(tc,hoverFlag,navStyle){if(hoverFlag){bg=tc.style.backgroundColor;bg1=tc.style.borderTopColor;bg2=tc.style.borderLeftColor;bg3=tc.style.borderRightColor;bg4=tc.style.borderBottomColor;tc.style.backgroundColor='#00b0a7';tc.style.borderTopColor='#00cabf';tc.style.borderLeftColor='#00cabf';tc.style.borderRightColor='#00978f';tc.style.borderBottomColor='#00978f';tc.style.cursor='pointer';}else{tc.style.backgroundColor=bg;tc.style.borderTopColor=bg1;tc.style.borderLeftColor=bg2;tc.style.borderRightColor=bg3;tc.style.borderBottomColor=bg4;tc.style.cursor='default';}}
function btnClick(tc,navStyle,url,target){goTo(url,target);}
function goTo(url,target){if(target==undefined){window.location.href=url;}else{eval(target+".location.href = url");}}
function rgb2hls(col){if(col.search(/rgb/)>-1){col=col.replace("rgb(","");col=col.replace(")","");col=col.split(",");var R=col[0];var G=col[1];var B=col[2];}else{var R=hdig.indexOf(col.substr(1,1))*16+hdig.indexOf(col.substr(2,1));var G=hdig.indexOf(col.substr(3,1))*16+hdig.indexOf(col.substr(4,1));var B=hdig.indexOf(col.substr(5,1))*16+hdig.indexOf(col.substr(5,1));}
var H,L,S;R=(R/255);G=(G/255);B=(B/255);Min=Math.min(R,G,B);Max=Math.max(R,G,B);dMax=Max-Min;L=(Max+Min)/2;if(dMax==0){H=0;S=0;}else{if(L<0.5)S=dMax/(Max+Min);else S=dMax/(2-Max-Min);dR=(((Max-R)/6)+(dMax/2))/dMax;dG=(((Max-G)/6)+(dMax/2))/dMax;dB=(((Max-B)/6)+(dMax/2))/dMax;if(R==Max)H=dB-dG;else if(G==Max)H=(1/3)+dR-dB;else if(B==Max)H=(2/3)+dG-dR;if(H<0);H+=1;if(H>1);H-=1;}
return{H:H,L:L,S:S};}
function hls2rgb(H,L,S){var R,G,B;if(H>1)H=1;if(L>1)L=1;if(S>1)S=1;if(S==0){R=L*255;G=L*255;B=L*255;}else{if(L<0.5)var_2=L*(1+S);else var_2=(L+S)-(S*L);var_1=2*L-var_2;R=255*Hue_2_RGB(var_1,var_2,H+(1/3));G=255*Hue_2_RGB(var_1,var_2,H);B=255*Hue_2_RGB(var_1,var_2,H-(1/3));}
var hstr='#'+hdig.charAt(Math.floor(R/16))+hdig.charAt(R%16)+
hdig.charAt(Math.floor(G/16))+hdig.charAt(G%16)+
hdig.charAt(Math.floor(B/16))+hdig.charAt(B%16);return(hstr);}
function Hue_2_RGB(v1,v2,vH){if(vH<0)vH+=1;if(vH>1)vH-=1;if((6*vH)<1)return(v1+(v2-v1)*6*vH);if((2*vH)<1)return(v2);if((3*vH)<2)return(v1+(v2-v1)*((2/3)-vH)*6);return(v1);}
function inspect(elm){var str="";for(var i in elm){str+=i+": "+elm.getAttribute(i)+"\n";}
alert(str);}
function addButton(imageFile,speedTip,tagOpen,tagClose,sampleText){if(!document.selection&&!is_gecko){return false;}
imageFile=escapeQuotesHTML(imageFile);speedTip=escapeQuotesHTML(speedTip);tagOpen=escapeQuotes(tagOpen);tagClose=escapeQuotes(tagClose);sampleText=escapeQuotes(sampleText);var mouseOver="";document.write("<a href=\"javascript:insertTags");document.write("('"+tagOpen+"','"+tagClose+"','"+sampleText+"');\">");document.write("<img width=\"23\" height=\"22\" src=\""+imageFile+"\" border=\"0\" alt=\""+speedTip+"\" title=\""+speedTip+"\""+mouseOver+">");document.write("</a>");return;}
function escapeQuotes(text){var re=new RegExp("'","g");text=text.replace(re,"\\'");re=new RegExp("\\n","g");text=text.replace(re,"\\n");return escapeQuotesHTML(text);}
function escapeQuotesHTML(text){var re=new RegExp('&',"g");text=text.replace(re,"&amp;");var re=new RegExp('"',"g");text=text.replace(re,"&quot;");var re=new RegExp('<',"g");text=text.replace(re,"&lt;");var re=new RegExp('>',"g");text=text.replace(re,"&gt;");return text;}
function insertTags(tagOpen,tagClose,sampleText){var is_link=tagOpen.indexOf('href');if(document.editform)
var txtarea=document.editform.text;else{var areas=document.getElementsByTagName('textarea');var txtarea=areas[0];}
if(document.selection&&!is_gecko){var theSelection=document.selection.createRange().text;if(!theSelection)
theSelection=sampleText;txtarea.focus();if(theSelection.charAt(theSelection.length-1)==" "){theSelection=theSelection.substring(0,theSelection.length-1);if(is_link==-1){document.selection.createRange().text=tagOpen+theSelection+tagClose+" ";}else{document.selection.createRange().text=tagOpen+theSelection+tagClose+theSelection+"</a>"+" ";}}else{if(is_link==-1){document.selection.createRange().text=tagOpen+theSelection+tagClose;}else{document.selection.createRange().text=tagOpen+theSelection+tagClose+theSelection+"</a>"+" ";}}}else if(txtarea.selectionStart||txtarea.selectionStart=='0'){var replaced=false;var startPos=txtarea.selectionStart;var endPos=txtarea.selectionEnd;if(endPos-startPos)
replaced=true;var scrollTop=txtarea.scrollTop;var myText=(txtarea.value).substring(startPos,endPos);if(!myText)
myText=sampleText;if(myText.charAt(myText.length-1)==" "){if(is_link==-1){subst=tagOpen+myText.substring(0,(myText.length-1))+tagClose+" ";}else{subst=tagOpen+myText.substring(0,(myText.length-1))+tagClose+myText.substring(0,(myText.length-1))+"</a>"+" ";}}else{if(is_link==-1){subst=tagOpen+myText+tagClose;}else{subst=tagOpen+myText+tagClose+myText+"</a>";}}
txtarea.value=txtarea.value.substring(0,startPos)+subst+
txtarea.value.substring(endPos,txtarea.value.length);txtarea.focus();if(replaced){var cPos=startPos+(tagOpen.length+myText.length+tagClose.length);txtarea.selectionStart=cPos;txtarea.selectionEnd=cPos;}else{txtarea.selectionStart=startPos+tagOpen.length;txtarea.selectionEnd=startPos+tagOpen.length+myText.length;}
txtarea.scrollTop=scrollTop;}
if(txtarea.createTextRange)
txtarea.caretPos=document.selection.createRange().duplicate();}
