html 
{	
	overflow-x:hidden;
}

body.menumain
{
	/*background-image:url(sq_darkgrey.gif);	
	background-repeat:repeat;
	background-attachment:fixed;
	*/
	width:180px;	
	overflow:hidden;
	
	background-color:#777777;
	color: #333333;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: small;	
}

body.main
{
	/*background-image:url(sq_lightgrey.gif);	
	background-repeat:repeat;
	background-attachment:fixed;*/
	background-color:#DDDDDD;
	color: #333333;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: small;	
}

#mainframe
{
	position:relative;	
	width:90%;
	margin-left:5%;	
	margin-right:5%;	
	overflow:visible;
	display:block;		
}

/*this is the simplest database message,
every message consists of title datetime and content		*/
#mainframe .newmessage
{
	position:relative;
	min-height:300px;
	border-top-width:1px;
	border-left-width:0px;
	border-right-width:0px;
	border-bottom-width:0px;
	border-style:solid;
	border-color:#666666;
	
	background-color:#00c6f6;
	
	display:block;
}

/*IE hack \*/
* html #mainframe .newmessage
{
		height:300px;
}
/*	*/

#mainframe #minheight200px
{
	position:relative;
	height:200px;
	width:1px;
}


#mainframe .newmessage .title
{
	margin-top:20px;
	border-color:#DDDDDD;
	border-style:solid;
	border-left-width:0px;
	border-right-width:0px;
	border-bottom-width:1px;
	border-top-width:0px;
	
	font-weight:bold;
	text-align:center;
	color:#666666;
	
	overflow:visible;	
	display:block;
	clear:right;	
}

#mainframe .newmessage .title input
{
	position:relative;
	width:100%;
	text-align:center;	
	border-color:#DDDDDD;
	border-style:solid;
	border-left-width:0px;
	border-right-width:0px;
	border-bottom-width:1px;
	border-top-width:1px;
	background-color:#cccccc;
}

#mainframe .newmessage .datetime
{
	border-style:dotted;
	border-left-width:0px;
	border-right-width:0px;
	border-bottom-color:#DDDDDD;
	border-bottom-width:1px;
	border-top-width:0px;	
	
	font-weight:lighter;
	font-size:x-small;
	font-style:italic;
	text-align:center;	
	color:#999999;
	
	overflow:visible;	
	display:block;
	clear:right;	
}

#mainframe .newmessage .content
{
	position:relative;	
	
	padding-top:30px;
	padding-bottom:25px;
	/*padding-right:5%;
	padding-left:5%;
	*/
	margin-left:5%;
	margin-right:5%;
	
	text-align:justify;
	
	border-top-color:#FFFFFF;
	border-top-style:solid;
	border-left-width:0px;
	border-right-width:0px;
	border-bottom-width:0px;
	border-top-width:0px;	
	
	color:#666666;
	
	display:block;
	clear:right;
}

#mainframe .newmessage .content:first-letter
{
	color:#660000;
}

#mainframe .message .content p
{
	text-indent:20px;
}

#mainframe .newmessage .content p:first-letter
{
	font-size:larger;
	color:#660000;	
}

#mainframe .newmessage .content textarea
{
	position:relative;
	width:100%;
	height:300px;
}

#mainframe .messagebottombar
{		
	border-style:solid;
	border-left-width:0px;
	border-right-width:0px;
	border-top-width:0px;
	border-bottom-width:1px;
	border-color:#666666;	
}

#mainframe .newmessage .buttonbar
{
	position:relative;	
	padding-bottom:25px;
	margin-left:5%;
	margin-right:5%;	
	border-top-color:#FFFFFF;
	border-top-style:solid;
	border-top-width:0px;		
	color:#666666;	
	display:block;
	clear:right;
}

#buttonbar .newmessage .buttonbar .button
{
	position:relative;
	width:120px;
	margin-left:auto;
	margin-right:auto;
	float:left;
	display:block;
}

