/*
 * FormStyle - jQuery plugin 0.1.0
 *
 * Copyright (c) 2009 Wei Kin Huang, TimeDelimited.com
 *
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 * 
 * Icons (fugue) from http://www.pinvoke.com/
 */
 a.form-style.checkbox input, a.form-style.radio input, div.form-style.select select {
	display:none;
}

a.checkbox {
	background-image:url(../img/checkbox_uncheck.png);
	background-position:left 6px;
	background-repeat:no-repeat;
	float: left;
	height:20px;
	line-height:20px;
	padding-left:0;
	width:15px;
	position: relative;
	top: -5px;
}
.l-checkbox a {padding-left:7px;}
.l-checkbox a.checked {
	background-image:url(../img/checkbox_check.png);
}
a.form-style.checkbox:hover {
/*	background-image:url(../img/checkbox_uncheck_focus.png);*/
}
a.form-style.checkbox.checked:hover {
/*	background-image:url(../img/checkbox_check_focus.png);*/
}
a.form-style.checkbox.disabled {
/*	background-image:url(../img/checkbox_uncheck_disable.png) !important;*/
}
a.form-style.checkbox.disabled.checked {
/*	background-image:url(../img/checkbox_check_disable.png) !important;*/
}

a.radio {
	background-image:url(../img/radio_button_uncheck.png);
	background-position:left 5px;
	background-repeat:no-repeat;
	float: left;
	height:20px;
	line-height:20px;
	padding-left:0;
	width:15px;
	position: relative;
	top: -5px;
}
a.checked {
	background-image:url(../img/radio_button_check.png);
}
a.form-style.radio:hover {
/*	background-image:url(../img/radio_button_uncheck_focus.png);*/
}
a.form-style.radio.checked:hover {
/*	background-image:url(../img/radio_button_check_focus.png);*/
}
a.form-style.radio.disabled {
/*	background-image:url(../img/radio_button_uncheck_disable.png)!important;*/
}
a.form-style.radio.disabled.checked {
/*	background-image:url(../img/radio_button_check_disable.png)!important;*/
}

a.disabled{
	filter:alpha(opacity=50);
	-moz-opacity: 0.5;
	opacity: 0.5;
}
div.form-style.select {
/*	display:inline-block;*/
	float: left;
	padding-top: 1px;
	height:22px;
	line-height:22px;
	padding-left:0;
	margin-right: 16px;
	position:relative;
	width:146px;
	z-index:1000;
}
div.form-style.select a {
	color: #666;
	display:block;
	line-height:21px;
	padding:0 0 0 6px;
	position:relative;
	text-decoration:none;
}
div.form-style.select a.selector {
	background: url(../img/select-selector.png);
	display:block;
	height:22px;
	overflow:hidden;
	padding-right:27px;
	position:relative;
}
div.form-style.select a.expander {
	background: url(../img/select-expander.png);
	display:block;
	height:22px;
	padding:0;
	position:absolute;
	right:0;
	top:1px;
	width:27px;
}
.s-green div.form-style.select a.expander { background-image: url(../img/select-expander-green.png); }
div.form-style.select a.expander:hover {
/*	background-image:url(../img/plus.png);*/
}
div.form-style.select a.expander.open {
/*	background-image:url(../img/minus_small.png);*/
}
div.form-style.select a.expander.open:hover {
/*	background-image:url(../img/minus.png);*/
}
div.form-style.select ul.options {
	background-color:#fff;
	border:solid 1px #e1e1e1;
	display:none;
	max-height:176px;
	list-style:none;
	margin:0;
	overflow:auto;
	padding:0;
	position:absolute;
	width:99%;
	z-index:2000;
}
div.form-style.select ul.options li { margin-bottom: 0; background: #fff; }
div.form-style.select ul.options li, div.form-style.select ul.options li a {
	display:block;
}
div.form-style.select ul.options a {
	line-height:22px;
	min-height:22px;
	cursor: pointer;
}
div.form-style.select ul.options a.even {
/*	background-color:#EEE;*/
}
div.form-style.select ul.options a:hover {
	background-color:#f5f5f5;
	color: #f89828;
}
div.form-style.select ul.options a.selected {
	color: #f89828;
	background-color:#fff;
	z-index:2000;
}
div.form-style.file {
	clear:both;
	display:inline;
	height:20px;
	line-height:20px;
	padding-left:0;
	position:relative;
}
div.form-style.file input[type=text] {
	border:1px solid #999;
	display:inline-block;
	float:left;
	height:18px;
	line-height:20px;
	padding-left:0;
	position:relative;
	vertical-align:middle;
	width:200px;
}
div.form-style.file div.file-button {
	background-color:#FFF;
	background-image:url(../img/folder_open.png);
	background-position:2px 2px;
	background-repeat:no-repeat;
	border:1px solid #AAA;
	cursor:pointer;
	display:inline-block;
	float:left;
	height:20px;
	line-height:20px;
	overflow:hidden;
	position:relative;
	vertical-align:middle;
	width:20px;
}
div.form-style.file div.file-button:hover {
	background-color:#E1F5FF;
	background-image:url(../img/folder_open_document.png);
	border:1px solid #AAA;
}
div.form-style.file div.file-button * {
	cursor:pointer;
	display:inline;
	filter:Alpha(Opacity=0);
	height:50px;
	opacity:0;
	position:absolute;
	right:-4px;
	top:-10px;
}