<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script Language="Javascript">
var myTextCode='';
var colorFlag='none';
var iam=true;
var isItOpen=0;
var winLink;
function setColor(inputc){
if (colorFlag=='font') {
document.theform.fcfield.value=inputc;
}else if(colorFlag=='back'){
document.theform.bgfield.value=inputc;
}else{
document.theform.border_color.value=inputc;
}
colorFlag='none';
}
function colorWindow() {
if ((isItOpen=="0")||(isItOpen==0)){
var colors=new String();
winLink=window.open('about:blank','winID','height=200,width=400,top=100,left=100,location=no,menubar=no,resizable=yes,scrollbars=no,status=yes,toolbar=no');
isItOpen=1;
colors="<html><head><title>Color Selector v.2.2</title><script>if(!document.all){if(confirm('To use this application you need Internet Explorer 4.x or greater.\\nClick OK to exit')){window.close();}}\n";
colors+="var all_str=new String('aliceblue;antiquewhite;aqua;aquamarine;azure;beige;bisque;black;blanchedalmond;blue;blueviolet;brown;burlywood;coral;crimson;cyan;darkblue;darkcyan;darkgoldenrod;darkgray;darkgreen;";
colors+="darkkhaki;darkmagenta;darkolivegreen;darkorange;darkorchid;darkred;darksalmon;darkseagreen;darkslateblue;darkslategray;darkturquoise;darkviolet;deeppink;deepskyblue;dimgray;dodgerblue;firebrick;floralwhite;";
colors+="forestgreen;fuchsia;gainsboro;ghostwhite;gold;goldenrod;gray;green;greenyellow;honeydew;hotpink;indianred;indigo;ivory;khaki;lavender;lavenderblush;lawngreen;lemonchiffon;lightblue;lightcoral;lightcyan;";
colors+="lightgoldenrodyellow;lightgreen;lightpink;lightsalmon;lightseagreen;lightskyblue;lightslategray;lightsteelblue;lightyellow;lime;limegreen;linen;magenta;maroon;mediumaquamarine;mediumblue;mediumorchid;";
colors+="mediumpurple;mediumseagreen;mediumslateblue;mediumspringgreen;mediumturquoise;mediumvioletred;midnightblue;mintcream;mistyrose;moccasin;navajowhite;navy;oldlace;olive;olivedrab;orange;orangered;orchid;";
colors+="palegoldenrod;palegreen;paleturquoise;palevioletred;papayawhip;peachpuff;peru;pink;plum;powderblue;purple;red;rosybrown;royalblue;saddlebrown;seagreen;seashell;sienna;silver;skyblue;slateblue;slategray;";
colors+="snow;springgreen;steelblue;tan;teal;thistle;tomato;turquoise;violet;wheat;white;whitesmoke;yellow;yellowgreen');\n";
colors+="var safe_str = new String('aqua;black;blue;fuchsia;gray;green;lime;maroon;navy;olive;purple;red;silver;teal;white;yellow')\n";
colors+="function preloader(){\n";
colors+="if(!document.cookie){document.cookie='asel=all';writeOptions('a');document.all.colorstuff.bgColor='aliceblue';document.txtForm.areaSel[0].selected=true;\n";
colors+="}else if(document.cookie.indexOf('asel=all') !=-1){writeOptions('a');document.all.colorstuff.bgColor='aliceblue';document.txtForm.areaSel[0].selected=true;\n";
colors+="}else if(document.cookie.indexOf('asel=dark')!=-1){writeOptions('d');document.all.colorstuff.bgColor='darkblue';document.txtForm.areaSel[3].selected=true;\n";
colors+="}else if(document.cookie.indexOf('asel=med')!=-1){writeOptions('m');document.all.colorstuff.bgColor='mediumaquamarine';document.txtForm.areaSel[2].selected=true;\n";
colors+="}else if(document.cookie.indexOf('asel=light')!=-1){writeOptions('l');document.all.colorstuff.bgColor='lightblue';document.txtForm.areaSel[1].selected=true;\n";
colors+="}else{writeOptions('s');document.all.colorstuff.bgColor='aqua';document.txtForm.areaSel[4].selected=true;}\n";
colors+="}\n";
colors+="function readOpener(){\n";
colors+="document.all.colorstuff.bgColor=window.opener.document.theform.bgfield.value;\n";
colors+="document.all.innerstuff.color=window.opener.document.theform.fcfield.value;\n";
colors+="document.all.colorstuff.style.borderColor=window.opener.theform.border_color.value;\n";
colors+="}\n";
colors+="function writeOptions(cookieArea){\n";
colors+="var counter = new Number(0);var arr;var opt_arr=new Array;var safe_arr = safe_str.split(';');var alla = all_str.split(';');var dark_arr = alla.slice(16,31);var light_arr = alla.slice(58,70);var med_arr = alla.slice(75,84);\n";
colors+="if(cookieArea=='a'){arr=alla;}else if(cookieArea=='d'){arr=dark_arr;}else if(cookieArea=='l'){arr=light_arr;}else if(cookieArea=='m'){arr=med_arr;}else{arr=safe_arr;}\n";
colors+="if(window.opener.colorFlag=='font'){\n";
colors+="var mc=new Option('[current: '+window.opener.document.theform.fcfield.value+']',window.opener.document.theform.fcfield.value);document.txtForm.colorSel.options[0]=mc;\n";
colors+="}else if(window.opener.colorFlag=='back'){";
colors+="var mc=new Option('[current: '+window.opener.document.theform.bgfield.value+']',window.opener.document.theform.fcfield.value);document.txtForm.colorSel.options[0]=mc;\n";
colors+="}else{";
colors+="var mc=new Option('[current: '+window.opener.document.theform.border_color.value+']',window.opener.document.theform.border_color.value);document.txtForm.colorSel.options[0]=mc;\n";
colors+="}\n";
colors+="for (counter=1;counter!=arr.length;counter++) { opt_arr[counter] = new Option(arr[counter-1],arr[counter-1]);document.txtForm.colorSel.options[counter]=opt_arr[counter];}\n";
colors+="}\n";
colors+="function changeArea(){\n";
colors+="var sArea=document.txtForm.areaSel[document.txtForm.areaSel.selectedIndex].value;if(sArea=='all'){\n";
colors+="document.cookie='asel=all';}else if(sArea=='dark'){document.cookie='asel=dark';}else if(sArea=='light'){document.cookie='asel=light';}else if(sArea=='medium'){document.cookie='asel=med';}else{document.cookie='asel=safe';}history.go(0);\n";
colors+="}\n";
colors+="</scr"+"ipt>\n";
colors+="</head><body bgcolor='white' text='navy' onload='preloader();readOpener()' onunload='window.opener.isItOpen=0'><table width='380' height='100' border='0' bgcolor='white'><tr><td bgcolor='#dddddd' colspan='2' width='100%'>";
colors+="<font face='Tahoma,Arial,Verdana' size='4' color='navy'><center>color selector by<a href='mailto:fragmer@mail.ru?subject=WOW! How do you doo all this great stuff?!'>fr@gmer</a></center></font>\n";
colors+="</td></tr><tr><td width='100' bgcolor='#eeeeee' align=center valign=center><font face='Terminal' size='4pt'>select color</font></td><td width='310'><form name='txtForm'><select name='areaSel' onchange='changeArea(\"txt\")'>\n";
colors+="<option value='all'>all</option><option value='light'>light</option><option value='medium'>medium</option><option value='dark'>dark</option><option value='safe'>safe</option></select>\n";
colors+="<select name='colorSel' onchange='if(window.opener.colorFlag==\"font\"){document.all.innerstuff.color=document.txtForm.colorSel[document.txtForm.colorSel.selectedIndex].value}else if(window.opener.colorFlag==\"back\"){document.all.colorstuff.bgColor=document.txtForm.colorSel";
colors+="[document.txtForm.colorSel.selectedIndex].value;}else{document.all.colorstuff.style.borderColor=document.txtForm.colorSel[document.txtForm.colorSel.selectedIndex].value;}'></select>\n";
colors+="<table border=1><tr><td id='colorstuff' style='height:25;width:175;border-width:2px;border-style:solid' align='center' valign='bottom'><font face='Tahoma,Arial,Verdana' id='innerstuff'><script>document.write(window.opener.theform.marqueetext.value.substr(0,22)+'...');</scr"+"ipt>";
colors+="</font></td></tr></table><br><input type='button' value='Submit color' onclick='window.opener.isItOpen=0;if(window.opener.iam==true){";
colors+="window.opener.setColor(document.txtForm.colorSel[document.txtForm.colorSel.selectedIndex].value);window.close();}'> <input type='button' value='Cancel' onclick='window.opener.isItOpen=0;window.close()'></form></td></tr>\n";
colors+="</table></body></html>\n";
function insertMarquee() {
var marquee_txt='your scrolling text goes here';
var mWidth='';
var mHeight='';
var mRepeat='';
var mDelay='';
var mAmount='';
var mBehaviour='';
var mDirection='';
var mAlign='';
var mBgColor='bgcolor=\"beige\" ';
var mFnColor='color: \"darkorchid\"; '
if (document.theform.marqueetext.value !=''){
var marquee_txt=document.theform.marqueetext.value;}
if (document.theform.dir_radio[1].checked){
var mDirection='direction=\"right\"';}
var mDelay='scrolldelay=\"' + document.theform.speed_delay.options[document.theform.speed_delay.selectedIndex].value + '\"';
var mAmount='scrollamount=\"' + document.theform.speed_amt.options[document.theform.speed_amt.selectedIndex].value + '\"';
//behaviour radio
if (document.theform.behave_radio[0].checked){
var mBehaviour='behavior=\"scroll\"';}
if (document.theform.behave_radio[1].checked){
var mBehaviour='behavior=\"slide\"';}
if (document.theform.behave_radio[2].checked){
var mBehaviour='behavior=\"alternate\"';}
//align radio
if (document.theform.align_radio[0].checked){
var mAlign='align=\"middle\"';}
if (document.theform.align_radio[1].checked){
var mAlign='align=\"bottom\"';}
if (document.theform.align_radio[2].checked){
var mAlign='align=\"top\"';}
//size
if (document.theform.wid_radio[0].checked){
var mWidth=document.theform.swidth.value;}
else {
var mWidth=document.theform.swidth.value + '%';}
//height
if (document.theform.hgt_radio[0].checked){
var mHeight='height=\"' + document.theform.sheight.value +'\"';}
else {
var mHeight='height=\"' + document.theform.sheight.value+'%\"';}
//repeat
if (document.theform.repeat_check.checked){
var mRepeat='';}
else {
if (document.theform.repeat_time.value != ''){
var mRepeat='loop=\"' + document.theform.repeat_time.value + '\"';}
else {
var mRepeat='loop=\"1\"';}
}
//background color
var mBgColor='bgcolor="' + document.theform.bgfield.value + '"';
//font color
var mFnColor='color: ' + document.theform.fcfield.value + '; ';
//font
var mtFont = document.theform.fontselect.options[document.theform.fontselect.selectedIndex].value;
if (mtFont != ""){
var mFont = ' style=\"font-family: ' + mtFont + '; ' ;
}else{
var mFont = ' style=\"' ;
}
var bStyle="";
var endDiv="";
if (document.theform.border_check.checked){
endDiv="</div>\n";
bStyle+='<div style="width:'+mWidth+';padding:0;margin:0;border-style:'+document.theform.border_styler.options[document.theform.border_styler.selectedIndex].value+';border-width:';
if(document.theform.border_width.value!=""){
bStyle+=document.theform.border_width.value;}
else{bStyle+="1";}
bStyle+=';border-color:'+document.theform.border_color.value+';">';
mWidth="100%";
}