#mainframe .newmessage .buttonbar .button .submit a
{
	position:relative;	
	margin-left:25px;
	margin-right:25px;
	width:120px;
	background-color:#DDDDDD;
	color:#666666;
	border-style:solid;
	border-width:1px;	
	font-weight:normal;
	text-decoration:none;
	text-align:center;
	display:block;
	float:left;
	clear:none;
	cursor:pointer;
}

#mainframe .newmessage .buttonbar .button .submit a:link{ color:#666666; }
#mainframe .newmessage .buttonbar .button .submit a:visited{ color:#333333; }
#mainframe .newmessage .buttonbar .button .submit a:hover{ color:#DDDDDD;background-color:#333333; }
#mainframe .newmessage .buttonbar .button .submit a:active{ color:#333333;background-color:#DDDDDD;}










/*this is the simplest database message,
every message consists of title datetime and content		*/
#mainframe .message
{
	position:relative;
	min-height:300px;
	border-top-width:1px;
	border-left-width:0px;
	border-right-width:0px;
	border-bottom-width:0px;
	border-style:solid;
	border-color:#666666;
	
	background-color:#FFFFFF;
	
	display:block;
}

/*IE hack \*/
* html #mainframe .message
{
		height:300px;
}
/*	*/

#mainframe #minheight200px
{
	position:relative;
	height:200px;
	width:1px;
}


#mainframe .message .title
{
	margin-top:20px;
	border-color:#DDDDDD;
	border-style:solid;
	border-left-width:0px;
	border-right-width:0px;
	border-bottom-width:1px;
	border-top-width:0px;
	
	font-weight:bold;
	text-align:center;
	color:#666666;
	
	overflow:visible;	
	display:block;
	clear:right;	
}

#mainframe .message .title input
{
	position:relative;
	width:100%;
	text-align:center;	
	border-color:#DDDDDD;
	border-style:solid;
	border-left-width:0px;
	border-right-width:0px;
	border-bottom-width:1px;
	border-top-width:1px;
	background-color:#cccccc;
}

#mainframe .message .datetime
{
	border-style:dotted;
	border-left-width:0px;
	border-right-width:0px;
	border-bottom-color:#DDDDDD;
	border-bottom-width:1px;
	border-top-width:0px;	
	
	font-weight:lighter;
	font-size:x-small;
	font-style:italic;
	text-align:center;	
	color:#999999;
	
	overflow:visible;	
	display:block;
	clear:right;	
}

#mainframe .message .content
{
	position:relative;	
	
	padding-top:30px;
	padding-bottom:25px;
	/*padding-right:5%;
	padding-left:5%;
	*/
	margin-left:5%;
	margin-right:5%;
	
	text-align:justify;
	
	border-top-color:#FFFFFF;
	border-top-style:solid;
	border-left-width:0px;
	border-right-width:0px;
	border-bottom-width:0px;
	border-top-width:0px;	
	
	color:#666666;
	
	display:block;
	clear:right;
}

#mainframe .message .content:first-letter
{
	color:#660000;
}

#mainframe .message .content p
{
	text-indent:20px;
}

#mainframe .message .content p:first-letter
{
	font-size:larger;
	color:#660000;	
}

#mainframe .message .content textarea
{
	position:relative;
	width:100%;
	height:300px;
}

#mainframe .messagebottombar
{		
	border-style:solid;
	border-left-width:0px;
	border-right-width:0px;
	border-top-width:0px;
	border-bottom-width:1px;
	border-color:#666666;	
}

#mainframe .message .buttonbar
{
	position:relative;	
	padding-bottom:25px;
	margin-left:5%;
	margin-right:5%;	
	border-top-color:#FFFFFF;
	border-top-style:solid;
	border-top-width:0px;		
	color:#666666;	
	display:block;
	clear:right;
}

#buttonbar .message .buttonbar .button
{
	position:relative;
	width:120px;
	margin-left:auto;
	margin-right:auto;
	float:left;
	display:block;
}

#mainframe .message .buttonbar .button .submit a
{
	position:relative;	
	margin-left:25px;
	margin-right:25px;
	width:120px;
	background-color:#DDDDDD;
	color:#666666;
	border-style:solid;
	border-width:1px;	
	font-weight:normal;
	text-decoration:none;
	text-align:center;
	display:block;
	float:left;
	clear:none;
	cursor:pointer;
}

