<%@ Page Language="C#" Inherits="CuteEditor.EditorUtilityPage" %>
<script runat="server">
string GetDialogQueryString;
override protected void OnInit(EventArgs args)
{
	if(Context.Request.QueryString["Dialog"]=="Standard")
	{	
	if(Context.Request.QueryString["IsFrame"]==null)
	{
		string FrameSrc="colorpicker_basic.aspx?IsFrame=1&"+Request.ServerVariables["QUERY_STRING"];
		CuteEditor.CEU.WriteDialogOuterFrame(Context,"[[MoreColors]]",FrameSrc);
		Context.Response.End();
	}
	}
	string s="";
	if(Context.Request.QueryString["Dialog"]=="Standard")	
		s="&Dialog=Standard";
	
	GetDialogQueryString="Theme="+Context.Request.QueryString["Theme"]+s;	
	base.OnInit(args);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head runat="server">
		<meta http-equiv="Page-Enter" content="blendTrans(Duration=0.1)" />
		<meta http-equiv="Page-Exit" content="blendTrans(Duration=0.1)" />
		<script type="text/javascript" src="Load.ashx?type=dialogscript&verfix=1006&file=DialogHead.js"></script>
		<script type="text/javascript" src="Load.ashx?type=dialogscript&verfix=1006&file=Dialog_ColorPicker.js"></script>
		<link href='Load.ashx?type=themecss&file=dialog.css&theme=[[_Theme_]]' type="text/css"
			rel="stylesheet" />
		<style type="text/css">
			.colorcell
			{
				width:16px;
				height:17px;
				cursor:hand;
			}
			.colordiv,.customdiv
			{
				border:solid 1px #808080;
				width:16px;
				height:17px;
				font-size:1px;
			}
			#ajaxdiv{padding:10px;margin:0;text-align:center; background:#eeeeee;}
		</style>
		<title>[[NamedColors]]</title>
		<script>
								
		var OxOd678=["Green","#008000","Lime","#00FF00","Teal","#008080","Aqua","#00FFFF","Navy","#000080","Blue","#0000FF","Purple","#800080","Fuchsia","#FF00FF","Maroon","#800000","Red","#FF0000","Olive","#808000","Yellow","#FFFF00","White","#FFFFFF","Silver","#C0C0C0","Gray","#808080","Black","#000000","DarkOliveGreen","#556B2F","DarkGreen","#006400","DarkSlateGray","#2F4F4F","SlateGray","#708090","DarkBlue","#00008B","MidnightBlue","#191970","Indigo","#4B0082","DarkMagenta","#8B008B","Brown","#A52A2A","DarkRed","#8B0000","Sienna","#A0522D","SaddleBrown","#8B4513","DarkGoldenrod","#B8860B","Beige","#F5F5DC","HoneyDew","#F0FFF0","DimGray","#696969","OliveDrab","#6B8E23","ForestGreen","#228B22","DarkCyan","#008B8B","LightSlateGray","#778899","MediumBlue","#0000CD","DarkSlateBlue","#483D8B","DarkViolet","#9400D3","MediumVioletRed","#C71585","IndianRed","#CD5C5C","Firebrick","#B22222","Chocolate","#D2691E","Peru","#CD853F","Goldenrod","#DAA520","LightGoldenrodYellow","#FAFAD2","MintCream","#F5FFFA","DarkGray","#A9A9A9","YellowGreen","#9ACD32","SeaGreen","#2E8B57","CadetBlue","#5F9EA0","SteelBlue","#4682B4","RoyalBlue","#4169E1","BlueViolet","#8A2BE2","DarkOrchid","#9932CC","DeepPink","#FF1493","RosyBrown","#BC8F8F","Crimson","#DC143C","DarkOrange","#FF8C00","BurlyWood","#DEB887","DarkKhaki","#BDB76B","LightYellow","#FFFFE0","Azure","#F0FFFF","LightGray","#D3D3D3","LawnGreen","#7CFC00","MediumSeaGreen","#3CB371","LightSeaGreen","#20B2AA","DeepSkyBlue","#00BFFF","DodgerBlue","#1E90FF","SlateBlue","#6A5ACD","MediumOrchid","#BA55D3","PaleVioletRed","#DB7093","Salmon","#FA8072","OrangeRed","#FF4500","SandyBrown","#F4A460","Tan","#D2B48C","Gold","#FFD700","Ivory","#FFFFF0","GhostWhite","#F8F8FF","Gainsboro","#DCDCDC","Chartreuse","#7FFF00","LimeGreen","#32CD32","MediumAquamarine","#66CDAA","DarkTurquoise","#00CED1","CornflowerBlue","#6495ED","MediumSlateBlue","#7B68EE","Orchid","#DA70D6","HotPink","#FF69B4","LightCoral","#F08080","Tomato","#FF6347","Orange","#FFA500","Bisque","#FFE4C4","Khaki","#F0E68C","Cornsilk","#FFF8DC","Linen","#FAF0E6","WhiteSmoke","#F5F5F5","GreenYellow","#ADFF2F","DarkSeaGreen","#8FBC8B","Turquoise","#40E0D0","MediumTurquoise","#48D1CC","SkyBlue","#87CEEB","MediumPurple","#9370DB","Violet","#EE82EE","LightPink","#FFB6C1","DarkSalmon","#E9967A","Coral","#FF7F50","NavajoWhite","#FFDEAD","BlanchedAlmond","#FFEBCD","PaleGoldenrod","#EEE8AA","Oldlace","#FDF5E6","Seashell","#FFF5EE","PaleGreen","#98FB98","SpringGreen","#00FF7F","Aquamarine","#7FFFD4","PowderBlue","#B0E0E6","LightSkyBlue","#87CEFA","LightSteelBlue","#B0C4DE","Plum","#DDA0DD","Pink","#FFC0CB","LightSalmon","#FFA07A","Wheat","#F5DEB3","Moccasin","#FFE4B5","AntiqueWhite","#FAEBD7","LemonChiffon","#FFFACD","FloralWhite","#FFFAF0","Snow","#FFFAFA","AliceBlue","#F0F8FF","LightGreen","#90EE90","MediumSpringGreen","#00FA9A","PaleTurquoise","#AFEEEE","LightCyan","#E0FFFF","LightBlue","#ADD8E6","Lavender","#E6E6FA","Thistle","#D8BFD8","MistyRose","#FFE4E1","Peachpuff","#FFDAB9","PapayaWhip","#FFEFD5"];var colorlist=[{n:OxOd678[0],h:OxOd678[1]},{n:OxOd678[2],h:OxOd678[3]},{n:OxOd678[4],h:OxOd678[5]},{n:OxOd678[6],h:OxOd678[7]},{n:OxOd678[8],h:OxOd678[9]},{n:OxOd678[10],h:OxOd678[11]},{n:OxOd678[12],h:OxOd678[13]},{n:OxOd678[14],h:OxOd678[15]},{n:OxOd678[16],h:OxOd678[17]},{n:OxOd678[18],h:OxOd678[19]},{n:OxOd678[20],h:OxOd678[21]},{n:OxOd678[22],h:OxOd678[23]},{n:OxOd678[24],h:OxOd678[25]},{n:OxOd678[26],h:OxOd678[27]},{n:OxOd678[28],h:OxOd678[29]},{n:OxOd678[30],h:OxOd678[31]}];var colormore=[{n:OxOd678[32],h:OxOd678[33]},{n:OxOd678[34],h:OxOd678[35]},{n:OxOd678[36],h:OxOd678[37]},{n:OxOd678[38],h:OxOd678[39]},{n:OxOd678[40],h:OxOd678[41]},{n:OxOd678[42],h:OxOd678[43]},{n:OxOd678[44],h:OxOd678[45]},{n:OxOd678[46],h:OxOd678[47]},{n:OxOd678[48],h:OxOd678[49]},{n:OxOd678[50],h:OxOd678[51]},{n:OxOd678[52],h:OxOd678[53]},{n:OxOd678[54],h:OxOd678[55]},{n:OxOd678[56],h:OxOd678[57]},{n:OxOd678[58],h:OxOd678[59]},{n:OxOd678[60],h:OxOd678[61]},{n:OxOd678[62],h:OxOd678[63]},{n:OxOd678[64],h:OxOd678[65]},{n:OxOd678[66],h:OxOd678[67]},{n:OxOd678[68],h:OxOd678[69]},{n:OxOd678[70],h:OxOd678[71]},{n:OxOd678[72],h:OxOd678[73]},{n:OxOd678[74],h:OxOd678[75]},{n:OxOd678[76],h:OxOd678[77]},{n:OxOd678[78],h:OxOd678[79]},{n:OxOd678[80],h:OxOd678[81]},{n:OxOd678[82],h:OxOd678[83]},{n:OxOd678[84],h:OxOd678[85]},{n:OxOd678[86],h:OxOd678[87]},{n:OxOd678[88],h:OxOd678[89]},{n:OxOd678[90],h:OxOd678[91]},{n:OxOd678[92],h:OxOd678[93]},{n:OxOd678[94],h:OxOd678[95]},{n:OxOd678[96],h:OxOd678[97]},{n:OxOd678[98],h:OxOd678[99]},{n:OxOd678[100],h:OxOd678[101]},{n:OxOd678[102],h:OxOd678[103]},{n:OxOd678[104],h:OxOd678[105]},{n:OxOd678[106],h:OxOd678[107]},{n:OxOd678[108],h:OxOd678[109]},{n:OxOd678[110],h:OxOd678[111]},{n:OxOd678[112],h:OxOd678[113]},{n:OxOd678[114],h:OxOd678[115]},{n:OxOd678[116],h:OxOd678[117]},{n:OxOd678[118],h:OxOd678[119]},{n:OxOd678[120],h:OxOd678[121]},{n:OxOd678[122],h:OxOd678[123]},{n:OxOd678[124],h:OxOd678[125]},{n:OxOd678[126],h:OxOd678[127]},{n:OxOd678[128],h:OxOd678[129]},{n:OxOd678[130],h:OxOd678[131]},{n:OxOd678[132],h:OxOd678[133]},{n:OxOd678[134],h:OxOd678[135]},{n:OxOd678[136],h:OxOd678[137]},{n:OxOd678[138],h:OxOd678[139]},{n:OxOd678[140],h:OxOd678[141]},{n:OxOd678[142],h:OxOd678[143]},{n:OxOd678[144],h:OxOd678[145]},{n:OxOd678[146],h:OxOd678[147]},{n:OxOd678[148],h:OxOd678[149]},{n:OxOd678[150],h:OxOd678[151]},{n:OxOd678[152],h:OxOd678[153]},{n:OxOd678[154],h:OxOd678[155]},{n:OxOd678[156],h:OxOd678[157]},{n:OxOd678[158],h:OxOd678[159]},{n:OxOd678[160],h:OxOd678[161]},{n:OxOd678[162],h:OxOd678[163]},{n:OxOd678[164],h:OxOd678[165]},{n:OxOd678[166],h:OxOd678[167]},{n:OxOd678[168],h:OxOd678[169]},{n:OxOd678[170],h:OxOd678[171]},{n:OxOd678[172],h:OxOd678[173]},{n:OxOd678[174],h:OxOd678[175]},{n:OxOd678[176],h:OxOd678[177]},{n:OxOd678[178],h:OxOd678[179]},{n:OxOd678[180],h:OxOd678[181]},{n:OxOd678[182],h:OxOd678[183]},{n:OxOd678[184],h:OxOd678[185]},{n:OxOd678[186],h:OxOd678[187]},{n:OxOd678[188],h:OxOd678[189]},{n:OxOd678[190],h:OxOd678[191]},{n:OxOd678[192],h:OxOd678[193]},{n:OxOd678[194],h:OxOd678[195]},{n:OxOd678[196],h:OxOd678[197]},{n:OxOd678[198],h:OxOd678[199]},{n:OxOd678[200],h:OxOd678[201]},{n:OxOd678[202],h:OxOd678[203]},{n:OxOd678[204],h:OxOd678[205]},{n:OxOd678[206],h:OxOd678[207]},{n:OxOd678[208],h:OxOd678[209]},{n:OxOd678[210],h:OxOd678[211]},{n:OxOd678[212],h:OxOd678[213]},{n:OxOd678[214],h:OxOd678[215]},{n:OxOd678[216],h:OxOd678[217]},{n:OxOd678[218],h:OxOd678[219]},{n:OxOd678[220],h:OxOd678[221]},{n:OxOd678[156],h:OxOd678[157]},{n:OxOd678[222],h:OxOd678[223]},{n:OxOd678[224],h:OxOd678[225]},{n:OxOd678[226],h:OxOd678[227]},{n:OxOd678[228],h:OxOd678[229]},{n:OxOd678[230],h:OxOd678[231]},{n:OxOd678[232],h:OxOd678[233]},{n:OxOd678[234],h:OxOd678[235]},{n:OxOd678[236],h:OxOd678[237]},{n:OxOd678[238],h:OxOd678[239]},{n:OxOd678[240],h:OxOd678[241]},{n:OxOd678[242],h:OxOd678[243]},{n:OxOd678[244],h:OxOd678[245]},{n:OxOd678[246],h:OxOd678[247]},{n:OxOd678[248],h:OxOd678[249]},{n:OxOd678[250],h:OxOd678[251]},{n:OxOd678[252],h:OxOd678[253]},{n:OxOd678[254],h:OxOd678[255]},{n:OxOd678[256],h:OxOd678[257]},{n:OxOd678[258],h:OxOd678[259]},{n:OxOd678[260],h:OxOd678[261]},{n:OxOd678[262],h:OxOd678[263]},{n:OxOd678[264],h:OxOd678[265]},{n:OxOd678[266],h:OxOd678[267]},{n:OxOd678[268],h:OxOd678[269]},{n:OxOd678[270],h:OxOd678[271]},{n:OxOd678[272],h:OxOd678[273]}];
		
		</script>
	</head>
	<body>
		<div id="ajaxdiv">
			<div class="tab-pane-control tab-pane" id="tabPane1">
				<div class="tab-row">
					<h2 class="tab">
						<a tabindex="-1" href='colorpicker.aspx?<%=GetDialogQueryString%>'>
							<span style="white-space:nowrap;">
								[[WebPalette]]
							</span>
						</a>
					</h2>
					<h2 class="tab selected">
							<a tabindex="-1" href='colorpicker_basic.aspx?<%=GetDialogQueryString%>'>
								<span style="white-space:nowrap;">
									[[NamedColors]]
								</span>
							</a>
					</h2>
					<h2 class="tab">
							<a tabindex="-1" href='colorpicker_more.aspx?<%=GetDialogQueryString%>'>
								<span style="white-space:nowrap;">
									[[CustomColor]]
								</span>
							</a>
					</h2>
				</div>
				<div class="tab-page">			
					<table class="colortable" align="center">
						<tr>
							<td colspan="16" height="16"><p align="left">Basic:
								</p>
							</td>
						</tr>
						<tr>
							<script>
								var OxOd521=["length","\x3Ctd class=\x27colorcell\x27\x3E\x3Cdiv class=\x27colordiv\x27 style=\x27background-color:","\x27 title=\x27"," ","\x27 cname=\x27","\x27 cvalue=\x27","\x27\x3E\x3C/div\x3E\x3C/td\x3E",""];var arr=[];for(var i=0;i<colorlist[OxOd521[0]];i++){arr.push(OxOd521[1]);arr.push(colorlist[i].n);arr.push(OxOd521[2]);arr.push(colorlist[i].n);arr.push(OxOd521[3]);arr.push(colorlist[i].h);arr.push(OxOd521[4]);arr.push(colorlist[i].n);arr.push(OxOd521[5]);arr.push(colorlist[i].h);arr.push(OxOd521[6]);} ;document.write(arr.join(OxOd521[7]));
							</script>
						</tr>
						<tr>
							<td colspan="16" height="12"><p align="left"></p>
							</td>
						</tr>
						<tr>
							<td colspan="16"><p align="left">Additional:
								</p>
							</td>
						</tr>
						<script>
							var OxOc757=["length","\x3Ctr\x3E","\x3Ctd class=\x27colorcell\x27\x3E\x3Cdiv class=\x27colordiv\x27 style=\x27background-color:","\x27 title=\x27"," ","\x27 cname=\x27","\x27 cvalue=\x27","\x27\x3E\x3C/div\x3E\x3C/td\x3E","\x3C/tr\x3E",""];var arr=[];for(var i=0;i<colormore[OxOc757[0]];i++){if(i%16==0){arr.push(OxOc757[1]);} ;arr.push(OxOc757[2]);arr.push(colormore[i].n);arr.push(OxOc757[3]);arr.push(colormore[i].n);arr.push(OxOc757[4]);arr.push(colormore[i].h);arr.push(OxOc757[5]);arr.push(colormore[i].n);arr.push(OxOc757[6]);arr.push(colormore[i].h);arr.push(OxOc757[7]);if(i%16==15){arr.push(OxOc757[8]);} ;} ;if(colormore%16>0){arr.push(OxOc757[8]);} ;document.write(arr.join(OxOc757[9]));
						</script>
						<tr>
							<td colspan="16" height="8">
							</td>
						</tr>
						<tr>
							<td colspan="16" height="12">
								<input checked id="CheckboxColorNames" style="width: 16px; height: 20px" type="checkbox">
								<span style="width: 118px;">Use color names</span>
							</td>
						</tr>
						<tr>
							<td colspan="16" height="12">
							</td>
						</tr>
						<tr>
							<td colspan="16" valign="middle" height="24">
							<span style="height:24px;width:50px;vertical-align:middle;">Color : </span>&nbsp;
							<input type="text" id="divpreview" size="7" maxlength="7" style="width:180px;height:24px;border:#a0a0a0 1px solid; Padding:4;"/>
					
							</td>
						</tr>
				</table>
			</div>
		</div>
		<div id="container-bottom">
			<input type="button" id="buttonok" value="[[OK]]" class="formbutton" style="width:70px"	onclick="do_insert();" /> 
			&nbsp;&nbsp;&nbsp;&nbsp; 
			<input type="button" id="buttoncancel" value="[[Cancel]]" class="formbutton" style="width:70px"	onclick="do_Close();" />	
		</div>
	</div>
	</body>
</html>