#mainframe .message .buttonbar .button .submit a:link{ color:#666666; }
#mainframe .message .buttonbar .button .submit a:visited{ color:#333333; }
#mainframe .message .buttonbar .button .submit a:hover{ color:#DDDDDD;background-color:#333333; }
#mainframe .message .buttonbar .button .submit a:active{ color:#333333;background-color:#DDDDDD;}

#mainframe .message .buttonbar .button .delete a
{
	position:relative;	
	margin-left:25px;
	margin-right:25px;
	width:120px;
	background-color:#DDDDDD;
	color:#660000;
	border-style:solid;
	border-width:2px;	
	font-weight:normal;
	text-decoration:none;
	text-align:center;
	display:block;
	float:left;
	cursor:pointer;
}

#mainframe .message .buttonbar .button .delete a:link { color:#660000; }
#mainframe .message .buttonbar .button .delete a:visited{ color:#333333; }
#mainframe .message .buttonbar .button .delete a:hover{ color:#DDDDDD;background-color:#333333; }
#mainframe .message .buttonbar .button .delete a:active{ color:#333333;background-color:#DDDDDD;}


/*
mainframe
	loginform
		form
			formelement
				label
				content
			/formelement
		/form
	/loginform
/mainframe
*/
#mainframe #loginform
{	
	display:block;
	position:relative;
	top:100px;	
	height:300px;	
	width:100%;
	border-top-width:1px;
	border-left-width:1px;
	border-right-width:1px;
	border-bottom-width:1px;
	border-style:solid;
	border-color:#666666;
	background-color:#FFFFFF;
	overflow:visible;
}

#loginform form
{
	position:relative;
	top:100px;
	border-top-width:1px;
	border-left-width:1px;
	border-right-width:1px;
	border-bottom-width:1px;
	border-style:dotted;
	border-color:#666666;
	
}


#loginform form #formelement
{
	position:relative;
	width:100%;	
	margin:0%;
	padding:0%;	
	clear:right;		
}

#loginform #formelement #title
{
	display:block;
	position:relative;
	width:60%;	
	margin-left:20%;
	margin-right:20%;
	margin-bottom:20px;
	text-align:center;
	clear:both;
}

#loginform #formelement #label
{
	position:relative;
	width:20%;		
	margin-left:5%;	
	margin-right:5%;
	text-align:left;
	display:block;	
	float:left;
	
	border-top-width:0px;
	border-left-width:0px;
	border-right-width:0px;
	border-bottom-width:1px;
	border-style:dotted;
	border-color:#666666;
}

#loginform #formelement #invisiblelabel
{
	position:relative;
	width:20%;		
	margin-left:5%;	
	margin-right:5%;
	text-align:left;
	display:block;	
	float:left;
	
	border-top-width:0px;
	border-left-width:0px;
	border-right-width:0px;
	border-bottom-width:0px;
	border-style:dotted;
	border-color:#666666;
}


#loginform #formelement #spacer
{
	position:relative;
	height:10px; 
	width:90%;
	display:block;	
	float:left;	
	clear:right;
}

#loginform #formelement #content
{
	position:relative;
	width:50%;	 
	margin-left:0%;
	margin-right:0%;
	text-align:left;
	float:left;	
	clear:right;
	display:block;	
}

#loginform #formelement #content input.text
{
	position:relative;
	width:100%;	 
	margin-left:0%;
	margin-right:0%;
	text-align:left;
	float:right;	
	clear:right;
	display:block;		
	margin-bottom:5px;
	border-color:#666666;
	border-style:solid;
	border-width:1px;
}

#loginform #formelement #content input.checkbox
{
	position:relative;
	width:100%;
	margin-left:0%;
	margin-right:0%;
	text-align:left;
	float:left;	
	clear:right;
	display:block;	
}

#loginform #formelement #content a
{	
	border-top-width:1px;
	border-left-width:1px;
	border-right-width:1px;
	border-bottom-width:1px;
	border-style:solid;
	border-color:#666666;
	cursor:pointer;
}

#loginform #formelement #content a.submit
{
	position:relative;
	width:49%;	
	margin-left:0%;	
	margin-right:0%;
	padding:0px;	
	text-decoration:none;
	background-color:#FFFFFF;
	text-align:center;
	float:left;
	display:block;		
}
#loginform #formelement #content a.submit:link{ color:#666666; }
#loginform #formelement #content a.submit:visited{ color:#999999; }
#loginform #formelement #content a.submit:hover{ color:#DDDDDD; background-color:#333333; border-color:#006600; }
#loginform a.submit:active{ color:#333333; background-color:#DDDDDD; border-color:#006600;}


#loginform #formelement #content a.clear
{
	position:relative;
	width:49%;
	margin-left:0%;	
	margin-right:0%;
	padding:0px;	
	text-decoration:none;
	background-color:#FFFFFF;
	text-align:center;
	display:block;
	float:right;
}
#loginform #formelement #content a.clear:link{ color:#666666; }
#loginform #formelement #content a.clear:visited{ color:#999999; }
#loginform #formelement #content a.clear:hover{ color:#DDDDDD;background-color:#333333; }
#loginform #formelement #content a.clear:active{ color:#333333;background-color:#DDDDDD;}

#loginform a.logout
{
	position:absolute;	
	width:60%;
	margin-left:20%;	
	margin-right:20%;
	
	border-width:1px;
	border-style:solid;
	border-color:#666666;
	
	text-decoration:none;
	background-color:#FFFFFF;
	text-align:center;

	clear:none;
	display:block;	
}
#loginform a.logout:link{ color:#666666; }
#loginform a.logout:visited{ color:#999999; }
#loginform a.logout:hover{ color:#DDDDDD;background-color:#333333; }
#loginform a.logout:active{ color:#333333;background-color:#DDDDDD;}


#mainframe #globalform
{	
	position:relative;
	top:100px;
	width:100%;
	padding-bottom:50px;
	min-height:100px;
	overflow:visible;
	background-color:#FFFFFF;
	display:block;
	float:left;
	clear:both;
}
/*IE hack \*/
* html #mainframe #globalform
{
		height:100px;		
}
/*	*/



#mainframe #globalform #userlist
{
	position:relative;
	margin-left:auto;	
	margin-right:auto;
	width:80%;
	padding-top:0px;
	padding-bottom:50px;
	overflow:visible;
	display:block;	
	clear:both;
}

#mainframe #globalform #userlist #header
{
	
	position:relative;
	width:90%;
	margin-left:auto;
	margin-right:auto;
	border-top-width:1px;
	border-left-width:1px;
	border-right-width:1px;
	border-bottom-width:0px;
	border-style:solid;
	border-color:#666666;
	padding-top:25px;
	text-align:center;
	font-size:larger;
	background-color:#BBBBBB;
	display:block;
	float:left;
	clear:both;
}

#mainframe #globalform #userlist #titlerow
{		
	position:relative;
	width:90%;
	margin-left:auto;
	margin-right:auto;
	border-top-width:1px;
	border-left-width:0px;
	border-right-width:1px;
	border-bottom-width:0px;
	border-style:solid;
	border-color:#666666;
	background-color:#888888;
	display:block;
	float:left;
	clear:both;	
}

#mainframe #globalform #userlist #titlerow #smallcolumn
{
	background-color:#888888;
	position:relative;
	width:90px;	
	border-top-width:0px;
	border-left-width:1px;
	border-right-width:0px;
	border-bottom-width:0px;	
	border-style:solid;
	border-color:#666666;
	float:left;
	display:block;	
}

#mainframe #globalform #userlist #titlerow #mediumcolumn
{
	background-color:#888888;
	position:relative;
	width:150px;	
	border-top-width:0px;
	border-left-width:1px;
	border-right-width:0px;
	border-bottom-width:0px;	
	border-style:solid;
	border-color:#666666;
	float:left;
	display:block;	
}

#mainframe #globalform #userlist #titlerow #column
{
	background-color:#888888;
	position:relative;
	width:200px;	
	border-top-width:0px;
	border-left-width:1px;
	border-right-width:0px;
	border-bottom-width:0px;	
	border-style:solid;
	border-color:#666666;
	float:left;
	display:block;	
}


#mainframe #globalform #userlist #row1
{		
	background-color:#CCCCCC;
	position:relative;
	width:90%;
	margin-left:auto;
	margin-right:auto;
	border-top-width:0px;
	border-left-width:0px;
	border-right-width:1px;
	border-bottom-width:1px;
	border-style:solid;
	border-color:#666666;
	display:block;
	float:left;
	clear:both;
}

#mainframe #globalform #userlist #row2
{	
	background-color:#CCCCCC;
	position:relative;
	width:90%;
	margin-left:auto;
	margin-right:auto;
	border-top-width:0px;
	border-left-width:0px;
	border-right-width:1px;
	border-bottom-width:1px;
	border-style:solid;
	border-color:#666666;
	display:block;
	float:left;
	clear:both;
}

#mainframe #globalform #userlist #row1 #smallcolumn
{
	position:relative;
	width:90px;	
	height:22px;
	text-indent:5px;
	border-top-width:0px;
	border-left-width:1px;
	border-right-width:0px;
	border-bottom-width:0px;	
	border-style:solid;
	border-color:#666666;
	float:left;
	display:block;	
	overflow:visible;
}

#mainframe #globalform #userlist #row2 #smallcolumn
{
	position:relative;
	width:90px;	
	height:22px;
	text-indent:5px;
	border-top-width:0px;
	border-left-width:1px;
	border-right-width:0px;
	border-bottom-width:0px;	
	border-style:solid;
	border-color:#666666;
	float:left;
	display:block;	
	overflow:visible;
}

#mainframe #globalform #userlist #row1 #mediumcolumn
{
	position:relative;
	width:150px;	
	height:22px;
	text-indent:5px;
	border-top-width:0px;
	border-left-width:1px;
	border-right-width:0px;
	border-bottom-width:0px;	
	border-style:solid;
	border-color:#666666;
	float:left;
	display:block;	
	overflow:visible;
}

#mainframe #globalform #userlist #row2 #mediumcolumn
{
	position:relative;
	width:150px;	
	height:22px;
	text-indent:5px;
	border-top-width:0px;
	border-left-width:1px;
	border-right-width:0px;
	border-bottom-width:0px;	
	border-style:solid;
	border-color:#666666;
	float:left;
	display:block;	
	overflow:visible;
}

#mainframe #globalform #userlist  #row1 #column
{
	position:relative;
	width:200px;	
	height:22px;
	text-indent:5px;
	border-top-width:0px;
	border-left-width:1px;
	border-right-width:0px;
	border-bottom-width:0px;	
	border-style:solid;
	border-color:#666666;
	float:left;
	display:block;	
	overflow:visible;
}

#mainframe #globalform #userlist  #row2 #column
{
	position:relative;
	width:200px;	
	height:22px;
	text-indent:5px;
	border-top-width:0px;
	border-left-width:1px;
	border-right-width:0px;
	border-bottom-width:0px;	
	border-style:solid;
	border-color:#666666;
	float:left;
	display:block;	
	overflow:visible;
}

#mainframe #globalform #smallcolumn a, #mainframe #globalform #column a
{
	position:relative;	
	width:100%;
	background-color:#DDDDDD;
	color:#660000;
	border-style:inset;
	border-width:2px;	
	font-weight:normal;
	font-size:medium;
	text-decoration:none;
	text-align:center;
	display:block;
	cursor:pointer;
}
#mainframe #globalform #smallcolumn a:link, #mainframe #globalform #column a:link{ color:#660000; }
#mainframe #globalform #smallcolumn a:visited, #mainframe #globalform #column a:visited{ color:#333333; }
#mainframe #globalform #smallcolumn a:hover, #mainframe #globalform #column a:hover{ color:#DDDDDD;background-color:#333333; }
#mainframe #globalform #smallcolumn a:active, #mainframe #globalform #column a:active{ color:#333333;background-color:#DDDDDD;}


#mainframe #globalform #newuser
{
	position:relative;
	left:5%;
	width:90%;	
	margin-top:50px;
	min-height:210px;
	overflow:visible;
	display:block;	
	float:left;
	clear:both;
	
	
	border-top-width:1px;
	border-left-width:1px;
	border-right-width:1px;
	border-bottom-width:1px;	
	border-style:solid;
	border-color:#666666;
	
}
/*IE hack \*/
* html #mainframe #globalform #newuser
{
		height:210px;
}
/*	*/

#mainframe #globalform #newuser #header
{
	padding-top:25px;
	margin-bottom:25px;
	background-color:#BBBBBB;
	display:block;
	position:relative;
	width:100%;
	display:block;
	float:left;
	clear:both;
	text-align:center;
	font-size:larger;
	color:#333333;
}

#mainframe #globalform #newuser #row
{
	display:block;
	position:relative;
	width:100%;
	display:block;
	float:left;
	clear:both;
}


#mainframe #globalform #newuser #row #columnleft
{
	position:relative;
	height:25px;
	left:5px;
	width:30%;
	float:left;
	
	border-top-width:0px;
	border-left-width:0px;
	border-right-width:0px;
	border-bottom-width:1px;	
	border-style:dotted;
	border-color:#666666;	
}

#mainframe #globalform #newuser #row #columnleftinvisible
{
	position:relative;
	height:25px;
	width:30%;
	float:left;
}

#mainframe #globalform #newuser #row #columnright
{		
	display:block;
	height:25px;
	text-align:center;
	position:relative;
	width:50%;
	margin-left:0%;
	margin-right:0%;	
	float:left;
}

#mainframe #globalform #newuser #row #columnright input
{		
	display:block;
	position:relative;
	width:90%;
	margin-left:10px;
	margin-right:10px;
	float:left;
	border-color:#666666;
	border-style:solid;
	border-width:1px;
}

#mainframe #globalform #newuser #row #columnright1
{		
	display:block;
	height:25px;
	text-align:center;
	position:relative;
	width:20%;
	margin-left:0%;
	margin-right:5%;
	float:left;
}
#mainframe #globalform #newuser #row #columnright2
{
	display:block;
	height:25px;
	text-align:center;
	position:relative;
	width:20%;
	margin-right:10px;
	float:left;
}

#mainframe #globalform #newuser #row #columnright1 a
{
	display:block;
	position:relative;
	margin-left:10px;
	left:0px;
	text-indent:5%;
	width:100%;
	border-left-width:1px;
	border-right:1px;
	border-top-width:1px;
	border-bottom-width:1px;
	border-style:solid;
	border-color:#666666;
	overflow:hidden;
	text-decoration:none;
	background-color:#DDDDDD;
	cursor:pointer;
}
/*IE hack \*/
* html #mainframe #globalform #newuser #row #columnright1 a
{
		left:10px;
}
/*	*/

#mainframe #globalform #newuser #row #columnright2 a
{
	position:relative;
	margin-left:8px;
	left:0px;
	text-indent:5%;
	width:100%;
	border-left-width:1px;
	border-right:1px;
	border-top-width:1px;
	border-bottom-width:1px;
	border-style:solid;
	border-color:#666666;
		display:block;
	overflow:hidden;
	text-decoration:none;
	background-color:#DDDDDD;
	cursor:pointer;
}
#mainframe #globalform #newuser #row #columnright1 a:link, #mainframe #globalform #newuser #row #columnright2 a:link{ color:#666666; }
#mainframe #globalform #newuser #row #columnright1 a:visited, #mainframe #globalform #newuser #row #columnright2 a:visited{ color:#333333; }
#mainframe #globalform #newuser #row #columnright1 a:hover, #mainframe #globalform #newuser #row #columnright2 a:hover{ color:#DDDDDD;background-color:#333333;}
#mainframe #globalform #newuser #row #columnright1 a:active, #mainframe #globalform #newuser #row #columnright2 a:active{ color:#333333;background-color:#DDDDDD;}





